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 +4 -4
- data/lib/conglomerate/serializer.rb +5 -3
- data/lib/conglomerate/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: 1f564a0e23c117dfe212bb5a136d668606a6c592
|
4
|
+
data.tar.gz: 6038e2c8efe86229bcaa20bd5cea02d84bd296bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/conglomerate/version.rb
CHANGED