immosquare-extensions 0.1.10 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 937a618cbe172bd91a19e35f4a66981a388886fdddd6453e5a76673feaea0497
4
- data.tar.gz: eeb0e955c984536eec9dbcd7c4a3f3515ee8022250713f932d1874f0f8ef5bcd
3
+ metadata.gz: 68efb98fcb8dec7eaaa6edce1b9e2ca2546b860e98c1a91135e72d4fa1bb209b
4
+ data.tar.gz: 37700c0efc9a770fda32f0a2632ab21bca072abe9398b40cfaffa836013a00d8
5
5
  SHA512:
6
- metadata.gz: bf79dda7ea083a80aa83e5e04a56684b2fb99779ab7ed551de09a8491feaaff41d55e5f4faa9cb94837280e1622334a23ccafa508aab27d9b645a68b1b43f176
7
- data.tar.gz: e2372301df5d13e3802bacca96d104651b20fd3fcb48ea330183c7bc81887aa85805a6b098e8dec31e2ebda32023496c4853e755a3b1a961e9066bd7e263fd5d
6
+ metadata.gz: 2baa3798ab56b49857821603cf3eb84c58013de1e61b4ace02114e29ef02472ec09b504fac55ee3de4f19a15e94c6ffa7f059ff8ebcc764a05a50d05e750a375
7
+ data.tar.gz: 56e9077a3f2326b5a6faf15e25a663e60cd27521679cfde5a68963684f0854c2a23e485b2465586567f69e80c1a4bfddabfe465acf7f3f1318dac4aa645ce845
@@ -33,8 +33,10 @@ module ImmosquareExtensions
33
33
 
34
34
  if hash.keys.count == 1 && indent > 0
35
35
  key, value = hash.first
36
- value_str = json_representation(value, align, indent_size, indent)
37
- return "{\"#{key}\": #{value_str}}"
36
+ if !value.is_a?(Array)
37
+ value_str = json_representation(value, align, indent_size, indent)
38
+ return "{\"#{key}\": #{value_str}}"
39
+ end
38
40
  end
39
41
 
40
42
  max_key_length = align ? hash.keys.map(&:to_s).map(&:length).max : 0
@@ -1,3 +1,3 @@
1
1
  module ImmosquareExtensions
2
- VERSION = "0.1.10".freeze
2
+ VERSION = "0.1.11".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: immosquare-extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - IMMO SQUARE