aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
Commit message (Collapse)AuthorAgeFilesLines
* handle double pluralization for irregular pluralsDan Pickett2011-02-161-0/+4
| | | | | | [#6363] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* GcTime incorrectly checks GC.respond_to?(:total_time), it should check ↵Joel Nimety2011-02-151-1/+1
| | | | | | | | GC::Profiler.respond_to?(:total_time) [#6435 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Add Date#rfc3339 and Date#iso8601 to ASSantiago Pastorino2011-02-131-0/+6
|
* Updated the json date regex to recognize xmlschema formatted date times ↵Josh Kalderimis2011-02-121-1/+1
| | | | | | during json decoding. [#3031 state:resolved] Signed-off-by: Santiago Pastorino and Emilio Tagua <santiago+emilioe@wyeworks.com>
* Fixes an issue when decoding a json string which looks like a date but is ↵Josh Kalderimis2011-02-113-3/+21
| | | | | | invalid. This DateTime parse error is now caught and the original string is instead passed back [#6286 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Removed Array#safe_join in AS core_ext and moved it to a view helper with ↵Josh Kalderimis2011-02-101-31/+0
| | | | | | the same same. This also changes how safe_join works, if items or the separator are not html_safe they are html_escape'd, a html_safe string is always returned. Signed-off-by: José Valim <jose.valim@gmail.com>
* Revert "Removed Array#safe_join in AS core_ext and moved it to a view helper ↵José Valim2011-02-101-0/+31
| | | | | | | | with the same same." Applied the wrong version. This reverts commit 98c0c5db50a7679b3d58769ac22cb0a27a62c930.
* Removed Array#safe_join in AS core_ext and moved it to a view helper with ↵Josh Kalderimis2011-02-101-31/+0
| | | | the same same.
* Corrected the html_safe implementation for Array. Moved the html safe ↵Josh Kalderimis2011-02-101-7/+22
| | | | version of join to its own method (safe_join) as not to degrade the performance of join for unrelated html_safe use. [#6298 state:resolved]
* Initial html_safe implemention for ArrayPaul Hieromnimon2011-02-101-0/+16
|
* fanout unsubscribe only accepted one argument, so taking *args here is ↵Aaron Patterson2011-02-091-2/+2
| | | | probably bad
* just use an attr_accessor so we do not pay ||= on every notification callAaron Patterson2011-02-091-5/+3
|
* fixing indentationAaron Patterson2011-02-091-4/+4
|
* speed up notification publishing by writing the delegate methodAaron Patterson2011-02-091-1/+4
|
* fix for AS Gzip returning a UTF-8 string in Ruby 1.9 when it is actually ↵Josh Kalderimis2011-02-091-0/+4
| | | | | | binary [#6386 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* use === so that regular expressions are not requiredAaron Patterson2011-02-081-5/+4
|
* use === so that regular expressions are not requiredAaron Patterson2011-02-081-6/+2
|
* notifier should be saved and re-set, not deletedAaron Patterson2011-02-071-1/+2
|
* Add initial FileWatcher implementation. The Backend is just an abstract ↵wycats2011-02-062-0/+42
| | | | implementation, which will be inherited by backends that do the heavy lifting.
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-02-051-4/+8
|\
| * Change Time.zone= docs.Brian Morearty2011-02-041-4/+8
| | | | | | | | | | Update the example to show how to reset the current thread's Time.zone upon exiting a request.
* | fix OrderedHash#each* methods to return Enumerators when called without a ↵Gabriel Horner2011-02-031-0/+3
| | | | | | | | | | | | block [#6366 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | Ruby 1.8.7+ provides to_date/to_datetime, AS just makes them public.John Firebaugh2011-02-031-22/+0
| | | | | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | Preserve fractional seconds in DateTime#to_timeJohn Firebaugh2011-02-031-1/+1
|/ | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Fix JSON decoding of newline character with Yaml backend [#3479 state:resolved]Maxime RETY2011-02-021-2/+6
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* OrderedHash#each* methods return self like Hash does [#6364 state:resolved]Gabriel Horner2011-02-021-0/+3
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Ensure I18n setup is only executed once if triggered on eager loading [#6353 ↵Saimon Moore2011-02-011-12/+20
| | | | | | state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Additionally trigger i18n configuration setup before any eager loading ↵Saimon Moore2011-02-011-4/+11
| | | | | | | | | [#6353 state:resolved] This handles the case where config.cache_classes is true and classes are loaded before the I18n load path has had a chance to be populated. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Use run_callbacks; the generated _run_<name>_callbacks method is not a ↵John Firebaugh2011-01-311-4/+4
| | | | | | public interface. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* make sure we play nicely when syck is activatedAaron Patterson2011-01-281-5/+8
|
* Psych correctly gets visitor for SafeBuffer from superclassbrainopia2011-01-281-2/+5
|
* Remove unneeded yaml_as declarationbrainopia2011-01-281-2/+0
|
* load psych by default if possibleAaron Patterson2011-01-281-0/+5
|
* use ! " " YAML string literal syntax rather than removing both quotesAaron Patterson2011-01-211-4/+4
|
* prefering psych as the yaml parser if possible, fixing assertions for YAML ↵Aaron Patterson2011-01-212-0/+16
| | | | 1.1 compatibility
* fixing psych support in big decimal, fixing tests to support YAML 1.1Aaron Patterson2011-01-211-0/+7
|
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-01-201-113/+116
|\
| * editing comments regarding rescuable optoin in AS callbacksNeeraj Singh2011-01-121-2/+3
| |
| * Expand and clarify AS::Callbacks docs.John Firebaugh2011-01-091-113/+115
| |
* | removing usesless variable assignmentsAaron Patterson2011-01-181-1/+5
| |
* | fixed a missing require that causes trouble when using AS in a non-rails env.Nick Sutterer2011-01-185-1/+6
| |
* | Class.__subclasses__ was removed from Rubinius.John Firebaugh2011-01-181-34/+20
| | | | | | | | | | https://github.com/evanphx/rubinius/issues/issue/11 https://github.com/evanphx/rubinius/commit/2fccbb5dad5cb3f5414d635547290538cfc0a2d4
* | Complex struct encoding fixAlexey Nayden2011-01-151-0/+6
| | | | | | | | | | | | [#6077 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | fixing whitespace errorsAaron Patterson2011-01-121-1/+1
| |
* | In AS, only inflector/methods is need in proxy_wrappers.rb, as well as date, ↵Josh Kalderimis2011-01-124-4/+4
| | | | | | | | | | | | date_time, and time conversions.rb. This fixes an issue when requiring json and AS saying that i18n is also required. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | adding to_d to BigDecimalAaron Patterson2011-01-101-0/+4
| |
* | corrected docs for Hash#to_xml and added examples.Nick Sutterer2011-01-061-2/+14
| |
* | make our yaml output consistentAaron Patterson2011-01-041-5/+1
| |
* | add Psych::SyntaxError to the list of rescued YAML exceptionsAaron Patterson2011-01-041-1/+8
| |
* | test that the custom ordered hash can be round-trippedAaron Patterson2011-01-041-5/+0
| |