aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
Commit message (Collapse)AuthorAgeFilesLines
* Sync 'rails/rails/master'Yehuda Katz2009-01-3020-46/+231
|\
| * Ensure constant_watch_stack is protected by a mutex, so concurrent requires ↵Charles Nutter2009-01-301-5/+14
| | | | | | | | | | | | | | | | do not corrupt it. [#1816 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * Only dup local cache values if duplicable [#1653 state:resolved]Joshua Peek2009-01-281-1/+1
| |
| * add #available_locales to I18n and I18n::SimpleBackend, flatten translations ↵Sven Fuchs2009-01-253-1/+34
| | | | | | | | | | | | load_path when loading translations [#1714 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * add an inspect method to OrderedHash to make it clear that it is not a ↵Greg Borenstein2009-01-261-0/+4
| | | | | | | | | | | | | | species of Array Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1782 state:committed]
| * Merge docrailsPratik Naik2009-01-189-11/+11
| |
| * Refactor Object#try to use inheritance. [#1774 state:resolved]Josh Susser2009-01-182-17/+30
| | | | | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
| * Decouple the local cache strategy from MemCacheStore for reuse with other ↵Lourens Naude2009-01-173-58/+114
| | | | | | | | | | | | remote stores [#1653 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * Dup keys in OrderedHash to prevent them from being modified [#1676 ↵Brandon Keepers2009-01-161-9/+22
| | | | | | | | | | | | state:resolved] Signed-off-by: Frederick Cheung <frederick.cheung@gmail.com>
| * Properly quote json keys.Michael Koziarski2009-01-161-2/+2
| | | | | | | | | | According to the RFC and the json.org site all json keys must be strings, and those strings must be quoted with double quotes. [#1755 state:committed]
| * Added in a local per request cache to MemCacheStore. It acts as a buffer to ↵Nahum Wild2009-01-151-4/+61
| | | | | | | | | | | | stop unneccessary requests being sent through to memcache [#1653 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* | Sync 'rails/rails/master'Yehuda Katz2009-01-131-1/+1
|\|
| * Change Object#try to raise NoMethodError on private methods and always ↵Pratik Naik2009-01-131-1/+1
| | | | | | | | return nil when Object is nil [Pratik Naik, Lawrence Pit]
* | Sync 'rails/rails/master'Yehuda Katz2009-01-111-2/+6
|\|
| * TimeWithZone#xmlschema accepts optional fraction_digits argument [#1725 ↵Nicholas Dainty2009-01-111-2/+6
| | | | | | | | state:resolved]
* | Sync 'rails/rails/master'Yehuda Katz2009-01-091-1/+1
|\|
| * Process time should be wall time when benchmarkingPratik Naik2009-01-091-1/+1
| |
| * Object#tap for Ruby < 1.8.7Jeremy Kemper2009-01-071-0/+15
| |
| * Fix JSON decoder date-converter regexp [#1662 state:resolved] [Jonathan del ↵Pratik Naik2009-01-071-1/+1
| | | | | | | | Strother]
| * TimeWithZone#- gives correct result with wrapped DateTime, and with DateTime ↵gbuesing2009-01-041-1/+1
| | | | | | | | argument
* | Object#tap for Ruby < 1.8.7Jeremy Kemper2009-01-091-0/+15
| |
* | Fix JSON decoder date-converter regexp [#1662 state:resolved] [Jonathan del ↵Pratik Naik2009-01-091-1/+1
| | | | | | | | Strother]
* | Sync 'rails/rails/master'Yehuda Katz2009-01-051-1/+1
| |
* | It was decided that Multibyte does not belong to as/mini.Michael S. Klishin2008-12-291-8/+2
| |
* | Pull up some other changes from rails/rails/masterMichael S. Klishin2008-12-291-7/+2
|\|
| * Allow multiple conditions for callbacks [#1627 state:resolved]Joshua Peek2008-12-281-7/+2
| |
* | Sync i18n update from rails/rails/masterMichael S. Klishin2008-12-2815-71/+882
|\|
| * Fix 'i18n' require broken by 0.0.1 -> 0.1.1 commit [#1658 state:committed]Yaroslav Markin2008-12-281-1/+1
| | | | | | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
| * Update i18n gem to version 0.1.1 (Rails' changes were backported) [#1635 ↵Yaroslav Markin2008-12-2815-71/+882
| | | | | | | | | | | | state:committed] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* | Sync with rails/rails/master, merge two metaprogramming annotation effortsMichael S. Klishin2008-12-2812-160/+170
|\|
| * Inline code comments for class_eval/module_eval [#1657 state:resolved]Xavier Noria2008-12-2815-182/+194
| | | | | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* | Use active_support/mini instead of active_support/minimalisticMichael S. Klishin2008-12-281-15/+0
| |
* | Sync with wycats/rails/masterMichael S. Klishin2008-12-2812-161/+178
|\ \
| * | Annotated metaprogramming code across ActiveSupportMichael S. Klishin2008-12-2813-162/+183
| |/
* | active_support/minimalistic.rb => active_support/mini.rbMichael S. Klishin2008-12-281-0/+0
| |
* | Introduce minimalistic package for ActiveSupport.Michael S. Klishin2008-12-282-1/+20
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | To simplify using of ActiveSupport in 3rd party libraries, a simple way to require only minimum of commonly used extensions (multibyte, inflections, array and hash extensions, #blank?, and a few others) is needed. For exactly this reason some out-of-Rails-space libraries adopted Extlib, originally from DataMapper. To keep it 2067% backwards compatible, and still available to everyone even in 2.x releases, active_support/minimalistic.rb was added. Use it like this: gem 'active_support', '>=2.3' require 'active_support/minimalistic' instead of require 'activesupport' Right now this package with RubyGems uses about 10 megs of RAM (10.01 or so). It can be further slimmed down though, once we simplify multibyte implementation that right now uses advanced accessors from Module extensions. To compare RAM usage with previous ActiveSupport versions and Extlib, at the time of writing, see http://gist.github.com/40401.
* MaKe Hash#slice! return removed values, akin to Array [#971 state:resolved]trans2008-12-261-1/+8
| | | | Signed-off-by: Frederick Cheung <frederick.cheung@gmail.com>
* Add :allow_nil option to delegate [#1127 state:resolved]Sergio Gil2008-12-211-1/+27
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Revert "Make constantize look into ancestors"Jeremy Kemper2008-12-151-24/+41
| | | | | | [#410 state:open] This reverts commit 262fef7ed57520b857605a0105fe7ba9265654f6.
* Make constantize look into ancestorsFrederick Cheung2008-12-151-41/+24
| | | | | | [#410 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Properly parenthasize calls to defined?(Rails) in 75fa82418 [#1563 ↵Frederick Cheung2008-12-152-2/+2
| | | | | | state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Make delete_if/reject faster and fix other mutatorsFrederick Cheung2008-12-151-13/+24
| | | | | | [#1559 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fixed ActiveSupport::OrderedHash #delete_if, #reject!, and #reject, which ↵Eloy Duran2008-12-111-0/+25
| | | | | | | | did not sync the @keys after the operation. This probably holds true for other mutating methods as well. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Prefer Rails.logger over RAILS_DEFAULT_LOGGERJoshua Peek2008-12-102-4/+4
|
* Squash memory leak when calling flush with an empty bufferFrederick Cheung2008-12-101-1/+4
| | | | | | [#1552 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Added a :camelize option to ActiveRecord and Hash to_xml serialization and ↵Bruce Krysiak2008-12-101-7/+13
| | | | | | from_xml deserialization Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Rework ActiveSupport::OrderedHash to make lookups fasterFrederick Cheung2008-12-101-36/+23
| | | | | | [#1352 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Merge branch 'master' of git@github.com:rails/railsJeremy Kemper2008-12-092-223/+242
|\ | | | | | | | | Conflicts: activesupport/CHANGELOG
| * Updated included memcache-client to the 1.5.0.5 version which includes fixes ↵David Heinemeier Hansson2008-12-092-223/+242
| | | | | | | | | | | | from fiveruns and 37signals to deal with failover and timeouts (Joshua Sierles) [#1535 state:committed] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* | Benchmark.msJeremy Kemper2008-12-092-8/+15
|/