Commit Graph

155 Commits

Author SHA1 Message Date
Jamis Buck
84eb255c50 move lib/version.rb to lib/active_support/version.rb
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2517 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-10 14:35:59 +00:00
Marcel Molina
847a323286 Replace '%e' from long and short time formats as Windows does not support it. Closes #2344.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2512 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-10 00:19:04 +00:00
Marcel Molina
68a322005d Add versioning convention from SwitchTower to all Rails components. Add --version, -v option to the 'rails' command. Closes #1840.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2508 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-09 21:15:45 +00:00
David Heinemeier Hansson
5ef931a4b8 Added to_s(:db) to Range
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2506 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-09 17:52:42 +00:00
Marcel Molina
80cd2f6645 Move require_library_or_gem out of AR's abstract_adapter and into ActiveSupport. closes #1992
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2490 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-08 07:48:37 +00:00
Jamis Buck
ac419a0655 Add :rfc822 as an option for Time#to_s (to get rfc822-formatted times)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2445 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-03 18:30:03 +00:00
Jamis Buck
33f78d8227 Chain the const_missing hook to any previously existing hook so rails can play nicely with rake
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2440 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-03 15:28:08 +00:00
David Heinemeier Hansson
d994b41a05 Added method access to OrdredOptions
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2422 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-30 07:14:37 +00:00
David Heinemeier Hansson
28329ec8f8 Include OrderedOptions by default
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2421 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-30 07:07:44 +00:00
David Heinemeier Hansson
9f146ea0ac Added OrderedOptions array/hash for use with initializer
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2419 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-30 06:51:42 +00:00
Jeremy Kemper
fe0ffe406e Ticket 2263 - Make clean logger compatible with both 1.8.2 and 1.8.3
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2369 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-27 20:18:55 +00:00
David Heinemeier Hansson
df95567598 Added native, faster implementations of .blank? for the core types #2286 [skae]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2319 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-24 05:14:04 +00:00
David Heinemeier Hansson
0b54f18c47 Fixed clean logger to work with Ruby 1.8.3 Logger class #2245
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2286 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-21 13:45:16 +00:00
David Heinemeier Hansson
6a51940117 Fixed memory leak with Active Record classes when Dependencies.mechanism = :load #1704 [c.r.mcgrath@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2276 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-20 11:23:13 +00:00
David Heinemeier Hansson
426fa08cc0 Fixed Inflector.underscore for use with acronyms, so HTML becomes html instead of htm_l #2173 [k@v2studio.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2227 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-13 07:44:20 +00:00
Nicholas Seckar
e14acca8a8 Fixed dependencies related infinite recursion bug when a controller file does not contain a controller class. Closes #1760.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2218 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-12 14:41:51 +00:00
David Heinemeier Hansson
9105cd1064 Fixed inflections for status, quiz, move #2056 [deirdre@deirdre.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2214 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-12 05:29:47 +00:00
David Heinemeier Hansson
ffbaf1c5ff Added irregular inflection sex => sexes #1826 [rails@electricvisions.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2200 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-11 09:30:11 +00:00
David Heinemeier Hansson
8ae68efcf8 Added Hash#reverse_merge, Hash#reverse_merge!, and Hash#reverse_update to ease the use of default options. Added :connector and :skip_last_comma options to Array#to_sentence
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2192 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-11 08:23:50 +00:00
David Heinemeier Hansson
fe4abaa7df Added Array#to_sentence that'll turn ['one', 'two', 'three'] into 'one, two, and three' #2157 [m.stienstra@fngtps.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2185 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-11 06:14:05 +00:00
David Heinemeier Hansson
8aa63a78b8 Added test to ensure that silence_warnings also returned its value
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2181 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-11 05:01:01 +00:00
David Heinemeier Hansson
3cf7a0a460 Added Kernel#silence_warnings and puts it into use throughout the framework
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2179 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-11 04:58:27 +00:00
David Heinemeier Hansson
7a4a12aeaa Forgot to add core_ext/string/starts_ends_with.rb
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2176 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-09 09:09:07 +00:00
David Heinemeier Hansson
74896c0252 Added String#starts_with? and String#ends_with? #2118 [thijs@vandervossen.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2171 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-09 08:49:27 +00:00
David Heinemeier Hansson
558331596f Make assert_valid_keys slightly more lenient
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2166 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-09 08:20:14 +00:00
David Heinemeier Hansson
c8e0e10e28 Added documentation for overwrite_params #2146 [Michael Shuerig]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2162 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-09 07:50:14 +00:00
David Heinemeier Hansson
9bbb195c03 You will never sleep again!
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2113 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-03 10:33:18 +00:00
David Heinemeier Hansson
1e145099a7 Added String#at, String#from, String#to, String#first, String#last in 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
2005-09-03 07:11:47 +00:00
Jamis Buck
2fed808ee4 Make Time#last_month work when invoked on the 31st of a month.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2083 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-08-31 10:47:05 +00:00
Jamis Buck
70e96c9f5c Add Time.days_in_month, and make Time#next_month work when invoked on the 31st of a month
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2082 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-08-31 10:36:35 +00:00
Jamis Buck
b4c34f7b2b Fixed that Time#midnight would have a non-zero usec on some platforms #1836
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1959 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-31 09:16:21 +00:00
David Heinemeier Hansson
fb2dd492d6 Fixed inflections of "index/indices" #1766 [damn_pepe@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1881 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-22 06:52:10 +00:00
Nicholas Seckar
42723e3a0c Factor Fixnum and Bignum extensions into Integer class
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1863 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-19 12:58:01 +00:00
Nicholas Seckar
dba6b8b46f Add ordinalize to Fixnum and Bignum instances
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1855 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-18 02:16:17 +00:00
David Heinemeier Hansson
305a5463bd Added stripping of _id to String#humanize, so "employee_id" becomes "Employee" #1574 [Justin French]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1854 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-17 10:18:36 +00:00
David Heinemeier Hansson
33cf8f162e Added Fixnum#ordinalize to turn 1.ordinalize to "1st", 3.ordinalize to "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
2005-07-17 10:02:23 +00:00
David Heinemeier Hansson
703ac4c5ac Added more efficient implementation of the development mode reset of classes #1638 [Chris McGrath]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1761 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-07 14:48:16 +00:00
David Heinemeier Hansson
ce31eae3ee Remove fix against memory leaks in development mode as it killed development performance on large applications (2-3s stall on Basecamp). Octopod is working on a better fix.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1752 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-07 06:39:13 +00:00
David Heinemeier Hansson
dc8989a425 Fixed documentation for release (AS)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1735 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-06 10:43:42 +00:00
David Heinemeier Hansson
f4c579e92e More inflector fixes #1608
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1699 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-05 07:44:46 +00:00
David Heinemeier Hansson
00739dee17 Fixed conflict with Glue gem #1606 [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1675 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-04 19:15:40 +00:00
David Heinemeier Hansson
f5db702901 More inflector fixes #1599 [foamdino@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1662 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-04 15:15:13 +00:00
David Heinemeier Hansson
117ee110d7 Improved the whiny nil #1600 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1660 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-04 09:54:30 +00:00
David Heinemeier Hansson
da4b15fe18 More inflectoring #1490
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1616 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-02 19:05:47 +00:00
David Heinemeier Hansson
c196db9527 Fixed photo/photos #1583
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1615 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-02 18:59:01 +00:00
David Heinemeier Hansson
64612db7cf Added new rules to the Inflector to deal with more unusual plurals 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
2005-07-01 16:57:58 +00:00
David Heinemeier Hansson
7e1d002673 Fixed memory leak with Object#remove_subclasses_of, which inflicted a Rails 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
2005-06-30 06:11:26 +00:00
David Heinemeier Hansson
a995f42be0 Added tests for whiny nil #1476 [court3nay/marcel]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1507 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-25 11:15:38 +00:00
Jeremy Kemper
bb6b14b04f Increased accuracy of 1.year by accounting for leap years. The time 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
2005-06-24 20:42:16 +00:00
David Heinemeier Hansson
8e56f5ea3e Improved performance of Routes generation by a factor of 5 #1434 [Nicholas 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
2005-06-24 16:40:01 +00:00