rollbar 3.5.0 → 3.5.1
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 +21 -11
- data/lib/rollbar/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 272903aca80c9b75c3569e73a7f03d26d9178c29d7b0bd0cb8a9f0b1a5ca10b8
|
4
|
+
data.tar.gz: e3a8e2311450fa42a86028b85e8cc772fe3cd5650b893d39fc775c79d629d354
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe2e14f701d38d233ee783f2e76a46429b4400140eb23a9659cb410b155aa610a970bebebad5b03d86e1e064563da5edfb2b3d4f9d4e15ce41c0ed388fc859b3
|
7
|
+
data.tar.gz: 3561ee290a64de01b22af538268d7898d9570dee746a4dde8048979d036995facdcc1bd8f8205a20916c2545352170ae24f8c9e1286e73f2757859c6b228ab83
|
@@ -8,22 +8,32 @@ Rollbar.plugins.define('active_job') do
|
|
8
8
|
module ActiveJob
|
9
9
|
def self.included(base)
|
10
10
|
base.send :rescue_from, Exception do |exception|
|
11
|
-
args = if self.class.respond_to?(:log_arguments?) && !self.class.log_arguments?
|
12
|
-
arguments.map(&Rollbar::Scrubbers.method(:scrub_value))
|
13
|
-
else
|
14
|
-
arguments
|
15
|
-
end
|
16
|
-
|
17
11
|
job_data = {
|
18
12
|
:job => self.class.name,
|
19
|
-
:use_exception_level_filters => true
|
20
|
-
:arguments => args
|
13
|
+
:use_exception_level_filters => true
|
21
14
|
}
|
22
15
|
|
23
|
-
#
|
24
|
-
|
16
|
+
# When included in ActionMailer, the handler is called twice.
|
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
|
21
|
+
|
22
|
+
Rollbar.error(exception, job_data)
|
23
|
+
|
24
|
+
# This detects other supported integrations.
|
25
|
+
elsif defined?(arguments)
|
26
|
+
job_data[:arguments] = \
|
27
|
+
if self.class.respond_to?(:log_arguments?) && !self.class.log_arguments?
|
28
|
+
arguments.map(&Rollbar::Scrubbers.method(:scrub_value))
|
29
|
+
else
|
30
|
+
arguments
|
31
|
+
end
|
32
|
+
job_data[:job_id] = job_id if defined?(job_id)
|
33
|
+
|
34
|
+
Rollbar.error(exception, job_data)
|
35
|
+
end
|
25
36
|
|
26
|
-
Rollbar.error(exception, job_data)
|
27
37
|
raise exception
|
28
38
|
end
|
29
39
|
end
|
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.1
|
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-01-
|
11
|
+
date: 2024-01-12 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
|
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
160
|
- !ruby/object:Gem::Version
|
161
161
|
version: '0'
|
162
162
|
requirements: []
|
163
|
-
rubygems_version: 3.
|
163
|
+
rubygems_version: 3.4.10
|
164
164
|
signing_key:
|
165
165
|
specification_version: 4
|
166
166
|
summary: Reports exceptions to Rollbar
|