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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0deb7f39a8a4b4a36251e069ddc28e1cd9826f4c
4
- data.tar.gz: abb398567b48a4d67bafde2789bcbf5705b83bba
3
+ metadata.gz: 94d6d6ec162fb0444f086a46e9595268b3213f09
4
+ data.tar.gz: ada053418f4fdb973b7616ed76beadccde3de4fc
5
5
  SHA512:
6
- metadata.gz: c29796d52199eb24c75d825e1cd02cb6fd7e96ced0a8a1e82f8f13690939fba39172d4a4d5df28b3ede0d5bb22221a17e6278366d393c4fbe2e92e5a0566c952
7
- data.tar.gz: de3a9c14268ec9a4a7179c74f9ea4dbc900fe6dc9dcf13bb0b65040866920eaa8b19ea72cf90c6fe426cb22c9d15566406607e4bc7a0c707794b608318144caa
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
@@ -1,3 +1,3 @@
1
1
  module PunctualDateSelect
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  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.3.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-06-14 00:00:00.000000000 Z
11
+ date: 2017-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler