aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/hash
Commit message (Collapse)AuthorAgeFilesLines
...
* HashWithIndifferentAccess shouldn't confuse false and nil. Closes #5601. Nor ↵Jeremy Kemper2006-07-051-7/+10
| | | | | | should it mistreat legitimate nil values. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4555 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed HashWithIndifferentAccess#default (closes #5586) [chris@seagul.co.uk]David Heinemeier Hansson2006-07-051-4/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4539 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More compatible Hash.create_from_xml. Closes #5523.Jeremy Kemper2006-06-291-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4510 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Hash.create_from_xml(string) which will create a hash from a XML ↵David Heinemeier Hansson2006-06-161-0/+70
| | | | | | string and even typecast if possible [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4453 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added binary formattingDavid Heinemeier Hansson2006-06-041-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4432 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Uncry thyselfJeremy Kemper2006-06-031-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4414 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* to_xml fixes, features, and speedup. Closes #4989.Jeremy Kemper2006-06-031-14/+43
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4413 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't destroy a HashWithIndifferentAccess if symbolize_keys! or ↵Marcel Molina2006-05-141-0/+3
| | | | | | 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
* Use --simple-prompt instead of --prompt-mode simple for console ↵David Heinemeier Hansson2006-04-011-1/+1
| | | | | | 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
* Fixed the hash.delete :sym (closes #2176) [Stefan Kaes]David Heinemeier Hansson2006-03-201-2/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4005 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Performance speedup for ActionController (closes #4174) [Stefan Kaes] ↵David Heinemeier Hansson2006-03-201-1/+1
| | | | | | Includes caching of filter chains -- be on the lookout for problems with that! git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3989 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Rolled back #2176 because it destroyed performance [DHH]David Heinemeier Hansson2006-03-201-24/+36
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3988 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* fix indifferent hash. The lambdas were acting funny in a running rails app. ↵Rick Olson2006-03-201-5/+15
| | | | | | closes #2176 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3987 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added nicer message for assert_redirected_to (closes #4294) [court3nay, ↵Rick Olson2006-03-191-0/+11
| | | | | | Chris McGrath] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3969 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed the to_xml case (closes #4201) [twoggle@gmail.com]David Heinemeier Hansson2006-03-181-6/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3925 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed HashWithIndifferentAccess#delete to work with both symbols and strings ↵David Heinemeier Hansson2006-03-181-36/+14
| | | | | | (closes #2176) [Caio Chassot] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3912 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* dasherize the root element when doing to_xmlJamis Buck2006-03-161-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3901 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Switch to_xml to use the date formate defined in xml schema.[Koz]Michael Koziarski2006-03-151-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3869 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* tag! is nicer than __send__David Heinemeier Hansson2006-03-101-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3833 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Implemented nested to_xml and named elements for array xmling [DHH]David Heinemeier Hansson2006-03-091-8/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3830 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed to_xml across the board to use nice indention, better skip_attributes ↵David Heinemeier Hansson2006-03-091-7/+11
| | | | | | 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
* Added Hash#to_xml and Array#to_xml that makes it much easier to produce XML ↵David Heinemeier Hansson2006-03-081-0/+39
| | | | | | 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
* Major components cleanup and speedup. Closes #3527.Jeremy Kemper2006-02-091-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3563 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix merge and dup for hashes with indifferent access (closes #3404) ↵David Heinemeier Hansson2006-01-231-0/+8
| | | | | | [kenneth.miller@bitfield.net] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3468 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make HashWithIndifferentAccess#update behave like Hash#update by returning ↵Marcel Molina2006-01-081-2/+5
| | | | | | the hash. Closes #3419, #3425 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3388 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Hash#reverse_merge, Hash#reverse_merge!, and Hash#reverse_update to ↵David Heinemeier Hansson2005-09-111-0/+25
| | | | | | 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
* Make assert_valid_keys slightly more lenientDavid Heinemeier Hansson2005-09-091-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2166 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed documentation for release (AS)David Heinemeier Hansson2005-07-061-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1735 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r1300@iwill: jeremy | 2005-06-13 18:31:29 -0700Jeremy Kemper2005-06-131-10/+4
| | | | | | | | | | | 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
* Fixed that HashWithIndifferentAccess stringified all keys including symbols, ↵David Heinemeier Hansson2005-05-191-1/+1
| | | | | | ints, objects, and arrays #1162 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1329 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed Hash#indifferent_access to also deal with include? and fetch and ↵David Heinemeier Hansson2005-03-071-1/+29
| | | | | | nested hashes #726 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@872 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed an exception when using Ajax based requests from Safari because Safari ↵David Heinemeier Hansson2005-03-031-4/+4
| | | | | | 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
* Moved Active Support into its own gemDavid Heinemeier Hansson2005-02-152-0/+91
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de