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 +4 -4
- data/lib/rack/toolbar.rb +3 -1
- data/lib/rack/toolbar/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac542d5265688c4b2ed1379d28aad95596ad2ef4
|
4
|
+
data.tar.gz: 5ed4d63fda47c9c1e6b5c9867d37b39686817ab9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
@
|
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
|
data/lib/rack/toolbar/version.rb
CHANGED