aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/hash/keys.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2013-12-201-6/+6
|\
| * Typos. return -> returns. [ci skip]Lauro Caetano2013-12-031-6/+6
| |
* | Tidy up previous commit, fix message assertion and improve testsCarlos Antonio da Silva2013-12-031-1/+3
| |
* | Modify the Hash#assert_valid_keys error message so that it shows the valid ↵Nerian2013-12-031-3/+3
|/ | | | | | | | | | | | | | | | | | | | keys. Also, show the wrong value as it was entered. { :failore => "stuff", :funny => "business" }.assert_valid_keys([ :failure, :funny ]) => ArgumentError: Unknown key: failore { 'failore' => "stuff", :funny => "business" }.assert_valid_keys([ :failure, :funny ]) => ArgumentError: Unknown key: failore { 'failore' => "stuff", :funny => "business" }.assert_valid_keys([ :failure, :funny ]) => ArgumentError: Unknown key: "failore". Valid keys are: :failure, :funny { :failore => "stuff", :funny => "business" }.assert_valid_keys([ :failure, :funny ]) => ArgumentError: Unknown key: :failore. Valid keys are: :failure, :funny Conflicts: activerecord/CHANGELOG.md Closes #11624.
* Merge remote-tracking branch 'docrails/master'Xavier Noria2013-11-241-2/+2
|\ | | | | | | | | | | Conflicts: activesupport/lib/active_support/core_ext/hash/deep_merge.rb activesupport/lib/active_support/core_ext/hash/keys.rb
| * Change syntax format for example returned valuesPrem Sichanugrist2013-11-111-2/+2
| | | | | | | | | | | | | | | | | | According to our guideline, we leave 1 space between `#` and `=>`, so we want `# =>` instead of `#=>`. Thanks to @fxn for the suggestion. [ci skip]
* | documentation updated for Hashes [ci skip]KD2013-11-111-6/+6
|/
* Replace comments' non-breaking spaces with spacesclaudiob2012-12-041-5/+5
| | | | | | | | | | Sometimes, on Mac OS X, programmers accidentally press Option+Space rather than just Space and don’t see the difference. The problem is that Option+Space writes a non-breaking space (0XA0) rather than a normal space (0x20). This commit removes all the non-breaking spaces inadvertently introduced in the comments of the code.
* fix AS/core_ext examples [ci skip]Francesco Rodriguez2012-09-121-1/+1
|
* update AS/core_ext docs [ci skip]Francesco Rodriguez2012-09-121-7/+7
|
* Speed up Hash#transform_keys using Hash#each_keyGrant Hutchins2012-06-271-1/+1
| | | See https://gist.github.com/3007749 for justification
* update Hash documentation with 1.9 syntax [ci skip]Francesco Rodriguez2012-05-261-8/+16
|
* add examples to Hash#deep_stringify_keys and Hash#deep_symbolize_keys [ci skip]Francesco Rodriguez2012-05-261-0/+10
|
* Reorder deep_symbolize_keys methodsMark McSpadden2012-05-251-7/+7
|
* Add Hash#deep_transform_keys and Hash#deep_transform_keys! Also convert ↵Mark McSpadden2012-05-231-17/+26
| | | | deep_*_keys to use deep_transform_keys.
* Adding deep versions of stringify_keys and symbolize_keys (plain and bang) ↵Lucas Húngaro2012-05-231-0/+44
| | | | for nested hashes
* Add Hash#transform_keys and Hash#transform_keys! and refactor *_keys methods ↵Mark McSpadden2012-05-231-18/+25
| | | | to use them.
* Fixing Hash#stringify_keys docsFrancesco Rodriguez2012-05-131-1/+1
|
* marking self in Hash#symbolize_keys!Francesco Rodriguez2012-05-131-1/+1
|
* added example to Hash#symbolize_keysFrancesco Rodriguez2012-05-131-2/+5
|
* unnecessary 'examples' noise in Hash#assert_valid_keys docsFrancesco Rodriguez2012-05-131-1/+0
|
* added example to Hash#stringify_keysFrancesco Rodriguez2012-05-131-1/+5
|
* String quotes and trailing spacesAlexey Gaziev2012-04-291-3/+3
|
* AS core_ext refactoring pt.2Alexey Gaziev2012-04-291-3/+2
|
* Inline the symbolize_keys/stringify_keys methodsSantiago Pastorino2012-04-081-2/+10
| | | | | | user system total real symbolize_keys 5.980000 0.070000 6.050000 ( 6.048187) new_symbolize_keys 4.310000 0.050000 4.360000 ( 4.364745)
* Remove Fixnum#to_sym support in 1.8.7Santiago Pastorino2012-04-081-1/+1
|
* Make assert_valid_keys slightly faster.thedarkone2010-09-271-4/+6
|
* No need for an extra wrapper array.thedarkone2010-09-271-1/+1
|
* Revert "Hash#symbolize_keys(!) optimizations"Jeremy Kemper2010-03-291-1/+1
| | | | | | | | Was slower in common case. [#3891 state:open] This reverts commit 2060977b767061a42eb8db2d5c3a30d205a94123.
* Hash#symbolize_keys(!) optimizationsLourens Naudé2010-03-011-1/+1
| | | | | | [#3891 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Speed up some Hash core extensions.José Valim and Mikel Lindsaar2010-01-241-9/+6
|
* Merge docrailsPratik Naik2010-01-171-2/+4
|
* Convert hash extension modules to class reopensJeremy Kemper2009-03-211-45/+39
|
* Merge docrailsPratik Naik2009-01-181-1/+1
|
* Simplify and speedup Hash#stringify_keys! References #10717 [Cheah Chu Yeow]Jeremy Kemper2008-01-061-4/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8576 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correct Hash#assert_valid_keys docs. Closes #10621 [Cheah Chu Yeow, blackanger]Jeremy Kemper2008-01-021-3/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8521 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Hash#symbolize_keys skips keys that can't be symbolized. Closes #10500.Jeremy Kemper2007-12-201-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8454 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactor of Hash#symbolize_keys! to use Hash#replace. Closes #10420 [ReinH]Rick Olson2007-12-081-7/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8333 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Hash#symbolize_keys behaves well with integer keys. Closes #9890.Jeremy Kemper2007-10-161-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7945 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Documentation for assert_valid_keys. Closes #7264 [tarmo, rsanheim]Michael Koziarski2007-10-081-0/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7792 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
* Moved Active Support into its own gemDavid Heinemeier Hansson2005-02-151-0/+53
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de