typesafe_enum 0.1.1 → 0.1.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: 59ddff44544a977b2f7d6c4cf56727d0a1aabf60
4
- data.tar.gz: 9987d8367b1eb2cc2d79baa52b8ed58e934e5dd3
3
+ metadata.gz: 800a98f8fc3e4892ea6896c30f60c0dc55ac12a3
4
+ data.tar.gz: dcbfc9d5140cc25869efedfbf84e4a62f61872bf
5
5
  SHA512:
6
- metadata.gz: 64736c736ebd281b5eb368195bef1bbcd62ea61f737d3474f8e29b4bfd468a376199fb62f0a639a16a68ff98af9a24293867720e790f6e6cd76282161165de64
7
- data.tar.gz: 8dc8b5dcaa016a53bda462f425f77652745c11e36944172895f36924bd00e49ead3eff56463f9ad5150772f524a4e1a3d2ed740365fafdfd1aa21cf357b58f56
6
+ metadata.gz: 66923883e4df73f561be67490524aa1fd82a67a2fd6724bb9dff6d25ef83cf67fd1c3dc4af55cd52c4adec661cbe23c4dfb04b2aacd38ea95755163cda432482
7
+ data.tar.gz: 9688661a06d7648dde507e52b4ad462c8e6ae6cd0191d96aad055bb48703c3f5ef6cf6e1a6e3f4a461f4ffd180c47dc21f84ad15cdc3ef4cd91a117ac40cc07b
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.1.2
2
+
3
+ - Fixed issue where `::find_by_value_str` failed to return `nil` for bad values
4
+
1
5
  ## 0.1.1
2
6
 
3
7
  - Added `::find_by_value_str`
@@ -48,6 +48,7 @@ module TypesafeEnum
48
48
  by_value.each do |value, instance|
49
49
  return instance if value_str == value.to_s
50
50
  end
51
+ nil
51
52
  end
52
53
 
53
54
  # Looks up an enum instance based on its ordinal
@@ -3,7 +3,7 @@ module TypesafeEnum
3
3
  NAME = 'typesafe_enum'
4
4
 
5
5
  # The version of this gem
6
- VERSION = '0.1.1'
6
+ VERSION = '0.1.2'
7
7
 
8
8
  # The copyright notice for this gem
9
9
  COPYRIGHT = 'Copyright (c) 2015 The Regents of the University of California'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typesafe_enum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Moles
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-19 00:00:00.000000000 Z
11
+ date: 2015-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler