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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 09decf06f288a007ae0a0e9515e2438b7ca12f53
4
- data.tar.gz: b34a3c59dd3ea8f5ed3834111a82c7f391f2fe3b
3
+ metadata.gz: 8f3111f886d8d83fdc7be5fb5eea4c8cc89c75fb
4
+ data.tar.gz: 24078940b3a8feb5f679f8fe0be3042cc60ed7bd
5
5
  SHA512:
6
- metadata.gz: 9ee395945da832382f203c509c6ea94e5ec49254bb37cd3a7bc3884e46e0b7a8b688881c2a669b46e3792ddad15f5205df9088791836de0a5d82d8b3b09db840
7
- data.tar.gz: 92351229fe1e8c106551312d9e22de39b5917dcd3e6032420a3d08f74edda6eda2cdcf7108c2dc9322fc0e3d0bc375d451251102599e89bb4e96113abec87dee
6
+ metadata.gz: 1d192d638e0cb33a49153f0e645a977f22a0e632ef668a92dd22fe716d24e6b849a11fd26a4ad80c9a351e7d82f36bcd3edfc147da0204c8869ba555f17ea1ca
7
+ data.tar.gz: 6f50d038d1ddf644cdf3c13441d22ea26fcf3b64d5d7c7e171244f38daaa68a094c0357140069469c91d34b65e570bdca2dfbafda15fe35e8ae76acd7e1f6dbb
@@ -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
@@ -1,3 +1,3 @@
1
1
  class Stackflame
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stackflame
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun