rack-tracer 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/rack/tracer.rb +5 -1
- data/rack-tracer.gemspec +2 -2
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7e940936daa7edb5124f3d04cc2395d99b4128bc7d905daa6e63305c32de79da
|
4
|
+
data.tar.gz: c54ad0183b819e34286d965ecce76324a223975b2a1fd5f566eff92a077b0c32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67d38f1fa9ca7179a9fb141b07b53081bef3911b277c51ae6335ecf8d567079df45c7107cdab3062d2575b5558f051c31160a5c39c6e6e918ff6d7491a7483fe
|
7
|
+
data.tar.gz: 98ff151b8be510dba94c940c66003dc4c39774ef723998a52ff3dfdb9a5af75e1c124e9e1de51357065dada48e3616770a99881db3f0aa9e3d0a59bef0636abf
|
data/lib/rack/tracer.rb
CHANGED
@@ -77,7 +77,11 @@ module Rack
|
|
77
77
|
private
|
78
78
|
|
79
79
|
def route_from_env(env)
|
80
|
-
env['sinatra.route']
|
80
|
+
if (sinatra_route = env['sinatra.route'])
|
81
|
+
sinatra_route
|
82
|
+
elsif (rails_controller = env['action_controller.instance'])
|
83
|
+
"#{env[REQUEST_METHOD]} #{rails_controller.controller_name}/#{rails_controller.action_name}"
|
84
|
+
end
|
81
85
|
end
|
82
86
|
end
|
83
87
|
end
|
data/rack-tracer.gemspec
CHANGED
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
5
|
spec.name = 'rack-tracer'
|
6
|
-
spec.version = '0.
|
6
|
+
spec.version = '0.9.0'
|
7
7
|
spec.authors = ['SaleMove TechMovers']
|
8
8
|
spec.email = ['techmovers@salemove.com']
|
9
9
|
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.add_dependency 'opentracing', '~> 0.4'
|
21
21
|
|
22
22
|
spec.add_development_dependency 'bundler', '~> 1.14'
|
23
|
-
spec.add_development_dependency 'opentracing_test_tracer', '~> 0.1'
|
23
|
+
spec.add_development_dependency 'opentracing_test_tracer', '~> 0.1.1'
|
24
24
|
spec.add_development_dependency 'rack', '~> 2.0'
|
25
25
|
spec.add_development_dependency 'rake', '~> 10.0'
|
26
26
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-tracer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SaleMove TechMovers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentracing
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 0.1.1
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 0.1.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rack
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -160,8 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
160
|
- !ruby/object:Gem::Version
|
161
161
|
version: '0'
|
162
162
|
requirements: []
|
163
|
-
|
164
|
-
rubygems_version: 2.6.11
|
163
|
+
rubygems_version: 3.0.1
|
165
164
|
signing_key:
|
166
165
|
specification_version: 4
|
167
166
|
summary: Rack OpenTracing middleware
|