Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Doc fix [ci skip] | Islam Wazery | 2015-03-07 | 1 | -7/+7 |
| | |||||
* | Pass symbol as an argument instead of a block | Erik Michaels-Ober | 2014-11-29 | 1 | -4/+4 |
| | |||||
* | Return an Enumerator if no block is given | Erik Michaels-Ober | 2014-07-12 | 1 | -1/+3 |
| | |||||
* | Fix documentation from #15669 [ci skip] | Zachary Scott | 2014-06-17 | 1 | -3/+5 |
| | |||||
* | [ci skip] fix doc for the Hash#assert_valid_keys | Aditya Kapoor | 2014-06-17 | 1 | -3/+3 |
| | |||||
* | [ci skip] Correct output of Hash#symbolize_keys | Akshay Vishnoi | 2014-05-31 | 1 | -2/+2 |
| | |||||
* | Merge pull request #10887 from sakuro/deep_transform_keys_in_nested_arrays | Rafael Mendonça França | 2014-05-20 | 1 | -16/+38 |
|\ | | | | | | | | | | | | | Hash#deep_*_keys(!) recurse into nested arrays. Conflicts: activesupport/CHANGELOG.md | ||||
| * | Hash#deep_*_keys(!) recurse into nested arrays. | OZAWA Sakuro | 2013-06-08 | 1 | -16/+38 |
| | | | | | | | | | | | | | | | | | | | | | | Following methods now recursively transform nested arrays, too. * Hash#deep_transform_keys * Hash#deep_transform_keys! * Hash#deep_stringify_keys * Hash#deep_stringify_keys! * Hash#deep_symbolize_keys * Hash#deep_symbolize_keys! | ||||
* | | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2013-12-20 | 1 | -6/+6 |
|\ \ | |||||
| * | | Typos. return -> returns. [ci skip] | Lauro Caetano | 2013-12-03 | 1 | -6/+6 |
| | | | |||||
* | | | Tidy up previous commit, fix message assertion and improve tests | Carlos Antonio da Silva | 2013-12-03 | 1 | -1/+3 |
| | | | |||||
* | | | Modify the Hash#assert_valid_keys error message so that it shows the valid ↵ | Nerian | 2013-12-03 | 1 | -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 Noria | 2013-11-24 | 1 | -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 values | Prem Sichanugrist | 2013-11-11 | 1 | -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] | KD | 2013-11-11 | 1 | -6/+6 |
|/ | |||||
* | Replace comments' non-breaking spaces with spaces | claudiob | 2012-12-04 | 1 | -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 Rodriguez | 2012-09-12 | 1 | -1/+1 |
| | |||||
* | update AS/core_ext docs [ci skip] | Francesco Rodriguez | 2012-09-12 | 1 | -7/+7 |
| | |||||
* | Speed up Hash#transform_keys using Hash#each_key | Grant Hutchins | 2012-06-27 | 1 | -1/+1 |
| | | | See https://gist.github.com/3007749 for justification | ||||
* | update Hash documentation with 1.9 syntax [ci skip] | Francesco Rodriguez | 2012-05-26 | 1 | -8/+16 |
| | |||||
* | add examples to Hash#deep_stringify_keys and Hash#deep_symbolize_keys [ci skip] | Francesco Rodriguez | 2012-05-26 | 1 | -0/+10 |
| | |||||
* | Reorder deep_symbolize_keys methods | Mark McSpadden | 2012-05-25 | 1 | -7/+7 |
| | |||||
* | Add Hash#deep_transform_keys and Hash#deep_transform_keys! Also convert ↵ | Mark McSpadden | 2012-05-23 | 1 | -17/+26 |
| | | | | deep_*_keys to use deep_transform_keys. | ||||
* | Adding deep versions of stringify_keys and symbolize_keys (plain and bang) ↵ | Lucas Húngaro | 2012-05-23 | 1 | -0/+44 |
| | | | | for nested hashes | ||||
* | Add Hash#transform_keys and Hash#transform_keys! and refactor *_keys methods ↵ | Mark McSpadden | 2012-05-23 | 1 | -18/+25 |
| | | | | to use them. | ||||
* | Fixing Hash#stringify_keys docs | Francesco Rodriguez | 2012-05-13 | 1 | -1/+1 |
| | |||||
* | marking self in Hash#symbolize_keys! | Francesco Rodriguez | 2012-05-13 | 1 | -1/+1 |
| | |||||
* | added example to Hash#symbolize_keys | Francesco Rodriguez | 2012-05-13 | 1 | -2/+5 |
| | |||||
* | unnecessary 'examples' noise in Hash#assert_valid_keys docs | Francesco Rodriguez | 2012-05-13 | 1 | -1/+0 |
| | |||||
* | added example to Hash#stringify_keys | Francesco Rodriguez | 2012-05-13 | 1 | -1/+5 |
| | |||||
* | String quotes and trailing spaces | Alexey Gaziev | 2012-04-29 | 1 | -3/+3 |
| | |||||
* | AS core_ext refactoring pt.2 | Alexey Gaziev | 2012-04-29 | 1 | -3/+2 |
| | |||||
* | Inline the symbolize_keys/stringify_keys methods | Santiago Pastorino | 2012-04-08 | 1 | -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.7 | Santiago Pastorino | 2012-04-08 | 1 | -1/+1 |
| | |||||
* | Make assert_valid_keys slightly faster. | thedarkone | 2010-09-27 | 1 | -4/+6 |
| | |||||
* | No need for an extra wrapper array. | thedarkone | 2010-09-27 | 1 | -1/+1 |
| | |||||
* | Revert "Hash#symbolize_keys(!) optimizations" | Jeremy Kemper | 2010-03-29 | 1 | -1/+1 |
| | | | | | | | | Was slower in common case. [#3891 state:open] This reverts commit 2060977b767061a42eb8db2d5c3a30d205a94123. | ||||
* | Hash#symbolize_keys(!) optimizations | Lourens Naudé | 2010-03-01 | 1 | -1/+1 |
| | | | | | | [#3891 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Speed up some Hash core extensions. | José Valim and Mikel Lindsaar | 2010-01-24 | 1 | -9/+6 |
| | |||||
* | Merge docrails | Pratik Naik | 2010-01-17 | 1 | -2/+4 |
| | |||||
* | Convert hash extension modules to class reopens | Jeremy Kemper | 2009-03-21 | 1 | -45/+39 |
| | |||||
* | Merge docrails | Pratik Naik | 2009-01-18 | 1 | -1/+1 |
| | |||||
* | Simplify and speedup Hash#stringify_keys! References #10717 [Cheah Chu Yeow] | Jeremy Kemper | 2008-01-06 | 1 | -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 Kemper | 2008-01-02 | 1 | -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 Kemper | 2007-12-20 | 1 | -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 Olson | 2007-12-08 | 1 | -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 Kemper | 2007-10-16 | 1 | -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 Koziarski | 2007-10-08 | 1 | -0/+7 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7792 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Make assert_valid_keys slightly more lenient | David Heinemeier Hansson | 2005-09-09 | 1 | -2/+2 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2166 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Moved Active Support into its own gem | David Heinemeier Hansson | 2005-02-15 | 1 | -0/+53 |
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |