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 +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +4 -1
- data/lib/enum/helpers/enum_column.rb +1 -1
- data/lib/enum/version.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 17ac1a1b3624e7cc4fa2e3e10258610ce8fdbd5b
|
|
4
|
+
data.tar.gz: 1901ba71a4ccbeb63a60ee93b01853a61621c35a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cf92b1a24faef1e2343cf5855f5ea067efc1aa06aa96d57e8af84d0307765eb4f09a2cff11f2912d877f485ad529aab1da08797f621b54b480edfbaedd146a89
|
|
7
|
+
data.tar.gz: 75fde93dde26b022531183c11a01495fc16a30cc81262b5ffab7f222b1505246d7c409924f550a3421078dd3d072645b45149353e3c28630a33b9943b55ce983
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -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
|
|
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.
|
|
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.
|
|
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:
|
|
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.
|
|
107
|
+
rubygems_version: 2.6.11
|
|
108
108
|
signing_key:
|
|
109
109
|
specification_version: 4
|
|
110
110
|
summary: Enum implementation
|