aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
Commit message (Collapse)AuthorAgeFilesLines
* Hash#slice supports an array of keys [#613 state:resolved]Josh Owens2008-07-161-21/+35
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Run callbacks from object's metaclass [#575 state:resolved]Joshua Peek2008-07-151-0/+24
|
* Added Object#metaclassJoshua Peek2008-07-151-0/+8
|
* Add in_groups to ActiveSupport::CoreExtensions::Array::Grouping. [#579 ↵Adrian Mugnolo2008-07-151-4/+46
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fix TimeWithZone unmarshaling: coerce unmarshaled Time instances to utc, ↵gbuesing2008-07-141-0/+6
| | | | because Ruby's marshaling of Time instances doesn't respect the zone
* Some performance tweaks to ActiveSupport::MemoizableTarmo Tänav2008-07-141-0/+4
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* memorize typoJoshua Peek2008-07-141-2/+2
|
* Added Memoizable mixin for caching simple lazy loaded attributesJoshua Peek2008-07-141-0/+45
|
* Add Inflection rules for String#humanize. [#535 state:resolved] [dcmanges]Pratik Naik2008-07-021-4/+25
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* TimeWithZone: when crossing DST boundary, treat Durations of days, months or ↵gbuesing2008-06-291-0/+168
| | | | years as variable-length, and all other values as absolute length. A time + 24.hours will advance exactly 24 hours, but a time + 1.day will advance 23-25 hours, depending on the day. Ensure consistent behavior across all advancing methods.
* Added support for regexp matching of priority zones in time_zone_select ↵Ernie Miller2008-06-291-0/+7
| | | | [#195 state:resolved]
* Added block-handling to Enumerable#many? (Damian Janowski) [#452 state:resolved]David Heinemeier Hansson2008-06-201-2/+7
|
* Fall back to #to_s for cache key expansionJeremy Kemper2008-06-201-0/+6
|
* Added Array#second through Array#tenth as aliases for Array#[1] through ↵David Heinemeier Hansson2008-06-171-0/+14
| | | | Array#[9] [DHH]
* Change Enumberal#several? to Enumberal#many?David Heinemeier Hansson2008-06-131-3/+3
|
* Added Object#present? which is equivalent to !Object#blank? [DHH]David Heinemeier Hansson2008-06-121-0/+5
|
* Merge branch 'master' of git@github.com:rails/railsDavid Heinemeier Hansson2008-06-124-17/+44
|\
| * Add empty setup and teardown methods to rule out default setup behavior in ↵Jeremy Kemper2008-06-091-0/+6
| | | | | | | | base class
| * Performance: faster Object.subclasses_ofJeremy Kemper2008-06-081-1/+1
| |
| * Wrap date part value method tests inside a uses mocha block.Joshua Peek2008-06-071-16/+18
| |
| * Move Class::ModelName to Active Support module core_extJeremy Kemper2008-06-061-0/+19
| |
* | Added Enumberable#several? to encapsulate collection.size > 1 [DHH]David Heinemeier Hansson2008-06-121-0/+6
|/
* Renamed StringQuestioneer to StringInquirer.Joshua Peek2008-06-042-15/+15
|
* Namespaced StringQuestioneer under ActiveSupport.Joshua Peek2008-06-041-3/+3
|
* Wrapped Rails.env in StringQuestioneer so you can do Rails.env.development? ↵David Heinemeier Hansson2008-06-031-0/+15
| | | | [DHH]
* Add more standard Hash methods to ActiveSupport::OrderedHash [#314 ↵Steve Purcell2008-06-031-0/+19
| | | | | | state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Fixed ambiguous first argument warning in ArrayExtTest.Joshua Peek2008-06-031-14/+12
|
* Namespace Inflector, Dependencies, OrderedOptions, and TimeZone under ↵Joshua Peek2008-06-0310-411/+420
| | | | ActiveSupport [#238 state:resolved]
* Added tests [#279 state:resolved] (Nicholas Schlueter)David Heinemeier Hansson2008-06-023-0/+10
|
* Fixed Date#end_of_quarter to not blow up on May 31st [#289 state:resolved] ↵David Heinemeier Hansson2008-06-021-0/+1
| | | | (Danger)
* Added a test for GzipDavid Heinemeier Hansson2008-06-021-0/+7
|
* Fixed Dependencies so load errors are not masked behind a 'Expected x.rb to ↵Tom Ward2008-05-311-6/+14
| | | | | | define X' message when mechanism is not set to :load [#87 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* TimeZone#to_s shows offset as GMT instead of UTC, because GMT will be more ↵gbuesing2008-05-251-1/+1
| | | | familiar to end users (see time zone selects used by Windows OS, google.com and yahoo.com.) Reverts [8370]
* Fix Dependencies watch_frames collection. [#24 state:resolved]Tom Ward2008-05-201-0/+6
| | | | | | | | | | Previously, the code collecting watch_frames could fail leaving watch_frames defined but nil. The cleanup code checks watch_frames is defined, but not that it holds a value, raising an undefined method on NilClass error rather than the original cause. This can make debugging the underlying cause a total pain. Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Hash.from_xml: datetime xml types overflow to Ruby DateTime class when out ↵gbuesing2008-05-181-0/+38
| | | | of range of Time. Adding tests for utc offsets
* TimeWithZone #+ and #- : ensure overflow to DateTime with Numeric arggbuesing2008-05-181-0/+7
|
* Time#to_json: don't convert to utc before encoding. References #175gbuesing2008-05-181-0/+16
|
* Create a seperate file for ActiveSupport::OrderedHash.Joshua Peek2008-05-142-44/+45
|
* Include time zone offset in TimeWithZone#to_jsonDaniel Morrison2008-05-131-1/+1
|
* Remove unnecessary DeprecatedInstanceVariable classPratik Naik2008-05-131-10/+0
|
* Adding Date.current, which returns Time.zone.today if config.time_zone is ↵gbuesing2008-05-081-0/+23
| | | | set; otherwise returns Date.today. ActionView date_helper uses Date.current to determine locale-appropriate default
* TimeWithZone: date part getter methods (#year #mon #day etc) are defined on ↵gbuesing2008-05-081-1/+9
| | | | class; no longer relying on method_missing
* Time.zone.parse: return nil for strings with no date informationgbuesing2008-05-081-0/+8
|
* Time.zone.parse: compatibility with far future date with time zone offset in ↵gbuesing2008-05-081-0/+9
| | | | string. Eliminate creation of additional TimeWithZone instance to determine utc offset.
* Fix Time.zone.parse from stripping time zone information and make Time aware ↵Scott Fleckenstein2008-05-081-0/+8
| | | | attribute methods use Time.zone.parse instead of to_time
* Add class to deprecate instance variablesPratik Naik2008-05-061-0/+10
| | | | | Add ActiveSupport::Deprecation::DeprecatedInstanceVariable class to deprecate instance variables of primitive types such as stings.
* Added OrderedHash#delete [#113 state:resolved]Sean Ouimet2008-05-051-0/+13
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Ruby 1.9 compat: compatibility wrapper for new Module#const_defined? behaviorJeremy Kemper2008-05-011-8/+2
|
* Duration #since and #ago with no argument (e.g., 5.days.ago) return ↵gbuesing2008-04-202-0/+66
| | | | TimeWithZone when config.time_zone is set. Introducing Time.current, which returns Time.zone.now if config.time_zone is set, otherwise just returns Time.now
* Tidy up ActiveSupport::Callbacks::CallbackChain instance API.Joshua Peek2008-04-171-0/+31
|