mongoid_enumerable 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c71de239aa1fc189ba440d65634943a35eceeaf6d168060e83c723b0b85db28
4
- data.tar.gz: 8cfccd02d93029c1e2cb512e48471ebbf995aef507d4cbf468d18df89484faa6
3
+ metadata.gz: 9ec2532e40c5edfc29029fe022a8feb7bb597454221962243aa10400bc34afb4
4
+ data.tar.gz: 44bae9e6eb17d5cc1382e780728e4b9c71078212781aa103bb6dcbd804c164d1
5
5
  SHA512:
6
- metadata.gz: be7b70e9018f32ad371ae9efebe45f24ba2f60f0219d9bbdb4182fd5521a83aa876f6f8519fd97af076d6a2a67c307682a3b90a8ca7f037c89eff965452f26d4
7
- data.tar.gz: 84fb62ed5d800f5d46914fc41767a75bc45642296bfeb157cea45dc1adcd00719bcc8adc226e9f32c8c6d595e349220c5e2b281a38c8a599793513c505c0b43a
6
+ metadata.gz: cddccbd3dccf073ac03e5a803414a42e174cddf6c1e8009c38e4138909d4a7ff8eb3d0d8102c12edee123cd2a7a0ef44102d1f78f5bb2b8ac99397cfb0349481
7
+ data.tar.gz: 45caf06aa1ab7d4ef5ae487292ea55dc069c805f1c7f16a43b69acaa23f448add7ca6bae780b1ee4696228ef963a79c516249e2668835aa0e515357033ca1648
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mongoid_enumerable (0.2.0)
4
+ mongoid_enumerable (0.2.1)
5
5
  mongoid (>= 4.0)
6
6
 
7
7
  GEM
@@ -23,13 +23,13 @@ module MongoidEnumerable
23
23
  send(field_name) == value
24
24
  end
25
25
 
26
- base.class.redefine_method(method_name) do
26
+ base.define_singleton_method(method_name) do
27
27
  base.where(field_name => value)
28
28
  end
29
+ end
29
30
 
30
- base.class.redefine_method("all_#{field_name}") do
31
- values
32
- end
31
+ base.define_singleton_method("all_#{field_name}") do
32
+ values
33
33
  end
34
34
  end
35
35
  end
@@ -1,3 +1,3 @@
1
1
  module MongoidEnumerable
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_enumerable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Douglas Lise
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-10 00:00:00.000000000 Z
11
+ date: 2018-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler