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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ffd34ab4fce7d19ca43f4116c404ec6b419d72613752deae7400988cf26b2cb
4
- data.tar.gz: 781daefa41c64ddbb5498bbcd0819980f1326378947a886e5a2a3d8a0aa775a2
3
+ metadata.gz: 01336d2d6bfe93a744fe59573188b3ea85cf84abe96de3c0d8ad0a292b877f2f
4
+ data.tar.gz: c583fc36c55ba31e6ee9ab08e0772565339edacd88a0a4cbb817beb22ab4b568
5
5
  SHA512:
6
- metadata.gz: '080b28c941dca4ff82714c01ad5b3301ab7ae0d6867e10c8d2a4021f1d954a3db9ca40d519a8a241cb19c1fe02183c7bdf98a3f0fb45ee80ed5e897d315fde13'
7
- data.tar.gz: 88177866769f1672b7a040cccea44139978b00b5dee6b0b3d07af65103a0ac9aa9a8eea04ba9b068ae6b9b8fdacaf5112ad2b101f7858184a124f1a73398691c
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)
@@ -1,3 +1,3 @@
1
1
  module ImmosquareYaml
2
- VERSION = "0.1.22".freeze
2
+ VERSION = "0.1.23".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: immosquare-yaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.22
4
+ version: 0.1.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - IMMO SQUARE