dispatch-rider 1.7.2 → 1.8.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: 16031cde6624a3f991d4308a570a07badacac7b2
4
- data.tar.gz: 61a9e7795a7524a3de8d57c6050f27924e066d40
3
+ metadata.gz: 2a63722934539e579c5f1edb75d2620b62c88290
4
+ data.tar.gz: 0116296f7711e7cfed28a4afac80c78daffc3ab9
5
5
  SHA512:
6
- metadata.gz: 3d086784518d93e59fbc3abf12cb140fab0057290d3822bf5b6bda5107475bcbfb11016f867204865ecb21e224e3b9eeaa0d5064ac7f17ec8c852aa6128aeafa
7
- data.tar.gz: 8d47fe941e689e2f033b1e70c210d690219d4e293cb885e6f4d4490252fa4bd3ea7f328db549ef00586f6eb9e635297ed28fa541587a77f619050c5eb86d8ce5
6
+ metadata.gz: 4001efd090992aa85d485dad82943a5b56a76cc6cec9587db358ad712bca60ac7e9dfb619158afa4c2874fbcf56617a505b3fe1fdc57cd04faec29a70459da69
7
+ data.tar.gz: a3b4ec6a8fb6f8645cf2a651d601f6cb8214fc805f0f8b71d21bbf38341d2670d494a149a31b46e7107da1a2b6468f4240daaa8a08942e51afae9b55eda4f15b
@@ -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(SecureRandom.uuid, ENV.to_hash)
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.is_ignored_exception?(exception)
24
- ::Appsignal::Transaction.current.add_exception(exception)
27
+ unless ::Appsignal.is_ignored_error?(exception)
28
+ ::Appsignal::Transaction.current.add_error(exception)
25
29
  end
26
30
  raise exception
27
31
  ensure
@@ -1,4 +1,4 @@
1
1
  # This file specifies the current version of the gem.
2
2
  module DispatchRider
3
- VERSION = "1.7.2"
3
+ VERSION = "1.8.0"
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.7.2
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: 2015-08-13 00:00:00.000000000 Z
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.2.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