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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 620346f223f8ef18b1f9442286fb77640d486a58
4
- data.tar.gz: 12a8b05f4dead8cf6c4a4b9a286975e08dcd368b
3
+ metadata.gz: a1ad5bd4ed2435710e89dced0e861acb0f378033
4
+ data.tar.gz: dfee1459fe7866400567e0458b814c6f87132624
5
5
  SHA512:
6
- metadata.gz: e2f79fcb466071cd46d3ae82dca1f27035fd14403f7c5488148429bc858bb10fa1621feb0a45d5a2807ee2dae3b89db993d33671455fdefdadb841746b197509
7
- data.tar.gz: ae4186ea0b7b24f5a3f180e5c5c3ffdd220f1692dac456724e7f03e6444045cbec2020ebef649d8f9e49bebef68a20deaaf883872e5d210b1abef8b99851b19f
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]
@@ -1,4 +1,4 @@
1
1
  module Hashstructor
2
2
  # The gem version. As one does.
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hashstructor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ed Ropple