aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
Commit message (Collapse)AuthorAgeFilesLines
* Unforce i18n from ASSantiago Pastorino2010-05-314-6/+17
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Use I18n 0.4.0José Valim2010-05-271-1/+1
|
* Merge remote branch 'rails/master'Xavier Noria2010-05-2724-742/+753
|\
| * Fix test incorrectly using a bare assert to use assert_kind_ofSantiago Pastorino2010-05-241-1/+1
| | | | | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * Fix a bug where I18n fallbacks modules where not included in the proper ↵José Valim2010-05-231-2/+3
| | | | | | | | backend if it was set through config.i18n.backend.
| * Use multibyte proxy class on 1.9, refactor Unicode.Norman Clarke2010-05-2113-701/+715
| | | | | | | | | | | | | | | | | | | | 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 tooNeeraj Singh2010-05-212-0/+2
| | | | | | | | | | | | [#4656 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
| * refactor evals and adds some __FILE__ and __LINE__Santiago Pastorino2010-05-207-38/+32
| | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* | A small rdoc change made on lines 39 and 41 on ↵jacortinas2010-05-251-2/+2
|/ | | | activesupport/lib/active_support/core_ext/object/to_param.rb. It looks like the method name might have been changed, and the comments were never changed to coincide with the new method name.
* Merge remote branch 'rails/master'Xavier Noria2010-05-1923-104/+74
|\
| * Final iteration of use better testing methodsNeeraj Singh2010-05-1913-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 Noria2010-05-195-39/+1
| | | | | | | | deprecated in 2.3 instead
| * Better error messages for some of ActiveSupport testsNeeraj Singh2010-05-181-6/+6
| | | | | | | | | | | | [#4635 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
| * Renames Array#rand -> Array#random_elementRizwan Reza2010-05-173-15/+3
| | | | | | | | Signed-off-by: Xavier Noria <fxn@hashref.com>
| * Revert "Moved encoding work in progress to a feature branch."wycats2010-05-173-0/+20
| | | | | | | | This reverts commit ade756fe42423033bae8e5aea8f58782f7a6c517.
* | in Ruby things in general happen at runtime, no need to specify thatXavier Noria2010-05-191-2/+3
| |
* | Updating the doc with the info that class_inheritable_accessorNeeraj Singh2010-05-191-0/+2
|/ | | | copies properties to child at runtime
* Moved encoding work in progress to a feature branch.Jeremy Kemper2010-05-163-20/+0
| | | | This reverts commits af0d1a88157942c6e6398dbf73891cff1e152405 and 64d109e3539ad600f58536d3ecabd2f87b67fd1c.
* Change on Array extension from rand => random_element [#4555 state:committed]Santiago Pastorino2010-05-162-5/+19
| | | | Signed-off-by: Xavier Noria <fxn@hashref.com>
* Initial work to improve the state of encodings for templateswycats2010-05-163-0/+20
|
* Make use of assert_equal to test equallity between object assert expects and ↵Santiago Pastorino2010-05-162-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 ↵wycats2010-05-152-4/+81
| | | | | | | | | | | | | | | 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.
* Add missing require to with_options [#4601 state:resolved]Carlos Antonio da Silva2010-05-151-0/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Better code formatting and proper line numbers for stack tracesNeeraj Singh2010-05-141-1/+1
| | | | | | [#4596 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* defines prev_(month|year) in Date and Time to ease transition to 1.9, and ↵Xavier Noria2010-05-126-25/+64
| | | | deprecates last_(month|year)
* aliases Date#sunday to Date#end_of_week, for symmetry with existing alias ↵Xavier Noria2010-05-092-0/+3
| | | | Date#monday -> Date#beginning_of_week
* adds calendar reform test coverage for more relevant date calculationsXavier Noria2010-05-091-1/+14
|
* Backports Date#>> from 1.9 so that calculations do the right thing around ↵Xavier Noria2010-05-093-0/+47
| | | | | | | | | | 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 yearsXavier Noria2010-05-081-0/+8
|
* adds Date#to_time refinement from previous commit to the CHANGELOGXavier Noria2010-05-051-0/+2
|
* let Time.time_with_datetime_fallback handle properly years in the range 0..138Xavier Noria2010-05-055-4/+30
|
* date/conversions needs time/calculations for (utc|local)_timeXavier Noria2010-05-031-0/+1
|
* BigDecimal#as_json does not really specify the F format, it delegates that ↵Xavier Noria2010-05-031-1/+3
| | | | to whatever BigDecimal#to_s default format is, do the same in its test
* adds a comment explaining why BigDecimal#as_json returns a JSON stringXavier Noria2010-05-031-1/+9
|
* fixes colon in previous YAML exampleXavier Noria2010-05-031-1/+1
|
* Fix transliteration rule example in docs. [#4526 state:resolved]Norman Clarke2010-05-031-2/+3
| | | | Signed-off-by: Xavier Noria <fxn@hashref.com>
* Update I18n gem to 0.4.0.beta1 [#4525 state:resolved].José Valim2010-05-031-1/+1
|
* adds test coverage for Date.current vs Date.today in ↵Xavier Noria2010-05-031-1/+45
| | | | Date.(yesterday|tomorrow) implementation
* Event should be aware if yielded block failed or not.José Valim2010-05-022-3/+7
|
* Change event namespace ordering to most-significant first [#4504 state:resolved]Justin George2010-05-021-1/+1
| | | | | | | | | More work still needs to be done on some of these names (render_template.action_view and render_template!.action_view particularly) but this allows (for example) /^sql/ to subscribe to all the various ORMs without further modification Signed-off-by: José Valim <jose.valim@gmail.com>
* Make notifications go off even when an error is raised, so that we capture ↵Justin George2010-05-022-5/+9
| | | | | | | | | | | | | | the underlying performance data [#4505 state:resolved] This is important when trying to keep track of many layers of interrelated calls i.e.: ActiveRecord::Base.transaction do MyModel.find(1) #ActiveRecord::NotFound end # should capture the full time until the error propagation Signed-off-by: José Valim <jose.valim@gmail.com>
* Missing require added make pass activesupport/test/json/encoding_test.rb in ↵Santiago Pastorino2010-05-021-0/+1
| | | | | | isolation Signed-off-by: Xavier Noria <fxn@hashref.com>
* revises tests for Date.yesterday and Date.tomorrowXavier Noria2010-05-021-3/+3
|
* let Date.yesterday and Date.tomorrow be based on Date.current rather than ↵Xavier Noria2010-05-021-2/+2
| | | | Date.today
* Speed up I18n helpers in views and add entry to CHANGELOG.José Valim2010-05-011-0/+2
|
* repair the activesupport message encryptor tests for me, do so in the same ↵Marius Nuennerich2010-05-011-0/+10
| | | | | | | | way as jeremy did with message verifier [#4517 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Depend on the I18n 0.4.0.beta.José Valim2010-04-301-1/+1
|
* Delegate Inflector.transliterate to i18n. [#4508 state:resolved]Norman Clarke2010-04-303-89/+101
| | | | | | | Ancillary changes: Moved Chars#normalize into a class method; removed unused UTF_PAT constant. Signed-off-by: José Valim <jose.valim@gmail.com>
* Move several configuration values from Hash to ActiveSupport::XmlMini, which ↵José Valim2010-04-297-169/+162
| | | | | | both Hash and Array depends on. Also, refactored ActiveModel serializers to just use ActiveSupport::XmlMini.to_tag. As consequence, if a serialized attribute is an array or a hash, it's not encoded as yaml, but as a hash or array.
* array.to_xml should be able to handle all types of data elements [#4490 ↵Neeraj Singh2010-04-296-70/+79
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>