rollbar 3.5.1 → 3.5.2
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/lib/rollbar/plugins/active_job.rb +33 -33
- data/lib/rollbar/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0a67fdd109dbc4ad80b42d5fee83b86d4c238f173e36f21fcccd7824309bf4a
|
4
|
+
data.tar.gz: ddada3a7d29b64307fa73e45a430d43ae8ee470dae670e15b5994da69fddd601
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 682314257603690332897347973e469f72efe8d320480a906e2ea73da3f3a22dd37f5af254c329a0484cc7327d17caa24e69bf0b3381a2ebb73d4c22413a98ad
|
7
|
+
data.tar.gz: c7d766e933113335f15bc0622bfbf8183e41110531d3cc76ead5aa786f7be7ed19d472dd5855de56110970c4871519d3a2dc9067e5a4c25cdf02009f1303495f
|
@@ -1,45 +1,45 @@
|
|
1
|
-
Rollbar
|
2
|
-
|
3
|
-
|
1
|
+
module Rollbar
|
2
|
+
# Report any uncaught errors in a job to Rollbar and reraise
|
3
|
+
module ActiveJob
|
4
|
+
def self.included(base)
|
5
|
+
base.send :rescue_from, Exception do |exception|
|
6
|
+
job_data = {
|
7
|
+
:job => self.class.name,
|
8
|
+
:use_exception_level_filters => true
|
9
|
+
}
|
4
10
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
base.send :rescue_from, Exception do |exception|
|
11
|
-
job_data = {
|
12
|
-
:job => self.class.name,
|
13
|
-
:use_exception_level_filters => true
|
14
|
-
}
|
11
|
+
# When included in ActionMailer, the handler is called twice.
|
12
|
+
# This detects the execution that has the expected state.
|
13
|
+
if defined?(ActionMailer::Base) && self.class.ancestors.include?(ActionMailer::Base)
|
14
|
+
job_data[:action] = action_name
|
15
|
+
job_data[:params] = @params
|
15
16
|
|
16
|
-
|
17
|
-
# This detects the execution that has the expected state.
|
18
|
-
if defined?(ActionMailer::Base) && self.class.ancestors.include?(ActionMailer::Base)
|
19
|
-
job_data[:action] = action_name
|
20
|
-
job_data[:params] = @params
|
17
|
+
Rollbar.error(exception, job_data)
|
21
18
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
else
|
30
|
-
arguments
|
31
|
-
end
|
32
|
-
job_data[:job_id] = job_id if defined?(job_id)
|
33
|
-
|
34
|
-
Rollbar.error(exception, job_data)
|
19
|
+
# This detects other supported integrations.
|
20
|
+
elsif defined?(arguments)
|
21
|
+
job_data[:arguments] = \
|
22
|
+
if self.class.respond_to?(:log_arguments?) && !self.class.log_arguments?
|
23
|
+
arguments.map(&Rollbar::Scrubbers.method(:scrub_value))
|
24
|
+
else
|
25
|
+
arguments
|
35
26
|
end
|
27
|
+
job_data[:job_id] = job_id if defined?(job_id)
|
36
28
|
|
37
|
-
|
38
|
-
end
|
29
|
+
Rollbar.error(exception, job_data)
|
39
30
|
end
|
31
|
+
|
32
|
+
raise exception
|
40
33
|
end
|
41
34
|
end
|
35
|
+
end
|
36
|
+
end
|
42
37
|
|
38
|
+
Rollbar.plugins.define('active_job') do
|
39
|
+
dependency { !configuration.disable_monkey_patch }
|
40
|
+
dependency { !configuration.disable_action_mailer_monkey_patch }
|
41
|
+
|
42
|
+
execute do
|
43
43
|
if defined?(ActiveSupport) && ActiveSupport.respond_to?(:on_load)
|
44
44
|
ActiveSupport.on_load(:action_mailer) do
|
45
45
|
if defined?(ActionMailer::MailDeliveryJob) # Rails >= 6.0
|
data/lib/rollbar/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rollbar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rollbar, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Track and debug errors in your Ruby applications with ease using Rollbar.
|
14
14
|
With this gem, you can easily monitor and report on exceptions and other errors
|