rack-toolbar 0.1.2 → 0.1.3

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
  SHA1:
3
- metadata.gz: 58d46273def524c4d69b81dd1bed2d6ae8b4407f
4
- data.tar.gz: fe7b9539b42570261dfeb41b4c995db88d8f2fa5
3
+ metadata.gz: eb812c64d373ec16bc0bc399105dc9eede9ebf3d
4
+ data.tar.gz: 8fdbe504dda8e4035ffd7cf437e0b5c734dcb234
5
5
  SHA512:
6
- metadata.gz: a5ddac4010c54386615d92bfe4d2be3c119e1112b19ec370c636682a3909c0b286b1467e0262e8a8de50fbc8ceac20431af2c0c32a5ac939f7c1e5e227939367
7
- data.tar.gz: fda5ba96eef565005653cd7b98360d092a5490f0da96f96ed57838c5153592ab71e15f44e2d7cf0eb86edb251af30e6fe50b56e34599cdaa302b80910bf1370b
6
+ metadata.gz: 9bdf110f49bad7d0f2c21f5dcce65e877dd61e556e14f11837787cc0d1a484e1537f7101937feb8155fdb5451b48dbcdd13ed4a05fc6aabf47e5425fb0d4264c
7
+ data.tar.gz: 14026382f4528706567e92652045ac1a29b7a970111f004342d54ad6263c5f8a5d1e6030ea0818ad3607277a41edd6000ca97f77b27340a06027d1b691760081
data/lib/rack/toolbar.rb CHANGED
@@ -41,10 +41,8 @@ EOS
41
41
 
42
42
  def each(&block)
43
43
  if okay_to_modify?
44
- body = @response.inject("") do |memo, part|
45
- memo << part
46
- memo
47
- end
44
+ body = ""
45
+ @response.each {|part| body << part }
48
46
  index = body.rindex(@options[:insertion_point])
49
47
  if index
50
48
  if @options[:insertion_method] != :before
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class Toolbar
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-toolbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  version: '0'
120
120
  requirements: []
121
121
  rubyforge_project:
122
- rubygems_version: 2.4.6
122
+ rubygems_version: 2.4.2
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: Provides an easy way to create Rack Middleware that injects things into the