stackflame 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rack/stackflame.rb +6 -5
- data/lib/stackflame/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: 8f3111f886d8d83fdc7be5fb5eea4c8cc89c75fb
|
4
|
+
data.tar.gz: 24078940b3a8feb5f679f8fe0be3042cc60ed7bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d192d638e0cb33a49153f0e645a977f22a0e632ef668a92dd22fe716d24e6b849a11fd26a4ad80c9a351e7d82f36bcd3edfc147da0204c8869ba555f17ea1ca
|
7
|
+
data.tar.gz: 6f50d038d1ddf644cdf3c13441d22ea26fcf3b64d5d7c7e171244f38daaa68a094c0357140069469c91d34b65e570bdca2dfbafda15fe35e8ae76acd7e1f6dbb
|
data/lib/rack/stackflame.rb
CHANGED
@@ -16,13 +16,14 @@ module Rack
|
|
16
16
|
def call(env)
|
17
17
|
result = nil
|
18
18
|
|
19
|
-
stackflame = ::Stackflame.new
|
20
|
-
stackflame.run(@options) do
|
21
|
-
result = @app.call(env)
|
22
|
-
end
|
23
|
-
|
24
19
|
if @block.call(env)
|
20
|
+
stackflame = ::Stackflame.new
|
21
|
+
stackflame.run(@options) do
|
22
|
+
result = @app.call(env)
|
23
|
+
end
|
25
24
|
stackflame.open_flamegraph(request: env['PATH_INFO'])
|
25
|
+
else
|
26
|
+
result = @app.call(env)
|
26
27
|
end
|
27
28
|
|
28
29
|
result
|
data/lib/stackflame/version.rb
CHANGED