Marcel Molina
d68fd78bad
Customize default BigDecimal formatting. [dave@pragprog.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4608 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-13 03:23:39 +00:00
Rick Olson
1ec9f8d049
Correctly convert <foo nil=true> to nil when using Hash.create_from_xml. [Rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4607 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-13 00:44:09 +00:00
Jeremy Kemper
f0c22d4ad5
occured -> occurred. Closes #5559 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4604 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-10 19:41:59 +00:00
Jeremy Kemper
5241b97709
Optional identity for Enumerable#sum defaults to zero. Closes #5657 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4599 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-09 20:48:31 +00:00
Jeremy Kemper
12600d77dd
HashWithIndifferentAccess shouldn't confuse false and nil. Closes #5601 . Nor should it mistreat legitimate nil values.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4555 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-05 17:32:16 +00:00
David Heinemeier Hansson
760bcc6ea9
Fixed HashWithIndifferentAccess#default ( closes #5586 ) [chris@seagul.co.uk]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4539 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-05 01:09:40 +00:00
Jeremy Kemper
4bd827e523
Typo in alias_method_chain rdoc.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4534 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-07-03 23:27:47 +00:00
Jeremy Kemper
4defe1ac8a
More compatible Hash.create_from_xml. Closes #5523 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4510 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-29 02:00:44 +00:00
Jeremy Kemper
236c7325df
Enumerable#sum without blocks. Closes #5505 . Don't assume 0 identity for sum.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4495 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-25 19:11:09 +00:00
Nicholas Seckar
a55265132b
Add Enumerable#index_by
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4491 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-24 16:42:48 +00:00
David Heinemeier Hansson
84d9a292fe
Cant use separate module [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4490 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-24 16:27:34 +00:00
David Heinemeier Hansson
fd0eaaa407
Added Enumerable#sum for calculating a sum from the elements [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4489 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-24 16:14:59 +00:00
Jeremy Kemper
b533431ce5
Correct and clarify Array#to_sentence docs. Closes #5458 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4485 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-22 17:47:45 +00:00
Jeremy Kemper
38d1a4aa09
alias_method_chain preserves method punctuation so foo, foo?, and foo! may be chained with the same feature.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4482 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-21 20:40:14 +00:00
Rick Olson
ae0e1a0682
Enhance Symbol#to_proc so it works with list objects, such as multi-dimensional arrays. Closes #5295 [nov@yo.rim.or.jp]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4455 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-17 03:01:57 +00:00
David Heinemeier Hansson
36dc94a6a1
Added Hash.create_from_xml(string) which will create a hash from a XML string and even typecast if possible [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4453 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-16 10:07:13 +00:00
David Heinemeier Hansson
7c326a3b54
Added Jim Weirich's excellent FlexMock class to vendor (Copyright 2003, 2004 by Jim Weirich (jim@weriichhouse.org)) -- it's not automatically required, though, so require 'flexmock' is still necessary [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4452 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-16 09:55:18 +00:00
David Heinemeier Hansson
100b994d90
Added binary formatting
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4432 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-04 00:37:47 +00:00
David Heinemeier Hansson
15b022a74f
Rolled back broken aliasing
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4430 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-03 23:27:51 +00:00
David Heinemeier Hansson
e72ff355c3
Fixed that Module#alias_method_chain should work with both foo? foo! and foo at the same time ( closes #4954 ) [anna@wota.jp]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4429 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-03 22:43:13 +00:00
David Heinemeier Hansson
b85c5356c9
Added documentation for inflections ( closes #5013 ) [m.stienstra@fngtps.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4428 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-03 22:30:32 +00:00
Jeremy Kemper
9422e71ca8
Uncry thyself
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4414 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-03 01:02:42 +00:00
Jeremy Kemper
48052d70ec
to_xml fixes, features, and speedup. Closes #4989 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4413 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-03 00:01:08 +00:00
Sam Stephenson
c377ce50ed
Add OrderedHash#values
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4411 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-02 17:28:15 +00:00
David Heinemeier Hansson
9fcc0654c3
Fixed that Base.find :all, :conditions => [ "id IN (?)", collection ] would fail if collection was empty [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4390 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-01 00:43:02 +00:00
David Heinemeier Hansson
24a5a803f3
Oracle and others wont take a string null for an answer
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4389 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-01 00:23:08 +00:00
David Heinemeier Hansson
408fe5facc
Added Array#to_s(:db) that'll produce a comma-separated list of ids [DHH] Split Grouping into its own file
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4387 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-31 23:25:36 +00:00
Jeremy Kemper
d31830cf9c
fix test warnings
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4386 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-31 22:43:53 +00:00
Marcel Molina
f91096a543
Normalize classify's argument to a String so that it plays nice with Symbols. [Marcel Molina Jr.]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4359 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-22 15:17:45 +00:00
Marcel Molina
422cba934c
Strip out leading schema name in classify. References #5139 . [schoenm@earthlink.net]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4350 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-21 15:11:00 +00:00
Nicholas Seckar
04fb7c30e3
Remove Enumerable#first_match in favor of using break(result_for_each)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4349 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-21 01:42:36 +00:00
Marcel Molina
36d1a2f302
Make Array#in_groups_of just return the grouped collection if a block isn't given. [Marcel Molina Jr.]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4345 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-17 05:12:53 +00:00
Marcel Molina
f2b3deb85c
Don't destroy a HashWithIndifferentAccess if symbolize_keys! or stringify_keys! is called on it. Closes #5076 . [Marcel Molina Jr., guy.naor@famundo.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4339 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-14 18:17:30 +00:00
Jeremy Kemper
d249ff579a
Trim typo.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4330 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-08 18:10:40 +00:00
Jeremy Kemper
befd62c2fc
Document Active Support's Module::delegate. Closes #5002 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4329 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-08 18:04:07 +00:00
Rick Olson
325cb1269c
Namespaced OrderedHash so the Rails implementation does not clash with any others. ( fixes #4911 ) [Julian Tarkhanov]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4318 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-30 20:36:37 +00:00
Marcel Molina
9f92dd3984
Replace alias method chaining with Module#alias_method_chain. [Marcel Molina Jr.]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4312 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-29 20:20:22 +00:00
Marcel Molina
995167ec2e
Strip out punctuation on predicates or bang methods being aliased with alias_method_chain since target?_without_feature is not a valid method name. Add tests for Module#alias_method_chain. [Marcel Molina Jr.]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4311 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-29 20:13:27 +00:00
Marcel Molina
6186490962
Replace Ruby's deprecated append_features in favor of included. [Marcel Molina Jr.]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4310 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-29 18:10:14 +00:00
Marcel Molina
71ff705449
Allow default options in with_options to be overridden. Closes #4480 . [murphy@cYcnus.de]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4282 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-26 21:49:41 +00:00
Jamis Buck
794d93f7a5
Added Module#alias_method_chain
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4276 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-26 17:46:43 +00:00
David Heinemeier Hansson
71a570ffd7
Updated to Builder 2.0 [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4260 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-25 02:47:44 +00:00
Sam Stephenson
c71607e29c
Add Array#split for dividing arrays into one or more subarrays by value or block
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4208 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-13 05:12:43 +00:00
David Heinemeier Hansson
944ae628f5
Update versions for Rails 1.1.1
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4183 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-06 05:26:14 +00:00
Nicholas Seckar
e714b25723
Update the diagnostics template skip the useless '<controller not set>' text.
...
Fix symbol extensions test case.
Clean paths inside of exception messages and traces.
Add Pathname.clean_within for cleaning all the paths inside of a string.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4158 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-04 19:37:29 +00:00
Nicholas Seckar
d0e8d5430a
Typo fix
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4139 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-03 05:21:26 +00:00
Michael Koziarski
a4f74da225
Fix for depot and other applications with .13 style environment.rb files. prints deprecation warnings to the log file
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4136 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-03 03:06:23 +00:00
David Heinemeier Hansson
484e1c65d8
Added docs for to_proc
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4132 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-02 16:28:30 +00:00
David Heinemeier Hansson
ebc0a38d40
Use --simple-prompt instead of --prompt-mode simple for console compatibility with Windows/Ruby 1.8.2 #4532 [starr@starrnhorne.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4118 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-01 19:08:04 +00:00
David Heinemeier Hansson
479b4fb5d9
Made ready for release
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4088 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-28 05:03:05 +00:00