aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
Commit message (Collapse)AuthorAgeFilesLines
* Update Chu's name in changelogsJeremy Kemper2007-12-101-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8349 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Missed commit. References #10395.Jeremy Kemper2007-12-091-0/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8344 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Move #to_query methods where they ought to belong. Closes #10395 [Chu Yeow]Jeremy Kemper2007-12-093-17/+17
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8343 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* to_sentence returns self[0].to_s instead of just self[0] for arrays of ↵Jeremy Kemper2007-12-092-2/+4
| | | | | | length 1. Closes #10390 [Chu Yeow, mrj] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8340 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactor of Hash#symbolize_keys! to use Hash#replace. Closes #10420 [ReinH]Rick Olson2007-12-082-7/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8333 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix HashWithIndifferentAccess#to_options! so it doesn't clear the options ↵Rick Olson2007-12-083-0/+11
| | | | | | hash. Closes #10419 [ReinH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8332 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make ready for 2.0.1David Heinemeier Hansson2007-12-072-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8330 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Preparing for release shortlyDavid Heinemeier Hansson2007-12-062-7/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8321 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix incorrect superclass in documentation for alias_attribute. Closes #7171 ↵Marcel Molina2007-12-051-1/+1
| | | | | | [tzaharia] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8312 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document that the delegate method can delegate to things other than just ↵Marcel Molina2007-12-051-0/+20
| | | | | | methods. Closes #7184 [dcmanges, jeremymcanally] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8311 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix typos (closes #10378)David Heinemeier Hansson2007-12-052-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8301 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document Date conversions. Closes #10368 [chuyeow]Michael Koziarski2007-12-051-4/+34
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8279 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Enhance documentation for Active Support's Time Conversion functions. ↵Michael Koziarski2007-12-051-3/+46
| | | | | | [rsanheim, jeremymcanally, chuyeow] Closes #7164 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8278 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't escape forward slashes with String#to_json, our unicode encoding of < ↵Michael Koziarski2007-12-022-4/+3
| | | | | | and > prevent the XSS problems. [tpope] Closes #10273 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8255 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix potential extra space in Array#to_sentence. Closes #10327 [kamal]Michael Koziarski2007-12-022-6/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8251 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Prep for RC2David Heinemeier Hansson2007-11-292-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8233 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Array#from and Array#to that behaves just from String#from and ↵David Heinemeier Hansson2007-11-274-0/+46
| | | | | | String#to [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8224 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix that empty collections should be treated as empty arrays regardless of ↵David Heinemeier Hansson2007-11-253-13/+26
| | | | | | whitespace for Hash#from_xml (closes #10255) [adamj] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8202 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Honor Ruby's default calendar reform setting when creating DateTime objects ↵Geoff Buesing2007-11-248-5/+19
| | | | | | via ActiveRecord's Time -> DateTime overflow, Time#time_with_datetime_fallback, Time#to_datetime, Date#to_datetime and String#to_datetime. Closes #10201 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8199 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Change Time and DateTime #end_of_month to return last second of month ↵Geoff Buesing2007-11-245-10/+10
| | | | | | instead of beginning of last day of month. Closes #10200 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8198 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Clarify Array#in_groups_of implementation, don't dup unless needed, only ↵Jeremy Kemper2007-11-171-7/+20
| | | | | | require enumerator once. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8161 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Speedup String#blank? and remove some overspecified tests.Jeremy Kemper2007-11-143-47/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8137 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove things that trip up RDocDavid Heinemeier Hansson2007-11-091-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8122 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Prepare versions for RC1David Heinemeier Hansson2007-11-091-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8121 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Standardize on using hyphens rather than colons to separate option names ↵Marcel Molina2007-11-062-4/+4
| | | | | | from their explanation in documentation. Replace + with tt tags. Closes #8732. [ryanb] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8106 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add documentation for Hash#diff. Closes #9306 [tarmo]Marcel Molina2007-11-062-0/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8093 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Cater for DST changes when converting Times to DateTimes. Closes #10068 ↵Michael Koziarski2007-11-056-10/+43
| | | | | | [gbuesing] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8076 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add new superclass_delegating_accessors. Similar to class inheritable ↵Michael Koziarski2007-10-294-0/+148
| | | | | | attributes but with subtly different semantics. [Koz, tarmo] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8056 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Change JSON to encode %w(< > &) as 4 digit hex codes to be in compliance ↵Rick Olson2007-10-293-5/+8
| | | | | | with the JSON spec. Closes #9975 [josh, chuyeow, tpope] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8050 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure default_test is tested for ActiveSupport::TestCase tooMichael Koziarski2007-10-261-3/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8041 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make Default Test work with both ruby 1.8.4 and 1.8.6. [DrMark] Closes #10003Michael Koziarski2007-10-262-1/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8040 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix JSON encoding/decoding bugs dealing with /'s. Closes #9990 [Rick, ↵Rick Olson2007-10-265-19/+25
| | | | | | theamazingrando] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8026 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce TestCase subclasses for testing rails applications allowing tests ↵Michael Koziarski2007-10-265-0/+24
| | | | | | to be DRY'd up a bit and to provide a path toward tidying up our monkeypatching of test/unit. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8022 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add an ignored options parameter to ActiveSupport::JSON::Variable#to_json to ↵Michael Koziarski2007-10-251-1/+1
| | | | | | make sure it duck-types nicely with the other JSON types. [Pascal Belloncle] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8013 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document Enumerable and Hash #to_json. Add test for hash with integer key. ↵Jeremy Kemper2007-10-244-0/+42
| | | | | | Closes #9970. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8010 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Hash#to_xml handles symbol values. Closes #9954.Jeremy Kemper2007-10-233-2/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7997 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Hash#symbolize_keys behaves well with integer keys. Closes #9890.Jeremy Kemper2007-10-163-3/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7945 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't assume ActiveSupport module is already definedJeremy Kemper2007-10-151-5/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7917 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Multibyte: String#slice supports regexp argument. Closes #9646.Jeremy Kemper2007-10-153-0/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7910 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add a time to duplicable testsJeremy Kemper2007-10-151-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7907 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* object.duplicable? returns true if object.dup is safe. False for nil, true, ↵Jeremy Kemper2007-10-153-0/+61
| | | | | | false, symbols, and numbers; true otherwise. References #9333. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7906 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Time, Date and DateTime #advance accept :weeks option. Closes #9866.Jeremy Kemper2007-10-137-7/+22
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7868 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix Time#years_ago and #years_since from leap days. Closes #9865.Jeremy Kemper2007-10-133-2/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7867 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Time and DateTime#advance accept :hours, :minutes, and :seconds options. ↵Jeremy Kemper2007-10-135-7/+35
| | | | | | Closes #9825. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7866 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't shadow local var with block varJeremy Kemper2007-10-131-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7865 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use __FILE__ and __LINE__ for BufferedLogger severity methodsJeremy Kemper2007-10-131-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7864 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix Date#years_ago and #years_since from leap days. Closes #9864.Jeremy Kemper2007-10-134-2/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7863 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactor Time and Date#months_since and #months_ago to use #advance. Closes ↵Jeremy Kemper2007-10-136-42/+22
| | | | | | #9863. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7862 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update versions here tooDavid Heinemeier Hansson2007-10-121-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7843 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Bundle xml-simple 1.0.11Jeremy Kemper2007-10-101-0/+1021
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7830 5ecf4fe2-1ee6-0310-87b1-e25e094e27de