aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/hash/slice.rb
Commit message (Collapse)AuthorAgeFilesLines
* Require Ruby 2.5 for Rails 6.Kasper Timm Hansen2018-12-191-23/+0
| | | | | | | | | | Generally followed the pattern for https://github.com/rails/rails/pull/32034 * Removes needless CI configs for 2.4 * Targets 2.5 in rubocop * Updates existing CHANGELOG entries for fewer merge conflicts * Removes Hash#slice extension as that's inlined on Ruby 2.5. * Removes the need for send on define_method in MethodCallAssertions.
* Remove odd spaces [ci skip]Ryuta Kamizono2018-11-211-2/+2
|
* Improve documentation for Hash#slice!Daniel Lopez 👾2018-11-211-2/+3
|
* Let Hash#slice return a HashAkira Matsuda2017-10-211-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 classAkira Matsuda2017-10-211-2/+0
|
* Hash#slice is in Ruby 2.5+Akira Matsuda2017-10-211-1/+1
| | | | since r60229
* [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-111-0/+1
|
* Use frozen-string-literal in ActiveSupportKir Shatrov2017-07-091-0/+1
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* normalizes indentation and whitespace across the projectXavier Noria2016-08-061-4/+4
|
* Doc fixes [ci skip]Islam Wazery2015-03-071-1/+1
|
* fix typo [ci skip]Vijay Dev2014-11-041-1/+1
|
* fixed typo [ci skip]Rishi Jain2014-11-041-1/+1
|
* added example for hash slice method [ci skip]Rishi Jain2014-11-041-2/+8
|
* slice! should not remove default hash value/procAntonio Santos2013-10-241-0/+2
|
* fix output messages - docs [ci skip]Francesco Rodriguez2012-10-221-3/+3
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-10-211-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 formatAvnerCohen2012-10-201-2/+2
| |
* | make Hash#extract! more symmetric with Hash#sliceMikhail Dieterle2012-10-081-3/+3
|/
* fix Hash#slice code example [ci skip]Francesco Rodriguez2012-09-181-1/+1
|
* update AS/core_ext docs [ci skip]Francesco Rodriguez2012-09-121-2/+6
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-05-011-1/+1
|\
| * Minor English fix.Erich Menge2012-04-301-1/+1
| |
* | AS core_ext refactoring pt.2Alexey Gaziev2012-04-291-1/+1
|/
* search private and protected methods for convert_keyAaron Patterson2012-03-201-2/+2
|
* refactor Hash#slice and Hash#extract!Vasiliy Ermolovich2012-03-061-8/+4
|
* Document Hash#extract!.Sebastian Martinez2011-08-151-0/+2
|
* Follow code conventions on docsSebastian Martinez2011-05-101-1/+1
|
* First pass at cleaning up action cachingYehuda Katz2009-10-281-0/+6
|
* Convert hash extension modules to class reopensJeremy Kemper2009-03-211-37/+29
|
* MaKe Hash#slice! return removed values, akin to Array [#971 state:resolved]trans2008-12-261-1/+8
| | | | Signed-off-by: Frederick Cheung <frederick.cheung@gmail.com>
* slice now returns indifferent hash if called on oneadam2008-09-231-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. #613MatthewRudy2008-07-171-0/+5
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Revert "Hash#slice supports an array of keys [#613 state:resolved]"Pratik Naik2008-07-171-1/+0
| | | | This reverts commit 396f9df8916b71f83aad8d56559cf55fc8501679.
* Hash#slice supports an array of keys [#613 state:resolved]Josh Owens2008-07-161-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 Kemper2008-06-071-4/+2
| | | | inclusion now
* Fixed the brokeness from 952ec79bec313e0001adfc8c86f7970448d32db9David Heinemeier Hansson2008-06-021-1/+1
|
* Faster Hash#slice that doesn't use Enumerable#include?.Cheah Chu Yeow2008-06-021-1/+3
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Revert [9209] Use Hash#exceptPratik Naik2008-04-021-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 Naik2008-04-021-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 Kemper2006-12-171-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