immosquare-extensions 0.1.10 → 0.1.11
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68efb98fcb8dec7eaaa6edce1b9e2ca2546b860e98c1a91135e72d4fa1bb209b
|
4
|
+
data.tar.gz: 37700c0efc9a770fda32f0a2632ab21bca072abe9398b40cfaffa836013a00d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
37
|
-
|
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
|