sentry-resque 5.11.0 → 5.13.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: f203ac6a26259ebce64346628ae6faded882455c6ad9663c7fffe928b62436f0
4
- data.tar.gz: 6bf115cf05ec3cb92b495361fda58c905ab3dc5a4f76aedbfa567dd69f86b608
3
+ metadata.gz: 74cea061ff834358c5027a7d2df19f69a716e12190d55fc5872aa61a45246ffe
4
+ data.tar.gz: d27185fd2afc1298dde91fb0651867037fb189af5cdc215d9d6d057912429913
5
5
  SHA512:
6
- metadata.gz: 5d8a7e63ec9990acffeebf996f11cbf9298c2f9dc7b1c4c9b2d1619c90d9ffc5dfc72c97311a94ecdcf707169ad1bd595212a974e3df05a00e4b08ed640e083e
7
- data.tar.gz: 505b9a51c8bfe726e0c0f655f9056e1ca1e36e978097d43e6360c35216e12d092aba7a6048401bb9d237779447f641cbd226d4d13626a5305242bd6a8063d553
6
+ metadata.gz: e72529201ff6ca8f636c8c42a7344cc51b938239711d5b3385d56f2f122c7f5c5833570d23af944a9f5d310606be1ed99a9fcdf2764be03a3314e68f77698d7c
7
+ data.tar.gz: 38aa2d3440ad7e5def9ab5239a465527550de9acbcba4720d79cc8cb5cfc94e40d16e4589f1bf0754d433aec7208ff2b2c1f870601990d3623dc16f641a8fbc5
data/Gemfile CHANGED
@@ -14,6 +14,11 @@ gem 'simplecov'
14
14
  gem "simplecov-cobertura", "~> 1.4"
15
15
  gem "rexml"
16
16
 
17
+ # For https://github.com/ruby/psych/issues/655
18
+ gem "psych", "5.1.0"
19
+
20
+ gem "resque-retry", "~> 1.8"
21
+
17
22
  if RUBY_VERSION.to_f >= 2.6
18
23
  gem "debug", github: "ruby/debug", platform: :ruby
19
24
  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.11.0"
3
+ VERSION = "5.13.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.11.0"
25
+ spec.add_dependency "sentry-ruby", "~> 5.13.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.11.0
4
+ version: 5.13.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-09-06 00:00:00.000000000 Z
11
+ date: 2023-11-09 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.11.0
19
+ version: 5.13.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.11.0
26
+ version: 5.13.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: resque
29
29
  requirement: !ruby/object:Gem::Requirement