hashstructor 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hashstructor/instance_methods.rb +1 -1
- data/lib/hashstructor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1ad5bd4ed2435710e89dced0e861acb0f378033
|
4
|
+
data.tar.gz: dfee1459fe7866400567e0458b814c6f87132624
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d0c80cc0ac5d667c96683a6bf61cdf85c96899ddf275e84ab7d3261c93b3061dc901d3d8deedf46270f50f8de13c939e1eb40a441328139b1fab3684b14fc0e
|
7
|
+
data.tar.gz: 2dd1ac46636fd0af6a01a5c2b3149ed65bcee98e531572d3b037b6103c50bd135f9dc86eac010f27a090268dc2167e4d7fe735f6aadb42f803dafffaaa14cd3f
|
@@ -30,7 +30,7 @@ module Hashstructor
|
|
30
30
|
existing_members = partitioned_members[0]
|
31
31
|
missing_members = partitioned_members[1]
|
32
32
|
|
33
|
-
partitioned_missing_members = missing_members.partition { |m| !m.required || (m.required && m.options[:default_value]) }
|
33
|
+
partitioned_missing_members = missing_members.partition { |m| !m.required || (m.required && !m.options[:default_value].nil?) }
|
34
34
|
|
35
35
|
acceptable_missing_members = partitioned_missing_members[0]
|
36
36
|
unacceptable_missing_members = partitioned_missing_members[1]
|
data/lib/hashstructor/version.rb
CHANGED