Skip to content
This repository

Mar 28, 2014

  1. Peter Jaros

    HashWithIndifferentAccess better respects #to_hash

    In particular, `.new`, `#update`, `#merge`, `#replace` all accept
    objects which respond to `#to_hash`, even if those objects are not
    Hashes directly.
    authored October 15, 2013

Jan 17, 2014

  1. Rafael Mendonça França

    Consistence in the block style

    authored January 17, 2014
  2. Rafael Mendonça França

    Remove warnings on Ruby 2.1

    authored January 17, 2014

Nov 11, 2013

  1. Prem Sichanugrist

    Change syntax format for example returned values

    According to our guideline, we leave 1 space between `#` and `=>`, so we
    want `# =>` instead of `#=>`.
    
    Thanks to @fxn for the suggestion.
    
    [ci skip]
    authored November 11, 2013

Jul 06, 2013

  1. Marc Schütz

    Make HashWithIndifferentAccess#select always return the hash.

    Hash#select! returns nil if the hash didn't change and thus behaves differently
    from select, so it's return value can't be used as result for the latter.
    authored July 06, 2013

Jun 26, 2013

  1. Carlos Antonio da Silva

    Merge pull request #10627 from vipulnsward/destructive_symbolize

    Change to destructive `deep_symbolize_keys` to avoid a new hash creation.

Jun 14, 2013

  1. Rafael Mendonça França

    Merge pull request #10740 from mrsimo/hash-with-indifferent-access-se…

    …lect
    
    HashWithIndifferentAccess#select working as intended
    authored June 14, 2013

May 29, 2013

  1. Yves Senn

    Prevent side effects in `Hash#with_indifferent_access`.

    authored May 29, 2013

May 23, 2013

  1. Albert Llop

    HashWithIndifferentAccess#select working as intended

    Before this commit, #reject returned a HashWithIndifferentAccess,
    whereas #select returned a Hash. Now #select also returns a
    HashWithIndifferentAccess.
    authored May 23, 2013

May 15, 2013

  1. Toshinori Kajihara

    Fix HWIA#to_hash behavior with array of hashes.

    authored May 15, 2013
  2. Vipul A M

    change to destructive `deep_symbolize_keys` after df24b87 which allow…

    …s to do so. This helps to avoid extra hash object creation, by symbolizing inplace

May 14, 2013

  1. Rafael Mendonça França

    Merge pull request #10266 from vipulnsward/fix_HIA_to_hash

    fix HashWithIndifferentAccess#to_hash behaviour

Apr 19, 2013

  1. Vipul A M

    fix HashWithIndifferentAccess#to_hash behaviour

    authored April 19, 2013
  2. Vipul A M

    symbolize_keys => symbolize_keys! on new hash;

    "There're" => There are for better readability
    authored April 19, 2013

Mar 29, 2013

  1. Vipul A M

    change merge to merge!

    authored March 29, 2013

Oct 26, 2012

  1. David Graham

    Implement replace method so key? works correctly.

    authored October 16, 2012

Sep 17, 2012

  1. Francesco Rodríguez

    update AS docs [ci skip]

    authored September 17, 2012

Sep 12, 2012

  1. Francesco Rodríguez

    update some AS code examples to 1.9 hash syntax [ci skip]

    authored September 12, 2012

Sep 04, 2012

  1. Leo Cassarani

    Extend HashWithIndifferentAccess#update to take an optional block

    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.
    authored September 03, 2012

Jul 21, 2012

  1. Rafael Mendonça França

    +"foo"+ doesn't generate code tag [ci skip]

    authored July 21, 2012
  2. Rafael Mendonça França

    Lets be consistent with whitespaces at documentation

    authored July 21, 2012
  3. Xavier Noria

    makes a pass over the API of ActiveSupport::HashWithIndifferentAccess

    authored July 21, 2012
  4. Xavier Noria

    Hash#fetch(fetch) is not the same as doing hash[key]

    authored July 21, 2012

Jun 19, 2012

  1. Carlos Antonio da Silva

    Use map! instead of replace + map

  2. Chris Zetter

    Fix lookup on HashWithIndifferentAccess for array values.

    authored November 30, 2011 carlosantoniodasilva committed June 18, 2012

May 23, 2012

  1. Lucas Húngaro

    Adding deep versions of stringify_keys and symbolize_keys (plain and …

    …bang) for nested hashes
    authored April 29, 2012

Mar 23, 2012

  1. Sergey Nartimov

    fix HashWithIndifferentAccess.[] method

    authored March 23, 2012

Mar 20, 2012

  1. Aaron Patterson

    search private and protected methods for convert_key

    authored March 20, 2012

Mar 06, 2012

  1. Vijay Dev

    Clean up module docs [ci skip]

    Removed some useless docstrings and no-doc'ed some.
    authored March 07, 2012

Dec 11, 2011

  1. Miles Georgi

    Overrode Hash#nested_under_indifferent_access in HashWithIndifferentA…

    …ccess
    
    to return self.
    authored December 11, 2011

Sep 01, 2011

  1. Vijay Dev

    docs formatting changes

    authored September 01, 2011

Jul 07, 2011

  1. shawndrost

    document HashWithIndifferentAccess#extractable_options?

    authored July 07, 2011

May 17, 2011

  1. dlee

    Use dup to preserve previous behavior

    authored May 17, 2011
  2. dlee

    Optimize parts of HashWithIndifferentAccess

    authored May 17, 2011

May 08, 2011

  1. dlee

    indifferent access should recurse Hash subclasses

    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.
    authored May 08, 2011
Something went wrong with that request. Please try again.