rack-insight 0.5.10 → 0.5.11

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rack-insight (0.5.9)
4
+ rack-insight (0.5.10)
5
5
  rack
6
6
  sqlite3 (>= 1.3.3)
7
7
  uuidtools (>= 2.1.2)
@@ -33,7 +33,11 @@ module Rack::Insight
33
33
 
34
34
  def inject_toolbar(response)
35
35
  full_body = response.body.join
36
- full_body.sub! /<\/body>/, render + "</body>"
36
+
37
+ toolbar = render
38
+ toolbar.force_encoding('UTF-8') if RUBY_VERSION > '1.9.0'
39
+
40
+ full_body.sub! /<\/body>/, toolbar + "</body>"
37
41
 
38
42
  response["Content-Length"] = full_body.size.to_s
39
43
 
@@ -1,7 +1,7 @@
1
1
  module Rack
2
2
  module Insight
3
3
 
4
- VERSION = '0.5.10'
4
+ VERSION = '0.5.11'
5
5
 
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-insight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.10
4
+ version: 0.5.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: