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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e025e9b063b4823e5d05bed0ed3aae1d472a871
4
- data.tar.gz: beb4078dc48598e97b286dede4ab883bb970eeb3
3
+ metadata.gz: 6ece6d3e81d46b55a4d9166b5484c45af1b98645
4
+ data.tar.gz: 0517d59d12342660a0ed27f7d6830064c9bf66ef
5
5
  SHA512:
6
- metadata.gz: dcd209a05434b05d042c1ca16aadce354b618ee17617998e0b31e6fb470ebd5d750d1d86a7c35db243cdce4c519864d14d29cf552a25c111c2d55dcb41f1e448
7
- data.tar.gz: 219ef3134ebf6d54d15626b0d537e59f1dad16447ef4001b2aa99e912b6b7c30e6d75691ef84a90254101d251586fe58ec98b85fc81344403cd76bbafb6587fb
6
+ metadata.gz: 4ed19e9b9c3eac24450de8832c19aedc2a22a1a3bc9a8b33385a046b04c4bcc656f25808a3e8e38aa2a8b80ca07ad1ec4022cf40ba37894899e9047e301ca64f
7
+ data.tar.gz: 8b58aabce07869e3e217012649886b311e6065ff370511a46a841539f19ef10e3cd2949102e2d4a6574a4dac5be7d7c5a0eade852fa4acfad020c1ddb99054ac
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
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)
@@ -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.4 ruby lib
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.4"
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-17"
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
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-17 00:00:00.000000000 Z
11
+ date: 2014-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbtrace