airbrake 9.2.2 → 9.3.0

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
  SHA1:
3
- metadata.gz: 2c238934628051f11250e289d3c226c8480bd3ae
4
- data.tar.gz: fcfd36d25c4280006f64c049422c968b6ca24cae
3
+ metadata.gz: f0a71f9f79da2a5989445a300bebe3d9025df839
4
+ data.tar.gz: 177632611970f6791ed686d3344df1eef7923010
5
5
  SHA512:
6
- metadata.gz: 1f4b6f4e2aa13eeb7d3cedfc4ed912893f9c0bafa88053aefb0a8d1794cc301ac88bc401c5a443e5185919e25a2739afde708d925fd1301703054066e67ed584
7
- data.tar.gz: 891f4da4c53e22dd462db6e92ccca26dd83d956c7fc524dbad83d9d2be07dd583c639d4f26857c659ee5c5ec7531592a5be91b45b8394f322c71e7080dfbd64c
6
+ metadata.gz: 978eef94355d7bc09429086301983dfabb87426e7c54d0bb2044ef19ebcf3c39c1fae79f9e2954e718013ce7071c13a16005294b9ce48c47ff4e7fbf1aba2719
7
+ data.tar.gz: c1006e0378f3f3b195362a9ca172359a3e131eae8de3e31cbaa017be6b7a8dc43dc58e3bb2ec4ca88b28cebab9f38bd9518a4b8a2f8e19c30340760c732124fa
@@ -33,15 +33,15 @@ module Airbrake
33
33
  rescue Exception => ex # rubocop:disable Lint/RescueException
34
34
  notify_airbrake(ex)
35
35
  raise ex
36
- ensure
37
- # Clear routes for the next request.
38
- RequestStore.clear
39
36
  end
40
37
 
41
38
  exception = framework_exception(env)
42
39
  notify_airbrake(exception) if exception
43
40
 
44
41
  response
42
+ ensure
43
+ # Clear routes for the next request.
44
+ RequestStore.clear
45
45
  end
46
46
 
47
47
  private
@@ -25,7 +25,8 @@ module Airbrake
25
25
  return false unless job && job['retry']
26
26
 
27
27
  max_attempts = max_attempts_for(job)
28
- job['retry_count'] < max_attempts
28
+ retry_count = (job['retry_count'] || -1) + 1
29
+ retry_count < max_attempts
29
30
  end
30
31
 
31
32
  def max_attempts_for(job)
@@ -1,5 +1,5 @@
1
1
  # We use Semantic Versioning v2.0.0
2
2
  # More information: http://semver.org/
3
3
  module Airbrake
4
- AIRBRAKE_VERSION = '9.2.2'.freeze
4
+ AIRBRAKE_VERSION = '9.3.0'.freeze
5
5
  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: 9.2.2
4
+ version: 9.3.0
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: 2019-05-10 00:00:00.000000000 Z
11
+ date: 2019-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: airbrake-ruby
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.4'
19
+ version: '4.5'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4.4'
26
+ version: '4.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement