aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
Commit message (Collapse)AuthorAgeFilesLines
* Don't run 32bit dependant assertions in 64bit environmentsTarmo Tänav2008-09-041-4/+10
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Add each_with_object from 1.9 for a more convenient alternative to inject.Adam Keys2008-09-031-0/+5
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#962 state:committed]
* Database connections are now pooled, one pool per #establish_connection call.Jeremy Kemper2008-09-024-19/+36
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pools start out empty and grow as necessary to a maximum size (default is 5, configure size with key 'pool' in your database configuration). If no connections are available, a thread will wait up to a 'wait_timeout' time (default is 5 seconds). Connections are verified and reset when checked out from the pool (usually upon first access to ActiveRecord::Base.connection), and returned back to the pool after each request. If you would like to use connection pools outside of ActionPack, there is an ActiveRecord::Base.connection_pool method that gives you access to the pool, and you can manually checkout/checkin connections, or supply a block to ActiveRecord::Base.connection_pool.with_connection which takes care of the checkout/checkin for you. [#936 state:resolved]
| * Merge rexml-expansion-fix gem into activesupport.Michael Koziarski2008-09-021-0/+21
| | | | | | | | | | Addresses the security issue documented at: * http://www.ruby-lang.org/en/news/2008/08/23/dos-vulnerability-in-rexml/
| * Get rid of 'Object#send!'. It was originally added because it's in Ruby 1.9, ↵Jeremy Kemper2008-08-313-18/+13
| | | | | | | | | | | | | | | | | | | | but it has since been removed from 1.9. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> Conflicts: actionpack/test/controller/layout_test.rb
| * Fix test to not assume which thread finishes firstJeremy Kemper2008-08-291-1/+2
| |
* | Module#synchronize: Add testcase to ensure that singleton methods can be wrappedNick2008-08-291-3/+17
| |
* | Add method punctuation handling to #synchronizeNick2008-08-291-0/+14
| |
* | Adds Module#synchronize for easier method-level synchronization.Nick2008-08-291-0/+57
|/
* Fix Ruby's Time marshaling bug in pre-1.9 versions of Ruby: utc instances ↵Luca Guidi2008-08-271-0/+34
| | | | are now correctly unmarshaled with a utc zone instead of the system local zone [#900 state:resolved]
* Deprecate Rails::SecretKeyGenerator in favor of ActiveSupport::SecureRandom.Hongli Lai (Phusion2008-08-271-0/+15
| | | | | | | SecureRandom has a few minor security enhancements and can be used as a drop-in replacement Signed-off-by: Michael Koziarski <michael@koziarski.com> [#913 state:committed]
* Work around frozen Date memoizationJeremy Kemper2008-08-251-4/+12
|
* New inflectors will overwrite defaults [#337 state:resolved]Peter Wagenet2008-08-231-0/+7
| | | | Signed-off-by: Tarmo Tänav <tarmo@itech.ee>
* camelize(:lower) should always downcase first character. [#696 state:resolved]Amos King2008-08-222-0/+8
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Mark Class as not being duplicable. [#829 state:resolved]Frederick Cheung2008-08-211-1/+1
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Simplified and renamed CallbackChain union method to replace_or_append!Joshua Peek2008-08-211-4/+4
|
* Partial revert of 2681685 premature TypeArray abstractionJoshua Peek2008-08-211-51/+0
|
* Ensure objects cached with MemoryStore are immutableJoshua Peek2008-08-191-0/+6
|
* Maintain a seperate buffer for each threadJoshua Peek2008-08-181-4/+25
|
* Replace MemoryStore mutex with a monitor to avoid issues with nested callsJoshua Peek2008-08-181-0/+24
|
* Ensure results returned by a memoized method are immutableJoshua Peek2008-08-131-0/+5
|
* Marshal FileStore valuesJoshua Peek2008-08-131-0/+27
|
* memoize_ and unmemoize_allJeremy Kemper2008-08-131-0/+15
|
* Use current umask when testing the expected file mode [#823 state:resolved]S. Brent Faulkner2008-08-131-4/+4
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Fixed memoize with punctuation and freezing memoized methods with argumentsJeremy Kemper2008-08-071-0/+15
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* MemoryStore is the only "unsafe" store. Make it threadsafe by default.Joshua Peek2008-08-061-67/+0
|
* Make File.atomic_write copy the original permissions or use the directories ↵Joshua Peek2008-08-061-6/+44
| | | | default.
* Added config.dependency_loading to enable or disable the dependency loader ↵Joshua Peek2008-07-241-0/+12
| | | | after initialization
* Extract ActiveSupport::TypedArray class to ensure an array is all of the ↵Joshua Peek2008-07-221-0/+51
| | | | same type [#673 state:resolved]
* Improved Memoizable test coverage and added support for multiple argumentsJoshua Peek2008-07-221-39/+127
|
* If it doesn't overflow, it won't have a .start method. So don't run the ↵Michael Koziarski2008-07-201-1/+1
| | | | second assertion either
* Handle the case where 64bit time_t won't overflow.Michael Koziarski2008-07-201-1/+6
|
* Changed ActiveSupport::Memoizable API to extend since it mainly adds the ↵Joshua Peek2008-07-181-7/+35
| | | | memoize class method
* Allow memoized methods to be reloaded and allow multiple symbolsJoshua Peek2008-07-181-13/+26
|
* Merge branch 'master' of git@github.com:rails/railsJeremy Kemper2008-07-171-0/+67
|\
| * Cleanup ActiveSupport::Cache::ThreadSafety module and add test coverageJoshua Peek2008-07-171-0/+67
| |
* | Merge branch 'master' into i18n-mergeJeremy Kemper2008-07-173-0/+66
|\| | | | | | | | | | | | | Conflicts: actionpack/lib/action_view/helpers/form_options_helper.rb activerecord/lib/active_record/validations.rb
| * Add extra tests to ensure Hash#slice works with an array as a key. #613MatthewRudy2008-07-171-0/+21
| | | | | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
| * Revert "Hash#slice supports an array of keys [#613 state:resolved]"Pratik Naik2008-07-171-35/+21
| | | | | | | | This reverts commit 396f9df8916b71f83aad8d56559cf55fc8501679.
| * Revert "Run callbacks from object's metaclass"Joshua Peek2008-07-161-24/+0
| |
| * Allow deep merging of hash values for nested with_options. [#490 state:resolved]Lawrence Pit2008-07-172-0/+37
| | | | | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
| * Hash#slice supports an array of keys [#613 state:resolved]Josh Owens2008-07-161-21/+35
| | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * Run callbacks from object's metaclass [#575 state:resolved]Joshua Peek2008-07-151-0/+24
| |
| * Added Object#metaclassJoshua Peek2008-07-151-0/+8
| |
* | make i18n date/time tests timezone independentSven Fuchs2008-07-161-10/+10
| |
* | merge forward to current rails/masterSven Fuchs2008-07-167-10/+314
|\|
| * Add in_groups to ActiveSupport::CoreExtensions::Array::Grouping. [#579 ↵Adrian Mugnolo2008-07-151-4/+46
| | | | | | | | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
| * Fix TimeWithZone unmarshaling: coerce unmarshaled Time instances to utc, ↵gbuesing2008-07-141-0/+6
| | | | | | | | because Ruby's marshaling of Time instances doesn't respect the zone
| * Some performance tweaks to ActiveSupport::MemoizableTarmo Tänav2008-07-141-0/+4
| | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * memorize typoJoshua Peek2008-07-141-2/+2
| |