David Heinemeier Hansson
|
0633bb865b
|
Update versions to match latest from stable
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3543 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-05 00:59:57 +00:00 |
|
Tobias Lütke
|
6fa5b7b304
|
added some (pointless) test cases to dependency loading, the more the merrier
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3537 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-04 21:24:40 +00:00 |
|
David Heinemeier Hansson
|
2ee6229bd8
|
Added delegation support to Module that allows multiple delegations at once (unlike Forwardable in the stdlib) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3535 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-04 19:14:53 +00:00 |
|
David Heinemeier Hansson
|
5cbc062c8a
|
Just go with Subclasses instead of OnlySubclasses
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3534 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-04 16:26:55 +00:00 |
|
David Heinemeier Hansson
|
ed080863d5
|
Just go with Subclasses instead of OnlySubclasses
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3533 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-04 06:11:42 +00:00 |
|
David Heinemeier Hansson
|
a6a683b0bb
|
Fixed Class.remove to not blow up on inheritance
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3532 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-04 06:01:28 +00:00 |
|
Nicholas Seckar
|
1aaeb2113b
|
Fix Reloadable to handle the case where a class that has been 'removed' has not yet been garbage collected.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3528 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-04 04:50:53 +00:00 |
|
Nicholas Seckar
|
62aa0603b7
|
Don't allow Reloadable to be included into Modules
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3527 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-03 22:36:44 +00:00 |
|
Nicholas Seckar
|
ad9cabd77c
|
Remove LoadingModule
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3526 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-03 20:29:39 +00:00 |
|
Nicholas Seckar
|
6d7b0374d1
|
Add LoadingModule.clear! back temporarily
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3524 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-02 16:56:15 +00:00 |
|
Nicholas Seckar
|
52b04e8e74
|
Reloadable::OnlySubclasses
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3522 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-02 06:11:37 +00:00 |
|
Nicholas Seckar
|
1bce58b312
|
Add Reloadable::OnlySubclasses which handles the common case where a base class should not be reloaded, but its subclasses should be.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3521 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-02 05:41:00 +00:00 |
|
Nicholas Seckar
|
7a43a05a2b
|
Further improvements to reloading code
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3519 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-02 04:54:07 +00:00 |
|
David Heinemeier Hansson
|
01b1a87729
|
Added reusable reloading support through the inclusion of the Relodable module that all subclasses of ActiveRecord::Base, ActiveRecord::Observer, ActiveController::Base, and ActionMailer::Base automatically gets [DHH]. Added auto-loading support for classes in modules, so Conductor::Migration will look for conductor/migration.rb and Conductor::Database::Settings will look for conductor/database/settings.rb [Nicholas Seckar]. Refactored extensions to module, class, and object in active support [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3493 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-29 00:37:39 +00:00 |
|
Sam Stephenson
|
d921b79974
|
Add Object#instance_exec and Proc#bind
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3469 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-23 06:40:43 +00:00 |
|
David Heinemeier Hansson
|
9c24899ab0
|
Fix merge and dup for hashes with indifferent access (closes #3404) [kenneth.miller@bitfield.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3468 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-23 05:38:02 +00:00 |
|
Sam Stephenson
|
039a90f535
|
Fix the requires in option_merger_test to unbreak AS tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3458 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-21 23:52:40 +00:00 |
|
Marcel Molina
|
36fc181a57
|
Make HashWithIndifferentAccess#update behave like Hash#update by returning the hash. Closes #3419, #3425
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3388 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-08 21:29:47 +00:00 |
|
Sam Stephenson
|
e567a5eb1a
|
Add ActiveSupport::JSON and Object#to_json for converting Ruby objects to JSON strings
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3356 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-27 03:11:03 +00:00 |
|
Sam Stephenson
|
85fe1ecaef
|
Add Object#with_options for DRYing up multiple calls to methods having shared options
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3314 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-15 20:03:23 +00:00 |
|
Jeremy Kemper
|
e47c8381e1
|
Handle mutual dependencies with .rb suffix.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3193 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-28 20:39:26 +00:00 |
|
Jeremy Kemper
|
e7219e9e2a
|
Introduce Dependencies.warnings_on_first_load setting. If true, enables warnings on first load of a require_dependency. Otherwise, loads without warnings. Disabled (set to false) by default.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3190 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-24 20:26:01 +00:00 |
|
Jeremy Kemper
|
52325f6bf8
|
Sever infinite loop for mutual dependencies. Closes #2997.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3181 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-24 05:43:27 +00:00 |
|
Jeremy Kemper
|
19f59b6eb1
|
Dependencies: set load_file_name = file_name if it ends in .rb
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3176 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-23 22:33:45 +00:00 |
|
Jeremy Kemper
|
b94d6c0654
|
Enable warnings on first load only. File which are loaded but raise an exception are not added to loaded set.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3169 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-23 21:31:51 +00:00 |
|
Jeremy Kemper
|
60091c1e2a
|
r3241@asus: jeremy | 2005-11-20 23:26:28 -0800
Active Support is warnings-safe. References #1792.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3135 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-21 07:29:51 +00:00 |
|
Jeremy Kemper
|
9a77e2f2be
|
r3240@asus: jeremy | 2005-11-20 23:22:34 -0800
Introduce enable_warnings counterpart to silence_warnings.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3134 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-21 07:29:44 +00:00 |
|
Jeremy Kemper
|
d792427301
|
r3239@asus: jeremy | 2005-11-20 23:21:37 -0800
Test for absence of instance vars rather than nil so we don't get a warning.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3133 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-21 07:29:39 +00:00 |
|
Jeremy Kemper
|
d1ac316fa4
|
r3219@asus: jeremy | 2005-11-20 03:07:19 -0800
silence necessary warnings in logger test. guard against multiple requires in kernel test.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3131 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-21 07:29:27 +00:00 |
|
Jeremy Kemper
|
7ed37c82a9
|
r3218@asus: jeremy | 2005-11-20 03:06:32 -0800
alias old format_message before overriding it
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3130 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-21 07:29:22 +00:00 |
|
Jeremy Kemper
|
ddc863c134
|
r3217@asus: jeremy | 2005-11-20 03:06:01 -0800
warnings-safe inherited alias for class_inheritable_attributes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3129 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-21 07:29:17 +00:00 |
|
Jeremy Kemper
|
3148216cbb
|
r3216@asus: jeremy | 2005-11-20 03:05:20 -0800
simplify cattr_ and mattr_accessor
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3128 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-21 07:29:12 +00:00 |
|
Jeremy Kemper
|
a821c3dd93
|
r3215@asus: jeremy | 2005-11-20 02:05:56 -0800
Eliminate double-requires due to Ruby seeing different paths to the same file.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3127 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-21 07:29:04 +00:00 |
|
Jeremy Kemper
|
1a44b9cf1a
|
r3214@asus: jeremy | 2005-11-20 02:03:05 -0800
Parenthesize args in Inflections
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3126 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-21 07:28:59 +00:00 |
|
Jeremy Kemper
|
27f96c7d11
|
r3213@asus: jeremy | 2005-11-20 02:01:28 -0800
Turn on warnings for tests.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3125 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-21 07:28:54 +00:00 |
|
Jeremy Kemper
|
edc7c521b8
|
Turn warnings on when loading a file if Dependencies.mechanism == :load. Common mistakes such as redefined methods will print warnings to stderr. References #752. References #1792.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3124 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-21 07:06:33 +00:00 |
|
Marcel Molina
|
dd198e259f
|
Pull out Array#to_strings in favor of more general Symbol#to_proc.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3119 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-21 02:17:10 +00:00 |
|
Marcel Molina
|
69bf71f5e9
|
Add Symbol#to_proc, which allows for, e.g. [:foo, :bar].map(&:to_s).
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3118 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-21 02:15:32 +00:00 |
|
Marcel Molina
|
5d785dbc11
|
Add Array#to_strings which to_s's all elements in an array.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3114 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-20 22:36:02 +00:00 |
|
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 |
|
David Heinemeier Hansson
|
6ab9f2bb40
|
Fix READMEs (closes #2680) [coffee2code]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2908 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-07 09:51:47 +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 |
|