dispatch-rider 1.2.1 → 1.2.2

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: bd5fd40c0f4437c07fc70e92b76c78db1a2e4a2f
4
- data.tar.gz: 51732c359f1e301d9c7e0be7d4ac2344143eec0c
3
+ metadata.gz: 1eca91f1563679d325e840becd17c2aca17e5410
4
+ data.tar.gz: 6f143130e8ac72b45335f3b96b74e5096d2a9086
5
5
  SHA512:
6
- metadata.gz: 03b12c632a83c2fe2b7fbc24eec29013e41d8e6f4a6dc8a94501e806934dc06297838ff83543ea84fe78bdf70039cb37cbcee4aafcd52db6073e5a70cd071a7f
7
- data.tar.gz: fdc687bffe2412cf6a1e8c699a5857379b32c0dae09830c3ee2d79edc7c77692ba0d2f88f994ad201ff8401055a0c9ccc6e042fae5f1cf71c50be80d2cfa9de5
6
+ metadata.gz: 00de1668b53534f2bd87b5df2d8aee08228eec02c61f88a0215f58b55a8e32cba2bbde1c961d42405b3d65d0b1afd51f9725a2351ec76994aee6e27c30f6254c
7
+ data.tar.gz: 96256da5c9f9271bcbac9204420b02efeb94ad732cfb6116ef85637d382bf7f639a6291d5060d065bdd7e803cbd78156829da1d4aa213b2538c1764e8a51e28c
@@ -33,10 +33,23 @@ if defined? Appsignal
33
33
  end
34
34
  end
35
35
 
36
- DispatchRider.config do |config|
36
+ app_settings = ::Sinatra::Application.settings
37
+ Appsignal.config = Appsignal::Config.new(
38
+ app_settings.root,
39
+ app_settings.environment
40
+ )
41
+
42
+ Appsignal.start_logger(app_settings.root)
43
+
44
+ if Appsignal.active?
45
+ Appsignal.start
46
+
47
+ DispatchRider.config do |config|
48
+
49
+ config.around(:dispatch_message) do |job, message|
50
+ DispatchRider::Appsignal.wrap_message(job, message)
51
+ end
37
52
 
38
- config.around(:dispatch_message) do |job, message|
39
- DispatchRider::Appsignal.wrap_message(job, message)
40
53
  end
41
54
 
42
55
  end
@@ -1,4 +1,4 @@
1
1
  # This file specifies the current version of the gem.
2
2
  module DispatchRider
3
- VERSION = "1.2.1"
3
+ VERSION = "1.2.2"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dispatch-rider
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Suman Mukherjee