stackprof-remote 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/stackprof/remote/middleware.rb +2 -1
- data/stackprof-remote.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ece6d3e81d46b55a4d9166b5484c45af1b98645
|
4
|
+
data.tar.gz: 0517d59d12342660a0ed27f7d6830064c9bf66ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ed19e9b9c3eac24450de8832c19aedc2a22a1a3bc9a8b33385a046b04c4bcc656f25808a3e8e38aa2a8b80ca07ad1ec4022cf40ba37894899e9047e301ca64f
|
7
|
+
data.tar.gz: 8b58aabce07869e3e217012649886b311e6065ff370511a46a841539f19ef10e3cd2949102e2d4a6574a4dac5be7d7c5a0eade852fa4acfad020c1ddb99054ac
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
@@ -25,13 +25,14 @@ module StackProf
|
|
25
25
|
def initialize(app, options = {})
|
26
26
|
@app = app
|
27
27
|
self.class.logger = options[:logger] || Logger.new(STDOUT)
|
28
|
+
self.class.enabled = options[:enabled] || false
|
28
29
|
self.class.options = options
|
29
30
|
logger.info "[stackprof] Stackprof Middleware enabled"
|
30
31
|
end
|
31
32
|
|
32
33
|
def call(env)
|
33
34
|
path = env['PATH_INFO']
|
34
|
-
if in_stackprof?(path)
|
35
|
+
if self.class.enabled?(env) && in_stackprof?(path)
|
35
36
|
handle_stackprof(path)
|
36
37
|
else
|
37
38
|
@app.call(env)
|
data/stackprof-remote.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: stackprof-remote 0.0.
|
5
|
+
# stub: stackprof-remote 0.0.5 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "stackprof-remote"
|
9
|
-
s.version = "0.0.
|
9
|
+
s.version = "0.0.5"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Aaron Quint"]
|
14
|
-
s.date = "2014-06-
|
14
|
+
s.date = "2014-06-19"
|
15
15
|
s.description = "stackprof-remote consists of a middleware for easy creation and retreival of\n stackprof sampling profiler dumps from a remote machine, and a wrapper around\n pry (stackprof-cli) to create an interactive session for navigating stackprof\n dumps."
|
16
16
|
s.email = "aaron@quirkey.com"
|
17
17
|
s.executables = ["stackprof-cli", "stackprof-remote"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stackprof-remote
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Quint
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rbtrace
|