Changeset 6773
- Timestamp:
- 05/18/07 21:20:35 (3 years ago)
- Files:
-
- trunk/activesupport/CHANGELOG (modified) (1 diff)
- trunk/activesupport/lib/active_support/json/encoders/date_time.rb (added)
- trunk/activesupport/lib/active_support/json/encoders/date.rb (added)
- trunk/activesupport/lib/active_support/json/encoders/time.rb (added)
- trunk/activesupport/test/json/encoding_test.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activesupport/CHANGELOG
r6693 r6773 1 1 *SVN* 2 3 * Date, Time, and DateTime#to_json. #8399 [wycats] 2 4 3 5 * Simplify API of assert_difference by passing in an expression that is evaluated before and after the passed in block. See documenation for examples of new API. [Marcel Molina Jr.] trunk/activesupport/test/json/encoding_test.rb
r6443 r6773 29 29 [ ActiveSupport::JSON::Variable.new('alert("foo")'), 'alert("foo")']] 30 30 RegexpTests = [[ /^a/, '/^a/' ], [/^\w{1,2}[a-z]+/ix, '/^\\w{1,2}[a-z]+/ix']] 31 32 DateTests = [[ Date.new(2005,1,1), %("01/01/2005") ]] 33 TimeTests = [[ Time.at(0), %("12/31/1969 16:00:00 #{Time.at(0).zone}") ]] 34 DateTimeTests = [[ Time.at(0), %("12/31/1969 16:00:00 #{Time.at(0).zone}") ]] 31 35 32 36 constants.grep(/Tests$/).each do |class_tests|