airbrake 10.0.2 → 10.0.3

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: 5138c1675426cc908ae8b1857898ddc04c135fda23dfe21db19e6b1bf0b36faf
4
- data.tar.gz: '085abd9125a9a615935ac2b1171cdfd74205bde892708e073bfbda44103c72ca'
3
+ metadata.gz: 9cf7ffc169b0f4ee600dd9aa45f49b906192a6338181493c5a70d6b1e54f5d68
4
+ data.tar.gz: 8e996ba5aa92bca073cae278d53fe62c444aedc862aa95be32f0df35e58cfe7c
5
5
  SHA512:
6
- metadata.gz: 39bc3cfe3510b0db2adece334666b4e753298fd4d09f4d7d445086c0512aa0436ec8c5b38a85933fae822efeea155d7d2bea7e25866e169878b6f1b330fb4d4d
7
- data.tar.gz: 9c189959ccdfa6c30752462dffb49e8925df101f18597180ab6a31e2320a620431bcbcf6d66c83838d1acfd9be1b6c98623253e60cea77e8881fc84e5996aa14
6
+ metadata.gz: d9437169d94bde1b24c559f4f1c2c1ac143f8905e35dfd48a381a1cce3ff2476ede8dbef56ffffbba70ccc3364e76a2973d3ecc0005888efe4e78768a5de75ba
7
+ data.tar.gz: 4c0018a79a1d181af1fa1917e3ff8fbaff0eb9a24f236c28b0de5c5ac3a4e6474636d4aa3bd532e8be8bcc969eb9f1d5d6e326e58a64cd30f3a13dcb656162ae
@@ -28,7 +28,7 @@ module Delayed
28
28
  notice[:context][:action] = action
29
29
  end
30
30
 
31
- ::Airbrake.notify_queue_sync(
31
+ ::Airbrake.notify_queue(
32
32
  queue: action,
33
33
  error_count: 1,
34
34
  timing: 0.01,
@@ -36,7 +36,7 @@ module Delayed
36
36
 
37
37
  raise exception
38
38
  else
39
- ::Airbrake.notify_queue_sync(
39
+ ::Airbrake.notify_queue(
40
40
  queue: job_class || job.payload_object.class.name,
41
41
  error_count: 0,
42
42
  timing: timing,
@@ -22,14 +22,14 @@ module Airbrake
22
22
  block.call
23
23
  end
24
24
  rescue StandardError => exception
25
- Airbrake.notify_queue_sync(
25
+ Airbrake.notify_queue(
26
26
  queue: job.class.name,
27
27
  error_count: 1,
28
28
  timing: 0.01,
29
29
  )
30
30
  raise exception
31
31
  else
32
- Airbrake.notify_queue_sync(
32
+ Airbrake.notify_queue(
33
33
  queue: job.class.name,
34
34
  error_count: 0,
35
35
  timing: timing,
@@ -4,9 +4,20 @@ module Airbrake
4
4
  module Rails
5
5
  # BacktraceCleaner is a wrapper around Rails.backtrace_cleaner.
6
6
  class BacktraceCleaner
7
+ # @return [Regexp]
8
+ AIRBRAKE_FRAME_PATTERN = %r{/airbrake/lib/airbrake/}
9
+
7
10
  def self.clean(backtrace)
8
11
  ::Rails.backtrace_cleaner.clean(backtrace).first(1)
9
12
  end
10
13
  end
11
14
  end
12
15
  end
16
+
17
+ if defined?(Rails)
18
+ # Silence own frames to let the cleaner proceed to the next line (and probably
19
+ # find the correct call-site coming from the app code rather this library).
20
+ Rails.backtrace_cleaner.add_silencer do |line|
21
+ line =~ Airbrake::Rails::BacktraceCleaner::AIRBRAKE_FRAME_PATTERN
22
+ end
23
+ end
@@ -3,5 +3,5 @@
3
3
  # We use Semantic Versioning v2.0.0
4
4
  # More information: http://semver.org/
5
5
  module Airbrake
6
- AIRBRAKE_VERSION = '10.0.2'.freeze
6
+ AIRBRAKE_VERSION = '10.0.3'.freeze
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airbrake
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.0.2
4
+ version: 10.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Airbrake Technologies, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-31 00:00:00.000000000 Z
11
+ date: 2020-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: airbrake-ruby