hash_ext 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/lib/hash_ext/nested.rb +13 -0
- data/lib/hash_ext/version.rb +1 -1
- data/lib/hash_ext.rb +2 -1
- metadata +3 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 5bb99caf8aab9c57468441c32b81ca57af6f62c721f02e2de3b50e35a25f844c
         | 
| 4 | 
            +
              data.tar.gz: 954260a1450f803f93496417d5fdc27a2cae5ab55d29f177c5e64162c4e398f9
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: bc8bb6beb185f177b5be28d3391a3f07f3202cda8adfcc41241cdcbf4fb1fbc1b40a7f6773bad729ae26e54d24b477f69d1a549753e48f54a4e39624afe5cc49
         | 
| 7 | 
            +
              data.tar.gz: c083a701839254828d2d3d7dd588e62aa028421069128b58fb5c8956475e7c3001965d7a7b59c185302782b27577ecb6b1e9a4b546fc8e42892fc196cd984783
         | 
    
        data/README.md
    CHANGED
    
    | @@ -92,6 +92,14 @@ hash[:a] = 3 | |
| 92 92 | 
             
            hash.keys # => [:a, :b, :c]
         | 
| 93 93 | 
             
            ```
         | 
| 94 94 |  | 
| 95 | 
            +
            ### Nested
         | 
| 96 | 
            +
            ```ruby
         | 
| 97 | 
            +
            hash = Hash::Nested.new
         | 
| 98 | 
            +
             | 
| 99 | 
            +
            hash[:level_1][:level_2][:level_3] = 'value'
         | 
| 100 | 
            +
             | 
| 101 | 
            +
            hash # => {level_1: {level_2: {level_3: 'value'}}}
         | 
| 102 | 
            +
            ```
         | 
| 95 103 |  | 
| 96 104 | 
             
            ## Contributing
         | 
| 97 105 |  | 
    
        data/lib/hash_ext/version.rb
    CHANGED
    
    
    
        data/lib/hash_ext.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: hash_ext
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0. | 
| 4 | 
            +
              version: 0.4.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Gabriel Naiman
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: exe
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2018-01- | 
| 11 | 
            +
            date: 2018-01-31 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: bundler
         | 
| @@ -143,6 +143,7 @@ files: | |
| 143 143 | 
             
            - lib/hash_ext/accessible.rb
         | 
| 144 144 | 
             
            - lib/hash_ext/builder.rb
         | 
| 145 145 | 
             
            - lib/hash_ext/indifferent.rb
         | 
| 146 | 
            +
            - lib/hash_ext/nested.rb
         | 
| 146 147 | 
             
            - lib/hash_ext/normalized.rb
         | 
| 147 148 | 
             
            - lib/hash_ext/sorted.rb
         | 
| 148 149 | 
             
            - lib/hash_ext/version.rb
         |