json_builder 2.0.4 → 2.0.5
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.
- data/lib/json_builder/generator.rb +1 -1
- data/lib/json_builder/version.rb +1 -1
- metadata +4 -4
|
@@ -83,7 +83,7 @@ module JSONBuilder
|
|
|
83
83
|
case text
|
|
84
84
|
when Array then '['+ text.map! { |j| type_cast(j) }.join(', ') +']'
|
|
85
85
|
when Hash then loop_hash(text)
|
|
86
|
-
when String then "\"#{text}\""
|
|
86
|
+
when String then "\"#{text.gsub('"', '\"')}\""
|
|
87
87
|
when TrueClass then 'true'
|
|
88
88
|
when FalseClass then 'false'
|
|
89
89
|
when NilClass then 'null'
|
data/lib/json_builder/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: json_builder
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 5
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 2
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 2.0.
|
|
9
|
+
- 5
|
|
10
|
+
version: 2.0.5
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Garrett Bjerkhoel
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2010-
|
|
18
|
+
date: 2010-10-02 00:00:00 -07:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|