sentry-raven 0.15.0 → 0.15.1

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: dccadb5ecbfd08ce2f10b61d81cfde82d980751e
4
- data.tar.gz: fa8760022edb8215192bc6d2a2317443dd0d5822
3
+ metadata.gz: 7f78accb3d0719d89046b644c96b845980225986
4
+ data.tar.gz: c4bc32167e85619282435b5523fe31bd19f985e5
5
5
  SHA512:
6
- metadata.gz: 2a45c18169fbf7550dbad9e107b21299640731b4b97243aa7198659bfaa5f9a13cff02b28228c8db0ac03da47c93ba75e8c8adf939a457ba226c38190456e897
7
- data.tar.gz: ab542dc0fbc59a729c3f4b95c0e206a1fc067378d4a99c92cf77603d40872f9aad0acb3c03b3b8c07f8485f36e2617f71422e2b89732ba584d08d9748b045916
6
+ metadata.gz: 936c1440b8b9b003d79f9294b27730596e30487a8c6f3c6892cae324cfedf77a763d78292c6013f9b1997cf6c464831e02e5644d45b648a56ef1fb3dd58b5c93
7
+ data.tar.gz: d89eeba44109317d6be24ab7102678bd66889da5b59adb532aa9e52c398b5d494b1871e6df5ec347c0bd40287aed3d48ede618d1e980c74af354260dd29f9166
@@ -7,14 +7,20 @@ module Raven
7
7
  # Do not capture exceptions when using Sidekiq so we don't capture
8
8
  # The same exception twice.
9
9
  unless self.class.queue_adapter.to_s == 'ActiveJob::QueueAdapters::SidekiqAdapter'
10
- Raven.capture_exception(exception, :extra => {
10
+ active_job_details = {
11
11
  :active_job => self.class.name,
12
12
  :arguments => arguments,
13
13
  :scheduled_at => scheduled_at,
14
14
  :job_id => job_id,
15
- :provider_job_id => provider_job_id,
16
15
  :locale => locale,
17
- })
16
+ }
17
+
18
+ # Add provider_job_id details if Rails 5
19
+ if defined?(provider_job_id)
20
+ active_job_details.merge!(:provider_job_id => provider_job_id)
21
+ end
22
+
23
+ Raven.capture_exception(exception, :extra => active_job_details)
18
24
  raise exception
19
25
  end
20
26
  end
@@ -1,3 +1,3 @@
1
1
  module Raven
2
- VERSION = "0.15.0"
2
+ VERSION = "0.15.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentry-raven
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-16 00:00:00.000000000 Z
11
+ date: 2015-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday