RubyGems
npm
Organizations
Log in
Sign up
RubyGems
json_builder
Versions diffs
1.1.1 → 1.1.2
json_builder 1.1.1 → 1.1.2
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (3)
hide
show
data/lib/json_builder/jsonbase.rb
+1
-1
data/lib/json_builder/jsonmarkup.rb
+1
-1
metadata
+2
-2
data/lib/json_builder/jsonbase.rb
CHANGED
@@ -64,7 +64,7 @@ module JsonBuilder
64
64
_end_tag
65
65
end
66
66
67
-
@target
.gsub!(/,(\}|\}+)$/, '\1')
67
+
@target
68
68
end
69
69
70
70
# Append text to the output target. Escape any markup. May be
data/lib/json_builder/jsonmarkup.rb
CHANGED
@@ -177,7 +177,7 @@ module JsonBuilder
177
177
178
178
# Return the target of the builder.
179
179
def target!
180
-
@target
180
+
@target
.gsub!(/,(\}|\}+)$/, '\1')
181
181
end
182
182
183
183
private
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
segments:
6
6
- 1
7
7
- 1
8
-
-
1
9
-
version: 1.1.
1
8
+
-
2
9
+
version: 1.1.
2
10
10
platform: ruby
11
11
authors:
12
12
- Garrett Bjerkhoel