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 +4 -4
- data/lib/raven/integrations/rails/active_job.rb +9 -3
- data/lib/raven/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f78accb3d0719d89046b644c96b845980225986
|
4
|
+
data.tar.gz: c4bc32167e85619282435b5523fe31bd19f985e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/raven/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|