rack_set_request_id 0.1.1 → 0.2.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: 8364f9b0e4131b8235506b7f1ff7016da45e7bde
4
- data.tar.gz: 4a1f74d092fb6a35212e358c314090e0baa5d638
3
+ metadata.gz: 9bd380d943b315c19442cbb1f3a7fb6049dc46be
4
+ data.tar.gz: f5e12fe66604f887b3fa6ae5d860a857bb6c4139
5
5
  SHA512:
6
- metadata.gz: e37168f7ead4cb4f8e933e1b9a5216bf6263e2fcde296c9551f3c0b18ef5865c09e27ce3d07aaa1e1f4e0be2fc7cea9788841c8ab0dd2408e28174041c7418e8
7
- data.tar.gz: 6da4dac334d3a38cb8d9d49f2ddad9a8ce460aa376fb83eb7b3982bcbb588ea2f775dd3bb7edb10e4eb18e839e358c9f6e4c70aa6022d398a8ef4a01b71f673b
6
+ metadata.gz: 2903d37cd443a7dd4c03f7a70422d6c5f09338cf6de462e6cc5159f742edb05f4653dd077a43772b3af545771e6ee745bbe4a83f2665e09cbeb82cbac0d7cb3d
7
+ data.tar.gz: 370689d86535061fab46d793a2b77038c772a35ece3d017ac6cebebf06f9ec595b7a712a9f476042ac83d28616d4d9993f660e71c826512645092511dec8820b
data/README.md CHANGED
@@ -1,7 +1,10 @@
1
1
  # Rack::SetRequestId
2
2
 
3
- For use with Rails and the RequestId gem, this sets the request id so it can be
4
- sent on to internal http services.
3
+ For use with rails to set the request id for various logging purposes.
4
+ Supports:
5
+
6
+ * RequestId
7
+ * Honeybadger
5
8
 
6
9
  ## Installation
7
10
 
@@ -6,7 +6,9 @@ module Rack
6
6
  end
7
7
 
8
8
  def call(env)
9
- ::RequestId.set(:request_id, env['action_dispatch.request_id'])
9
+ if defined?(::RequestId)
10
+ ::RequestId.set(:request_id, env['action_dispatch.request_id'])
11
+ end
10
12
 
11
13
  if defined?(Honeybadger)
12
14
  Honeybadger.context(request_id: env['action_dispatch.request_id'])
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module SetRequestId
3
- VERSION = "0.1.1"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -22,7 +22,6 @@ Gem::Specification.new do |spec|
22
22
  end
23
23
 
24
24
  spec.add_dependency "rack"
25
- spec.add_dependency "request_id", "~> 0.4.1"
26
25
 
27
26
  spec.add_development_dependency "bundler", "~> 1.8"
28
27
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack_set_request_id
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Donald Plummer
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: request_id
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: 0.4.1
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: 0.4.1
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: bundler
43
29
  requirement: !ruby/object:Gem::Requirement