aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
Commit message (Collapse)AuthorAgeFilesLines
* Fixed that Array#to_sentence will return "" on an empty array instead of ", ↵David Heinemeier Hansson2006-03-023-0/+8
| | | | | | and" (closes #3842, #4031) [rubyonrails@beautifulpixel.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3739 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make Enumerable#group_by return a Hash (sacrificing the preservation of ↵Marcel Molina2006-03-011-8/+3
| | | | | | ordering) so that it is more compatible with the version that is in Ruby 1.9 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3727 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add Enumerable#group_by and Array#in_groups_ofMarcel Molina2006-03-015-2/+116
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3726 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Have to use inheritanceDavid Heinemeier Hansson2006-03-011-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3715 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Kernel#daemonize to turn the current process into a daemon that can be ↵David Heinemeier Hansson2006-03-017-95/+118
| | | | | | killed with a TERM signal [DHH] Refactored stuff lingering in kernel.rb to the appropriate places git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3714 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add around methods to Logger. Closes #3809Michael Koziarski2006-02-262-0/+21
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3670 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove ::Controllers related cruft; fix AP testsNicholas Seckar2006-02-262-9/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3668 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Time#beginning_of_quarter (closes #3607) [cohen.jeff@gmail.com]David Heinemeier Hansson2006-02-263-0/+15
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3659 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed rdoc.options use all over (closes #3639) [andy@tinnedfruit.org]David Heinemeier Hansson2006-02-261-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3656 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added calculations: Base.count, Base.average, Base.sum, Base.minimum, ↵David Heinemeier Hansson2006-02-251-11/+23
| | | | | | Base.maxmium, and the generic Base.calculate. All can be used with :group and :having. Calculations and statitics need no longer require custom SQL. #3958 [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3646 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix Object.subclasses_of to only return currently defined objects (closes ↵David Heinemeier Hansson2006-02-193-2/+13
| | | | | | #3882) [Jonathan Viney <jonathan@bluewire.net.nz>] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3607 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix constantize to handle names beginning with '::'. Closes #3803.Nicholas Seckar2006-02-113-2/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3571 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Major components cleanup and speedup. Closes #3527.Jeremy Kemper2006-02-091-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3563 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* A more aesthetically pleasing implementation and changelog entryScott Barron2006-02-082-3/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3549 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make String#last behave more like Array#last, i.e.Scott Barron2006-02-082-0/+7
| | | | | | | | "f".last(3) => "f" not "f".last(3) => nil git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3548 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update versions to match latest from stableDavid Heinemeier Hansson2006-02-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3543 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* added some (pointless) test cases to dependency loading, the more the merrierTobias Lütke2006-02-042-8/+39
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3537 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added delegation support to Module that allows multiple delegations at once ↵David Heinemeier Hansson2006-02-044-1/+77
| | | | | | (unlike Forwardable in the stdlib) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3535 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Just go with Subclasses instead of OnlySubclassesDavid Heinemeier Hansson2006-02-041-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3534 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Just go with Subclasses instead of OnlySubclassesDavid Heinemeier Hansson2006-02-042-9/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3533 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed Class.remove to not blow up on inheritanceDavid Heinemeier Hansson2006-02-041-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3532 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix Reloadable to handle the case where a class that has been 'removed' has ↵Nicholas Seckar2006-02-043-7/+9
| | | | | | not yet been garbage collected. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3528 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't allow Reloadable to be included into ModulesNicholas Seckar2006-02-032-1/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3527 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove LoadingModuleNicholas Seckar2006-02-039-268/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3526 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add LoadingModule.clear! back temporarilyNicholas Seckar2006-02-021-0/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3524 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Reloadable::OnlySubclassesNicholas Seckar2006-02-022-6/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3522 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add Reloadable::OnlySubclasses which handles the common case where a base ↵Nicholas Seckar2006-02-023-2/+48
| | | | | | class should not be reloaded, but its subclasses should be. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3521 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Further improvements to reloading codeNicholas Seckar2006-02-027-35/+84
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3519 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added reusable reloading support through the inclusion of the Relodable ↵David Heinemeier Hansson2006-01-2927-66/+261
| | | | | | module that all subclasses of ActiveRecord::Base, ActiveRecord::Observer, ActiveController::Base, and ActionMailer::Base automatically gets [DHH]. Added auto-loading support for classes in modules, so Conductor::Migration will look for conductor/migration.rb and Conductor::Database::Settings will look for conductor/database/settings.rb [Nicholas Seckar]. Refactored extensions to module, class, and object in active support [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3493 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add Object#instance_exec and Proc#bindSam Stephenson2006-01-235-0/+40
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3469 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix merge and dup for hashes with indifferent access (closes #3404) ↵David Heinemeier Hansson2006-01-233-0/+29
| | | | | | [kenneth.miller@bitfield.net] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3468 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix the requires in option_merger_test to unbreak AS testsSam Stephenson2006-01-212-2/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3458 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make HashWithIndifferentAccess#update behave like Hash#update by returning ↵Marcel Molina2006-01-083-2/+30
| | | | | | the hash. Closes #3419, #3425 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3388 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add ActiveSupport::JSON and Object#to_json for converting Ruby objects to ↵Sam Stephenson2005-12-2711-1/+219
| | | | | | JSON strings git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3356 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add Object#with_options for DRYing up multiple calls to methods having ↵Sam Stephenson2005-12-155-0/+73
| | | | | | shared options git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3314 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Handle mutual dependencies with .rb suffix.Jeremy Kemper2005-11-283-15/+15
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3193 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce Dependencies.warnings_on_first_load setting. If true, enables ↵Jeremy Kemper2005-11-243-2/+11
| | | | | | warnings on first load of a require_dependency. Otherwise, loads without warnings. Disabled (set to false) by default. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3190 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Sever infinite loop for mutual dependencies. Closes #2997.Jeremy Kemper2005-11-245-7/+38
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3181 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dependencies: set load_file_name = file_name if it ends in .rbJeremy Kemper2005-11-231-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3176 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Enable warnings on first load only. File which are loaded but raise an ↵Jeremy Kemper2005-11-235-18/+91
| | | | | | exception are not added to loaded set. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3169 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r3241@asus: jeremy | 2005-11-20 23:26:28 -0800Jeremy Kemper2005-11-211-0/+2
| | | | | | | Active Support is warnings-safe. References #1792. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3135 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r3240@asus: jeremy | 2005-11-20 23:22:34 -0800Jeremy Kemper2005-11-214-34/+48
| | | | | | | Introduce enable_warnings counterpart to silence_warnings. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3134 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r3239@asus: jeremy | 2005-11-20 23:21:37 -0800Jeremy Kemper2005-11-211-5/+5
| | | | | | | Test for absence of instance vars rather than nil so we don't get a warning. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3133 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r3219@asus: jeremy | 2005-11-20 03:07:19 -0800Jeremy Kemper2005-11-212-12/+17
| | | | | | | silence necessary warnings in logger test. guard against multiple requires in kernel test. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3131 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r3218@asus: jeremy | 2005-11-20 03:06:32 -0800Jeremy Kemper2005-11-211-0/+2
| | | | | | | alias old format_message before overriding it git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3130 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r3217@asus: jeremy | 2005-11-20 03:06:01 -0800Jeremy Kemper2005-11-211-4/+2
| | | | | | | warnings-safe inherited alias for class_inheritable_attributes git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3129 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r3216@asus: jeremy | 2005-11-20 03:05:20 -0800Jeremy Kemper2005-11-212-55/+29
| | | | | | | simplify cattr_ and mattr_accessor git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3128 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r3215@asus: jeremy | 2005-11-20 02:05:56 -0800Jeremy Kemper2005-11-215-9/+5
| | | | | | | Eliminate double-requires due to Ruby seeing different paths to the same file. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3127 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r3214@asus: jeremy | 2005-11-20 02:03:05 -0800Jeremy Kemper2005-11-211-48/+48
| | | | | | | Parenthesize args in Inflections git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3126 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r3213@asus: jeremy | 2005-11-20 02:01:28 -0800Jeremy Kemper2005-11-211-0/+2
| | | | | | | Turn on warnings for tests. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3125 5ecf4fe2-1ee6-0310-87b1-e25e094e27de