enum_to_sym 1.0.1 → 1.0.2

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: 111d63d18fdd53f70772e16d9fe1228a05cfa087
4
- data.tar.gz: 159dfa27c23064b97eca1c89a92711e2b45c2854
3
+ metadata.gz: b0c333100d8f8ab996060bb5286cacaf5c3c8c63
4
+ data.tar.gz: 30ada370c983eb6bb9c1e5d8d8e03672bb09eda4
5
5
  SHA512:
6
- metadata.gz: 08cde56773631bff0bbf8d2ae6a7d26cd08f7ffa5f671d0b6825d3104b6830a256a94250ee66467a6c433714e00872465519f3db4faeb271cb60f70aafd394ef
7
- data.tar.gz: 65ae9579544ab48761e3cf81d804cee9b9b7e484a35c7321d9ac9c494317702676e6f6f2ecd8ad86cd0a3c23e77d12b148c82e1301cf1d7dcd30c36d989d4346
6
+ metadata.gz: 9879c130c0d1be385e58fc367fdc6b7b7b40b34e17dd82208559c1db99fec1ff9e75316bd7f8ca379791ba8a588849da18a87ce32b627f7fb0fe4d4976b2ea9c
7
+ data.tar.gz: b744bf3241b86f2c3827326f791c339c65a3807cc387abfb8b81e11121ea5096c94edf45e9832093720c7a8b6205f6c46008ca369de783b58ba1f33e2f802f4d
@@ -2,6 +2,10 @@ module EnumToSym
2
2
  module Symbolize
3
3
  extend ActiveSupport::Concern
4
4
 
5
+ def is?(status)
6
+ send("#{status}?") if respond_to?("#{status}?")
7
+ end
8
+
5
9
  module ClassMethods
6
10
  def enum(definitions)
7
11
  _return = super
@@ -1,3 +1,3 @@
1
1
  module EnumToSym
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enum_to_sym
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Devine
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-24 00:00:00.000000000 Z
11
+ date: 2013-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails