aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext
Commit message (Collapse)AuthorAgeFilesLines
* Added documentation of the new :prefix option.Daniel Schierbeck2008-10-191-0/+25
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Made the :prefix option on Module#delegate accept a custom prefix.Daniel Schierbeck2008-10-191-1/+1
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Added :prefix option to Module#delegate.Daniel Schierbeck2008-10-191-1/+3
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Added deprecated warning messages to Float#months and Float#years deprications.Tom Lea2008-10-131-2/+2
|
* Deprecated Float#years and Float#months, moved Numeric#years and ↵Tom Lea2008-10-135-10/+76
| | | | Numeric#months into Integer.
* Time#advance recognizes fractional days and weeks [#970 state:resolved]Tom Lea2008-10-131-0/+10
|
* Made i18n simple backend able to store false values (and not confuse them ↵Tarmo Tänav2008-10-091-1/+2
| | | | | | | | | with nil or lack of value) Implemented support.array.skip_last_comma i18n key for Array#to_sentence, this also tests the ability to store false. Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Merge docrailsPratik Naik2008-10-053-25/+48
|
* Provide alternate implementation of Object#subclasses_of for JRubyNick Sieger2008-10-031-12/+33
| | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1144 state:committed]
* slice now returns indifferent hash if called on oneadam2008-09-231-1/+1
| | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1096 state:committed]
* Deprecated String#chars in favor of String#mb_chars.Manfred Stienstra2008-09-211-1/+4
|
* Improve documentation.Manfred Stienstra2008-09-211-13/+10
|
* Change all calls to String#chars to String#mb_chars.Manfred Stienstra2008-09-211-5/+5
|
* Simplify ActiveSupport::Multibyte and make it run on Ruby 1.9.Manfred Stienstra2008-09-213-68/+85
| | | | | | * Unicode methods are now defined directly on Chars instead of a handler * Updated Unicode database to Unicode 5.1.0 * Improved documentation
* Fixed Time#end_of_quarter to not blow up on May 31st [#313 state:resolved]Carlos Brando2008-09-191-1/+1
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Introduce convenience methods past?, today? and future? for Date and Time ↵Clemens Kofler2008-09-143-24/+68
| | | | classes to facilitate Date/Time comparisons.
* Make sure the permissions check file is closed before being unlinked.Michael Koziarski2008-09-141-1/+1
| | | | [#1035 state:committed]
* Merge docrailsPratik Naik2008-09-131-6/+6
|
* Ensure Hash#except is allowed on a frozen hash. References #382Mislav Marohnić2008-09-131-1/+1
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fix ActiveRecord::Base.quote_bound_value for ActiveSupper::Multibyte::Chars ↵Manfred Stienstra2008-09-112-0/+15
| | | | | | | | | | values. - Adds String#acts_like_string? - Adds Chars#acts_like_string? Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1029 state:committed]
* Added Inflector#parameterize for easy slug generation ("Donald E. ↵David Heinemeier Hansson2008-09-101-0/+19
| | | | Knuth".parameterize => "donald-e-knuth") #713 [Matt Darby]
* No local variable in the global namespace plzDavid Heinemeier Hansson2008-09-091-3/+2
|
* Fixed that REXML fix would break on earlier versions of ruby (Frederick ↵David Heinemeier Hansson2008-09-091-1/+3
| | | | Cheung) [state:resolved #987]
* Revert "Remove the Version check as it's not always available."David Heinemeier Hansson2008-09-091-20/+22
| | | | This reverts commit 6e2851d4261fbbea00e8e74802a507a89af80e2f.
* Remove the Version check as it's not always available.Michael Koziarski2008-09-091-22/+20
|
* Fix indentation mismatchJeremy Kemper2008-09-081-1/+1
|
* Don't shadow arg with block varJeremy Kemper2008-09-081-2/+2
|
* BigDecimal to_s and yaml housekeepingJeremy Kemper2008-09-081-22/+18
|
* Ruby 1.9 compat: use method_defined? instead of instance_methods.include? ↵Jeremy Kemper2008-09-061-3/+6
| | | | Don't encourage args abuse by flattening.
* Handle the case where there is no ivar set.Michael Koziarski2008-09-041-1/+1
| | | | This happens on jruby due to a bug, but also on historically marshalled data.
* Add each_with_object from 1.9 for a more convenient alternative to inject.Adam Keys2008-09-031-1/+21
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#962 state:committed]
* Whitespace.Clemens Kofler2008-09-031-5/+5
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Database connections are now pooled, one pool per #establish_connection call.Jeremy Kemper2008-09-027-154/+201
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pools start out empty and grow as necessary to a maximum size (default is 5, configure size with key 'pool' in your database configuration). If no connections are available, a thread will wait up to a 'wait_timeout' time (default is 5 seconds). Connections are verified and reset when checked out from the pool (usually upon first access to ActiveRecord::Base.connection), and returned back to the pool after each request. If you would like to use connection pools outside of ActionPack, there is an ActiveRecord::Base.connection_pool method that gives you access to the pool, and you can manually checkout/checkin connections, or supply a block to ActiveRecord::Base.connection_pool.with_connection which takes care of the checkout/checkin for you. [#936 state:resolved]
| * Merge rexml-expansion-fix gem into activesupport.Michael Koziarski2008-09-021-0/+35
| | | | | | | | | | Addresses the security issue documented at: * http://www.ruby-lang.org/en/news/2008/08/23/dos-vulnerability-in-rexml/
| * Get rid of 'Object#send!'. It was originally added because it's in Ruby 1.9, ↵Jeremy Kemper2008-08-312-6/+1
| | | | | | | | | | | | | | | | | | | | but it has since been removed from 1.9. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> Conflicts: actionpack/test/controller/layout_test.rb
| * Move some core extension methods into a module under the ↵Hongli Lai (Phusion)2008-08-294-148/+165
| | | | | | | | | | | | | | | | ActiveSupport::CoreExtensions namespace, instead of extending core classes directly. This is more friendly for API reference generators. [#915 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* | Add synchronization to connection pool alsoNick2008-08-291-2/+2
| |
* | Module#synchronize: Add testcase to ensure that singleton methods can be wrappedNick2008-08-291-1/+0
| |
* | Add method punctuation handling to #synchronizeNick2008-08-291-3/+5
| |
* | Adds Module#synchronize for easier method-level synchronization.Nick2008-08-292-0/+36
|/
* Date#freeze bug doesn't affect Ruby 1.9Jeremy Kemper2008-08-281-7/+11
|
* Date#freeze bug doesn't affect Ruby 1.9Jeremy Kemper2008-08-281-8/+17
|
* Reinstate Range#step default argument.Bradford Folkens2008-08-271-2/+2
| | | | | | [#595 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Moved Logger extensions into core_extJoshua Peek2008-08-271-1/+128
|
* Fix Ruby's Time marshaling bug in pre-1.9 versions of Ruby: utc instances ↵Luca Guidi2008-08-271-1/+22
| | | | are now correctly unmarshaled with a utc zone instead of the system local zone [#900 state:resolved]
* Work around frozen Date memoizationJeremy Kemper2008-08-251-0/+16
|
* Mark Class as not being duplicable. [#829 state:resolved]Frederick Cheung2008-08-211-0/+6
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Consistently use the framework's configured logger and avoid reverting to ↵Joshua Peek2008-08-181-4/+4
| | | | RAILS_DEFAULT_LOGGER unless necessary.
* Make File.atomic_write copy the original permissions or use the directories ↵Joshua Peek2008-08-062-20/+50
| | | | default.
* Performance: grouping helpers should use yield instead of block as argument. ↵miloops2008-07-301-5/+5
| | | | [#723 state:resolved]