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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae80ab5c3269d2d2d014229a916e6bd2d1f5887a
4
- data.tar.gz: 5e90a1d6874451e1cf34ccfd88bce14e459b274d
3
+ metadata.gz: e3082cfba7719b95366f131b985a9da6a997404b
4
+ data.tar.gz: aa4e70ecc24eb932fcfc729f1493c09a674b6d6d
5
5
  SHA512:
6
- metadata.gz: 160c12fd33afa959a6597fa45c3e0d3edfa663d8fa7c33037fb0131e791180829dbc1c2fe1a43f8927a3f22e3e51cc6776bec16c0204e320513080677c03027d
7
- data.tar.gz: bbd73843daaad8e0668a3ee1eba60eaabb20e80490bfe0d86203303b08ca4e44bb7d66720d4d67c7e3657acdb0bb57bad063b21d037fd928931f4cd9d9501075
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.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
@@ -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
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module EavHashes
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
5
5
  end
@@ -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
- end
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.2
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-05-05 00:00:00.000000000 Z
11
+ date: 2016-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails