aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
Commit message (Collapse)AuthorAgeFilesLines
* Make assert_valid_keys slightly more lenientDavid Heinemeier Hansson2005-09-091-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2166 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added String#at, String#from, String#to, String#first, String#last in ↵David Heinemeier Hansson2005-09-031-0/+14
| | | | | | ActiveSupport::CoreExtensions::String::Access to ease access to individual characters and substrings in a string serving basically as human names for range access. Added easy extendability to the inflector through Inflector.inflections (using the Inflector::Inflections singleton class) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2110 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make Time#last_month work when invoked on the 31st of a month.Jamis Buck2005-08-311-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2083 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add Time.days_in_month, and make Time#next_month work when invoked on the ↵Jamis Buck2005-08-311-0/+24
| | | | | | 31st of a month git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2082 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that Time#midnight would have a non-zero usec on some platforms #1836Jamis Buck2005-07-311-1/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1959 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed inflections of "index/indices" #1766 [damn_pepe@gmail.com]David Heinemeier Hansson2005-07-221-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1881 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Factor Fixnum and Bignum extensions into Integer classNicholas Seckar2005-07-191-4/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1863 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add ordinalize to Fixnum and Bignum instancesNicholas Seckar2005-07-181-0/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1855 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added stripping of _id to String#humanize, so "employee_id" becomes ↵David Heinemeier Hansson2005-07-171-0/+1
| | | | | | "Employee" #1574 [Justin French] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1854 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Fixnum#ordinalize to turn 1.ordinalize to "1st", 3.ordinalize to ↵David Heinemeier Hansson2005-07-171-1/+38
| | | | | | "3rd", and 10.ordinalize to "10th" and so on #1724 [paul@cnt.org] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1852 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added more efficient implementation of the development mode reset of classes ↵David Heinemeier Hansson2005-07-071-1/+29
| | | | | | #1638 [Chris McGrath] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1761 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More inflector fixes #1608David Heinemeier Hansson2005-07-051-14/+18
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1699 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More inflector fixes #1599 [foamdino@gmail.com]David Heinemeier Hansson2005-07-041-1/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1662 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More inflectoring #1490David Heinemeier Hansson2005-07-021-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1616 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed photo/photos #1583David Heinemeier Hansson2005-07-021-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1615 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added new rules to the Inflector to deal with more unusual plurals ↵David Heinemeier Hansson2005-07-011-1/+11
| | | | | | mouse/louse => mice/lice, information => information, ox => oxen #1571 [foamdino@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1582 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed memory leak with Object#remove_subclasses_of, which inflicted a Rails ↵David Heinemeier Hansson2005-06-301-0/+18
| | | | | | application running in development mode with a ~20KB leak per request #1289 [c.r.mcgrath@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1569 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added tests for whiny nil #1476 [court3nay/marcel]David Heinemeier Hansson2005-06-251-21/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1507 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Increased accuracy of 1.year by accounting for leap years. The time ↵Jeremy Kemper2005-06-241-1/+1
| | | | | | extensions are not meant to be super-precise but this seems worth it since otherwise you lose a lot of days doing 40.years.ago. Closes #1488 [tuxie@dekadance.se] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1499 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved performance of Routes generation by a factor of 5 #1434 [Nicholas ↵David Heinemeier Hansson2005-06-242-0/+29
| | | | | | Seckar] Added named routes (NEEDS BETTER DESCRIPTION) #1434 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1496 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Fix/Bignum#multiple_of? which returns true on 14.multiple_of?(7) and ↵David Heinemeier Hansson2005-06-211-0/+15
| | | | | | false on 16.multiple_of?(7) #1464 [Thomas Fuchs] Added even? and odd? to work with Bignums in addition to Fixnums #1464 [Thomas Fuchs] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1462 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Forgot to actually add the whiny nilDavid Heinemeier Hansson2005-06-201-0/+40
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1455 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed Time#at_beginning_of_week returned the next Monday instead of the ↵David Heinemeier Hansson2005-06-161-0/+7
| | | | | | previous one when called on a Sunday #1403 [jean.helou@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1431 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Needed for testDavid Heinemeier Hansson2005-05-201-0/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1335 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed the Inflector to underscore strings containing numbers, so ↵David Heinemeier Hansson2005-05-192-2/+8
| | | | | | Area51Controller becomes area51_controller #1176 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1330 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that HashWithIndifferentAccess stringified all keys including symbols, ↵David Heinemeier Hansson2005-05-191-0/+6
| | | | | | ints, objects, and arrays #1162 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1329 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed Time#last_year to go back in time, not forward #1278 [fabien@odilat.com]David Heinemeier Hansson2005-05-191-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1319 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed the pluralization of analysis to analyses #1295 ↵David Heinemeier Hansson2005-05-191-0/+1
| | | | | | [seattle@rootimage.msu.edu] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1314 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that Time.local(2005,12).months_since(1) would raise "ArgumentError: ↵David Heinemeier Hansson2005-05-191-0/+2
| | | | | | argument out of range" #1311 [jhahn@niveon.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1308 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added commented out tests for staying either singular or plural on inflectionDavid Heinemeier Hansson2005-04-301-0/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1252 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Tests for ASDavid Heinemeier Hansson2005-04-101-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1138 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that in some circumstances controllers outside of modules may have ↵David Heinemeier Hansson2005-04-102-4/+37
| | | | | | hidden ones inside modules. For example, admin/content might have been hidden by /content. #1075 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1125 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed inflection of perspectives and similar words #1045 ↵David Heinemeier Hansson2005-04-071-3/+5
| | | | | | [thijs@vandervossen.net] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1101 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Fixnum#even? and Fixnum#odd?David Heinemeier Hansson2005-04-051-0/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1094 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed Inflector.pluralize to handle capitalized words #932 [bitsweat]David Heinemeier Hansson2005-03-261-9/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@998 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved error reporting especially around never shallowing exceptions. ↵David Heinemeier Hansson2005-03-231-0/+17
| | | | | | Debugging helpers should be much easier now #980 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@985 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved error reporting especially around never shallowing exceptions. ↵David Heinemeier Hansson2005-03-231-0/+12
| | | | | | Debugging helpers should be much easier now #980 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@984 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed tests for indifferent accessDavid Heinemeier Hansson2005-03-071-47/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@873 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed Hash#indifferent_access to also deal with include? and fetch and ↵David Heinemeier Hansson2005-03-071-0/+61
| | | | | | nested hashes #726 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@872 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added inflection rules for "sh" words, like "wish" and "fish" #755 ↵David Heinemeier Hansson2005-03-061-1/+3
| | | | | | [phillip@pjbsoftware.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@844 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed an exception when using Ajax based requests from Safari because Safari ↵David Heinemeier Hansson2005-03-031-6/+20
| | | | | | appends a \000 to the post body. Symbols can't have \000 in them so indifferent access would throw an exception in the constructor. Indifferent hashes now use strings internally instead. #746 [Tobias Luetke] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@827 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added String#to_time and String#to_date for wrapping ParseDateDavid Heinemeier Hansson2005-03-021-0/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@824 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made TimeZone even more delicious #709David Heinemeier Hansson2005-02-241-0/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@787 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added year-based time calculationsDavid Heinemeier Hansson2005-02-241-0/+17
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@779 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved over TimeZone test tooDavid Heinemeier Hansson2005-02-231-0/+76
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@770 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Date::Conversions for getting dates in different convenient string ↵David Heinemeier Hansson2005-02-212-1/+18
| | | | | | representations and other objects git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@738 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Time::Conversions for getting times in different convenient string ↵David Heinemeier Hansson2005-02-211-0/+14
| | | | | | representations and other objects git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@737 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added next_week and made beginning_of_week be a Monday, not a SundayDavid Heinemeier Hansson2005-02-211-1/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@733 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Treat UTC times nicerDavid Heinemeier Hansson2005-02-211-13/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@732 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Time::Calculations to ask for things like Time.now.tomorrow, ↵David Heinemeier Hansson2005-02-211-0/+84
| | | | | | Time.now.yesterday, Time.now.months_ago(4) #580 [DP|Flurin] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@731 5ecf4fe2-1ee6-0310-87b1-e25e094e27de