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: 65ca43ea6bda3e92d7fa0a419a34029f0856f4687d030b1f4ae142197525ef2c
4
- data.tar.gz: d6d16a447632fed299569d3b1b9eebf8cffbe8e1b307a38f20a5e91d66dd82f2
3
+ metadata.gz: d9a814af40a5f4308e8f2ece8708febeac2256e77b99974587c93383dc990783
4
+ data.tar.gz: 98f958827d42134e7ce59fa687e41c9b9ce66f59fca17cde9b0983492ce39c69
5
5
  SHA512:
6
- metadata.gz: 2ff64eaa5656fa0bc8e0052ca3fba24b16158d7a0498b753ed8756118718d5fb8520f4eeb615da0b91824b1246dc96259698ead7ef42cbd9601d2b1b3227fccd
7
- data.tar.gz: 9a3e6d9d6149efc1ba1667feb892784209d791f7fc308b092e0382e9ccebbbd95435a9510ff1b66a6330ec2d120de26bcd56b902712d2af7de33119d83b6b7db
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.gsub("\n", "\\n").gsub("\r", "\\r")
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"
@@ -1,3 +1,3 @@
1
1
  module ImmosquareExtensions
2
- VERSION = "0.1.17".freeze
2
+ VERSION = "0.1.18".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.17
4
+ version: 0.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - IMMO SQUARE