Jeremy Kemper
|
59f5d4fc79
|
Use append_features instead of included to get the inclusion order right
|
2008-04-20 16:49:58 -07:00 |
|
Jeremy Kemper
|
3b93ca221d
|
Merge commit 'rails/master'
|
2008-04-20 15:30:41 -07:00 |
|
Joshua Peek
|
46ab7422d9
|
Use define_callbacks helper for ActiveRecord validations.
|
2008-04-20 11:45:44 -05:00 |
|
Jeremy Kemper
|
daab53d8c0
|
Incompatible Symbol#to_proc was reverted upstream
|
2008-04-20 03:52:13 -07:00 |
|
Jeremy Kemper
|
f67b070fac
|
Override incompatible 1.8.7p1 String#chars
|
2008-04-19 17:16:19 -07:00 |
|
Jeremy Kemper
|
715db1a797
|
Feature check :force_encoding instead of RUBY_VERSION
|
2008-04-19 17:15:50 -07:00 |
|
Jeremy Kemper
|
db11ef9546
|
Override Ruby 1.8.7's incompatible Symbol#to_proc.
|
2008-04-18 14:50:20 -07:00 |
|
Joshua Peek
|
a4c15303cb
|
Slight optimization to CallbackChain#union and delete.
|
2008-04-18 14:44:55 -05:00 |
|
Joshua Peek
|
cf04e62127
|
Tidy up ActiveSupport::Callbacks::CallbackChain instance API.
|
2008-04-17 23:30:01 -05:00 |
|
jweiss
|
9e1d506a8c
|
Support options passed to ActiveSupport::Cache :mem_cache_store [#14 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
|
2008-04-17 12:58:31 -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
|
0289b0e7df
|
Refactor TimeWithZone: don't send #since, #ago, #+, #-, #advance through method_missing
|
2008-04-12 17:31:29 -05:00 |
|
gbuesing
|
7e5aa6569b
|
TimeWithZone respects config.active_support.use_standard_json_time_format
|
2008-04-12 16:48:56 -05:00 |
|
Rick Olson
|
605196c448
|
Add config.active_support.escape_html_entities_in_json to allow disabling of html entity escaping. [rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9238 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-08 03:45:26 +00:00 |
|
Pratik Naik
|
097c0d6166
|
Fix more typos and changelog
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9227 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-05 11:18:05 +00:00 |
|
Pratik Naik
|
aa4af60aad
|
Improve documentation.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-05 03:52:58 +00:00 |
|
Josh Peek
|
08318b8bcd
|
Replaced callback method evaluation in AssociationCollection class to use ActiveSupport::Callbacks. Modified ActiveSupport::Callbacks::Callback#call to accept multiple arguments.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9225 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-04 20:26:42 +00: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 |
|
Rick Olson
|
1eb57a6870
|
Add config.active_support.use_standard_json_time_format setting so that Times and Dates export to ISO 8601 dates. [rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9203 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-04-01 20:25:26 +00:00 |
|
Jeremy Kemper
|
047db11299
|
Fine, warn. Just don't recurse to death in cc.rb
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9161 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-31 02:18:17 +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 |
|
Jeremy Kemper
|
181378d1e9
|
Always alias DateTime#to_s to #to_default_s
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9155 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-31 01:09:29 +00:00 |
|
Jeremy Kemper
|
ade1e3defd
|
require fileutils
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9154 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-31 01:09:19 +00:00 |
|
Geoff Buesing
|
2ccfcc42b0
|
TZInfo: Removing unneeded TimezoneProxy class
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9153 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-30 23:49:52 +00:00 |
|
Geoff Buesing
|
9c124a98b3
|
TZInfo: Removing unneeded TimezoneIndexDefinition, since we're not including Indexes::Timezones
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9152 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-30 23:27:17 +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 |
|
Geoff Buesing
|
d4493bc562
|
Bundling abbreviated version of TZInfo gem 0.3.8: only the classes and zone definitions required to support Rails time zone features are included. If a recent version of the full TZInfo gem is installed, this will take precedence over the bundled version
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9149 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-30 22:24:35 +00:00 |
|
Jeremy Kemper
|
f66bbf5ed0
|
Don't need to explicitly pass the same params to super. Remove trailing whitespace.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9143 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-30 05:02:25 +00:00 |
|
Josh Peek
|
bf3c217238
|
Ruby 1.9 compat: Suppress Benchmark.realtime method redefined warning.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9142 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-30 03:04:41 +00:00 |
|
Josh Peek
|
eece9b4e8a
|
Force json string encoding to ASCII-8BIT before unpacking for Ruby 1.9.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9138 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-29 21:48:08 +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 |
|
Pratik Naik
|
ca9413674e
|
Improve documentation.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9093 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-26 12:27:52 +00:00 |
|
Michael Koziarski
|
dcbdd004fc
|
Standardise the implementation of the extensions to BigDecimal. Closes #10608 [mikong]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9091 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-26 02:43:38 +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 |
|
Jeremy Kemper
|
856a4dcf12
|
Refactor filters to use Active Support callbacks. Closes #11235.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9055 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-18 17:56:05 +00:00 |
|
David Heinemeier Hansson
|
9af9fc3da1
|
sshpublisher needs to be explicitly required now, apparently
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9054 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-18 04:46:51 +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
|
fe7c68ee5d
|
TZInfo caches Timezone instances in its own internal hash cache, so TimeZone::MAPPING doesn't need to cache them as well
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9046 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-17 05:14:26 +00:00 |
|