dispatch-rider 1.7.2 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/dispatch-rider.gemspec +1 -0
- data/lib/dispatch-rider/integrations/appsignal.rb +7 -3
- data/lib/dispatch-rider/version.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a63722934539e579c5f1edb75d2620b62c88290
|
4
|
+
data.tar.gz: 0116296f7711e7cfed28a4afac80c78daffc3ab9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4001efd090992aa85d485dad82943a5b56a76cc6cec9587db358ad712bca60ac7e9dfb619158afa4c2874fbcf56617a505b3fe1fdc57cd04faec29a70459da69
|
7
|
+
data.tar.gz: a3b4ec6a8fb6f8645cf2a651d601f6cb8214fc805f0f8b71d21bbf38341d2670d494a149a31b46e7107da1a2b6468f4240daaa8a08942e51afae9b55eda4f15b
|
data/dispatch-rider.gemspec
CHANGED
@@ -44,6 +44,7 @@ Gem::Specification.new do |gem|
|
|
44
44
|
gem.add_runtime_dependency "activerecord", ">= 3.2.0"
|
45
45
|
gem.add_runtime_dependency 'daemons', "~> 1.2"
|
46
46
|
gem.add_runtime_dependency 'retries', "~> 0.0", ">= 0.0.5"
|
47
|
+
gem.add_runtime_dependency 'appsignal', '~> 1.0'
|
47
48
|
|
48
49
|
gem.add_development_dependency "sqlite3"
|
49
50
|
end
|
@@ -7,7 +7,11 @@ if defined? Appsignal
|
|
7
7
|
|
8
8
|
def self.wrap_message(job, message)
|
9
9
|
begin
|
10
|
-
::Appsignal::Transaction.create(
|
10
|
+
::Appsignal::Transaction.create(
|
11
|
+
SecureRandom.uuid,
|
12
|
+
Appsignal::Transaction::BACKGROUND_JOB,
|
13
|
+
Appsignal::Transaction::GenericRequest.new(ENV.to_hash)
|
14
|
+
)
|
11
15
|
|
12
16
|
::ActiveSupport::Notifications.instrument(
|
13
17
|
'perform_job.dispatch-rider',
|
@@ -20,8 +24,8 @@ if defined? Appsignal
|
|
20
24
|
job.call
|
21
25
|
end
|
22
26
|
rescue Exception => exception
|
23
|
-
unless ::Appsignal.
|
24
|
-
::Appsignal::Transaction.current.
|
27
|
+
unless ::Appsignal.is_ignored_error?(exception)
|
28
|
+
::Appsignal::Transaction.current.add_error(exception)
|
25
29
|
end
|
26
30
|
raise exception
|
27
31
|
ensure
|
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.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Suman Mukherjee
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2016-01-19 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activesupport
|
@@ -89,6 +89,20 @@ dependencies:
|
|
89
89
|
- - ">="
|
90
90
|
- !ruby/object:Gem::Version
|
91
91
|
version: 0.0.5
|
92
|
+
- !ruby/object:Gem::Dependency
|
93
|
+
name: appsignal
|
94
|
+
requirement: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - "~>"
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '1.0'
|
99
|
+
type: :runtime
|
100
|
+
prerelease: false
|
101
|
+
version_requirements: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - "~>"
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '1.0'
|
92
106
|
- !ruby/object:Gem::Dependency
|
93
107
|
name: sqlite3
|
94
108
|
requirement: !ruby/object:Gem::Requirement
|
@@ -274,7 +288,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
274
288
|
version: '0'
|
275
289
|
requirements: []
|
276
290
|
rubyforge_project:
|
277
|
-
rubygems_version: 2.
|
291
|
+
rubygems_version: 2.4.5.1
|
278
292
|
signing_key:
|
279
293
|
specification_version: 4
|
280
294
|
summary: Messaging system that is customizable based on which queueing system we are
|