aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext
Commit message (Collapse)AuthorAgeFilesLines
* * don't include String#% for Ruby 1.9Sven Fuchs2009-07-181-5/+8
| | | | | | | | | | * raise a KeyError exception for missing named interpolation args (like Ruby 1.9 does) * raise an ArgumentError when mixing named and unnamed placeholders (like Ruby 1.9 does) * improve docs and comply a bit more w/ Rails names/conventions [#2870 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Ruby 1.9 style String interpolation support for lower ruby versions. Thanks ↵Lawrence Pit2009-07-071-0/+62
| | | | | | to code from Masao Mutoh's GetText gem. [#2870 state:resolved] Signed-off-by: Yehuda Katz <wycats@yehuda-katzs-macbookpro41.local>
* make #inspect if zero length duration return '0 seconds' instead of empty ↵Levin Alexander2009-07-021-0/+1
| | | | | | string [#2838 state:resolved] Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>
* Friendlier runtime exception if delegatee is nilJeremy Kemper2009-06-181-1/+1
|
* Move model naming into ActiveModelJoshua Peek2009-06-171-28/+0
|
* moves reopening of core classes to add generic stuff from Action Pack to ↵Xavier Noria2009-06-134-0/+46
| | | | | | | | AS/core_ext and adds tests [#2798 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Add #element and #collection to ModelNameJeremy Kemper2009-06-081-0/+8
|
* String #to_time and #to_datetime: handle fractional seconds [#864 ↵Jason Frey (Fryguy)2009-06-071-0/+3
| | | | state:resolved]
* Pull in time extensions alsoJeremy Kemper2009-06-051-1/+1
|
* Remove 'core' fluff. Hookable ActiveSupport.load_all!Jeremy Kemper2009-05-204-4/+4
|
* Make module dependency DSL opt inJoshua Peek2009-05-071-74/+0
|
* Add test coverage to module setup extensionsJoshua Peek2009-05-071-0/+74
|
* Fixed Hash#from_xml with keys that are all caps.codebrulee2009-05-041-0/+16
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Work around Float faux precisionJeremy Kemper2009-04-303-15/+15
|
* * Add pluggable JSON backends with support for the JSON gem. [rick]rick2009-04-231-2/+2
| | | | | | | | | | | | | | Example: ActiveSupport::JSON.backend = "JSONGem" All internal Rails JSON encoding is now handled by ActiveSupport::JSON.encode(). Use of #to_json is not recommended, as it may clash with other libraries that overwrite it. However, you can recover Rails specific functionality if you really want to use #to_json. gem 'json' ActiveSupport::JSON.backend = "JSONGem" class ActiveRecord::Base alias to_json rails_to_json end
* Fix dependencies revealed by testing in isolationJeremy Kemper2009-04-2221-5/+31
|
* Opt in to DependenciesJeremy Kemper2009-04-221-0/+1
|
* Merge branch 'master' into cherryJeremy Kemper2009-04-204-16/+75
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: activesupport/CHANGELOG activesupport/lib/active_support/core_ext/class/delegating_attributes.rb activesupport/lib/active_support/core_ext/hash/conversions.rb activesupport/lib/active_support/core_ext/module/attribute_accessors.rb activesupport/lib/active_support/core_ext/string/multibyte.rb activesupport/lib/active_support/core_ext/time/calculations.rb activesupport/lib/active_support/deprecation.rb
| * Clearer String#first and #last edge cases. Fix that foo.first(0) == instead ↵Jeremy Kemper2009-04-171-0/+2
| | | | | | | | of foo.
| * Test cleanupGeoff Buesing2009-04-051-3/+3
| |
| * TimeWithZone.name returns 'Time', to further thwart type checkingGeoff Buesing2009-04-051-0/+4
| |
| * Enhance Time #since and #ago DST tests.Geoff Buesing2009-03-291-16/+57
| |
| * Time.local instances: Adding 24.hours across the DST boundary adds 24 hours ↵Michael Curtis2009-03-292-16/+28
| | | | | | | | instead of one day [#2066 state:resolved]
* | Eliminate Pathname extensionsJeremy Kemper2009-04-171-10/+0
| |
* | Explicit test dependenciesJeremy Kemper2009-03-291-0/+1
| |
* | Explicit BigDecimal extension dependencyJeremy Kemper2009-03-291-1/+1
| |
* | Explicit test dependenciesJeremy Kemper2009-03-295-2/+5
| |
* | Explicit test dependenciesJeremy Kemper2009-03-2814-11/+36
| |
* | Explicitly require core extension under testJeremy Kemper2009-03-241-0/+1
| |
* | Move Numeric#to_utc_offset_s to TimeZone.seconds_to_utc_offsetJeremy Kemper2009-03-231-15/+0
| |
* | Only require builder at startup if we need to monkey with its String#to_xs ↵Jeremy Kemper2009-03-211-1/+0
| | | | | | | | demands
* | * Introduce ActiveSupport.core_ext Integer, %w(conversions time etc)Jeremy Kemper2009-03-212-20/+1
|/ | | | | | * 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
* Use xmlschema when serializing TimeWithZones to xml [#2223 state:resolved]Jonathan del Strother2009-03-121-0/+9
| | | | | | 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/+7
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* adding more nokogiri tests and making the main rails tests passAaron Patterson2009-03-101-1/+6
| | | | | | [#2190 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Require libxml-ruby 0.9.4 or 0.9.7 pending a segfault bugfix for 1.0.Jeremy Kemper2009-03-091-1/+2
| | | | Delegate parsing to a switchable backend.
* Ruby 1.9 compat: rename deprecated assert_raises to assert_raise.Jeremy Kemper2009-03-087-17/+17
| | | | [#1617 state:resolved]
* Allow String#parameterize to accept a separator [#2157 state:resolved]Sam Granieri2009-03-071-0/+18
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Deprecated warnings for :skip_last_command and :connector of to_sentence ↵Guillermo Álvarez2009-02-221-0/+18
| | | | | | [#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-5/+6
| | | | behavior instead of specific patchlevel
* Ruby 1.9.1p0's URI.decode() bug fixmoro2009-02-201-0/+11
| | | | | | backport to fix Ruby 1.9.1p0 bug on [ruby-dev:38005]. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Remove obsolete silence_warnings wrappers from TZInfo-dependent tests in ↵Levin Alexander2009-02-143-274/+178
| | | | ActiveSupport [#1914 state:resolved]
* Array#wrap should use #to_ary so association collections and named scopes ↵Will Bryant2009-02-101-0/+10
| | | | | | | | 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-0/+4
| | | | non-standard %z directive [#1899 state:resolved]
* Make TimeWithZone#to_formatted_s an alias to TimeWithZone#to_s [#1796 ↵Levin Alexander2009-02-081-0/+6
| | | | state:resolved]
* Introduce Array.wrap(foo) to wrap the argument in an array unless it's ↵Jeremy Kemper2009-02-061-0/+24
| | | | 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-01-181-2/+2
|
* Change Object#try to raise NoMethodError on private methods and always ↵Pratik Naik2009-01-131-9/+10
| | | | return nil when Object is nil [Pratik Naik, Lawrence Pit]
* TimeWithZone#xmlschema accepts optional fraction_digits argument [#1725 ↵Nicholas Dainty2009-01-111-0/+9
| | | | state:resolved]
* Object#tap for Ruby < 1.8.7Jeremy Kemper2009-01-071-0/+8
|