Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Oops. Make previous commit pass on 1.9.2. | José Valim | 2010-06-26 | 1 | -1/+2 |
| | |||||
* | Tidy up tests in previous commit since they did not assure an OrderedHash is ↵ | José Valim | 2010-06-26 | 1 | -3/+2 |
| | | | | | | returned (the test would pass for an array and would pass by chance for hashes). [#4875 state:resolved] | ||||
* | Add OrderedHash#invert to preserve order in ruby 1.8 [#4875] | chaitanyav | 2010-06-26 | 1 | -0/+6 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Work around the fact the JSON gem was overwriting to_json implementation for ↵ | José Valim | 2010-06-26 | 1 | -0/+7 |
| | | | | | | | all Ruby core classes. This is required because the JSON gem is incompatible with Rails behavior and was not allowing ActiveModel::Errors to be serialized. So we need to ensure Rails implementation is the one triggered. [#4890 state:resolved] | ||||
* | Alias ActiveSupport::OrderedHash#update to ActiveSupport::OrderedHash.merge! | Paul Mucur | 2010-06-25 | 1 | -0/+6 |
| | | | | | | | | This ensures that an OrderedHash's keys are set up appropriately when using update. [#4973 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Move Rails::LogSubscriber to ActiveSupport::LogSubscriber, allowing ↵ | José Valim | 2010-06-24 | 1 | -0/+123 |
| | | | | frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [#4816 state:resolved] | ||||
* | renames load_(once_)paths to autoload_(once_)paths in dependencies and config | Xavier Noria | 2010-06-24 | 1 | -18/+18 |
| | |||||
* | preventing memcached initialization errors with default servers list [#4921 ↵ | David Calavera | 2010-06-22 | 1 | -1/+1 |
| | | | | | | | | state:resolved] As of this writing the JRuby client does not support a default port. Signed-off-by: Xavier Noria <fxn@hashref.com> | ||||
* | defines ORIG_ARGV in Active Support's abstract_unit.rb (used in ↵ | David Calavera | 2010-06-22 | 1 | -0/+2 |
| | | | | | | isolation.rb) [#4922 state:resolved] Signed-off-by: Xavier Noria <fxn@hashref.com> | ||||
* | adds parens to silence a warning in the test suite of AS | Xavier Noria | 2010-06-20 | 1 | -1/+1 |
| | |||||
* | Add ActiveSupport::FileUpdateChecker. | José Valim | 2010-06-20 | 1 | -0/+56 |
| | |||||
* | Adds titleize/titlecase to AS::Multibyte::Chars | Norman Clarke | 2010-06-20 | 1 | -0/+14 |
| | | | | | | [#2794 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Remove descendants warning while executing tests. | José Valim | 2010-06-19 | 1 | -1/+1 |
| | |||||
* | Change callbacks to automatically include DescendantsTracker and rename ↵ | José Valim | 2010-06-19 | 1 | -2/+5 |
| | | | | descendents to descendants. | ||||
* | Add ActiveSupport::DescendantsTracker. | José Valim | 2010-06-19 | 1 | -0/+72 |
| | |||||
* | when the timezone is nil, a TimeWithZone object should not be constructed. ↵ | Aaron Patterson | 2010-06-17 | 1 | -0/+7 |
| | | | | | | [#4881 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | revises implementation of AS::OrderedHash#merge! | Xavier Noria | 2010-06-13 | 1 | -16/+17 |
| | |||||
* | Revert "hash merging with a block ignores non-existing keys altogether" | Xavier Noria | 2010-06-13 | 1 | -16/+17 |
| | | | | | | This reverts commit 72f9fec607c4a72b2e88995d0cb32b16b96e9068. It is wrong, this feature is a little undocumented, doing some research. | ||||
* | hash merging with a block ignores non-existing keys altogether | Xavier Noria | 2010-06-13 | 1 | -17/+16 |
| | |||||
* | re-organized test for merge into separate tests | Paul Barry | 2010-06-13 | 1 | -13/+21 |
| | | | | Signed-off-by: Xavier Noria <fxn@hashref.com> | ||||
* | Support passing a block to ActiveSupport::OrderedHash's merge and merge! ↵ | Paul Mucur | 2010-06-13 | 1 | -0/+13 |
| | | | | | | | | [#4838 state:committed] For better consistency with Ruby's own Hash implementation. Signed-off-by: Xavier Noria <fxn@hashref.com> | ||||
* | Date#since, #ago, #beginning_of_day, #end_of_day, #xmlschema return ↵ | Geoff Buesing | 2010-06-12 | 1 | -1/+50 |
| | | | | | | TimeWithZone when Time.zone_default is set Signed-off-by: Xavier Noria <fxn@hashref.com> | ||||
* | Remove String#constantize deps | Jeremy Kemper | 2010-06-11 | 1 | -7/+8 |
| | |||||
* | Merge remote branch 'rsim/oracle_enhanced_rails3' | wycats | 2010-06-07 | 2 | -3/+3 |
|\ | |||||
| * | fix conditions when DateTime#to_date and DateTime#xmlschema methods are defined | Raimonds Simanovskis | 2010-06-04 | 2 | -3/+3 |
| | | |||||
* | | oops, two cancelling errors made a previous test pass, fixing it | Xavier Noria | 2010-06-07 | 1 | -1/+1 |
| | | |||||
* | | the order in which we apply deltas in Date#advance matters, add test ↵ | Xavier Noria | 2010-06-07 | 1 | -0/+10 |
| | | | | | | | | coverage for that | ||||
* | | ActiveSupport::Dependencies.constantize shortcut for caching named constant ↵ | Jeremy Kemper | 2010-06-05 | 1 | -0/+6 |
| | | | | | | | | lookups | ||||
* | | Optimize LookupContext | wycats | 2010-06-04 | 1 | -0/+15 |
| | | |||||
* | | removes Array#random_element and backports Array#sample from Ruby 1.9, ↵ | Xavier Noria | 2010-06-05 | 1 | -7/+23 |
|/ | | | | thanks to Marc-Andre Lafortune | ||||
* | Extracted String#truncate from TextHelper#truncate [DHH] | David Heinemeier Hansson | 2010-06-01 | 1 | -0/+29 |
| | |||||
* | Fix test incorrectly using a bare assert to use assert_kind_of | Santiago Pastorino | 2010-05-24 | 1 | -1/+1 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Use multibyte proxy class on 1.9, refactor Unicode. | Norman Clarke | 2010-05-21 | 4 | -58/+53 |
| | | | | | | | | | | Makes String#mb_chars on Ruby 1.9 return an instance of ActiveSupport::Multibyte::Chars to work around 1.9's lack of Unicode case folding. Refactors class methods from ActiveSupport::Multibyte::Chars into new Unicode module, adding other related functionality for consistency. [#4594 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | 1.day should respond_to kind_of too | Neeraj Singh | 2010-05-21 | 1 | -0/+1 |
| | | | | | | [#4656 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | refactor evals and adds some __FILE__ and __LINE__ | Santiago Pastorino | 2010-05-20 | 2 | -3/+3 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Final iteration of use better testing methods | Neeraj Singh | 2010-05-19 | 13 | -44/+44 |
| | | | | | | [#4652 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | removes deprecations of last_(month|year) from master, they will be ↵ | Xavier Noria | 2010-05-19 | 2 | -16/+0 |
| | | | | deprecated in 2.3 instead | ||||
* | Better error messages for some of ActiveSupport tests | Neeraj Singh | 2010-05-18 | 1 | -6/+6 |
| | | | | | | [#4635 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Renames Array#rand -> Array#random_element | Rizwan Reza | 2010-05-17 | 1 | -4/+0 |
| | | | | Signed-off-by: Xavier Noria <fxn@hashref.com> | ||||
* | Revert "Moved encoding work in progress to a feature branch." | wycats | 2010-05-17 | 1 | -0/+8 |
| | | | | This reverts commit ade756fe42423033bae8e5aea8f58782f7a6c517. | ||||
* | Moved encoding work in progress to a feature branch. | Jeremy Kemper | 2010-05-16 | 1 | -8/+0 |
| | | | | This reverts commits af0d1a88157942c6e6398dbf73891cff1e152405 and 64d109e3539ad600f58536d3ecabd2f87b67fd1c. | ||||
* | Change on Array extension from rand => random_element [#4555 state:committed] | Santiago Pastorino | 2010-05-16 | 1 | -4/+8 |
| | | | | Signed-off-by: Xavier Noria <fxn@hashref.com> | ||||
* | Initial work to improve the state of encodings for templates | wycats | 2010-05-16 | 1 | -0/+8 |
| | |||||
* | Make use of assert_equal to test equallity between object assert expects and ↵ | Santiago Pastorino | 2010-05-16 | 2 | -4/+4 |
| | | | | | | | | object and a message of error [#4611 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Reorganized initializers a bit to enable better hooks for common cases ↵ | wycats | 2010-05-15 | 1 | -0/+67 |
| | | | | | | | | | | | | | | | without the need for Railtie. Specifically, the following hooks were added: * before_configuration: this hook is run immediately after the Application class comes into existence, but before the user has added any configuration. This is the appropriate place to set configuration for your plugin * before_initialize: This is run after all of the user's configuration has completed, but before any initializers have begun (in other words, it runs right after config/environments/{development,production,test}.rb) * after_initialize: This is run after all of the initializers have run. It is an appropriate place for forking in a preforking setup Each of these hooks may be used via ActiveSupport.on_load(name) { }. In all these cases, the context inside the block will be the Application object. This means that for simple cases, you can use these hooks without needing to create a Railtie. | ||||
* | defines prev_(month|year) in Date and Time to ease transition to 1.9, and ↵ | Xavier Noria | 2010-05-12 | 3 | -18/+34 |
| | | | | deprecates last_(month|year) | ||||
* | adds calendar reform test coverage for more relevant date calculations | Xavier Noria | 2010-05-09 | 1 | -1/+14 |
| | |||||
* | Backports Date#>> from 1.9 so that calculations do the right thing around ↵ | Xavier Noria | 2010-05-09 | 1 | -0/+27 |
| | | | | | | | | | | the calendar reform Our next_month gives November for some late dates in September of 1582. Related methods, last_*, and in general advance have the same issues. This commit fixes those, see the test suite for expected behavior, which we still run in 1.9 to ensure it matches as we do with other methods defined in Date in 1.9. | ||||
* | add test coverage for (last|next)_year on leap years | Xavier Noria | 2010-05-08 | 1 | -0/+8 |
| | |||||
* | let Time.time_with_datetime_fallback handle properly years in the range 0..138 | Xavier Noria | 2010-05-05 | 3 | -1/+19 |
| |