rollbar 3.5.1 → 3.5.2

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
  SHA256:
3
- metadata.gz: 272903aca80c9b75c3569e73a7f03d26d9178c29d7b0bd0cb8a9f0b1a5ca10b8
4
- data.tar.gz: e3a8e2311450fa42a86028b85e8cc772fe3cd5650b893d39fc775c79d629d354
3
+ metadata.gz: a0a67fdd109dbc4ad80b42d5fee83b86d4c238f173e36f21fcccd7824309bf4a
4
+ data.tar.gz: ddada3a7d29b64307fa73e45a430d43ae8ee470dae670e15b5994da69fddd601
5
5
  SHA512:
6
- metadata.gz: fe2e14f701d38d233ee783f2e76a46429b4400140eb23a9659cb410b155aa610a970bebebad5b03d86e1e064563da5edfb2b3d4f9d4e15ce41c0ed388fc859b3
7
- data.tar.gz: 3561ee290a64de01b22af538268d7898d9570dee746a4dde8048979d036995facdcc1bd8f8205a20916c2545352170ae24f8c9e1286e73f2757859c6b228ab83
6
+ metadata.gz: 682314257603690332897347973e469f72efe8d320480a906e2ea73da3f3a22dd37f5af254c329a0484cc7327d17caa24e69bf0b3381a2ebb73d4c22413a98ad
7
+ data.tar.gz: c7d766e933113335f15bc0622bfbf8183e41110531d3cc76ead5aa786f7be7ed19d472dd5855de56110970c4871519d3a2dc9067e5a4c25cdf02009f1303495f
@@ -1,45 +1,45 @@
1
- Rollbar.plugins.define('active_job') do
2
- dependency { !configuration.disable_monkey_patch }
3
- dependency { !configuration.disable_action_mailer_monkey_patch }
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
- execute do
6
- module Rollbar
7
- # Report any uncaught errors in a job to Rollbar and reraise
8
- module ActiveJob
9
- def self.included(base)
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
- # 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
17
+ Rollbar.error(exception, job_data)
21
18
 
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)
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
- raise exception
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
@@ -1,3 +1,3 @@
1
1
  module Rollbar
2
- VERSION = '3.5.1'.freeze
2
+ VERSION = '3.5.2'.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.1
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-01-12 00:00:00.000000000 Z
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