punctual_date_select 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/punctual_date_select/model.rb +1 -1
- data/lib/punctual_date_select/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94d6d6ec162fb0444f086a46e9595268b3213f09
|
4
|
+
data.tar.gz: ada053418f4fdb973b7616ed76beadccde3de4fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b91b3422eddf74e7175188684d7f6ebc743a16e2b05b366af15ec34d627cf116531a719704ca9ce7119ea0f5035fea235d619886e995fe01db46b255db178b60
|
7
|
+
data.tar.gz: 60e7ec851483e12d0d6a6ffcde27e5c2d7f6a79305e9d77cc29b1bf273db5d063aabb8b3cfa12dee6e14fdcf18bba82e9d29d95534e8db8a125070ede58c56d4
|
@@ -44,7 +44,7 @@ module PunctualDateSelect
|
|
44
44
|
end
|
45
45
|
|
46
46
|
define_method "#{column_name}=" do |value|
|
47
|
-
if value.kind_of?(Hash) && !value.kind_of?(PunctualDateSelect::DateHash) && (value.keys & %i[year month day]).any?
|
47
|
+
if value.kind_of?(Hash) && !value.kind_of?(PunctualDateSelect::DateHash) && (value.keys.map(&:to_sym) & %i[year month day]).any?
|
48
48
|
class << value
|
49
49
|
include PunctualDateSelect::DateHash
|
50
50
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: punctual_date_select
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nay3
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|