Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Let Hash#slice return a Hash | Akira Matsuda | 2017-10-21 | 1 | -1/+1 |
| | | | | | | | In order to keep this method compatible with the Ruby 2.5 version of Hash#slice. This bahavior is actually slightly incompatibile with previous versions of Active Support but it might not cause a real problem, since HWIA, the biggest use case of Hash subclassing here, already overrides `slice` to return another HWIA. | ||||
* | Move HWIA specific logic for slice and slice! to HWIA class | Akira Matsuda | 2017-10-21 | 1 | -2/+0 |
| | |||||
* | Hash#slice is in Ruby 2.5+ | Akira Matsuda | 2017-10-21 | 1 | -1/+1 |
| | | | | since r60229 | ||||
* | [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 |
| | |||||
* | normalizes indentation and whitespace across the project | Xavier Noria | 2016-08-06 | 1 | -4/+4 |
| | |||||
* | Doc fixes [ci skip] | Islam Wazery | 2015-03-07 | 1 | -1/+1 |
| | |||||
* | fix typo [ci skip] | Vijay Dev | 2014-11-04 | 1 | -1/+1 |
| | |||||
* | fixed typo [ci skip] | Rishi Jain | 2014-11-04 | 1 | -1/+1 |
| | |||||
* | added example for hash slice method [ci skip] | Rishi Jain | 2014-11-04 | 1 | -2/+8 |
| | |||||
* | slice! should not remove default hash value/proc | Antonio Santos | 2013-10-24 | 1 | -0/+2 |
| | |||||
* | fix output messages - docs [ci skip] | Francesco Rodriguez | 2012-10-22 | 1 | -3/+3 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-10-21 | 1 | -1/+1 |
|\ | | | | | | | | | | | Conflicts: activesupport/lib/active_support/core_ext/hash/slice.rb guides/source/active_support_core_extensions.md | ||||
| * | Hash Syntax changes to 1.9 format | AvnerCohen | 2012-10-20 | 1 | -2/+2 |
| | | |||||
* | | make Hash#extract! more symmetric with Hash#slice | Mikhail Dieterle | 2012-10-08 | 1 | -3/+3 |
|/ | |||||
* | fix Hash#slice code example [ci skip] | Francesco Rodriguez | 2012-09-18 | 1 | -1/+1 |
| | |||||
* | update AS/core_ext docs [ci skip] | Francesco Rodriguez | 2012-09-12 | 1 | -2/+6 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-05-01 | 1 | -1/+1 |
|\ | |||||
| * | Minor English fix. | Erich Menge | 2012-04-30 | 1 | -1/+1 |
| | | |||||
* | | AS core_ext refactoring pt.2 | Alexey Gaziev | 2012-04-29 | 1 | -1/+1 |
|/ | |||||
* | search private and protected methods for convert_key | Aaron Patterson | 2012-03-20 | 1 | -2/+2 |
| | |||||
* | refactor Hash#slice and Hash#extract! | Vasiliy Ermolovich | 2012-03-06 | 1 | -8/+4 |
| | |||||
* | Document Hash#extract!. | Sebastian Martinez | 2011-08-15 | 1 | -0/+2 |
| | |||||
* | Follow code conventions on docs | Sebastian Martinez | 2011-05-10 | 1 | -1/+1 |
| | |||||
* | First pass at cleaning up action caching | Yehuda Katz | 2009-10-28 | 1 | -0/+6 |
| | |||||
* | Convert hash extension modules to class reopens | Jeremy Kemper | 2009-03-21 | 1 | -37/+29 |
| | |||||
* | MaKe Hash#slice! return removed values, akin to Array [#971 state:resolved] | trans | 2008-12-26 | 1 | -1/+8 |
| | | | | Signed-off-by: Frederick Cheung <frederick.cheung@gmail.com> | ||||
* | slice now returns indifferent hash if called on one | adam | 2008-09-23 | 1 | -1/+1 |
| | | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1096 state:committed] | ||||
* | Add extra tests to ensure Hash#slice works with an array as a key. #613 | MatthewRudy | 2008-07-17 | 1 | -0/+5 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Revert "Hash#slice supports an array of keys [#613 state:resolved]" | Pratik Naik | 2008-07-17 | 1 | -1/+0 |
| | | | | This reverts commit 396f9df8916b71f83aad8d56559cf55fc8501679. | ||||
* | Hash#slice supports an array of keys [#613 state:resolved] | Josh Owens | 2008-07-16 | 1 | -0/+1 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | No need to build a Set since we're iterating instead of checking for ↵ | Jeremy Kemper | 2008-06-07 | 1 | -4/+2 |
| | | | | inclusion now | ||||
* | Fixed the brokeness from 952ec79bec313e0001adfc8c86f7970448d32db9 | David Heinemeier Hansson | 2008-06-02 | 1 | -1/+1 |
| | |||||
* | Faster Hash#slice that doesn't use Enumerable#include?. | Cheah Chu Yeow | 2008-06-02 | 1 | -1/+3 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Revert [9209] Use Hash#except | Pratik Naik | 2008-04-02 | 1 | -16/+0 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9210 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Adding Hash#without Closes #7369 [eventualbuddha] | Pratik Naik | 2008-04-02 | 1 | -0/+16 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9209 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Hash#slice(*keys) returns a new hash with only the given keys. #slice! ↵ | Jeremy Kemper | 2006-12-17 | 1 | -0/+28 |
replaces the hash with only the given keys. Works with HashWithIndifferentAccess also. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5726 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |