sentry-delayed_job 5.13.0 → 5.14.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
  SHA256:
3
- metadata.gz: c01cade34e3bbd071a9c082746f025cf2a78794025e8d2f277928853a338292e
4
- data.tar.gz: deef8c2a9fd27a540351b9d1020ce5041699143a8b986d542245f9bb509fdc70
3
+ metadata.gz: 9439035809b88160385b43ac7ab24b5b22396ebee0362234d9f270e2104fd7a4
4
+ data.tar.gz: abef2b7554cd7275c4202d4067e96787e546f1ba1f2bf46e63b86f817ddf00b3
5
5
  SHA512:
6
- metadata.gz: c8efa6a9a4f800fbe404c38dae8ea22a0433df4649d87f844e1f9ef808a2619eeadf2c8801a36b632a73730783d8eb04eedc8cded0fe5fe35b0f0331ae895ffa
7
- data.tar.gz: 91b6243cd9c3718606117ef976eab1295ccd07a9f00c4c1a3a97a70208d37ebbf176ca54e9ea2a45e40b6f9f79ca3ad7c5cb4ba0bf0fff1479c674ba5d3ccadf
6
+ metadata.gz: 6be89a19fca79f9d7ec6a4b92a4d98ba1313506d6c556d9a917ca7f3af2a9e740cc7a533a73328ebf826ed505a4af228fdc19208484a56f8bb0fba7372fe9a64
7
+ data.tar.gz: 0d8fa1cfd97cf415d1ac11cf7c56ff14338ef0ec9f1cc45628f7fc6f79f99f10b8dabf878807f90c7b13862aca1c40a84e1aebb5a60a09097bc858cc14cedbc6
@@ -87,7 +87,8 @@ module Sentry
87
87
 
88
88
  # We use the predecessor because the job's attempts haven't been increased to the new
89
89
  # count at this point.
90
- job.attempts >= Delayed::Worker.max_attempts.pred
90
+ max_attempts = job&.max_attempts&.pred || Delayed::Worker.max_attempts.pred
91
+ job.attempts >= max_attempts
91
92
  end
92
93
 
93
94
  def self.finish_transaction(transaction, status)
@@ -1,5 +1,5 @@
1
1
  module Sentry
2
2
  module DelayedJob
3
- VERSION = "5.13.0"
3
+ VERSION = "5.14.0"
4
4
  end
5
5
  end
@@ -22,6 +22,6 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ["lib"]
24
24
 
25
- spec.add_dependency "sentry-ruby", "~> 5.13.0"
25
+ spec.add_dependency "sentry-ruby", "~> 5.14.0"
26
26
  spec.add_dependency "delayed_job", ">= 4.0"
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentry-delayed_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.13.0
4
+ version: 5.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-09 00:00:00.000000000 Z
11
+ date: 2023-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sentry-ruby
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 5.13.0
19
+ version: 5.14.0
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: 5.13.0
26
+ version: 5.14.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: delayed_job
29
29
  requirement: !ruby/object:Gem::Requirement