Marcel Molina
baa2ab5ac3
Add extended_by, extend_with_included_modules_from and copy_instance_variables_from to Object.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3113 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-20 22:32:40 +00:00
Marcel Molina
5cb2aa722d
Rename Version constant to VERSION. Closes #2802 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3065 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-17 00:32:16 +00:00
Nicholas Seckar
1cc8ab865f
Change Inflector#constantize to use eval instead of const_get
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3049 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-16 00:56:16 +00:00
Nicholas Seckar
41e4173fd6
Fix const_missing handler to ignore the trailing '.rb' on files when comparing paths.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2976 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-10 20:32:13 +00:00
David Heinemeier Hansson
cd2b9a9498
Made ready for 0.14.3 (RC4)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2930 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-07 19:40:27 +00:00
Sam Stephenson
5feb3124d4
Define kernel.rb methods in "class Object" instead of "module Kernel" to work around a Windows peculiarity
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2902 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-07 02:26:20 +00:00
Nicholas Seckar
24064910d0
Fix broken tests caused by incomplete loading of active support.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2901 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-07 01:48:33 +00:00
Jeremy Kemper
8210f70c7c
Fix status pluralization bug so status_codes doesn't get pluralized as statuses_code. Closes #2758 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2900 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-07 01:20:54 +00:00
Sam Stephenson
645de33912
Added Kernel#silence_stderr to silence stderr for the duration of the given block. Changed Kernel#` to print a message to stderr (like Unix) instead of raising Errno::ENOENT on Win32.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2899 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-07 00:37:32 +00:00
Jeremy Kemper
f109bfb765
Restore the fast Numeric#blank? Closes #2714 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2853 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-03 01:32:25 +00:00
Jeremy Kemper
ac58ba60f6
Changed 0.blank? to false rather than true since it violates everyone's expectation of blankness. Closes #2518 , Closes #2705 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2849 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-02 15:37:58 +00:00
Nicholas Seckar
727162e7fd
When loading classes using const_missing, raise a NameError if and only if the file we tried to load was not present.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2771 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-27 17:40:48 +00:00
David Heinemeier Hansson
0d52abfd0e
Added petabytes and exebytes to numeric extensions ( closes #2397 ) [timct@mac.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2746 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-26 13:10:03 +00:00
David Heinemeier Hansson
fabf34848e
Added Time#end_of_month to accompany Time#beginning_of_month ( closes #2514 ) [Jens-Christian Fischer]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2745 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-26 13:07:22 +00:00
David Heinemeier Hansson
c7a6b9862d
Prepared for release of 0.14.2 (RC3)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2737 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-25 22:11:48 +00:00
Jeremy Kemper
b57c86ae74
r3689@sedna: jeremy | 2005-10-16 10:24:36 -0700
...
Ticket 2404 - delete fixtures after using them
r3744@sedna: jeremy | 2005-10-23 12:28:28 -0700
track dirty and loaded fixtures more carefully
r3745@sedna: jeremy | 2005-10-23 12:29:39 -0700
fix broken tests
r3756@sedna: jeremy | 2005-10-23 15:51:00 -0700
Global Logger.silencer switch for Logger#silence.
r3757@sedna: jeremy | 2005-10-23 15:51:35 -0700
Correct changelogs
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2715 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-23 20:00:05 +00:00
Marcel Molina
b23c72fd42
Add title case method to String to do, e.g., 'action_web_service'.titlecase # => 'Action Web Service'.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2690 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-19 20:20:11 +00:00
David Heinemeier Hansson
2555b885ed
Really ready for release
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2687 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-19 14:28:55 +00:00
Nicholas Seckar
60b6fac5de
Remove generated code from app traces; improve accuracy of framework traces
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2676 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-18 14:06:34 +00:00
David Heinemeier Hansson
e906ec7f36
Dont include unnecessary active support classes in docs
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2661 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-16 22:31:55 +00:00
David Heinemeier Hansson
f4aaa26eb3
Getting ready for 0.14.0 (1.0.0 Release Candidate 1)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2660 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-16 22:15:03 +00:00
Nicholas Seckar
57f43473d7
Update Exception extension to show the first few framework frames in an application trace.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2654 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-16 17:47:19 +00:00
Jamis Buck
d7e6161b6c
Don't rdoc the Version module
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2651 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-16 16:04:24 +00:00
Nicholas Seckar
49ec08aaa7
Added Extension extension to provide support for clean backtraces.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2623 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-15 19:03:38 +00:00
Nicholas Seckar
43c34e20d2
Updated whiny nil to be more concise and useful.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2602 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-15 02:24:05 +00:00
Nicholas Seckar
e9df41a759
Added Enumerable#first_match
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2578 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-14 03:26:16 +00:00
David Heinemeier Hansson
f0448f5631
Fixed that Time#change should also reset usec when also resetting minutes #2459 [ikeda@dream.big.or.jp]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2568 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-13 20:28:55 +00:00
Jeremy Kemper
9c8227973c
r3574@sedna: jeremy | 2005-10-13 11:16:51 -0700
...
More precise Logger version test to account for distributions that don't keep Ruby and its stdlib in sync. Logger#silence yields self for convenience. Logger unit tests.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2553 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-13 19:05:32 +00:00
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
David Heinemeier Hansson
817744a725
Added an exception if calling id on nil to WhinyNil #584 [kevin-temp@writesoon.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1472 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-21 16:36:40 +00:00
David Heinemeier Hansson
6c8d354b8d
Added Fix/Bignum#multiple_of? which returns true on 14.multiple_of?(7) and 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
2005-06-21 07:00:28 +00:00
David Heinemeier Hansson
9113aa2744
Forgot to actually add the whiny nil
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1455 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-20 11:15:46 +00:00
David Heinemeier Hansson
a3659d5835
Fixed Time#at_beginning_of_week returned the next Monday instead of the 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
2005-06-16 05:56:49 +00:00
Jeremy Kemper
2e6f6ced42
r1300@iwill: jeremy | 2005-06-13 18:31:29 -0700
...
Ticket 1436 - Faster indifferent hash
r1301@iwill: jeremy | 2005-06-13 18:45:28 -0700
Apply, tweak, test.
r1305@iwill: jeremy | 2005-06-13 18:50:24 -0700
Updated changelog.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1413 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-13 20:40:11 +00:00
David Heinemeier Hansson
a1e9ceebd5
Added Errors#add_on_blank which works like Errors#add_on_empty, but uses Object#blank? instead. CHANGED: validates_presence_of now uses Errors#add_on_blank, which will make " " fail the validation where it didnt before #1309 . Added that " " is now also blank? (using strip if available)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1346 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-21 18:12:36 +00:00
David Heinemeier Hansson
194fc9de5d
Slight change to allow custom date/time conversions #1326 [Rick Olson]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1344 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-21 14:57:23 +00:00
David Heinemeier Hansson
4a7225a1bd
Fixed Dependencies so all modules are able to load missing constants #1173 [Nicholas Seckar]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1331 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-19 19:17:08 +00:00
David Heinemeier Hansson
71b6f76543
Fixed the Inflector to underscore strings containing numbers, so Area51Controller becomes area51_controller #1176 [Nicholas Seckar]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1330 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-19 19:15:30 +00:00
David Heinemeier Hansson
6375569484
Fixed that HashWithIndifferentAccess stringified all keys including symbols, ints, objects, and arrays #1162 [Nicholas Seckar]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1329 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-19 19:13:30 +00:00
David Heinemeier Hansson
f9103e1fe2
Fixed Time#last_year to go back in time, not forward #1278 [fabien@odilat.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1319 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-19 17:36:25 +00:00
David Heinemeier Hansson
db2495cf7e
Fixed the pluralization of analysis to analyses #1295 [seattle@rootimage.msu.edu]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1314 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-19 17:10:20 +00:00
David Heinemeier Hansson
e84deb71d2
Fixed that Time.local(2005,12).months_since(1) would raise "ArgumentError: argument out of range" #1311 [jhahn@niveon.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1308 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-19 16:36:04 +00:00
David Heinemeier Hansson
7d42369071
Improved the silence method on the logger to ensure restoring the old level #1240 [bitsweat
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1277 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-02 17:20:18 +00:00
David Heinemeier Hansson
3135ec40a3
Added silencing to the default Logger class
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1271 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-02 11:41:24 +00:00
David Heinemeier Hansson
a37b8b33d4
Do document this...
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1207 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-18 10:56:19 +00:00
David Heinemeier Hansson
87bed3af47
Fixed that in some circumstances controllers outside of modules may have 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
2005-04-10 15:01:35 +00:00
David Heinemeier Hansson
38a0b5b427
Fixed inflection of perspectives and similar words #1045 [thijs@vandervossen.net]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1101 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-07 06:19:10 +00:00
David Heinemeier Hansson
a5cffb3aef
Added Fixnum#even? and Fixnum#odd?
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1095 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-05 17:04:48 +00:00
David Heinemeier Hansson
d08271e62f
Added Fixnum#even? and Fixnum#odd?
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1094 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-05 16:54:17 +00:00
David Heinemeier Hansson
0ca544d7b3
Fixed problem with classes being required twice. Object#const_missing now uses require_dependency to load files. It used to use require_or_load which would cause models to be loaded twice, which was not good for validations and other class methods #971 [Nicholas Seckar]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1057 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-02 08:24:39 +00:00
David Heinemeier Hansson
abfa14d825
Fixed Inflector.pluralize to handle capitalized words #932 [bitsweat]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@998 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-26 13:20:47 +00:00
David Heinemeier Hansson
45137795e8
Fixed that MissingSourceFile's wasn't properly detected in production mode #925 [Nicholas Seckar]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@990 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-25 09:07:01 +00:00
David Heinemeier Hansson
373adc7f86
Improved error reporting especially around never shallowing exceptions. 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
2005-03-23 11:53:40 +00:00
David Heinemeier Hansson
3697df1dd2
Improved error reporting especially around never shallowing exceptions. 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
2005-03-23 11:48:10 +00:00
David Heinemeier Hansson
d578196f9a
Added pagination support through both a controller and helper add-on #817 [Sam Stephenson]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@949 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-20 23:12:05 +00:00
David Heinemeier Hansson
71742114f8
Fixed Hash#indifferent_access to also deal with include? and fetch and nested hashes #726 [Nicholas Seckar]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@872 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-07 01:21:58 +00:00
David Heinemeier Hansson
4ef7bfb016
Added Object#blank? -- see http://redhanded.hobix.com/inspect/objectBlank.html #783 [_why the lucky stiff]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@857 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 14:22:21 +00:00
David Heinemeier Hansson
6cae2b7439
Added inflection rules for "sh" words, like "wish" and "fish" #755 [phillip@pjbsoftware.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@844 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 13:43:04 +00:00
David Heinemeier Hansson
6d566e82b4
Fixed rails_generator to be usable without RubyGems #686 [Cristi BALAN]. Moved all active support dependencies into active support
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@838 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 12:20:53 +00:00
David Heinemeier Hansson
e4106a580e
Fixed an exception when using Ajax based requests from Safari because Safari 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
2005-03-03 22:55:14 +00:00
David Heinemeier Hansson
6d688aa20c
Added String#to_time and String#to_date for wrapping ParseDate
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@824 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-02 13:07:02 +00:00
David Heinemeier Hansson
28a11969ce
Fix request.path_info and clear up LoadingModule behavior #754 [Nicholas Seckar]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@817 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-01 02:04:54 +00:00
David Heinemeier Hansson
f73f9e42f4
Made TimeZone even more delicious #709
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@787 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-24 11:56:09 +00:00
David Heinemeier Hansson
3c1f7ee60f
Documentation stuff
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@784 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-24 02:02:12 +00:00
David Heinemeier Hansson
5d94fb33c6
Added year-based time calculations
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@779 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-24 00:07:01 +00:00
David Heinemeier Hansson
65d3430baf
Fixed TimeZone issues in action-pack and active-support #704
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@776 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-23 23:55:59 +00:00
David Heinemeier Hansson
f9fca1eb63
Moved TimeZone to Active Support
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@768 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-23 15:13:03 +00:00
David Heinemeier Hansson
752f9ab873
Fixed path problem
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@743 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-22 14:11:12 +00:00
David Heinemeier Hansson
cf659de141
Added Date::Conversions for getting dates in different convenient string representations and other objects
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@738 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-21 17:09:20 +00:00
David Heinemeier Hansson
8401218bec
Added Time::Conversions for getting times in different convenient string representations and other objects
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@737 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-21 17:02:08 +00:00
David Heinemeier Hansson
6e84d82ce9
Make it possible to say Time.now.in(1.year)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@735 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-21 15:05:32 +00:00
David Heinemeier Hansson
b08f35309b
Added last_month and next_month
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@734 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-21 14:51:10 +00:00
David Heinemeier Hansson
25f8a25c3e
Added next_week and made beginning_of_week be a Monday, not a Sunday
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@733 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-21 14:46:33 +00:00
David Heinemeier Hansson
637642c8b8
Treat UTC times nicer
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@732 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-21 14:32:55 +00:00
David Heinemeier Hansson
6ff54f70fd
Added Time::Calculations to ask for things like Time.now.tomorrow, 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
2005-02-21 14:18:54 +00:00
David Heinemeier Hansson
1402bb7a25
Upgraded to breakpoint 92
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@721 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-20 22:28:11 +00:00
David Heinemeier Hansson
8322ea45c1
Blame controller files #684
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@718 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-20 20:55:36 +00:00
David Heinemeier Hansson
beb2875094
Updated dependency loading to consider non-standard class/file name combinations
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@712 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-20 13:47:57 +00:00
David Heinemeier Hansson
5fa66cd45c
Allows a loading module to load from multiple load paths #675
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@711 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-20 11:06:14 +00:00
David Heinemeier Hansson
98349f37a3
Gives Rescues some Love #680
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@709 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-20 10:51:10 +00:00
David Heinemeier Hansson
dcfd6aa3bd
Move Controllers wrapper module away from environment.rb and into dependencies.rb
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@627 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-15 16:21:56 +00:00
David Heinemeier Hansson
dc3d6eb9b4
Moved Active Support into its own gem
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-15 15:57:44 +00:00
David Heinemeier Hansson
45caae41c3
Fixed all the tests
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@623 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-15 15:02:43 +00:00
David Heinemeier Hansson
603ab7d812
Fixed Inflector for words like "news" and "series" that are the same in plural and singular #603 [echion], #615 [marcenuc]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@618 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-15 02:02:20 +00:00
David Heinemeier Hansson
b1999be5a7
A hopefully more successful attempt at the Routing branch merge
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@617 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-15 01:45:35 +00:00
David Heinemeier Hansson
88a3343ed5
Backed out of routing merge.. investigating missing patches
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@616 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-15 01:24:55 +00:00
David Heinemeier Hansson
c844755e5a
Merged back the Routing branch
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@614 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-15 00:51:02 +00:00
David Heinemeier Hansson
83c3f6f81a
Added Hash#stringify_keys and Hash#stringify_keys!
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@586 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-12 20:10:10 +00:00
David Heinemeier Hansson
2c110b825e
Added IndifferentAccess as a way to wrap a hash by a symbol-based store that also can be accessed by string keys
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@581 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-11 13:05:38 +00:00
David Heinemeier Hansson
098fa94356
Fixed documentation snafus #575 , #576 , #577 , #585
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@525 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-07 14:15:53 +00:00
David Heinemeier Hansson
11611c1b00
Raise LoadErrors separately
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@510 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-25 18:35:16 +00:00
David Heinemeier Hansson
be80d460f7
Moved subclass reloading responsibilities to Dependencies
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@509 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-25 18:20:23 +00:00
David Heinemeier Hansson
ee662e9768
New approach to reloading that uses remove_const on ARs and AOs as well as ACs
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@507 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-25 18:00:15 +00:00
David Heinemeier Hansson
c37e8d365b
Added methods for removing subclasses -- couldnt make it work with the regular nested-module approach (ObjectSpace was being difficult), so this is a straight inclusion
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@506 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-25 17:55:55 +00:00
David Heinemeier Hansson
90d94cd77e
Fetch from current dir
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@497 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-24 14:14:08 +00:00
David Heinemeier Hansson
505e2d99da
Added Florian Gross' latest version of Breakpointer and friends that fixes a variaty of bugs #441 [Florian Gross]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@492 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-24 13:41:57 +00:00
David Heinemeier Hansson
3d1e8dde9d
Fixed handling of syntax errors in models that had already been succesfully required once in the current interpreter. Fixed superclass mismatch and other controller related problems by not using dependency reloading for controllers.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@482 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-24 10:58:17 +00:00
David Heinemeier Hansson
ae690e8fe4
Minor tweak
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@481 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-24 00:34:08 +00:00
David Heinemeier Hansson
25eaf062c2
Another swing at reloading
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@480 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-24 00:30:15 +00:00
David Heinemeier Hansson
0942bfa7a9
Brought back reloading of models
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@478 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-23 19:42:40 +00:00
David Heinemeier Hansson
03e44cbcb2
Added Inflector.humanize to turn attribute names like employee_salary into "Employee salary". Used by automated error reporting in AR.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@450 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 19:55:21 +00:00
David Heinemeier Hansson
1b38c5523e
Added Inflector.humanize to turn attribute names like employee_salary into "Employee salary". Used by automated error reporting in AR.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@449 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 19:53:42 +00:00
David Heinemeier Hansson
58f920fecd
Made methods class level methods again
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@445 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 17:01:35 +00:00
David Heinemeier Hansson
e98a14012d
Made more stuff quiet
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@443 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 01:40:22 +00:00
David Heinemeier Hansson
c1a1b0b938
Made more stuff quiet
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@442 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 01:35:50 +00:00
David Heinemeier Hansson
1dbb4adec1
Made a bunch of stuff quiet in the docs
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@441 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 01:29:45 +00:00
David Heinemeier Hansson
3b9be80a3a
Removed debugging aid from dependencies
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@432 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-16 18:02:47 +00:00
David Heinemeier Hansson
92a29257b5
No need for reloading any more
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@431 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-16 17:58:54 +00:00
David Heinemeier Hansson
ee014ef95a
New adventures in dependency reloading
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@429 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-16 17:50:36 +00:00
David Heinemeier Hansson
394cf21ce7
Minor tweaks
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@428 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-16 13:07:28 +00:00
David Heinemeier Hansson
e59f1b5249
Went back to original breakpointing as I couldnt make the patches from flgr work
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@425 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 21:28:02 +00:00
David Heinemeier Hansson
c46e390920
Fixed some breakpoint issues and made breakpoint_client depend on activerecord/support instead of duplicating the files in railties #441 [Florian Gross]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@424 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 21:10:26 +00:00
David Heinemeier Hansson
fb13b7a495
Removed the Ruby 1.8.2 test/unit fix as it didnt work anyway
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@423 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 20:55:19 +00:00
David Heinemeier Hansson
31901a5939
Fixed errors thrown to namespace collision
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@421 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 18:28:10 +00:00
David Heinemeier Hansson
f3965af649
Dont polute the load path more than necessary
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@415 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 17:03:31 +00:00
David Heinemeier Hansson
a66b321bb0
Added the meat for String inflection
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@414 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 16:48:12 +00:00
David Heinemeier Hansson
d8805988a1
Missing something from #475
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@413 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 16:46:17 +00:00
David Heinemeier Hansson
38e695037c
Added availability of class inheritable attributes to the masses #477 [bitsweat]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@412 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 13:52:58 +00:00
David Heinemeier Hansson
1497522ab0
Fixed the half applied 393 changeset
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@395 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-11 22:06:05 +00:00
David Heinemeier Hansson
876a1a1fa3
Added Byte operations to Numeric, so 5.5.megabytes + 200.kilobytes #461 [Marcel Molina]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@393 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-11 21:37:02 +00:00
David Heinemeier Hansson
445f89ccb5
Fixed that Dependencies.reload can't load the same file twice #420 [Kent Sibilev]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@377 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-10 23:52:37 +00:00
David Heinemeier Hansson
14ed815b1c
Added Fixnum#ago/until, Fixnum#since/from_now #450 [bitsweat]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@371 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-10 22:49:45 +00:00
David Heinemeier Hansson
d239ac40fa
Also accepts Symbols and Classes by calling .to_s on the word supplied
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@366 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-10 16:03:44 +00:00
David Heinemeier Hansson
38e55bac61
Added time unit extensions to Fixnum that'll return the period in seconds, like 2.days + 4.hours
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@365 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-10 13:14:50 +00:00
David Heinemeier Hansson
7027fb8950
Added run time fix for the test/unit problems with Ruby 1.8.2
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@360 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-10 00:19:17 +00:00
David Heinemeier Hansson
c83683202a
Added write_inheritable_hash to use with conditional filters in Action Pack
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@353 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-09 17:05:02 +00:00
David Heinemeier Hansson
f626aece79
Added the first of the coming core extensions
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@349 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-09 15:00:45 +00:00
David Heinemeier Hansson
48f590a42e
Fixed rewriting of dashes, lashes
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@345 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-08 14:22:29 +00:00
David Heinemeier Hansson
fd48e70d6c
Fixed small issue with ARGV and IRB
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@339 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-05 19:16:50 +00:00
David Heinemeier Hansson
1f6c4aca28
Fixed loading problems with controller hierarchies
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@320 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-02 19:35:58 +00:00
David Heinemeier Hansson
f4b721904a
Added test cases and rakefile to Active Support
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@310 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-02 15:16:59 +00:00
David Heinemeier Hansson
7fcf07d632
Include as loaded regardless of success
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@281 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-30 00:12:39 +00:00
David Heinemeier Hansson
595a4a591b
Rearranging dependencies
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@279 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-29 21:19:37 +00:00
David Heinemeier Hansson
bd323b3c99
Moved support from both Action Pack and Active Record into a separate module called Active Support that can be included using svn:externals in both
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@273 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-29 21:03:21 +00:00