Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Merge pull request #10740 from mrsimo/hash-with-indifferent-access-select | Rafael Mendonça França | 2013-06-14 | 1 | -0/+4 | |
|\ \ | | | | | | | HashWithIndifferentAccess#select working as intended | |||||
| * | | HashWithIndifferentAccess#select working as intended | Albert Llop | 2013-05-23 | 1 | -0/+4 | |
| | | | | | | | | | | | | | | | | | | Before this commit, #reject returned a HashWithIndifferentAccess, whereas #select returned a Hash. Now #select also returns a HashWithIndifferentAccess. | |||||
* | | | Prevent side effects in `Hash#with_indifferent_access`. | Yves Senn | 2013-05-29 | 1 | -6/+12 | |
|/ / | ||||||
* / | Fix HWIA#to_hash behavior with array of hashes. | kennyj | 2013-05-16 | 1 | -2/+2 | |
|/ | ||||||
* | Merge pull request #10266 from vipulnsward/fix_HIA_to_hash | Rafael Mendonça França | 2013-05-14 | 1 | -3/+7 | |
|\ | | | | | fix HashWithIndifferentAccess#to_hash behaviour | |||||
| * | fix HashWithIndifferentAccess#to_hash behaviour | Vipul A M | 2013-04-19 | 1 | -3/+7 | |
| | | ||||||
* | | symbolize_keys => symbolize_keys! on new hash; | Vipul A M | 2013-04-19 | 1 | -1/+1 | |
|/ | | | | "There're" => There are for better readability | |||||
* | change merge to merge! | Vipul A M | 2013-03-29 | 1 | -1/+1 | |
| | ||||||
* | Implement replace method so key? works correctly. | David Graham | 2012-10-26 | 1 | -0/+8 | |
| | ||||||
* | update AS docs [ci skip] | Francesco Rodriguez | 2012-09-17 | 1 | -4/+5 | |
| | ||||||
* | update some AS code examples to 1.9 hash syntax [ci skip] | Francesco Rodriguez | 2012-09-12 | 1 | -19/+14 | |
| | ||||||
* | Extend HashWithIndifferentAccess#update to take an optional block | Leo Cassarani | 2012-09-05 | 1 | -6/+21 | |
| | | | | | | | | | | | | | When a block is passed into the method, it will be invoked for each duplicated key, with the key in question and the two values as arguments. The value for the duplicated key in the receiver will be set to the return value of the block. This behaviour matches Ruby's long-standing implementation of Hash#update and is intended to provide a more consistent interface. HashWithIndifferentAccess#merge is also affected by the change, as it uses #update internally. | |||||
* | +"foo"+ doesn't generate code tag [ci skip] | Rafael Mendonça França | 2012-07-21 | 1 | -1/+1 | |
| | ||||||
* | Lets be consistent with whitespaces at documentation | Rafael Mendonça França | 2012-07-21 | 1 | -13/+13 | |
| | ||||||
* | makes a pass over the API of ActiveSupport::HashWithIndifferentAccess | Xavier Noria | 2012-07-21 | 1 | -22/+70 | |
| | ||||||
* | Hash#fetch(fetch) is not the same as doing hash[key] | Xavier Noria | 2012-07-21 | 1 | -1/+11 | |
| | ||||||
* | Use map! instead of replace + map | Carlos Antonio da Silva | 2012-06-18 | 1 | -1/+1 | |
| | ||||||
* | Fix lookup on HashWithIndifferentAccess for array values. | Chris Zetter | 2012-06-18 | 1 | -1/+2 | |
| | ||||||
* | Adding deep versions of stringify_keys and symbolize_keys (plain and bang) ↵ | Lucas Húngaro | 2012-05-23 | 1 | -0/+4 | |
| | | | | for nested hashes | |||||
* | fix HashWithIndifferentAccess.[] method | Sergey Nartimov | 2012-03-23 | 1 | -0/+4 | |
| | ||||||
* | search private and protected methods for convert_key | Aaron Patterson | 2012-03-20 | 1 | -1/+1 | |
| | ||||||
* | Clean up module docs [ci skip] | Vijay Dev | 2012-03-07 | 1 | -4/+3 | |
| | | | | Removed some useless docstrings and no-doc'ed some. | |||||
* | Overrode Hash#nested_under_indifferent_access in HashWithIndifferentAccess | Miles Georgi | 2011-12-11 | 1 | -0/+4 | |
| | | | | to return self. | |||||
* | docs formatting changes | Vijay Dev | 2011-09-01 | 1 | -1/+1 | |
| | ||||||
* | document HashWithIndifferentAccess#extractable_options? | Shawn Drost | 2011-07-07 | 1 | -0/+2 | |
| | ||||||
* | Use dup to preserve previous behavior | David Lee | 2011-05-17 | 1 | -1/+1 | |
| | ||||||
* | Optimize parts of HashWithIndifferentAccess | David Lee | 2011-05-17 | 1 | -2/+10 | |
| | ||||||
* | indifferent access should recurse Hash subclasses | David Lee | 2011-05-08 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | This commit makes Hash subclasses convert to HWIA by default for nested objects of subclasses of Hash, but allows certain subclasses to prevent nested conversion by introducing Hash#nested_under_indifferent_access that subclasses can overwrite. ActiveSupport::OrderedHash is one such subclass that overwrites +nested_under_indifferent_access+, since implicitly converting it to HWIA would remove the ordering of keys and values in Ruby 1.8. This change is necessary because commit ce9456e broke nested indifferent access conversion for all subclasses of Hash. | |||||
* | Some style changes | suchasurge | 2011-03-06 | 1 | -2/+2 | |
| | ||||||
* | Only convert direct hash instances in hash with indifferent access. | José Valim | 2010-11-26 | 1 | -4/+3 | |
| | ||||||
* | HashWithIndifferentAccess should not change the subclass of an array | Larry Sprock | 2010-11-14 | 1 | -1/+1 | |
| | ||||||
* | Ensure that HashWithIndifferentAccess duplication preserves class (for ↵ | laserlemon | 2010-11-07 | 1 | -2/+4 | |
| | | | | | | sublclasses) and default value [#5724 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | |||||
* | Override #store to be consistent with #[]. | Andrea Campi | 2010-10-10 | 1 | -0/+2 | |
| | | | | | | [#5775 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | |||||
* | now for real, the suite loads everything and these went unpatched | Xavier Noria | 2010-08-19 | 1 | -3/+3 | |
| | ||||||
* | avoids a ton o warnings ↵ | Xavier Noria | 2010-08-19 | 1 | -1/+6 | |
| | | | | activesupport/lib/active_support/dependencies.rb:239: warning: loading in progress, circular require considered harmful ... activesupport/lib/active_support/core_ext/hash/indifferent_access.rb while running the suite in Ruby 1.9.2 | |||||
* | Add missing require in ActiveSupport::HashWithIndifferentAccess [#5189 ↵ | Chris Hoffman | 2010-08-02 | 1 | -0/+1 | |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | HWIA relies on Hash#symbolize_keys and #stringify_keys extensions. | Santiago Pastorino | 2010-04-22 | 1 | -0/+2 | |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Change HWIA#stringify_keys to return a HWIA not a Hash | Jeremy Kemper | 2010-04-22 | 1 | -1/+1 | |
| | ||||||
* | Restore HWIA#stringify_keys! and update changelog | Jeremy Kemper | 2010-04-22 | 1 | -2/+2 | |
| | ||||||
* | HWIA delegates to to_hash symbolize_keys and stringify_keys and bang methods ↵ | Santiago Pastorino | 2010-04-22 | 1 | -2/+4 | |
| | | | | | | are not in the api Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Limit Array#extract_options! to directl instances of Hash and HWIA. Add ↵ | wycats | 2010-03-27 | 1 | -0/+4 | |
| | | | | extractable_options? to Hash so that subclasses of Hash can opt-into extractable behavior. This fixes an issue where respond_with wasn't working with subclasses of Hash that were provided by other libraries (such as CouchDB or Mashie) [#4145 state:resolved] | |||||
* | ActiveSupport Hash optimizations [#2902 state:resolved] | Lourens Naude | 2009-07-15 | 1 | -1/+5 | |
| | | | | Signed-off-by: Carl Lerche <carllerche@mac.com> | |||||
* | Namespace HashWithIndifferentAccess | Jeremy Kemper | 2009-03-21 | 1 | -105/+109 | |
| | ||||||
* | Convert hash extension modules to class reopens | Jeremy Kemper | 2009-03-21 | 1 | -0/+129 | |