enumeration 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/enumeration/collection.rb +1 -1
- data/lib/enumeration/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
@@ -25,7 +25,7 @@ module Enumeration
|
|
25
25
|
# lookup collection key by a value
|
26
26
|
def key(value)
|
27
27
|
if self.map? && @data.has_value?(value)
|
28
|
-
@data.
|
28
|
+
@data.invert[value]
|
29
29
|
elsif (self.map? && @data.has_key?(value)) ||
|
30
30
|
(self.list? && @data.include?(value))
|
31
31
|
value
|
data/lib/enumeration/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enumeration
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 1
|
10
|
+
version: 1.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kelly D. Redding
|