Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use native `Array#append`, `Array#prepend`, `Hash#transform_keys`, and ↵ | Ryuta Kamizono | 2018-12-20 | 1 | -29/+0 |
| | | | | | | | | | | `Hash#transform_keys!` Since Rails 6 requires Ruby 2.5. https://github.com/ruby/ruby/blob/ruby_2_5/NEWS Follow up #34754. | ||||
* | Hash#transform_keys is in Ruby 2.5+ | Akira Matsuda | 2017-09-01 | 1 | -2/+2 |
| | | | | since r59328 | ||||
* | [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment` | Koichi ITO | 2017-07-11 | 1 | -0/+1 |
| | |||||
* | Use frozen-string-literal in ActiveSupport | Kir Shatrov | 2017-07-09 | 1 | -0/+1 |
| | |||||
* | Revert "Merge pull request #29540 from kirs/rubocop-frozen-string" | Matthew Draper | 2017-07-02 | 1 | -1/+0 |
| | | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa. | ||||
* | Enforce frozen string in Rubocop | Kir Shatrov | 2017-07-01 | 1 | -0/+1 |
| | |||||
* | Add three new rubocop rules | Rafael Mendonça França | 2016-08-16 | 1 | -6/+6 |
| | | | | | | | | Style/SpaceBeforeBlockBraces Style/SpaceInsideBlockBraces Style/SpaceInsideHashLiteralBraces Fix all violations in the repository. | ||||
* | Restore Hash#transform_keys behavior to always return a Hash instance | Emily | 2016-04-12 | 1 | -1/+1 |
| | |||||
* | Merge pull request #21806 from kachick/fix-transformer-size | Eileen M. Uchitelle | 2015-11-07 | 1 | -2/+2 |
|\ | | | | | Return a sized Enumerator from Hash#transform_values{!} | ||||
| * | Return a sized Enumerator from Hash#{transform_values{!}|transform_keys{!}} | Kenichi Kamiya | 2015-09-29 | 1 | -2/+2 |
| | | |||||
* | | Improve readability of docs by using code tag [ci skip] | Prakash Laxkar | 2015-09-29 | 1 | -1/+1 |
|/ | |||||
* | Updated docs for transform_keys [ci skip] | Ronak Jangir | 2015-09-28 | 1 | -5/+9 |
| | |||||
* | 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> |