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 |
|
Geoff Buesing
|
e4645e00b7
|
TimeWithZone#usec returns 0 instead of error when DateTime is wrapped
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9105 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-28 01:57:41 +00:00 |
|
Rick Olson
|
e1790efb85
|
Ensure that TimeWithZone#to_yaml works when passed a YAML::Emitter. [rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9081 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-23 04:44:50 +00:00 |
|
Geoff Buesing
|
29e3316178
|
Ensure correct TimeWithZone#to_date
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9079 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-22 18:43:36 +00:00 |
|
Geoff Buesing
|
f371f29265
|
Make TimeWithZone work with tzinfo 0.2.x: use TZInfo::Timezone#zone_identifier alias for #abbreviation, silence warnings on tests. Raise LoadError when TZInfo version is < 0.2 by sniffing for TZInfo::TimeOrDateTime constant. Move all tzinfo-dependent TimeZone tests into uses_tzinfo block
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9071 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-21 22:48:00 +00:00 |
|
Geoff Buesing
|
54ccdd3343
|
Time, DateTime and TimeWithZone #in_time_zone defaults to Time.zone. Removing now unneeded #in_current_time_zone. ActiveRecord time zone aware attributes updated to use #in_time_zone
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9047 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-17 05:50:13 +00:00 |
|
Geoff Buesing
|
b132413885
|
Adding TimeZone#at and DateTime#to_f
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9042 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-17 03:45:32 +00:00 |
|
Geoff Buesing
|
895487c122
|
TimeWithZone responds to Ruby 1.9 weekday-named query methods
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9041 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-17 02:54:23 +00:00 |
|
Geoff Buesing
|
77ee522bf6
|
TimeWithZone caches TZInfo::TimezonePeriod used for time conversion so that it can be reused, and enforces DST rules correctly when instance is created from a local time
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9040 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-17 02:40:28 +00:00 |
|
Geoff Buesing
|
5483de0cc3
|
Fix Numeric time tests broken by DST change by anchoring them to fixed times instead of Time.now. Anchor TimeZone#now DST test to time specified with Time.at instead of Time.local to work around platform differences with Time.local and DST representation
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9009 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-11 07:19:36 +00:00 |
|
Geoff Buesing
|
3af5b27839
|
Removing unneeded #change_time_zone method from Time, DateTime and TimeWithZone
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9008 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-11 06:23:41 +00:00 |
|
Geoff Buesing
|
52b57c662c
|
TimeWithZone instances correctly enforce DST rules. Adding TimeZone#period_for_utc
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9006 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-11 04:26:20 +00:00 |
|
Geoff Buesing
|
f56c25d7b4
|
test_time_with_datetime_fallback expects DateTime.local_offset instead of DateTime.now.offset
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9002 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-10 03:37:38 +00:00 |
|
Geoff Buesing
|
10d9d0b6fe
|
Adding TimeWithZone #marshal_dump and #marshal_load
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8975 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-03 03:49:37 +00:00 |
|
Michael Koziarski
|
42d1172c2d
|
Add OrderedHash#to_hash. Closes #11266 [josh]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8974 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-03 03:31:57 +00:00 |
|
Jeremy Kemper
|
3582bce6fd
|
Adding Time#end_of_day, _quarter, _week, and _year. Closes #9312.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8934 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-27 22:53:54 +00:00 |
|
Geoff Buesing
|
4a643f686a
|
Adding TimeWithZone#between?
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8886 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-17 00:35:49 +00:00 |
|
Geoff Buesing
|
25e139e545
|
Time.=== returns true for TimeWithZone instances
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8885 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-16 23:39:40 +00:00 |
|
Geoff Buesing
|
e7ebd656b3
|
TimeWithZone #+ and #- behave consistently with numeric arguments regardless of whether wrapped time is a Time or DateTime; consistenty answers false to #acts_like?(:date)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8884 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-16 23:15:59 +00:00 |
|
Michael Koziarski
|
4ff26f51f6
|
Add String#squish and String#squish! to remove consecutive chunks of whitespace. Closes #11123 [jordi, Henrik N]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8878 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-16 00:02:30 +00:00 |
|
Michael Koziarski
|
191ffc9456
|
Serialize BigDecimals as Floats when using to_yaml. Closes #8746 [ernesto.jimenez]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8877 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-15 23:33:43 +00:00 |
|
Geoff Buesing
|
6608a3ef37
|
Adding TimeWithZone #to_yaml, #to_datetime, #eql? and method aliases for duck-typing compatibility with Time
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8854 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-10 22:26:16 +00:00 |
|
Geoff Buesing
|
8ad5a29cef
|
TimeWithZone #in_time_zone returns +self+ if zone argument is the same as #time_zone
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8853 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-10 20:35:47 +00:00 |
|