aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext
Commit message (Collapse)AuthorAgeFilesLines
* * Introduce ActiveSupport.core_ext Integer, %w(conversions time etc)Jeremy Kemper2009-03-2129-308/+150
| | | | | | * Convert some extension modules to simply reopening the class * Remove deprecated Float time extensions * Fold Base64 extension into ActiveSupport::Base64 since stdlib Base64 is gone
* Merge docrailsPratik Naik2009-03-161-1/+1
|
* Use xmlschema when serializing TimeWithZones to xml [#2223 state:resolved]Jonathan del Strother2009-03-121-2/+3
| | | | | | When using Hash#to_xml, any TimeWithZone objects now use xmlschema (iso8601), rather than a simple TimeWithZone#to_s. Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ensure HWIA#reverse_merge! retrurns HWIA [#421 state:resolved]Bradford Folkens2009-03-121-0/+6
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Allow String#parameterize to accept a separator [#2157 state:resolved]Sam Granieri2009-03-071-2/+2
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Force all internal calls to Array#to_sentence to use English [#2010 ↵David Heinemeier Hansson2009-02-271-3/+2
| | | | state:resolved]
* Deprecated warnings for :skip_last_command and :connector of to_sentence ↵Guillermo Álvarez2009-02-221-5/+19
| | | | | | [#1847 state:committed] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Broaden URI.unescape fix to all affected 1.9.x by checking for broken ↵Jeremy Kemper2009-02-201-6/+12
| | | | behavior instead of specific patchlevel
* URI.unescape fix removes the old unescape methodJeremy Kemper2009-02-201-10/+7
|
* Ruby 1.9.1p0's URI.decode() bug fixmoro2009-02-201-0/+13
| | | | | | backport to fix Ruby 1.9.1p0 bug on [ruby-dev:38005]. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Make atomic_write() puts the check_file in the cache dir, not in applicationBruno Duyé2009-02-191-1/+1
| | | | | root [#1962 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Array#wrap should use #to_ary so association collections and named scopes ↵Will Bryant2009-02-101-2/+7
| | | | | | | | are not re-wrapped [#1935 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Time#to_s(:rfc822) uses #formatted_offset instead of unreliable and ↵Zachary Zolton2009-02-091-1/+1
| | | | non-standard %z directive [#1899 state:resolved]
* Remove dummy Object#try before aliasing itJeremy Kemper2009-02-061-0/+1
|
* Avoid circular requireJeremy Kemper2009-02-061-1/+1
|
* Introduce Array.wrap(foo) to wrap the argument in an array unless it's ↵Jeremy Kemper2009-02-062-0/+21
| | | | already an array. Wraps nil as an empty array. Use instead of Array(foo) and foo.to_a since they treat String as Enumerable.
* Merge docrailsPratik Naik2009-02-011-4/+9
|
* Merge docrailsPratik Naik2009-01-185-7/+7
|
* Refactor Object#try to use inheritance. [#1774 state:resolved]Josh Susser2009-01-182-17/+30
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* 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]
* Object#tap for Ruby < 1.8.7Jeremy Kemper2009-01-071-0/+15
|
* Inline code comments for class_eval/module_eval [#1657 state:resolved]Xavier Noria2008-12-289-122/+123
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* 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>
* 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>
* Benchmark.msJeremy Kemper2008-12-091-6/+13
|
* Change Array#to_sentence I18n options to pass comma and space character from ↵Akira Matsuda2008-12-081-9/+10
| | | | | | | | outside. [#1397 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Merge with docrailsPratik Naik2008-12-071-0/+2
|
* Silence server backtrace in rescue templates and log files. Also remove some ↵Joshua Peek2008-12-051-8/+11
| | | | noise from missing template errors.
* Ruby 1.9 compat: CGI#escape_skipping_slashesJeremy Kemper2008-11-261-5/+14
|
* Autoload ActiveSupport::XmlMiniJeremy Kemper2008-11-261-1/+0
|
* Require as little of REXML as possible to apply the entity_expansion_limit fixJeremy Kemper2008-11-261-24/+29
|
* Lazy-require CGI for Object#to_queryJeremy Kemper2008-11-261-2/+1
|
* Extract XmlMini. Namespace FileLike extension.Jeremy Kemper2008-11-251-128/+14
|
* Extract XmlMini from XmlSimple. [#1474 state:committed]Joseph Holsten2008-11-251-21/+106
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Allow optional arguments and/or block for Object#try like Object#send does. ↵Eloy Duran2008-11-241-2/+7
| | | | | | | | [#1425 state:resolved] Original suggestion by Pat Nakajima. Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Lazy-require tempfile for File#atomic_writeJeremy Kemper2008-11-231-2/+2
|
* Lazy-require XmlSimple. Move CGI require to object conversions where it's ↵Jeremy Kemper2008-11-232-3/+5
| | | | actually used.
* Lazy-require builder libJeremy Kemper2008-11-232-3/+3
|
* Changed the fallback String#each_char to use valid 1.9 syntax.Tom Lea2008-11-221-1/+3
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Added ActiveSupport::BacktraceCleaner and Rails::BacktraceCleaner for ↵David Heinemeier Hansson2008-11-221-0/+1
| | | | cutting down on backtrace noise (inspired by the Thoughtbot Quiet Backtrace plugin) [DHH]
* Reduced the number of literal aliases to the range that has actually seen ↵David Heinemeier Hansson2008-11-211-23/+3
| | | | personal use. With the massive savings in overhead, I was able to fit Array#forty_two
* Ensure only delegations to methods can have an automatic prefix. [#1235 ↵Daniel Schierbeck2008-11-211-0/+4
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Enumerable#none? conforms to Ruby 1.8.7 behaviorJeremy Kemper2008-11-191-3/+3
|
* Added Object#try. ( Taken from http://ozmm.org/posts/try.html ) [Chris ↵Pratik Naik2008-11-191-0/+13
| | | | Wanstrath]
* Update doc to make more senseDavid Heinemeier Hansson2008-11-191-1/+1
|
* Added Enumerable#none? to check that none of the elements match the block ↵Damian Janowski2008-11-191-0/+9
| | | | | | [#1408 state:committed] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Explicitly require AS::DurationJeremy Kemper2008-11-171-0/+2
|
* Prefer a feature check to a version checkJeremy Kemper2008-11-121-1/+1
|
* Fixed the option merging in Array#to_xml [#1126 state:resolved]David Heinemeier Hansson2008-10-311-1/+1
|