aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/hash.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add 'Hash#deep_transform_values', and 'Hash#deep_transform_values!'Guillermo Iguaran2019-02-081-0/+1
|
* Deprecate `active_support/core_ext/hash/compact`yuuji.yaginuma2018-03-021-1/+0
| | | | | Ruby 2.4+ provides `Hash#compact` and `Hash#compact!` natively, so `active_support/core_ext/hash/compact` is no longer necessary.
* Rails 6 requires Ruby 2.4.1+Jeremy Daer2018-02-171-1/+0
| | | | | | Skipping over 2.4.0 to sidestep the `"symbol_from_string".to_sym.dup` bug. References #32028
* [Active Support] require_relative => requireAkira Matsuda2017-10-211-9/+9
| | | | This basically reverts 8da30ad6be34339124ba4cb4e36aea260dda12bc
* [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-111-0/+1
|
* Use frozen-string-literal in ActiveSupportKir Shatrov2017-07-091-0/+1
|
* [Active Support] require => require_relativeAkira Matsuda2017-07-011-9/+9
|
* applies new string literal convention in activesupport/libXavier Noria2016-08-061-9/+9
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Add `Hash#map_values` to ActiveSupportSean Griffin2014-06-291-0/+1
| | | | | Didn't get a chance to convert existing code, I'll skim through the code base to make use of this later this afternoon.
* Adding Hash#compact and Hash#compact! methodstinogomes2014-01-091-0/+1
| | | | | | | | | | | * Adding Hash#compact and Hash#compact! methods * Using Ruby 1.9 syntax on documentation * Updating guides for `Hash#compact` and `Hash#compact!` methods * Updating CHANGELOG for ActiveSupport * Removing unecessary protected method and lambda for `Hash#compact` implementations * Performing `Hash#compact` implementation - https://gist.github.com/tinogomes/8332883 * fixing order position * Fixing typo
* Remove deprecated Hash#diff with no replacement.Carlos Antonio da Silva2013-07-021-1/+0
| | | | | If you're using it to compare hashes for the purpose of testing, please use MiniTest's assert_equal instead.
* Keep all methods in object/deep_dupPiotr Sarnacki2012-05-061-1/+0
|
* Added Hash#deep_dup function which performs deep duplication on given hashPiotr Sarnacki2010-11-021-0/+1
|
* Convert Hash conversions extension module to class reopenJeremy Kemper2009-03-281-3/+1
|
* Convert hash extension modules to class reopensJeremy Kemper2009-03-211-1/+9
|
* * Introduce ActiveSupport.core_ext Integer, %w(conversions time etc)Jeremy Kemper2009-03-211-14/+2
| | | | | | * Convert some extension modules to simply reopening the class * Remove deprecated Float time extensions * Fold Base64 extension into ActiveSupport::Base64 since stdlib Base64 is gone
* Allow deep merging of hash values for nested with_options. [#490 state:resolved]Lawrence Pit2008-07-171-1/+2
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ruby 1.9 compat, consistent load pathsJeremy Kemper2007-10-021-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Hash#except which is the inverse of Hash#slice -- return the hash ↵David Heinemeier Hansson2007-07-091-1/+2
| | | | | | except the keys that are specified [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7172 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Hash#slice(*keys) returns a new hash with only the given keys. #slice! ↵Jeremy Kemper2006-12-171-5/+4
| | | | | | 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
* Added nicer message for assert_redirected_to (closes #4294) [court3nay, ↵Rick Olson2006-03-191-0/+2
| | | | | | Chris McGrath] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3969 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Hash#to_xml and Array#to_xml that makes it much easier to produce XML ↵David Heinemeier Hansson2006-03-081-0/+2
| | | | | | from basic structures [DHH] Moved Jim Weirich's wonderful Builder from Action Pack to Active Support (it's simply too useful to be stuck in AP) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3812 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Hash#reverse_merge, Hash#reverse_merge!, and Hash#reverse_update to ↵David Heinemeier Hansson2005-09-111-0/+2
| | | | | | ease the use of default options. Added :connector and :skip_last_comma options to Array#to_sentence git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2192 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved Active Support into its own gemDavid Heinemeier Hansson2005-02-151-0/+7
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de