enum_help 0.0.12 → 0.0.13

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
  SHA1:
3
- metadata.gz: e8320d3b8657e8e765ed1024aa49bc859fe1ac3f
4
- data.tar.gz: d97c48fefca4444b4b6cc13ef3ba25a2b1e1439b
3
+ metadata.gz: 3550dec4d6b768d88a1cfebed57387514d9ff703
4
+ data.tar.gz: 9a886f98131d944c37ecb15308f66eee5765480c
5
5
  SHA512:
6
- metadata.gz: e66621eeb64f4b3fb241952dec31bafa80d8d16df3a767e990d9e4a4c97ebc105bbbb30d72df2d9d0a14a771ced53724e47c81066bf13da759db72f6e38e0ace
7
- data.tar.gz: f41e5c5ab2976510cbd504538453a40d628a093cdb2d1bebf864a5094d4a5304bfa9e96a747ff563e64b96148feeafbea1227c83e5bce097e63a4f4f638305de
6
+ metadata.gz: 2cbddb39d847931d90f405afbbd5b54ced2382854993a576e2528b59443e1a9c6824dcb14ceaea2c6b64a7aa53afc244aca66993f462ce011b50152fb3e9bcfb
7
+ data.tar.gz: c1c59995884bcb8f65a43397f4e316e3c466725e8b7bcc832b4caa1c23b44efbbad68275af2a85d355a68f1eec0b84b450391b12669af9ef7af09d74e653d975
@@ -18,7 +18,7 @@ module EnumHelp
18
18
 
19
19
 
20
20
  def is_enum_attributes?( attribute_name )
21
- object.class.respond_to?(attribute_name.pluralize) && attribute_name.pluralize != "references"
21
+ object.class.defined_enums.key?(attribute_name) && attribute_name.pluralize != "references"
22
22
  end
23
23
 
24
24
 
@@ -1,3 +1,3 @@
1
1
  module EnumHelp
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enum_help
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lester Zhao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-10 00:00:00.000000000 Z
11
+ date: 2015-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler