enum_to_sym 1.0 → 1.0.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
  SHA1:
3
- metadata.gz: 853e37eeaad402e337b24f2d83aaae5a8ff07754
4
- data.tar.gz: ca09a6b8c8b3b4a7d17550621452fa42bf81474b
3
+ metadata.gz: 111d63d18fdd53f70772e16d9fe1228a05cfa087
4
+ data.tar.gz: 159dfa27c23064b97eca1c89a92711e2b45c2854
5
5
  SHA512:
6
- metadata.gz: 1db76af6fdf57129d10c109d416c7fc45035663f78ace7b623d6a76814477f3a66087c210dbf96842a5ee9c83e309c6dff6f533f7486cc3a804afbec6836d91f
7
- data.tar.gz: dcc811ffb48fb337ad3a2d3967cccbfa5d570d9e78b57ee369c31422c43466025bfd21c8089661372721b4c5f371aa1d170421c7aa2786cd76e8c2532dbe3fe7
6
+ metadata.gz: 08cde56773631bff0bbf8d2ae6a7d26cd08f7ffa5f671d0b6825d3104b6830a256a94250ee66467a6c433714e00872465519f3db4faeb271cb60f70aafd394ef
7
+ data.tar.gz: 65ae9579544ab48761e3cf81d804cee9b9b7e484a35c7321d9ac9c494317702676e6f6f2ecd8ad86cd0a3c23e77d12b148c82e1301cf1d7dcd30c36d989d4346
@@ -8,7 +8,7 @@ module EnumToSym
8
8
 
9
9
  definitions.each do |name, values|
10
10
  define_method name do |*args|
11
- super(*args).to_sym
11
+ super(*args).try :to_sym
12
12
  end
13
13
  end
14
14
 
@@ -1,3 +1,3 @@
1
1
  module EnumToSym
2
- VERSION = "1.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enum_to_sym
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.0'
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Devine