aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
Commit message (Collapse)AuthorAgeFilesLines
* Added ActiveSupport::BufferedLogger as a duck-typing alternative (albeit ↵David Heinemeier Hansson2007-09-254-0/+86
| | | | | | with no formatter) to the Ruby Logger, which provides a very nice speed bump (inspired by Ezra's buffered logger) [DHH] Changed the default logger from Ruby's own Logger with the clean_logger extensions to ActiveSupport::BufferedLogger for performance reasons [DHH]. (You can change it back with config.logger = Logger.new(/path/to/log, level).) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7626 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Object#instance_exec produces fewer garbage methods.Jeremy Kemper2007-09-243-5/+35
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7621 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Decode json strings as Dates/Times if they're using a YAML-compatible ↵Rick Olson2007-09-243-8/+29
| | | | | | format. Closes #9614 [Rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7613 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont need all of test/unit (closes #6673) [zenspider/josh]David Heinemeier Hansson2007-09-231-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7602 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Object.subclasses_of includes anonymous subclasses.Jeremy Kemper2007-09-234-8/+22
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7590 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More tests (closes #7066) [sethladd]David Heinemeier Hansson2007-09-221-0/+15
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7586 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improve tests (closes #7166) [zackchandler]David Heinemeier Hansson2007-09-221-2/+33
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7582 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that pluralizing an empty string should return the same empty string, ↵David Heinemeier Hansson2007-09-223-1/+7
| | | | | | not "s" (closes #7720) [josh] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7569 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added call to inspect on non-string classes for the logger (closes #8533) ↵David Heinemeier Hansson2007-09-223-1/+9
| | | | | | [codahale] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7565 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow frameworks to be required by their gem name (closes #8845) [drnic]David Heinemeier Hansson2007-09-221-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7560 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix tests across DST (closes #9020) [mpalmer]David Heinemeier Hansson2007-09-221-5/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7557 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixes rake annotations to search erb and builder files as well (closes ↵David Heinemeier Hansson2007-09-221-1/+1
| | | | | | #9150) [m.langenberg] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7553 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecation: remove deprecated :mday option from Time, Date, and ↵Jeremy Kemper2007-09-184-7/+9
| | | | | | DateTime#change. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7508 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix JSON decoder with nested quotes and commas. Closes #9579.Jeremy Kemper2007-09-173-4/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7506 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Hash#to_xml doesn't double-unescape. Closes #8806.Jeremy Kemper2007-09-173-9/+31
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7505 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Missing file from previous patchDavid Heinemeier Hansson2007-09-151-0/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7490 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Array#rand (closes #9170) [norbert]David Heinemeier Hansson2007-09-155-3/+35
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7486 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Some 1.9 forward compatibilityJeremy Kemper2007-09-1424-87/+116
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7474 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecation: removed Reloadable.Jeremy Kemper2007-09-144-184/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7473 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove unused HashCachingJeremy Kemper2007-09-112-141/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7467 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix activesupport atomic_write tests when Dir.tmpdir is on another ↵Michael Koziarski2007-09-061-2/+2
| | | | | | partition. Closes #8573 [tpope] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7412 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow Float#round to take a precision argument. Closes #8626 [norbert]Michael Koziarski2007-09-023-0/+52
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7401 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make the utf-handler return the correct value for non-matching regular ↵Michael Koziarski2007-08-053-2/+6
| | | | | | expressions. Closes #9049 [manfred] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7273 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add ljust, rjust and center to utf8-handler. Closes #9165 [manfred]Michael Koziarski2007-08-053-0/+119
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7272 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix Time#advance bug when trying to advance a year from leap day. Closes ↵Rick Olson2007-08-038-11/+23
| | | | | | #8655 [gbuesing] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7262 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add support for []= on ActiveSupport::Multibyte::Chars. Closes #9142. [ewan, ↵Marcel Molina2007-07-313-0/+74
| | | | | | manfred] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7257 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* tiny doc patches [lifo]Rick Olson2007-07-251-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7236 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix load-order inconsistency (closes #9081) [themug]David Heinemeier Hansson2007-07-241-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7225 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactored in use of extract_options! (closes #9079) [josh]David Heinemeier Hansson2007-07-244-6/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7220 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Array#extract_options! to encapsulate the pattern of getting an ↵David Heinemeier Hansson2007-07-244-0/+32
| | | | | | options hash out of a variable number of parameters (closes #8759) [norbert] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7217 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* assert_difference belongs in Assertions, not forced onto TestCase (closes ↵David Heinemeier Hansson2007-07-241-1/+1
| | | | | | #8894) [norbert] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7213 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* fix one line formatting bugMichael Koziarski2007-07-191-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7196 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Let alias_attribute work with attributes with initial capital letters ↵Michael Koziarski2007-07-193-3/+28
| | | | | | (legacy columns etc). Closes #8596 [mpalmer] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7195 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow for optional messages on assert_difference [nicwilliams] Closes #8928Tobias Lütke2007-07-091-4/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7174 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Support for non heterogeneous arrays when serializing to xml. Unless ↵Tobias Lütke2007-07-092-10/+30
| | | | | | guessable from array name the type name will be included as attribute git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7173 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Hash#except which is the inverse of Hash#slice -- return the hash ↵David Heinemeier Hansson2007-07-094-1/+41
| | | | | | except the keys that are specified [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7172 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improve various test coverage. Closes #8676 [kamal]Jeremy Kemper2007-06-257-1/+52
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7117 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for pluralization with a different starting letter than the ↵David Heinemeier Hansson2007-06-234-3/+15
| | | | | | singular version (cow/kine) (closes #4929) [norri_b/hasmanyjosh] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7092 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Demote Hash#to_xml to use XmlSimple#xml_in_string so it can't read files or ↵Jeremy Kemper2007-06-232-1/+24
| | | | | | stdin. Closes #8453. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7086 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove deprecated Hash#create_from_xml. Use Hash#from_xml.Jeremy Kemper2007-06-231-5/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7085 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure clean_logger fixes are 1.8.2 compatible [mislav] Closes #8396Michael Koziarski2007-06-223-38/+50
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7083 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added proper handling of arrays. Closes #8537 [hasmanyjosh]Rick Olson2007-06-215-10/+86
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7074 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Oh please. References #8646.Jeremy Kemper2007-06-141-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7021 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Maybe passing an explicit offset mollifies CIA. References #8646.Jeremy Kemper2007-06-141-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7020 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improve Time and Date test coverage. Closes #8646.Jeremy Kemper2007-06-144-34/+63
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7019 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Clean up junk test. Closes #7973 [Rob Sanheim]Jeremy Kemper2007-06-082-31/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6976 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* revert [6924]Rick Olson2007-06-055-77/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6946 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add Date#since, ago, beginning_of_day, and end_of_day. Date + seconds works ↵Jeremy Kemper2007-06-045-5/+48
| | | | | | now. Closes #8575. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6937 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* String#to_time overflows to DateTime. Add String#to_datetime. Closes #8572.Jeremy Kemper2007-06-043-1/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6935 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Date.yesterday and .tomorrow. Closes #8571.Jeremy Kemper2007-06-043-124/+142
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6934 5ecf4fe2-1ee6-0310-87b1-e25e094e27de