yinum 2.2.0 → 2.2.1

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: c5f981118e63240ce752016306f552b599ed1c75
4
- data.tar.gz: 5d3452a2d2417ab36550d5bc624410c690da840c
3
+ metadata.gz: 17ac1a1b3624e7cc4fa2e3e10258610ce8fdbd5b
4
+ data.tar.gz: 1901ba71a4ccbeb63a60ee93b01853a61621c35a
5
5
  SHA512:
6
- metadata.gz: 836af7a5e9d795160e14bb0b312e6335f241d2568f35cf64165abc566b6635467f289b3578b720684cb704fce8bd9c17a46f60f2914017d2632369ba88e01ef5
7
- data.tar.gz: 6b52268a70a4c68a3a8cb4d1c14ddf194aee6d0bbcb1b0c56caa1d368f17bfa0b62ff3882df4add8ee53bc2e1ddf64b7f2617586d52529dde7d505b9438cf46c
6
+ metadata.gz: cf92b1a24faef1e2343cf5855f5ea067efc1aa06aa96d57e8af84d0307765eb4f09a2cff11f2912d877f485ad529aab1da08797f621b54b480edfbaedd146a89
7
+ data.tar.gz: 75fde93dde26b022531183c11a01495fc16a30cc81262b5ffab7f222b1505246d7c409924f550a3421078dd3d072645b45149353e3c28630a33b9943b55ce983
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ **2.2.1**
2
+ * Fix `validates_inclusion_of` for Ruby 2.4.
3
+
1
4
  **2.2.0**
2
5
  * `EnumValue` compares to strings.
3
6
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yinum (2.2.0)
4
+ yinum (2.2.1)
5
5
  generate_method (~> 1.0)
6
6
 
7
7
  GEM
@@ -26,3 +26,6 @@ DEPENDENCIES
26
26
  nil_or (~> 2.0)
27
27
  rspec (~> 2.0)
28
28
  yinum!
29
+
30
+ BUNDLED WITH
31
+ 1.14.6
@@ -14,7 +14,7 @@ module Enum::Helpers::EnumColumn
14
14
  # generating the enum attribute
15
15
  e = attr_yinum(attr, name_or_enum, options.merge(:qualifier => options[:scoped]), hash)
16
16
  # validation
17
- validates_inclusion_of attr, :in => e.values, :allow_nil => true
17
+ validates_inclusion_of attr, :in => e, :allow_nil => true
18
18
  if options[:scoped]
19
19
  # generating scopes and questioning methods
20
20
  e.by_name.each do |n, ev|
data/lib/enum/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Enum
2
- VERSION = '2.2.0'
3
- end
2
+ VERSION = '2.2.1'
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.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oded Niv
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-13 00:00:00.000000000 Z
11
+ date: 2017-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: generate_method
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  version: '0'
105
105
  requirements: []
106
106
  rubyforge_project:
107
- rubygems_version: 2.2.2
107
+ rubygems_version: 2.6.11
108
108
  signing_key:
109
109
  specification_version: 4
110
110
  summary: Enum implementation