yinum 2.2.1 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 17ac1a1b3624e7cc4fa2e3e10258610ce8fdbd5b
4
- data.tar.gz: 1901ba71a4ccbeb63a60ee93b01853a61621c35a
3
+ metadata.gz: e24df9f61d740e78795fb6e840706c900f6f780c
4
+ data.tar.gz: 3164bbd9a5bed1b2eb66b0cb0c216944638fe572
5
5
  SHA512:
6
- metadata.gz: cf92b1a24faef1e2343cf5855f5ea067efc1aa06aa96d57e8af84d0307765eb4f09a2cff11f2912d877f485ad529aab1da08797f621b54b480edfbaedd146a89
7
- data.tar.gz: 75fde93dde26b022531183c11a01495fc16a30cc81262b5ffab7f222b1505246d7c409924f550a3421078dd3d072645b45149353e3c28630a33b9943b55ce983
6
+ metadata.gz: 82f7be9c6e8c31aa991e471119aecc5b30096907569a87ef5e5ccced6fb0a53b2fac8b61f20e315d5ce28e868ea8083011b16dddb15c04fe6dba28f9e5f16668
7
+ data.tar.gz: 4b72c621ab5a68a60fb2c2e29f9ee1f149d024a695058b83284504878d1856b83a58b9c871b9752ddc242a8c5fabd6000cb04aa0f5d8d4d01f80b8a72c5f33f8
@@ -1,3 +1,6 @@
1
+ **2.2.1**
2
+ * Fix ==(=) for Ruby 2.4.
3
+
1
4
  **2.2.1**
2
5
  * Fix `validates_inclusion_of` for Ruby 2.4.
3
6
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yinum (2.2.1)
4
+ yinum (2.2.2)
5
5
  generate_method (~> 1.0)
6
6
 
7
7
  GEM
@@ -24,12 +24,14 @@ class Enum::EnumValue < BasicObject
24
24
  end
25
25
 
26
26
  def ==(other)
27
+ return true if super
27
28
  return true if @value == other or @value_s == other
28
29
 
29
30
  not @name.nil? and (@name == other or @name_s == other)
30
31
  end
31
32
 
32
33
  def ===(other)
34
+ return true if self == other or super
33
35
  return true if @value === other or @value_s === other
34
36
 
35
37
  not @name.nil? and (@name === other or @name_s === other)
@@ -1,3 +1,3 @@
1
1
  class Enum
2
- VERSION = '2.2.1'
2
+ VERSION = '2.2.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yinum
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oded Niv
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-23 00:00:00.000000000 Z
11
+ date: 2017-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: generate_method