eav_hashes 1.0.2 → 1.0.3
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 +3 -1
 - data/lib/eav_hashes/eav_hash.rb +2 -2
 - data/lib/eav_hashes/version.rb +1 -1
 - data/spec/lib/eav_hashes/eav_hash_spec.rb +7 -1
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: e3082cfba7719b95366f131b985a9da6a997404b
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: aa4e70ecc24eb932fcfc729f1493c09a674b6d6d
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 1b7aad762acb328cda34684513a81aa58c19ea5c8d2fabb0c173f19e5ec85235db99fd4bfc72df9e325c069e3b8ef0da62e40ff5a986632ca92fc652212996ba
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 2ff4009e8c8a3f65a98791bfcf1a0d2323cc39e361596664e34bd423669bb78ded65fb3f1144940918693472a8a926c985b5a32641a83a3925a7c8eaf195d804
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -22,7 +22,7 @@ Great question! Lets dive in with a simple code example, but first lets set up t 
     | 
|
| 
       22 
22 
     | 
    
         | 
| 
       23 
23 
     | 
    
         
             
            Put this in your gemfile...
         
     | 
| 
       24 
24 
     | 
    
         | 
| 
       25 
     | 
    
         
            -
                gem "eav_hashes", "~> 1.0. 
     | 
| 
      
 25 
     | 
    
         
            +
                gem "eav_hashes", "~> 1.0.2"
         
     | 
| 
       26 
26 
     | 
    
         | 
| 
       27 
27 
     | 
    
         
             
            ...and update your bundle.
         
     | 
| 
       28 
28 
     | 
    
         | 
| 
         @@ -141,6 +141,8 @@ Special Thanks! 
     | 
|
| 
       141 
141 
     | 
    
         
             
            -
         
     | 
| 
       142 
142 
     | 
    
         
             
            Thanks to [Matt Kimmel](https://github.com/mattkimmel) for adding support for models contained in namespaces.
         
     | 
| 
       143 
143 
     | 
    
         | 
| 
      
 144 
     | 
    
         
            +
            Thanks to [Arpad Lukacs](https://github.com/arpadlukacs) for adding Enumerator-like behavior.
         
     | 
| 
      
 145 
     | 
    
         
            +
             
     | 
| 
       144 
146 
     | 
    
         
             
            I found a bug or want to contribute!
         
     | 
| 
       145 
147 
     | 
    
         
             
            -
         
     | 
| 
       146 
148 
     | 
    
         
             
            You're probably reading this from GitHub, so you know what to do. If not, the
         
     | 
    
        data/lib/eav_hashes/eav_hash.rb
    CHANGED
    
    | 
         @@ -87,7 +87,7 @@ module ActiveRecord 
     | 
|
| 
       87 
87 
     | 
    
         | 
| 
       88 
88 
     | 
    
         
             
                  # Emulates Hash.each
         
     | 
| 
       89 
89 
     | 
    
         
             
                  def each (&block)
         
     | 
| 
       90 
     | 
    
         
            -
                    as_hash.each block
         
     | 
| 
      
 90 
     | 
    
         
            +
                    as_hash.each &block
         
     | 
| 
       91 
91 
     | 
    
         
             
                  end
         
     | 
| 
       92 
92 
     | 
    
         | 
| 
       93 
93 
     | 
    
         
             
                  # Emulates Hash.each_pair (same as each)
         
     | 
| 
         @@ -165,4 +165,4 @@ module ActiveRecord 
     | 
|
| 
       165 
165 
     | 
    
         
             
                  end
         
     | 
| 
       166 
166 
     | 
    
         
             
                end
         
     | 
| 
       167 
167 
     | 
    
         
             
              end
         
     | 
| 
       168 
     | 
    
         
            -
            end
         
     | 
| 
      
 168 
     | 
    
         
            +
            end
         
     | 
    
        data/lib/eav_hashes/version.rb
    CHANGED
    
    
| 
         @@ -145,4 +145,10 @@ describe "EavHash/EavEntry" do 
     | 
|
| 
       145 
145 
     | 
    
         
             
                        expect(lambda { Product.find_by_tech_specs("An Array", ["blue", 42, :flux_capacitor]) }).to raise_error()
         
     | 
| 
       146 
146 
     | 
    
         
             
                    end
         
     | 
| 
       147 
147 
     | 
    
         
             
                end
         
     | 
| 
       148 
     | 
    
         
            -
             
     | 
| 
      
 148 
     | 
    
         
            +
                
         
     | 
| 
      
 149 
     | 
    
         
            +
                describe "enumerable" do
         
     | 
| 
      
 150 
     | 
    
         
            +
                    it "each gives an enumerator" do
         
     | 
| 
      
 151 
     | 
    
         
            +
                        expect(p1.tech_specs.each).to be_instance_of(Enumerator)
         
     | 
| 
      
 152 
     | 
    
         
            +
                    end
         
     | 
| 
      
 153 
     | 
    
         
            +
                end
         
     | 
| 
      
 154 
     | 
    
         
            +
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: eav_hashes
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.0.3
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Ilya Ostrovskiy
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2016- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2016-06-14 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: rails
         
     |