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.
@@ -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
@@ -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