sentry-resque 5.10.0 → 5.12.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: 9330bf4a6c1b58fd0ea9eda3b7aa2deb11f1cc24ee5389b8759fb81e60f68ba1
4
- data.tar.gz: 9a4b528185e21c3ce366d5299a6f2662eebfefccb7f3351c102becdfd420f058
3
+ metadata.gz: b7404abee54364f2bc5d5400aa354dad57b76bd7ba506e05fa56f581b3f6231c
4
+ data.tar.gz: a5091104346e73b249d4451728086d82179a4df407c4003ba79d8be10937831b
5
5
  SHA512:
6
- metadata.gz: b1e042e071a55537f0f82622a3ee7821329e77188bef1f74f002465e6ce0388fe8fd59d02ed15906fe94803873c23ba75888e482231a25f561b10e997f6f17cb
7
- data.tar.gz: 8fbe588830b48e63ab2cf8e45dbb03412f36bb13141703b0c4c1b921382264ecbf18e939cd69f719a02ffb0c9de2c5c3c785bf5302fa0fc93cdef22cf59ce596
6
+ metadata.gz: 88d8fb51c2e5d65e321dae6fab50c0daa8873492f55388c0fcb302d1c754ffae23293d6967e6b1c9032459ca32043cb1b268196a4e29e248e483465823462cb5
7
+ data.tar.gz: ebca9db93d5b87a18dfa3db5c8f10012291d92a992c387e77faf52ea9712b36c6b4694284b6d2b97c22c3e99ab02ccecc529463a94807b049ef10c35d48ed215
data/Gemfile CHANGED
@@ -14,6 +14,8 @@ gem 'simplecov'
14
14
  gem "simplecov-cobertura", "~> 1.4"
15
15
  gem "rexml"
16
16
 
17
+ gem "resque-retry", "~> 1.8"
18
+
17
19
  if RUBY_VERSION.to_f >= 2.6
18
20
  gem "debug", github: "ruby/debug", platform: :ruby
19
21
  gem "irb"
data/README.md CHANGED
@@ -11,7 +11,7 @@
11
11
 
12
12
 
13
13
  [![Gem Version](https://img.shields.io/gem/v/sentry-resque.svg)](https://rubygems.org/gems/sentry-resque)
14
- ![Build Status](https://github.com/getsentry/sentry-ruby/workflows/sentry-resque%20Test/badge.svg)
14
+ ![Build Status](https://github.com/getsentry/sentry-ruby/actions/workflows/sentry_resque_test.yml/badge.svg)
15
15
  [![Coverage Status](https://img.shields.io/codecov/c/github/getsentry/sentry-ruby/master?logo=codecov)](https://codecov.io/gh/getsentry/sentry-ruby/branch/master)
16
16
  [![Gem](https://img.shields.io/gem/dt/sentry-resque.svg)](https://rubygems.org/gems/sentry-resque/)
17
17
  [![SemVer](https://api.dependabot.com/badges/compatibility_score?dependency-name=sentry-resque&package-manager=bundler&version-scheme=semver)](https://dependabot.com/compatibility-score.html?dependency-name=sentry-resque&package-manager=bundler&version-scheme=semver)
@@ -1,5 +1,5 @@
1
1
  module Sentry
2
2
  module Resque
3
- VERSION = "5.10.0"
3
+ VERSION = "5.12.0"
4
4
  end
5
5
  end
data/lib/sentry/resque.rb CHANGED
@@ -32,6 +32,13 @@ module Sentry
32
32
 
33
33
  finish_transaction(transaction, 200)
34
34
  rescue Exception => exception
35
+ klass = payload['class'].constantize
36
+
37
+ raise if Sentry.configuration.resque.report_after_job_retries &&
38
+ defined?(::Resque::Plugins::Retry) == 'constant' &&
39
+ klass.is_a?(::Resque::Plugins::Retry) &&
40
+ !klass.retry_limit_reached?
41
+
35
42
  ::Sentry::Resque.capture_exception(exception, hint: { background: false })
36
43
  finish_transaction(transaction, 500)
37
44
  raise
@@ -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.10.0"
25
+ spec.add_dependency "sentry-ruby", "~> 5.12.0"
26
26
  spec.add_dependency "resque", ">= 1.24"
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentry-resque
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.10.0
4
+ version: 5.12.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-07-04 00:00:00.000000000 Z
11
+ date: 2023-10-10 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.10.0
19
+ version: 5.12.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.10.0
26
+ version: 5.12.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: resque
29
29
  requirement: !ruby/object:Gem::Requirement