aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/hash_ext_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Only convert direct hash instances in hash with indifferent access.José Valim2010-11-261-0/+8
|
* HashWithIndifferentAccess should not change the subclass of an arrayLarry Sprock2010-11-141-0/+17
|
* Merge remote branch 'drogus/plugin_new'José Valim2010-11-111-0/+15
|\ | | | | | | | | Conflicts: railties/test/generators/app_generator_test.rb
| * Added Hash#deep_dup function which performs deep duplication on given hashPiotr Sarnacki2010-11-021-0/+15
| |
* | Ensure that HashWithIndifferentAccess duplication preserves class (for ↵laserlemon2010-11-071-1/+14
| | | | | | | | | | | | sublclasses) and default value [#5724 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | Allowing to_xml :camelize option to be set to :lower to enable ↵Jeremy Holland2010-11-031-1/+8
|/ | | | lower-camelcase tags [#5903 state:resolved]
* Override #store to be consistent with #[].Andrea Campi2010-10-101-0/+10
| | | | | | [#5775 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* let Hash#to_param and Hash#to_query sort againXavier Noria2010-09-281-3/+7
| | | | | This was a regression introduced in 5c858220085dc4ddc1bec496747059dfbe32f1da. We bring sorting back because people rely on it, eg for constructing consistent cache keys.
* Make assert_valid_keys slightly faster.thedarkone2010-09-271-1/+1
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-21/+21
| | | | 's/[ \t]*$//' -i {} \;)
* Test Hash#to_param escapes keys and valuesSantiago Pastorino2010-07-221-0/+4
| | | | [#5175]
* Hash#to_param is doesn't use sort anymore, some tests added for Hash#to_paramSantiago Pastorino2010-07-221-0/+25
|
* Remove String#constantize depsJeremy Kemper2010-06-111-7/+8
|
* Change HWIA#stringify_keys to return a HWIA not a HashJeremy Kemper2010-04-221-0/+3
|
* Restore HWIA#stringify_keys! and update changelogJeremy Kemper2010-04-221-3/+3
|
* HWIA delegates to to_hash symbolize_keys and stringify_keys and bang methods ↵Santiago Pastorino2010-04-221-2/+36
| | | | | | are not in the api Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Add support for a type=binary with an optional encoding=base64. If the ↵Josh Franklin2010-03-261-1/+3
| | | | | | encoding attribute is absent, the data is considered unencoded. [#2966 state:resolved]
* Fixed some bugs and fixed some tests in new SAX-based XmlMini backends.Willem van Bergen2010-01-011-3/+5
| | | | | | [#3636 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Consolidate Object#to_param and #to_query core extensionsJeremy Kemper2009-11-021-41/+0
|
* Support deep-merging HashWithIndifferentAccess.Andrew Moreland2009-08-091-0/+12
| | | | | | [#2732 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fix that Hash#to_xml and Array#to_xml shouldn't modify their options hashes ↵David Burger2009-08-091-0/+7
| | | | | | [#672 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fixed Hash#from_xml with keys that are all caps.codebrulee2009-05-041-0/+16
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Fix dependencies revealed by testing in isolationJeremy Kemper2009-04-221-0/+2
|
* Explicit test dependenciesJeremy Kemper2009-03-281-0/+1
|
* Only require builder at startup if we need to monkey with its String#to_xs ↵Jeremy Kemper2009-03-211-1/+0
| | | | demands
* Use xmlschema when serializing TimeWithZones to xml [#2223 state:resolved]Jonathan del Strother2009-03-121-0/+9
| | | | | | When using Hash#to_xml, any TimeWithZone objects now use xmlschema (iso8601), rather than a simple TimeWithZone#to_s. Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ensure HWIA#reverse_merge! retrurns HWIA [#421 state:resolved]Bradford Folkens2009-03-121-0/+7
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* adding more nokogiri tests and making the main rails tests passAaron Patterson2009-03-101-1/+6
| | | | | | [#2190 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Require libxml-ruby 0.9.4 or 0.9.7 pending a segfault bugfix for 1.0.Jeremy Kemper2009-03-091-1/+2
| | | | Delegate parsing to a switchable backend.
* Ruby 1.9 compat: rename deprecated assert_raises to assert_raise.Jeremy Kemper2009-03-081-2/+2
| | | | [#1617 state:resolved]
* MaKe Hash#slice! return removed values, akin to Array [#971 state:resolved]trans2008-12-261-3/+17
| | | | Signed-off-by: Frederick Cheung <frederick.cheung@gmail.com>
* Added a :camelize option to ActiveRecord and Hash to_xml serialization and ↵Bruce Krysiak2008-12-101-0/+7
| | | | | | from_xml deserialization Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Explicitly require Builder in test that uses itJeremy Kemper2008-11-241-0/+1
|
* Revert "Hack builder to look for fast_xs instead of insisting on its own ↵Jeremy Kemper2008-11-241-1/+0
| | | | | | String#to_xs" This reverts commit 5d3712a81e502f46b2745d238d9bb76fcdb31f5b.
* Hack builder to look for fast_xs instead of insisting on its own String#to_xsJeremy Kemper2008-11-231-0/+1
|
* Require mocha >= 0.9.0 for AS testsJeremy Kemper2008-11-221-6/+4
|
* Adds failed test case for slicing hash with indifferent access with symbol keysadam2008-09-231-0/+10
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Ensure Hash#except is allowed on a frozen hash. References #382Mislav Marohnić2008-09-131-0/+14
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Merge rexml-expansion-fix gem into activesupport.Michael Koziarski2008-09-021-0/+21
| | | | | Addresses the security issue documented at: * http://www.ruby-lang.org/en/news/2008/08/23/dos-vulnerability-in-rexml/
* Get rid of 'Object#send!'. It was originally added because it's in Ruby 1.9, ↵Jeremy Kemper2008-08-311-4/+4
| | | | | | | | | | but it has since been removed from 1.9. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> Conflicts: actionpack/test/controller/layout_test.rb
* Add extra tests to ensure Hash#slice works with an array as a key. #613MatthewRudy2008-07-171-0/+21
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Revert "Hash#slice supports an array of keys [#613 state:resolved]"Pratik Naik2008-07-171-35/+21
| | | | This reverts commit 396f9df8916b71f83aad8d56559cf55fc8501679.
* Allow deep merging of hash values for nested with_options. [#490 state:resolved]Lawrence Pit2008-07-171-0/+10
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Hash#slice supports an array of keys [#613 state:resolved]Josh Owens2008-07-161-21/+35
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Hash.from_xml: datetime xml types overflow to Ruby DateTime class when out ↵gbuesing2008-05-181-0/+38
| | | | of range of Time. Adding tests for utc offsets
* Revert [9209] Use Hash#exceptPratik Naik2008-04-021-32/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9210 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Adding Hash#without Closes #7369 [eventualbuddha]Pratik Naik2008-04-021-0/+32
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9209 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use a decorator module for Files instantiated by Hash.from_xml. Add test ↵Jeremy Kemper2008-01-061-3/+31
| | | | | | coverage. Closes #10726 [Cheah Chu Yeow] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8579 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* require abstract_unit directly since test is in load pathJeremy Kemper2008-01-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8563 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Hash#symbolize_keys skips keys that can't be symbolized. Closes #10500.Jeremy Kemper2007-12-201-3/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8454 5ecf4fe2-1ee6-0310-87b1-e25e094e27de