David Heinemeier Hansson
|
4e7c6f58fb
|
Added option to String#camelize to generate lower-cased camel case by passing in :lower, like "super_man".camelize(:lower) # => "superMan" [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3986 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-20 03:32:28 +00:00 |
|
Rick Olson
|
891a962a19
|
Added nicer message for assert_redirected_to (closes #4294) [court3nay, Chris McGrath]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3969 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-19 03:50:14 +00:00 |
|
David Heinemeier Hansson
|
504ab568f8
|
Fixed HashWithIndifferentAccess#delete to work with both symbols and strings (closes #2176) [Caio Chassot]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3912 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-18 04:01:44 +00:00 |
|
David Heinemeier Hansson
|
c3c69d9062
|
Added Time#advance to do precise time time calculations for cases where a month being approximated to 30 days won't do (closes #1860) [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3887 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-16 03:04:00 +00:00 |
|
Michael Koziarski
|
bf39c39d88
|
Time#xmlschema is only available when you've required 'time'. Add a unit test to catch regressions. [Koz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3880 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-15 23:15:29 +00:00 |
|
Jamis Buck
|
6c95e9b146
|
Enhance Inflector.underscore to convert '-' into '_' (as the inverse of Inflector.dasherize)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3877 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-15 21:05:10 +00:00 |
|
David Heinemeier Hansson
|
0c6d178552
|
Implemented nested to_xml and named elements for array xmling [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3830 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-09 23:35:43 +00:00 |
|
David Heinemeier Hansson
|
d872281975
|
Fixed to_xml across the board to use nice indention, better skip_attributes workings, no type on strings, and cleaned tests [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3829 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-09 21:12:28 +00:00 |
|
Tobias Lütke
|
8b4729a0eb
|
reverted #to_sentence to use red, green, and blue style
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3816 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-08 16:13:13 +00:00 |
|
David Heinemeier Hansson
|
cd989472a5
|
Added Hash#to_xml and Array#to_xml that makes it much easier to produce XML from basic structures [DHH] Moved Jim Weirich's wonderful Builder from Action Pack to Active Support (it's simply too useful to be stuck in AP) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3812 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-08 02:56:25 +00:00 |
|
Tobias Lütke
|
0332d882b6
|
forgot to commit the fixed test case! (yea right)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3803 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-06 22:51:24 +00:00 |
|
David Heinemeier Hansson
|
2e67f1adc8
|
RJS now does enumerations, baby! (closes #3876) [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3754 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-03 19:34:23 +00:00 |
|
David Heinemeier Hansson
|
4c5db2c7ea
|
Fixed that Array#to_sentence will return "" on an empty array instead of ", and" (closes #3842, #4031) [rubyonrails@beautifulpixel.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3739 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-02 01:51:52 +00:00 |
|
Marcel Molina
|
1fdf578c17
|
Add Enumerable#group_by and Array#in_groups_of
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3726 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-01 20:32:10 +00:00 |
|
David Heinemeier Hansson
|
e57bd727df
|
Added Time#beginning_of_quarter (closes #3607) [cohen.jeff@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3659 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-26 00:46:18 +00:00 |
|
David Heinemeier Hansson
|
9723d03531
|
Fix Object.subclasses_of to only return currently defined objects (closes #3882) [Jonathan Viney <jonathan@bluewire.net.nz>]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3607 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-19 01:05:55 +00:00 |
|
Nicholas Seckar
|
91cdd59b12
|
Fix constantize to handle names beginning with '::'. Closes #3803.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3571 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-11 18:41:59 +00:00 |
|
Scott Barron
|
2d7309388d
|
Make String#last behave more like Array#last, i.e.
"f".last(3) => "f" not
"f".last(3) => nil
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3548 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-08 00:49:41 +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
|
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 |
|
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
|
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
|
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
|
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
|
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
|
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 |
|
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 |
|
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
|
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
|
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 |
|
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 |
|