rack-toolbar 0.1.0 → 0.1.1

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: d7290b0c5c77f8cdaea3f74a545caf3c9346752c
4
- data.tar.gz: 1b421d6076390e190f3af39159958845638e96e2
3
+ metadata.gz: ac542d5265688c4b2ed1379d28aad95596ad2ef4
4
+ data.tar.gz: 5ed4d63fda47c9c1e6b5c9867d37b39686817ab9
5
5
  SHA512:
6
- metadata.gz: f31c3485d5349def0489f9fa527751cbe2758cd9aa9a18fbfc9ea5e77a19b372b1c71c02d4101d8ead4a83cf19de1bb1dd8f259c394516836a7ba4853dce5efd
7
- data.tar.gz: d8385ca9bb07b109ae0d8ec97caf3a80cec701b03179d396eade0bb8bd77967f2ad06ad644554aaa0efc05674f7be94db7f7e8f93a7ddce0840a9440fd6b95e5
6
+ metadata.gz: f1ab2c38a7c2d7ae25d03480473c0bc85a6191202a46cba879f01f06b3e752c3ba358585586ef173e88ebee6a11489d3cc353f0175a4ba5064bcc11121f7c847
7
+ data.tar.gz: aa1dffdeed3c46214d3757ed7030b40c88a8c7da81e00e6ca6c90f7c8af1498d9e3d3b7fb5931c83078b74a838681c5867127f5d661fee28861132d9dbe2f3c1
data/lib/rack/toolbar.rb CHANGED
@@ -28,10 +28,12 @@ EOS
28
28
  end
29
29
 
30
30
  def call(env)
31
- @status, @headers, @response = @app.call(env)
31
+ @env = env
32
+ @status, @headers, @response = @app.call(@env)
32
33
  [@status, @headers, self]
33
34
  end
34
35
 
36
+ # Subclasses may override this method if they have alternate means of deciding which requests to modify.
35
37
  def okay_to_modify?
36
38
  return false unless @headers["Content-Type"] =~ self.class::CONTENT_TYPE_REGEX
37
39
  true
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class Toolbar
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling