Xavier Noria
1412ad437e
adds and entry for assert_blank and assert_present to CHANGELOG
2010-03-30 15:54:20 -07:00
Jeremy Kemper
f7b0a857e9
Use Object#singleton_class instead of #metaclass. Prefer Ruby's choice.
2010-02-25 09:32:29 -08:00
Jeremy Kemper
63bb955a99
Automatically prefer Yajl or JSON backend over Yaml, if available
2010-02-05 10:22:45 -08:00
Brian Lopez
a96bf4ab5e
Add yajl-ruby as a JSON parsing backend
...
[#2666 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-02-05 10:15:51 -08:00
Jeremy Kemper
8ae25a8e41
Introduce class_attribute to declare inheritable class attributes. Writing an attribute on a subclass behaves just like overriding the superclass reader method. Unifies and replaces most usage of cattr_accessor, class_inheritable_attribute, superclass_delegating_attribute, and extlib_inheritable_attribute.
2010-02-01 02:02:41 -08:00
Geoff Buesing
e98f9579c4
Time#- with a DateTime argument behaves the same as with a Time argument, i.e. returns the difference between self and arg as a Float [ #3476 status:resolved]
2010-01-27 20:17:09 -06:00
Jeremy Kemper
030ab357f9
Remove unbundle changelogs
2010-01-27 17:11:29 -08:00
Mikel Lindsaar
c1f308f8c6
Unvendor'd MemCache-Client. Now requires the MemCache Client gem as a dependency - Don't forget to gem bundle buys and girls
2010-01-28 11:56:47 +11:00
Mikel Lindsaar
f1fe71d754
Unvendor'd Builder. Now requires the Builder gem as a dependency
2010-01-28 11:51:37 +11:00
Mikel Lindsaar
9029efce41
Unbundling TZInfo
2010-01-28 11:46:54 +11:00
Gregor Schmidt
7b8c6472ff
Adding custom yaml (de-)serialization for OrderedHash
...
[#3608 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-01-27 15:29:06 -08:00
Geoff Buesing
f3caa63bcb
Update bundled TZInfo to v0.3.16
2010-01-26 20:22:29 -06:00
Geoff Buesing
1cda85d08a
Georgetown TimeZone is now mapped to "America/Guyana" instead of "America/Argentina/San_Juan" [ #1821 status:resolved]
2010-01-26 20:18:17 -06:00
David Heinemeier Hansson
6042067c0b
Changed the default ActiveSupport.use_standard_json_time_format from false to true and
...
ActiveSupport.escape_html_entities_in_json from true to false to match previously announced Rails 3 defaults [DHH]
2010-01-03 19:20:43 -08:00
David Heinemeier Hansson
1c47d04ea5
Added Object#presence that returns the object if it's #present? otherwise returns nil [DHH/Colin Kelley]
2009-12-27 17:54:43 -08:00
David Heinemeier Hansson
7b61541ea5
Add Enumerable#exclude? to bring parity to Enumerable#include? and avoid if !x.include?/else calls [DHH]
2009-12-14 18:00:14 -08:00
Phil Ross
9b67b7ba2f
Edinburgh TimeZone references "Europe/London" instead of "Europe/Dublin" [ #3310 state:resolved]
2009-10-27 21:13:13 -05:00
Geoff Buesing
057f0d3c16
Bundle Tzinfo 0.3.15
2009-10-27 21:13:13 -05:00
Jeremy Kemper
00ee990443
JSON: split encoding and coercion
2009-06-08 13:21:30 -07:00
Jason Frey (Fryguy)
1d9346428b
String #to_time and #to_datetime: handle fractional seconds [ #864 state:resolved]
2009-06-07 20:16:08 -05:00
Geoff Buesing
04eb2b72b4
Update bundled TZInfo to v0.3.13
2009-06-07 20:00:25 -05:00
Bryan Helmkamp
36058f4504
Use duck typing to also allow MemCache-like object when initializing a MemCacheStore
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-05-19 16:58:04 -07:00
Bryan Helmkamp
e2ed1a1ca4
Allow MemCacheStore to be initialized with a MemCache object instead of addresses and options
2009-05-19 10:54:56 -07:00
Alexander Dymo
2e7409f035
Change spelling of Kyev timezone to Kyiv [ #2613 state:resolved]
2009-05-10 11:59:03 -05:00
rick
3c4c6bd0df
* Add pluggable JSON backends with support for the JSON gem. [rick]
...
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
2009-04-23 00:08:40 -07:00
Jeremy Kemper
ab321268f8
No more free lunch
2009-04-22 16:10:49 -07:00
Jeremy Kemper
685a53a360
Merge branch 'master' into cherry
...
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
2009-04-20 18:31:40 -07:00
Jeremy Kemper
595e03336f
Remove rarely-used DRb cache store
2009-04-17 21:53:17 -07:00
Geoff Buesing
c00f2d25de
TimeWithZone.name returns 'Time', to further thwart type checking
2009-04-05 10:08:54 -05:00
Michael Curtis
5a8b481f71
Time.local instances: Adding 24.hours across the DST boundary adds 24 hours instead of one day [ #2066 state:resolved]
2009-03-29 16:15:44 -05:00
David Heinemeier Hansson
73fc42cc0b
Prepare for final 2.3 release
2009-03-15 22:06:50 -05:00
Aaron Patterson
694998ee4f
Nokogiri backend for XmlMini
...
[#2190 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-03-10 11:56:19 -07:00
Jeremy Kemper
146511e018
Revert "Revert "XmlMini supports different backend parsers, starting with libxml""
...
Will change to require a known-working libxml-ruby.
This reverts commit a995a738ca10f9bef023689df70d26aad8931b9a.
2009-03-09 12:39:20 -07:00
David Heinemeier Hansson
a995a738ca
Revert "XmlMini supports different backend parsers, starting with libxml"
...
Spews a ton undefined method `default_keep_blanks=' for XML:Module errors.
This reverts commit 822c41d69d9228c9912d29ac45155d3a16bb5c50.
2009-03-09 19:00:21 +01:00
Bart ten Brinke
822c41d69d
XmlMini supports different backend parsers, starting with libxml
...
[#2084 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-03-08 13:41:25 -07:00
David Heinemeier Hansson
dfef3d8b14
Release RC2 today
2009-03-05 11:00:04 +01:00
David Heinemeier Hansson
7058c1366e
So it didnt happen yesterday, but very soon! Just need the final details ironed out
2009-02-28 10:30:49 +01:00
Sven Fuchs
943d64b1c8
Vendorize i18n 0.1.3 gem (fixes issues with incompatible character encodings in Ruby 1.9) (Akira Matsuda) [ #2038 state:committed]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
2009-02-27 17:15:15 +01:00
David Heinemeier Hansson
77b0994c78
Prep for RC2 later today
2009-02-27 14:46:23 +01:00
Jeremy Kemper
e56b3e4c0b
Update bundled memcache-client from 1.5.0.5 to 1.6.4.99.
...
See http://www.mikeperham.com/2009/02/15/memcache-client-performance/
2009-02-23 19:28:01 -08:00
Jeremy Kemper
f4391c362d
Update changelog for URI.unescape fix
...
[#2033 state:committed]
2009-02-20 18:41:42 -08:00
Geoff Buesing
16cc69af6f
Changelog update for previous commit
2009-02-09 23:11:21 -06:00
Levin Alexander
18d6369344
Make TimeWithZone#to_formatted_s an alias to TimeWithZone#to_s [ #1796 state:resolved]
2009-02-08 11:36:57 -06:00
Jeremy Kemper
676b0c8764
Introduce Array.wrap(foo) to wrap the argument in an array unless it's already an array. Wraps nil as an empty array. Use instead of Array(foo) and foo.to_a since they treat String as Enumerable.
2009-02-06 10:04:43 -08:00
David Heinemeier Hansson
ed5fa2fe33
Mark CHANGELOGs for release
2009-02-01 22:06:40 +01:00
Nicholas Dainty
296ca4da17
TimeWithZone#xmlschema accepts optional fraction_digits argument [ #1725 state:resolved]
2009-01-11 13:56:07 -06:00
Jeremy Kemper
0f9e65b71f
Object#tap for Ruby < 1.8.7
2009-01-07 13:19:48 -08:00
gbuesing
d2a1c2778e
TimeWithZone#- gives correct result with wrapped DateTime, and with DateTime argument
2009-01-04 13:58:08 -06:00
Yaroslav Markin
1648df79b7
Update i18n gem to version 0.1.1 (Rails' changes were backported) [ #1635 state:committed]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
2008-12-28 21:19:27 +01:00
Sergio Gil
e8de7a67a5
Add :allow_nil option to delegate [ #1127 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-12-21 23:24:06 +00:00