stackflame 0.0.1 → 0.1.0

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: 1b3079b183df5c34aa2346423f760c4f46447cd7
4
- data.tar.gz: fd0ff8bde7e03b081eb2436c7465928a5b39e084
3
+ metadata.gz: 5dbf06da27b2fd52c1399155a2536c092db48afb
4
+ data.tar.gz: f7d698f22512e4f3f11330ade273d3d4cea2ed48
5
5
  SHA512:
6
- metadata.gz: cc074f970f4423ce0d9cbc1f59832836e70b4c51b4740c8abb7c99d010f4eb0b52bd192fb772bcd33780a89ab530ec8cd58c915b5ae96a2c8e1c6b65ee2d95f7
7
- data.tar.gz: b85c35082cb6ef953ca518d2033199ddb12979e82b63d81d5e0ebdbbbf51abe3e9050d14dac08f635c68cee2b5d4233ebaf8a847c7e434d93647c7177a4eb05f
6
+ metadata.gz: 0055086806ac6ff17e2193bb11b564c848c1db96928f2ba859bd2f4e9bab1a979a490af04387ca4c815675ee51a12267f45bd081bcc6e65f47f49e3bdc65fc45
7
+ data.tar.gz: f42bf319f4aa44a1dc1681ef0e7af7cdc53cdca20c421450d3ad39fbb1be7cf7df07d2995ec022ab352443189ae47c4df06fb1dc6770e59a3564c9f8988356db
@@ -0,0 +1,15 @@
1
+ module Rack
2
+ class Stackflame
3
+ def initialize(app)
4
+ @app = app
5
+ end
6
+
7
+ def call(env)
8
+ result = nil
9
+ ::Stackflame.profile do
10
+ result = @app.call(env)
11
+ end
12
+ result
13
+ end
14
+ end
15
+ end
@@ -1,3 +1,3 @@
1
1
  class Stackflame
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
data/lib/stackflame.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "stackflame/version"
2
+ require "rack/stackflame"
2
3
  require "stackprof"
3
4
 
4
5
  class Stackflame
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stackflame
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-10 00:00:00.000000000 Z
11
+ date: 2015-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: stackprof
@@ -107,6 +107,7 @@ files:
107
107
  - README.md
108
108
  - Rakefile
109
109
  - example/ar_profile.rb
110
+ - lib/rack/stackflame.rb
110
111
  - lib/stackflame.rb
111
112
  - lib/stackflame/version.rb
112
113
  - stackflame.gemspec
@@ -132,8 +133,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
133
  version: '0'
133
134
  requirements: []
134
135
  rubyforge_project:
135
- rubygems_version: 2.2.2
136
+ rubygems_version: 2.4.5
136
137
  signing_key:
137
138
  specification_version: 4
138
139
  summary: Stackflame provides a simple API to deal with Flamegraph of stackprof.
139
140
  test_files: []
141
+ has_rdoc: