enumeration 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- enumeration (1.2.0)
4
+ enumeration (1.2.1)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -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.index(value)
28
+ @data.invert[value]
29
29
  elsif (self.map? && @data.has_key?(value)) ||
30
30
  (self.list? && @data.include?(value))
31
31
  value
@@ -1,3 +1,3 @@
1
1
  module Enumeration
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
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: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 0
10
- version: 1.2.0
9
+ - 1
10
+ version: 1.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kelly D. Redding