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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9833b30479b7f91305cdf3a4269e3f550d8a925aa50f13ccd374f9d6e3456dc6
4
- data.tar.gz: fcc7e9410c968844460052171bf0cbf62006d86f2ab0a71d81fd2a8af60d5599
3
+ metadata.gz: 272903aca80c9b75c3569e73a7f03d26d9178c29d7b0bd0cb8a9f0b1a5ca10b8
4
+ data.tar.gz: e3a8e2311450fa42a86028b85e8cc772fe3cd5650b893d39fc775c79d629d354
5
5
  SHA512:
6
- metadata.gz: 8b1da82b43abeaef4e2b78937842ddca414279b6816e61ddd1861a32955c5a4436e625a8931da4151b3d77c645451f8aef18fd88c0e976928cf1939080e9c2a2
7
- data.tar.gz: d034b0a6f4e8eea5fef9e714ffa7492087f6c61dc442710eecd479b16cfda5d3522bf863abdec17aa2b7f3beb7a7981741bf0376d427d1b63861dce343b5ceea
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
- # job_id isn't present when this is a mailer class.
24
- job_data[:job_id] = job_id if defined?(job_id)
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
@@ -1,3 +1,3 @@
1
1
  module Rollbar
2
- VERSION = '3.5.0'.freeze
2
+ VERSION = '3.5.1'.freeze
3
3
  end
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.0
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-04 00:00:00.000000000 Z
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.1.4
163
+ rubygems_version: 3.4.10
164
164
  signing_key:
165
165
  specification_version: 4
166
166
  summary: Reports exceptions to Rollbar