cache_crispies 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cache_crispies/hash_builder.rb +2 -2
- data/lib/cache_crispies/version.rb +1 -1
- data/spec/hash_builder_spec.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 857d0744e791b1a0fcb11a97eb9b0cc453770d9e5c6bbebb84bdc7837bf69abf
|
4
|
+
data.tar.gz: 27b2b36f326fe88bcb4a5c9c3462933dfae0c0e47f75a00a011a8066afebbd65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7861a2cd9a3eafa762234d32bbdc1499f5c89c7da04c7d8dfa9d5184ca25bb7b966412cb7ef8239f8f2f55c51f844b9417d03bccb8dc0d7a918e0026c59149c6
|
7
|
+
data.tar.gz: 5246144362972f7b3678fe7a8f94ae351a6cc12d3ab4df9dd15f727f798f3394a8d338d23da2669589b2ea0877e134fc49e063153f5ee36b808b52649eb503bb
|
@@ -19,8 +19,6 @@ module CacheCrispies
|
|
19
19
|
hash = {}
|
20
20
|
|
21
21
|
serializer.attributes.each do |attrib|
|
22
|
-
next unless show?(attrib)
|
23
|
-
|
24
22
|
deepest_hash = hash
|
25
23
|
|
26
24
|
attrib.nesting.each do |key|
|
@@ -28,6 +26,8 @@ module CacheCrispies
|
|
28
26
|
deepest_hash = deepest_hash[key]
|
29
27
|
end
|
30
28
|
|
29
|
+
next unless show?(attrib)
|
30
|
+
|
31
31
|
value = value_for(attrib)
|
32
32
|
|
33
33
|
if attrib.key
|
data/spec/hash_builder_spec.rb
CHANGED