Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -3/+3 | |
| | | | | 's/[ \t]*$//' -i {} \;) | |||||
* | Don't store incorrect values in zones_map | Santiago Pastorino | 2010-06-28 | 1 | -3/+1 | |
| | | | | | | [#4942 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | when the timezone is nil, a TimeWithZone object should not be constructed. ↵ | Aaron Patterson | 2010-06-17 | 1 | -0/+7 | |
| | | | | | | [#4881 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Fix test incorrectly using a bare assert to use assert_kind_of | Santiago Pastorino | 2010-05-24 | 1 | -1/+1 | |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Final iteration of use better testing methods | Neeraj Singh | 2010-05-19 | 1 | -6/+6 | |
| | | | | | | [#4652 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Switch to TimezoneProxy for later support of deferred TZ loading | Jeremy Kemper | 2010-04-20 | 1 | -2/+5 | |
| | ||||||
* | Ensure test sets json time format flag | Jeremy Kemper | 2010-01-28 | 1 | -1/+4 | |
| | ||||||
* | Add test for TimeWithZone#to_i with wrapped DateTime | Geoff Buesing | 2009-12-15 | 1 | -0/+6 | |
| | ||||||
* | Pull in time extensions also | Jeremy Kemper | 2009-06-05 | 1 | -1/+1 | |
| | ||||||
* | Work around Float faux precision | Jeremy Kemper | 2009-04-30 | 1 | -1/+1 | |
| | ||||||
* | * Add pluggable JSON backends with support for the JSON gem. [rick] | rick | 2009-04-23 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | Example: ActiveSupport::JSON.backend = "JSONGem" All internal Rails JSON encoding is now handled by ActiveSupport::JSON.encode(). Use of #to_json is not recommended, as it may clash with other libraries that overwrite it. However, you can recover Rails specific functionality if you really want to use #to_json. gem 'json' ActiveSupport::JSON.backend = "JSONGem" class ActiveRecord::Base alias to_json rails_to_json end | |||||
* | Fix dependencies revealed by testing in isolation | Jeremy Kemper | 2009-04-22 | 1 | -0/+1 | |
| | ||||||
* | Merge branch 'master' into cherry | Jeremy Kemper | 2009-04-20 | 1 | -0/+4 | |
|\ | | | | | | | | | | | | | | | | | | | | | Conflicts: activesupport/CHANGELOG activesupport/lib/active_support/core_ext/class/delegating_attributes.rb activesupport/lib/active_support/core_ext/hash/conversions.rb activesupport/lib/active_support/core_ext/module/attribute_accessors.rb activesupport/lib/active_support/core_ext/string/multibyte.rb activesupport/lib/active_support/core_ext/time/calculations.rb activesupport/lib/active_support/deprecation.rb | |||||
| * | TimeWithZone.name returns 'Time', to further thwart type checking | Geoff Buesing | 2009-04-05 | 1 | -0/+4 | |
| | | ||||||
* | | Explicit test dependencies | Jeremy Kemper | 2009-03-28 | 1 | -0/+1 | |
|/ | ||||||
* | Ruby 1.9 compat: rename deprecated assert_raises to assert_raise. | Jeremy Kemper | 2009-03-08 | 1 | -1/+1 | |
| | | | | [#1617 state:resolved] | |||||
* | Remove obsolete silence_warnings wrappers from TZInfo-dependent tests in ↵ | Levin Alexander | 2009-02-14 | 1 | -254/+162 | |
| | | | | ActiveSupport [#1914 state:resolved] | |||||
* | Make TimeWithZone#to_formatted_s an alias to TimeWithZone#to_s [#1796 ↵ | Levin Alexander | 2009-02-08 | 1 | -0/+6 | |
| | | | | state:resolved] | |||||
* | TimeWithZone#xmlschema accepts optional fraction_digits argument [#1725 ↵ | Nicholas Dainty | 2009-01-11 | 1 | -0/+9 | |
| | | | | state:resolved] | |||||
* | TimeWithZone#- gives correct result with wrapped DateTime, and with DateTime ↵ | gbuesing | 2009-01-04 | 1 | -0/+9 | |
| | | | | argument | |||||
* | Require mocha >= 0.9.0 for AS tests | Jeremy Kemper | 2008-11-22 | 1 | -72/+66 | |
| | ||||||
* | TimeWithZone#freeze: preload instance variables so that we can actually freeze | gbuesing | 2008-10-19 | 1 | -0/+13 | |
| | ||||||
* | TimeWithZone #wday, #yday and #to_date avoid trip through #method_missing | gbuesing | 2008-09-14 | 1 | -1/+3 | |
| | ||||||
* | Add thorough tests for Time-object #past?, #future? and #today. Fix ↵ | gbuesing | 2008-09-14 | 1 | -10/+49 | |
| | | | | TimeWithZone #today? to use #time instead of #utc for date comparison. Update changelog. [#720 state:resolved] | |||||
* | Introduce convenience methods past?, today? and future? for Date and Time ↵ | Clemens Kofler | 2008-09-14 | 1 | -9/+22 | |
| | | | | classes to facilitate Date/Time comparisons. | |||||
* | Fix TimeWithZone unmarshaling: coerce unmarshaled Time instances to utc, ↵ | gbuesing | 2008-07-14 | 1 | -0/+6 | |
| | | | | because Ruby's marshaling of Time instances doesn't respect the zone | |||||
* | TimeWithZone: when crossing DST boundary, treat Durations of days, months or ↵ | gbuesing | 2008-06-29 | 1 | -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. | |||||
* | Wrap date part value method tests inside a uses mocha block. | Joshua Peek | 2008-06-07 | 1 | -16/+18 | |
| | ||||||
* | Namespace Inflector, Dependencies, OrderedOptions, and TimeZone under ↵ | Joshua Peek | 2008-06-03 | 1 | -120/+120 | |
| | | | | ActiveSupport [#238 state:resolved] | |||||
* | TimeWithZone #+ and #- : ensure overflow to DateTime with Numeric arg | gbuesing | 2008-05-18 | 1 | -0/+7 | |
| | ||||||
* | Include time zone offset in TimeWithZone#to_json | Daniel Morrison | 2008-05-13 | 1 | -1/+1 | |
| | ||||||
* | TimeWithZone: date part getter methods (#year #mon #day etc) are defined on ↵ | gbuesing | 2008-05-08 | 1 | -1/+9 | |
| | | | | class; no longer relying on method_missing | |||||
* | Duration #since and #ago with no argument (e.g., 5.days.ago) return ↵ | gbuesing | 2008-04-20 | 1 | -0/+24 | |
| | | | | 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 | |||||
* | TimeWithZone respects config.active_support.use_standard_json_time_format | gbuesing | 2008-04-12 | 1 | -0/+7 | |
| | ||||||
* | TimeWithZone: Adding tests for dst and leap day edge cases when advancing time | Geoff Buesing | 2008-04-02 | 1 | -0/+35 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9213 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | TimeWithZone#method_missing: send to utc to advance with dst correctness, ↵ | Geoff Buesing | 2008-04-02 | 1 | -0/+63 | |
| | | | | | | 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 | |||||
* | Removing unnecessary uses_tzinfo helper from tests, given that TZInfo is now ↵ | Geoff Buesing | 2008-03-30 | 1 | -456/+453 | |
| | | | | | | bundled git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9150 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Ensure threads finish running for time zone thread safety test. | Josh Peek | 2008-03-29 | 1 | -2/+4 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9136 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | config.time_zone and TimeWithZone#marshal_load accept tzinfo/Olson identifiers | Geoff Buesing | 2008-03-28 | 1 | -0/+11 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9108 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Time.zone= accepts TZInfo::Timezone instances and Olson identifiers; wraps ↵ | Geoff Buesing | 2008-03-28 | 1 | -0/+28 | |
| | | | | | | result in TimeZone instance git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9107 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | TimeWithZone time conversions don't need to be wrapped in TimeOrDateTime, ↵ | Geoff Buesing | 2008-03-28 | 1 | -0/+12 | |
| | | | | | | because TZInfo does this internally git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9106 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | TimeWithZone#usec returns 0 instead of error when DateTime is wrapped | Geoff Buesing | 2008-03-28 | 1 | -0/+7 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9105 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Ensure that TimeWithZone#to_yaml works when passed a YAML::Emitter. [rick] | Rick Olson | 2008-03-23 | 1 | -0/+6 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9081 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Ensure correct TimeWithZone#to_date | Geoff Buesing | 2008-03-22 | 1 | -0/+13 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9079 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Make TimeWithZone work with tzinfo 0.2.x: use ↵ | Geoff Buesing | 2008-03-21 | 1 | -80/+138 | |
| | | | | | | 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 | |||||
* | Time, DateTime and TimeWithZone #in_time_zone defaults to Time.zone. ↵ | Geoff Buesing | 2008-03-17 | 1 | -25/+25 | |
| | | | | | | 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 | |||||
* | TimeWithZone responds to Ruby 1.9 weekday-named query methods | Geoff Buesing | 2008-03-17 | 1 | -0/+7 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9041 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | TimeWithZone caches TZInfo::TimezonePeriod used for time conversion so that ↵ | Geoff Buesing | 2008-03-17 | 1 | -0/+25 | |
| | | | | | | 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 | |||||
* | Removing unneeded #change_time_zone method from Time, DateTime and TimeWithZone | Geoff Buesing | 2008-03-11 | 1 | -31/+15 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9008 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | TimeWithZone instances correctly enforce DST rules. Adding ↵ | Geoff Buesing | 2008-03-11 | 1 | -3/+40 | |
| | | | | | | TimeZone#period_for_utc git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9006 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |