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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8edea4b96ac89df004d94ca52bb8a1ad6a79082f
4
- data.tar.gz: 6773af6a72de1d3a4cfe55bcde5015e83eb7503a
2
+ SHA256:
3
+ metadata.gz: 7e940936daa7edb5124f3d04cc2395d99b4128bc7d905daa6e63305c32de79da
4
+ data.tar.gz: c54ad0183b819e34286d965ecce76324a223975b2a1fd5f566eff92a077b0c32
5
5
  SHA512:
6
- metadata.gz: 4d83b56ce246ff9f0ab17c017e6f435c4d5142387d500d597b07c4c5cd3230e31a270e95237fc2e21994bcc18d12e532d8e2b254a25ca4511e4f85a2392c8851
7
- data.tar.gz: 17fafe6fb2ad9cd90b05fcbb18ab7d8a4d3931c058411a434833e3553bd99894d54accd6ba173637a4b742513310bfe3b585cd2026988e97ffec85312a96445e
6
+ metadata.gz: 67d38f1fa9ca7179a9fb141b07b53081bef3911b277c51ae6335ecf8d567079df45c7107cdab3062d2575b5558f051c31160a5c39c6e6e918ff6d7491a7483fe
7
+ data.tar.gz: 98ff151b8be510dba94c940c66003dc4c39774ef723998a52ff3dfdb9a5af75e1c124e9e1de51357065dada48e3616770a99881db3f0aa9e3d0a59bef0636abf
@@ -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
@@ -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.8.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.8.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: 2018-07-12 00:00:00.000000000 Z
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: '0.1'
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: '0.1'
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
- rubyforge_project:
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