Commit Graph

462 Commits

Author SHA1 Message Date
Jeremy Kemper
44e6aa7e19 Improve readability.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5547 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-17 14:09:46 +00:00
Jeremy Kemper
38136d615e Grep slightly faster than select =~
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5546 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-17 14:09:04 +00:00
Jeremy Kemper
615d05f5de Test autoloading nested subclass of parent.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5541 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-16 22:50:46 +00:00
Marcel Molina
309a6bd550 Add Module#attr_accessor_with_default to initialize value of attribute before setting it. Closes #6538. [Stuart Halloway, Marcel Molina Jr.]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5539 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-16 19:35:13 +00:00
Jeremy Kemper
072985bc28 Handle failed caller parsing, factor out deprecation caller message.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5535 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-16 06:40:05 +00:00
David Heinemeier Hansson
6c271a98dc Fix end of day
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5523 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-14 17:39:00 +00:00
Jeremy Kemper
b97ffa2a4f Hash#to_xml handles keys with the same name as Kernel methods. Closes #6613.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5521 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-14 09:08:40 +00:00
David Heinemeier Hansson
79c309e43b Added Time#end_of_day to get 23:59:59 of that day [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5495 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-12 03:05:18 +00:00
Sam Stephenson
2516063f61 Don't quote hash keys in Hash#to_json if they're valid JavaScript identifiers.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5486 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-11 18:25:26 +00:00
Rick Olson
510092c681 Lazily load the Unicode Database in the UTF-8 Handler [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5476 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-09 19:40:32 +00:00
Nicholas Seckar
ad06514257 Update dependencies to delete partially loaded constants.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5464 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-07 20:45:36 +00:00
Jeremy Kemper
e1140f876e Update failing autoload tests.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5463 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-07 20:29:50 +00:00
Nicholas Seckar
a7d0e0e011 Fix warning and incorrect test trigger
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5444 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-06 23:45:39 +00:00
Jeremy Kemper
07c51829ab Failing test for autoloading shadowed exceptions.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5440 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-06 19:23:30 +00:00
Jeremy Kemper
7b453d2844 Fix unicode JSON regexp for Onigurama compatibility. Closes #6494.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5432 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-05 19:03:37 +00:00
Jeremy Kemper
9a39a86f65 Test multiple timezones' DST. Closes #5617.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5420 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-03 00:40:34 +00:00
Jeremy Kemper
6770c8d7fa Use US timezone for DST tests. Closes #5617.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5418 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-02 20:36:06 +00:00
Michael Koziarski
ea433f15bf update XmlSimple to 1.0.10. Closes #6532. [nicksieger]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5414 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-02 20:10:53 +00:00
Jeremy Kemper
0ee5d64c34 Remove dupe entry.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5410 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-02 19:14:16 +00:00
David Heinemeier Hansson
4559840a32 Resolved the conflict
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5407 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-02 18:14:16 +00:00
Jeremy Kemper
7ca2b657f0 Update bundled flexmock to latest 0.4.3.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5403 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-02 09:59:52 +00:00
Jeremy Kemper
5ba85d84fb next_week respects DST changes. Closes #5617, closes #2353, closes #2509, references #4551.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5388 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-02 01:52:11 +00:00
Nicholas Seckar
5cc682da07 Update dependencies to allow constants to be defined alongside their siblings.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5386 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-01 23:21:13 +00:00
Jeremy Kemper
0f5f05b51e next_week respects DST changes. Closes #6483.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5363 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-24 23:35:27 +00:00
Jamis Buck
3a318970b1 Extend deprecate so that alternatives can be specified via the deprecation
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5356 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-24 16:56:59 +00:00
Marcel Molina
ba5591f212 Expose methods added to Enumerable in the documentation, such as group_by. Closes #6170.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5334 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-22 03:04:50 +00:00
Michael Koziarski
911f3db00a Ensure Chars#tidy_bytes only tidies broken bytes. Closes #6397 [Manfred Stienstra]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5316 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-17 08:29:16 +00:00
Nicholas Seckar
497b5dcf19 Add 'unloadable', a method used to mark any constant as requiring an unload after each request.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5307 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-15 23:32:31 +00:00
Nicholas Seckar
2049313e3c Undo accidental commit
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5303 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-14 20:29:05 +00:00
Nicholas Seckar
4257fd6970 Rename overlapping test names
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5302 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-14 20:27:29 +00:00
Jamis Buck
d73f32ce00 make sure the String::Access methods return strings, and not multibyte Char instances
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5299 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-13 20:27:46 +00:00
Michael Koziarski
48cef84150 Make core_ext/string/access.rb multibyte safe. Closes #6388 [Manfred Stienstra]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5287 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-12 21:03:32 +00:00
Michael Koziarski
cb927c8774 Make String#chars slicing behaviour consistent with String. Closes #6387 [Manfred Stienstra]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5286 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-12 21:00:34 +00:00
Michael Koziarski
e899190826 Pull in latest multibyte patch. Closes #6346 [Manfred Stienstra]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5224 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-04 09:03:57 +00:00
Michael Koziarski
f238d495b7 Add ActiveSupport::Multibyte. Provides String#chars which lets you deal with strings as a sequence of chars, not of bytes. Closes #6242 [Julian Tarkhanov, Manfred Stienstra & Jan Behrens]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5223 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-03 23:45:32 +00:00
Rick Olson
928c84b65b Fix issue with #class_inheritable_accessor saving updates to the parent class when initialized with an Array or Hash [mojombo]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5218 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-10-02 19:12:57 +00:00
Jeremy Kemper
cb978baafa Hash#to_xml supports Bignum and BigDecimal. Closes #6313.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5209 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-29 22:23:16 +00:00
Rick Olson
d6925b14fa Don't undefine #class in OptionMerger [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5197 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-27 18:46:46 +00:00
Jeremy Kemper
7554518665 deprecation_method_warning and deprecation_horizon - fewer moving parts, easy to localize
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5161 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-22 01:16:09 +00:00
David Heinemeier Hansson
54c393f5fa Hash.create_from_xml has been renamed to Hash.from_xml, alias will exist until Rails 2.0 [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5149 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-20 09:34:29 +00:00
David Heinemeier Hansson
5d50dee71f Version updates and missing licenses
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5120 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-15 10:13:27 +00:00
Jeremy Kemper
d0c000ab9e assert_deprecated returns result of block
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5115 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-15 05:54:18 +00:00
Jeremy Kemper
069b0eaf0b assert_deprecated matches any warning caught in block
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5114 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-15 03:56:25 +00:00
Jeremy Kemper
643571ca25 alias_method_chain yields method target and punctuation to simplify wrapper method definition. Used by the deprecate module method.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5113 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-15 03:42:54 +00:00
Jeremy Kemper
74f60c032e alias_method_chain works with accessor= methods also. Closes #6153.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5091 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-12 07:10:43 +00:00
Nicholas Seckar
93659978d5 Fix loadable_constants_for_path to handle load paths that do not end with a slash.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5053 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-06 20:31:28 +00:00
Nicholas Seckar
7441b19d0c Fix logic error in determining what was loaded by a given file. Closes #6039.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5035 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-05 23:36:14 +00:00
Nicholas Seckar
1d554b84f8 Equate Kernel.const_missing with Object.const_missing. Fixes #5988.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5023 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-05 22:36:28 +00:00
Jeremy Kemper
668c64b48d quell warnings
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4982 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-04 08:28:44 +00:00
Jeremy Kemper
9f3ba03bc7 reloadable deprecation tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4979 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-09-04 06:02:16 +00:00