aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Change Time and DateTime #end_of_month to return last second of month ↵Geoff Buesing2007-11-242-2/+2
| | | | | | 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-141-8/+2
| | | | 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-061-0/+8
| | | | 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-053-4/+13
| | | | | | [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-292-0/+41
| | | | | | 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-291-3/+4
| | | | | | 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 Default Test work with both ruby 1.8.4 and 1.8.6. [DrMark] Closes #10003Michael Koziarski2007-10-261-1/+2
| | | | 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-262-10/+12
| | | | | | 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-264-0/+19
| | | | | | 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-242-0/+39
| | | | | | 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-231-0/+5
| | | | 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-161-3/+3
| | | | 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-151-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7910 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* object.duplicable? returns true if object.dup is safe. False for nil, true, ↵Jeremy Kemper2007-10-151-0/+37
| | | | | | 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-133-3/+4
| | | | 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-131-2/+2
| | | | 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-132-4/+8
| | | | | | 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-131-2/+2
| | | | 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-132-42/+8
| | | | | | #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
* Update bundled xml-simple to 1.0.11 and prefer installed gemsJeremy Kemper2007-10-101-1021/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7829 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Rebundle Builder 2.1.2 but prefer a newer RubyGem if available.Jeremy Kemper2007-10-1012-14/+1059
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7828 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Style update for new Range extensionsJeremy Kemper2007-10-094-26/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7818 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Hash is ordered in Ruby 1.9Jeremy Kemper2007-10-091-17/+22
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7817 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* * Add Range#overlaps?(range), Range#include?(range), and Range#step without ↵Michael Koziarski2007-10-084-0/+69
| | | | | | a block. [brandon] Closes #9746 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7800 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Documentation for assert_valid_keys. Closes #7264 [tarmo, rsanheim]Michael Koziarski2007-10-081-0/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7792 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Builder unbundle message directs to Bulk updating Gem source index for: ↵Jeremy Kemper2007-10-081-0/+7
| | | | | | http://gems.rubyforge.org git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7789 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correct BufferedLogger#level? checks. Closes #9806.Jeremy Kemper2007-10-071-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7775 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Reference current fast_xs URLJeremy Kemper2007-10-071-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7774 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* String#to_xs uses the fast_xs extension if available for Builder speedup.Jeremy Kemper2007-10-076-3/+18
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7773 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce BasicObject as Builder::BlankSlate for Ruby 1.9 forward compatibility.Jeremy Kemper2007-10-073-3/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7762 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Unbundle Builder in favor of a gem dependency.Jeremy Kemper2007-10-076-723/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7761 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Disambiguate Time, Date, and DateTime#to_json formatting. Closes #9750.Jeremy Kemper2007-10-053-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7746 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Bump versions for 1.2.4 release.Jeremy Kemper2007-10-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7744 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Disabling auto_flushing still flushes when the buffer hits a maximum size, ↵Jeremy Kemper2007-10-041-11/+10
| | | | | | as a failsafe against memory-gobbling. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7739 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Hash#to_json takes :only or :except options to specific or omit certain hash ↵Jeremy Kemper2007-10-0414-24/+28
| | | | | | keys. Enumerable#to_json passes through its options to each element. Closes #9751. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7736 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Explicitly convert the buffer array to a string before writing to head off ↵Jeremy Kemper2007-10-031-1/+1
| | | | | | compatibility issues with outputs that don't fully quack like an IO. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7734 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* BufferedLogger#auto_flushing = N flushes the log every N messages. Buffers ↵Jeremy Kemper2007-10-031-7/+29
| | | | | | with an array instead of string. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7732 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat, consistent load pathsJeremy Kemper2007-10-0223-59/+59
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed Date#xmlschema for dates outside the range of what can be created with ↵David Heinemeier Hansson2007-10-011-0/+4
| | | | | | Time (closes #9744) [gbuesing] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7707 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that La Paz was included in -25200 and -14400 offsets when it should ↵David Heinemeier Hansson2007-09-301-2/+2
| | | | | | only be in -14400 (closes #9735) [bermi] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7700 5ecf4fe2-1ee6-0310-87b1-e25e094e27de