attribute_struct 0.2.18 → 0.2.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/attribute_struct/attribute_struct.rb +3 -1
- data/lib/attribute_struct/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d48c85e42d6879e924f24f40bada06f9f1b6c1b0
|
4
|
+
data.tar.gz: 6f41e2b3229b0229f9edc53943e23c6e086453b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f84ee43890fd47d888a3df06d1f6009de2a5b684af3dc9743207534372c5c781c21d9037db87f52f1571130a24d08e950e4427e9d034510c26ec78d8d086329a
|
7
|
+
data.tar.gz: 16e3b57dc6f98c57e4b73da3c0e94323a19c0cc1141d60bb79900b26ce7a1ab9beae5ef6019c3f47ad57590424e0a50599762ef85296a98d0e3f6d81c28c2f79
|
data/CHANGELOG.md
CHANGED
@@ -273,13 +273,15 @@ class AttributeStruct < BasicObject
|
|
273
273
|
v.is_a?(_klass) ? v._dump : v
|
274
274
|
end
|
275
275
|
val = value.is_a?(::Hash) ? __hashish[*flat.flatten(1)] : flat
|
276
|
+
elsif(value.is_a?(_klass) && value.nil?)
|
277
|
+
next
|
276
278
|
elsif(value.is_a?(_klass) && !value.nil?)
|
277
279
|
val = value._dump
|
278
280
|
else
|
279
281
|
val = value.nil? ? nil : value
|
280
282
|
end
|
281
283
|
[key, val]
|
282
|
-
end
|
284
|
+
end.compact
|
283
285
|
__hashish[*processed.flatten(1)]
|
284
286
|
end
|
285
287
|
alias_method :dump!, :_dump
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: attribute_struct
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Roberts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Attribute structures
|
14
14
|
email: chrisroberts.code@gmail.com
|