immosquare-extensions 0.1.17 → 0.1.18
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: d9a814af40a5f4308e8f2ece8708febeac2256e77b99974587c93383dc990783
|
4
|
+
data.tar.gz: 98f958827d42134e7ce59fa687e41c9b9ce66f59fca17cde9b0983492ce39c69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a060b80cb2d6eaea808d2eccaeab51ad03ed0bc4e6e28494e817dd5a7b6f46a5d04da6a9ca0960ad6c53ff62bf69c27ff773fab6b972b2f439f3847a32a936f
|
7
|
+
data.tar.gz: 7f9e1551a265073653fe6514361b41140ce25f31d69256fdd25b1d2ea79038095811a5fd824c904cbbb7fd7af567d1e79ac413f1dfe37c9953f2139157783e7e
|
@@ -10,7 +10,12 @@ module ImmosquareExtensions
|
|
10
10
|
when Hash, Array
|
11
11
|
dump_beautify_json(value, align, indent_size, indent + indent_size)
|
12
12
|
when String
|
13
|
-
escaped_value = value
|
13
|
+
escaped_value = value
|
14
|
+
.gsub("\\", "\\\\\\")
|
15
|
+
.gsub("\"", "\\\"")
|
16
|
+
.gsub("\r", "\\r")
|
17
|
+
.gsub("\n", "\\n")
|
18
|
+
.gsub("\t", "\\t")
|
14
19
|
"\"#{escaped_value}\""
|
15
20
|
when NilClass
|
16
21
|
"null"
|