conglomerate 0.5.0 → 0.5.1

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: 034cceb133dffe1c4989c408a1b46eedaba5b84b
4
- data.tar.gz: a74dd726a6a8391d92d25b814fd519f87e8dcdc2
3
+ metadata.gz: 1f564a0e23c117dfe212bb5a136d668606a6c592
4
+ data.tar.gz: 6038e2c8efe86229bcaa20bd5cea02d84bd296bf
5
5
  SHA512:
6
- metadata.gz: b95d698cba28dca3395d5e2684ef7f0539b520c5da0e0b580e208924e513186e1cefdbe51b76b4b57a59c6814cb8b545d6e09cc3a7ac52abe2b58ecc754bad87
7
- data.tar.gz: aae807a5d47f045917f673512c003c719993dfb5487bda5aa66fc05a1df31aa61a1739fe6528f8f6e9831191cb7fbb33f97d1d9917a8b59b3d7c44d5c8a17eec
6
+ metadata.gz: e3821f96da8584b43ce4ff3bb2c4fba46112424caef5b712b6e8b3e9421e5afe710a32d53068e31be361f95f53d64eeb3c60f385c10345bfc62b543545e1a3cc
7
+ data.tar.gz: 749621d6332ba6c70bc06b356e6094440d824c860c34dc12b164a37d4baf0714e00ed65c777fe001b4556f2b132d933dc423a176161f46d2cbd9024bcc4885b3
@@ -176,7 +176,11 @@ module Conglomerate
176
176
  elsif type == :object
177
177
  {}
178
178
  else
179
- default_value
179
+ if present?(object) && object.send(name) == false
180
+ false
181
+ else
182
+ default_value
183
+ end
180
184
  end
181
185
  else
182
186
  object.send(name)
@@ -186,8 +190,6 @@ module Conglomerate
186
190
  def blank?(value)
187
191
  if value.is_a?(String)
188
192
  value !~ /[^[:space:]]/
189
- elsif [true, false].include?(value)
190
- false
191
193
  else
192
194
  value.respond_to?(:empty?) ? value.empty? : !value
193
195
  end
@@ -1,3 +1,3 @@
1
1
  module Conglomerate
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conglomerate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Emmons