immosquare-yaml 0.1.22 → 0.1.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/immosquare-yaml/translate.rb +1 -1
- data/lib/immosquare-yaml/version.rb +1 -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: 01336d2d6bfe93a744fe59573188b3ea85cf84abe96de3c0d8ad0a292b877f2f
|
4
|
+
data.tar.gz: c583fc36c55ba31e6ee9ab08e0772565339edacd88a0a4cbb817beb22ab4b568
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd9cdb6980f5d492012d5855a4799fbf5ae3d4a6843cd02c3fac9598a1453042f002e9174827dc77695cb18b8f7bcdf5404eccc6ea7e7eb10e45dc3564158dfb
|
7
|
+
data.tar.gz: 78c18c7cb32808e7b23860db98cf3f70b2d7fb0bbab7b35ef10a48bba1f221c6fe8e48337d995028235d90dd98cd68289c1c1603214e24ea2f10e72c0774664d
|
@@ -93,7 +93,7 @@ module ImmosquareYaml
|
|
93
93
|
## Then we have to reformat the output yml file
|
94
94
|
##============================================================##
|
95
95
|
final_array = translated_array.map do |k, _from, to|
|
96
|
-
parsed_to = to.start_with?("[") && to.end_with?("]") ? JSON.parse(to) : to
|
96
|
+
parsed_to = !to.nil? && to.start_with?("[") && to.end_with?("]") ? JSON.parse(to) : to
|
97
97
|
[k, parsed_to]
|
98
98
|
end
|
99
99
|
final_hash = translatable_hash(final_array)
|