Luca Guidi
|
ce65a05c5b
|
Fix Ruby's Time marshaling bug in pre-1.9 versions of Ruby: utc instances are now correctly unmarshaled with a utc zone instead of the system local zone [#900 state:resolved]
|
2008-08-27 08:57:36 -05:00 |
|
Jeremy Kemper
|
5e1ceb153c
|
Work around frozen Date memoization
|
2008-08-25 17:05:50 -07:00 |
|
Amos King
|
381210daa0
|
camelize(:lower) should always downcase first character. [#696 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-08-22 13:31:13 +01:00 |
|
Frederick Cheung
|
654c41255d
|
Mark Class as not being duplicable. [#829 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-08-21 18:40:20 +01:00 |
|
S. Brent Faulkner
|
3284fbb866
|
Use current umask when testing the expected file mode [#823 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
|
2008-08-13 19:19:00 -05:00 |
|
Joshua Peek
|
73056500f8
|
Make File.atomic_write copy the original permissions or use the directories default.
|
2008-08-06 14:54:18 -05:00 |
|
Michael Koziarski
|
5bec5848b2
|
If it doesn't overflow, it won't have a .start method. So don't run the second assertion either
|
2008-07-20 21:25:31 +02:00 |
|
Michael Koziarski
|
006cbb8fde
|
Handle the case where 64bit time_t won't overflow.
|
2008-07-20 21:23:18 +02:00 |
|
MatthewRudy
|
7e8aee7e6c
|
Add extra tests to ensure Hash#slice works with an array as a key. #613
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-07-17 15:34:51 +01:00 |
|
Pratik Naik
|
b3a2ee7b87
|
Revert "Hash#slice supports an array of keys [#613 state:resolved]"
This reverts commit 396f9df891.
|
2008-07-17 15:28:02 +01:00 |
|
Lawrence Pit
|
40dbebba28
|
Allow deep merging of hash values for nested with_options. [#490 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-07-17 01:59:08 +01:00 |
|
Josh Owens
|
396f9df891
|
Hash#slice supports an array of keys [#613 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
|
2008-07-16 19:31:37 -05:00 |
|
Joshua Peek
|
f4f6e57e8c
|
Added Object#metaclass
|
2008-07-15 22:01:02 -05:00 |
|
Adrian Mugnolo
|
fc89a95193
|
Add in_groups to ActiveSupport::CoreExtensions::Array::Grouping. [#579 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-07-15 15:04:26 +01:00 |
|
gbuesing
|
3451045658
|
Fix TimeWithZone unmarshaling: coerce unmarshaled Time instances to utc, because Ruby's marshaling of Time instances doesn't respect the zone
|
2008-07-14 23:16:39 -05:00 |
|
gbuesing
|
676d6a6514
|
TimeWithZone: when crossing DST boundary, treat Durations of days, months or 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.
|
2008-06-29 15:21:40 -05:00 |
|
David Heinemeier Hansson
|
161ab28b7c
|
Added block-handling to Enumerable#many? (Damian Janowski) [#452 state:resolved]
|
2008-06-20 11:31:06 -05:00 |
|
David Heinemeier Hansson
|
22af62cf48
|
Added Array#second through Array#tenth as aliases for Array#[1] through Array#[9] [DHH]
|
2008-06-17 17:37:29 -05:00 |
|
David Heinemeier Hansson
|
ba0f38f89e
|
Change Enumberal#several? to Enumberal#many?
|
2008-06-13 17:34:17 -05:00 |
|
David Heinemeier Hansson
|
a3caf28da3
|
Added Object#present? which is equivalent to !Object#blank? [DHH]
|
2008-06-12 18:30:56 -05:00 |
|
David Heinemeier Hansson
|
ea3a7e1bb1
|
Merge branch 'master' of git@github.com:rails/rails
|
2008-06-12 17:48:30 -05:00 |
|
David Heinemeier Hansson
|
556204abaf
|
Added Enumberable#several? to encapsulate collection.size > 1 [DHH]
|
2008-06-12 17:46:15 -05:00 |
|
Jeremy Kemper
|
6c970d79a0
|
Performance: faster Object.subclasses_of
|
2008-06-08 00:35:36 -07:00 |
|
Joshua Peek
|
ceb5b6dbb1
|
Wrap date part value method tests inside a uses mocha block.
|
2008-06-07 23:25:34 -05:00 |
|
Jeremy Kemper
|
566d717d78
|
Move Class::ModelName to Active Support module core_ext
|
2008-06-06 03:38:05 -07:00 |
|
Joshua Peek
|
a977f3e88e
|
Fixed ambiguous first argument warning in ArrayExtTest.
|
2008-06-03 13:35:03 -05:00 |
|
Joshua Peek
|
c08547d226
|
Namespace Inflector, Dependencies, OrderedOptions, and TimeZone under ActiveSupport [#238 state:resolved]
|
2008-06-03 13:32:53 -05:00 |
|
David Heinemeier Hansson
|
da91450e68
|
Added tests [#279 state:resolved] (Nicholas Schlueter)
|
2008-06-02 22:05:27 -05:00 |
|
David Heinemeier Hansson
|
64fea9c45c
|
Fixed Date#end_of_quarter to not blow up on May 31st [#289 state:resolved] (Danger)
|
2008-06-02 22:02:43 -05:00 |
|
gbuesing
|
cee9297c9b
|
Hash.from_xml: datetime xml types overflow to Ruby DateTime class when out of range of Time. Adding tests for utc offsets
|
2008-05-18 11:48:33 -05:00 |
|
gbuesing
|
cde9c09a52
|
TimeWithZone #+ and #- : ensure overflow to DateTime with Numeric arg
|
2008-05-18 11:15:29 -05:00 |
|
Daniel Morrison
|
f498f221bd
|
Include time zone offset in TimeWithZone#to_json
|
2008-05-13 09:50:45 -07:00 |
|
gbuesing
|
66728087d0
|
Adding Date.current, which returns Time.zone.today if config.time_zone is set; otherwise returns Date.today. ActionView date_helper uses Date.current to determine locale-appropriate default
|
2008-05-08 22:48:47 -05:00 |
|
gbuesing
|
4f03190f26
|
TimeWithZone: date part getter methods (#year #mon #day etc) are defined on class; no longer relying on method_missing
|
2008-05-08 22:07:21 -05:00 |
|
gbuesing
|
32b82e4c6f
|
Duration #since and #ago with no argument (e.g., 5.days.ago) return 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
|
2008-04-20 21:57:04 -05:00 |
|
gbuesing
|
9620372a6d
|
Time#since behaves correctly when passed a Duration. Closes #11527 [kemiller]
|
2008-04-12 19:35:47 -05:00 |
|
gbuesing
|
f285b6119b
|
Add #getutc alias for DateTime#utc
|
2008-04-12 17:37:50 -05:00 |
|
gbuesing
|
7e5aa6569b
|
TimeWithZone respects config.active_support.use_standard_json_time_format
|
2008-04-12 16:48:56 -05:00 |
|
Geoff Buesing
|
49f2e6f8d4
|
Time #yesterday and #tomorrow behave correctly crossing DST boundary. Closes #7399 [sblackstone]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9221 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-04 03:29:30 +00:00 |
|
Geoff Buesing
|
2c6f1d4396
|
TimeWithZone: Adding tests for dst and leap day edge cases when advancing time
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9213 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-02 14:15:30 +00:00 |
|
Pratik Naik
|
3b603bbc93
|
Revert [9209] Use Hash#except
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9210 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-02 12:47:52 +00:00 |
|
Pratik Naik
|
adaed1ebcb
|
Adding Hash#without Closes #7369 [eventualbuddha]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9209 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-02 11:45:03 +00:00 |
|
Geoff Buesing
|
f4dc834976
|
TimeWithZone#method_missing: send to utc to advance with dst correctness, otherwise send to time. Adding tests for time calculations methods
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9208 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-02 06:56:44 +00:00 |
|
Jeremy Kemper
|
2cf72ad250
|
Add query methods for superclass_delegating_reader
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9156 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-31 01:09:39 +00:00 |
|
Geoff Buesing
|
458fd10483
|
Removing unnecessary uses_tzinfo helper from tests, given that TZInfo is now bundled
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9150 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-30 23:01:06 +00:00 |
|
Jeremy Kemper
|
6ef3bc3d02
|
Play nice with 1.9's DateTime#to_s
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9137 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-29 21:23:10 +00:00 |
|
Josh Peek
|
37a004ded4
|
Ensure threads finish running for time zone thread safety test.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9136 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-29 20:50:09 +00:00 |
|
Geoff Buesing
|
c62db052a0
|
config.time_zone and TimeWithZone#marshal_load accept tzinfo/Olson identifiers
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9108 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-28 04:35:48 +00:00 |
|
Geoff Buesing
|
59183eec6f
|
Time.zone= accepts TZInfo::Timezone instances and Olson identifiers; wraps result in TimeZone instance
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9107 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-28 04:06:47 +00:00 |
|
Geoff Buesing
|
129d94477b
|
TimeWithZone time conversions don't need to be wrapped in TimeOrDateTime, because TZInfo does this internally
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9106 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-28 02:10:36 +00:00 |
|