sentry-resque 5.16.0 → 5.17.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: 6980fb1bea7279078b2e437d2f973ba4394b4d63eef3a66d768d3fd1dc07184f
4
- data.tar.gz: 946061938ebad643fa17d085ac98165739787bc9d311b684a95aaa5bc9d3b77c
3
+ metadata.gz: ef2c562ff7e13dd92d676b0188899198e3fcb17ab796ff71165714b41b66707a
4
+ data.tar.gz: 9964e74e0b0fc322e7e034c4ea16837b589f659b8afde5b30d5e8ec4558ea523
5
5
  SHA512:
6
- metadata.gz: e254961e70c35203ee1c3ae911ceabc709da7610bbd07a7c5a1d727dbd43a403699f729470821b5d24e511b3006de7b8a37e2532eb29562174d3e0cd8d3ff9cc
7
- data.tar.gz: 035543ba3e943cf714bfffb35708223f68c17a3d661f16fe85b1c3f678bbbf6471ddd7e9eebbf0b6c01b2aa2a3009638d8d2648fe57fe64daacca71674d651f2
6
+ metadata.gz: f97837418bed8df63017198a1db83bc062800aa9b2091b2acae1f5283408a7ae113ba232e447359810a6b426d6c8c7bb5a282b8dc35ff77dca1b599f7f0a9343
7
+ data.tar.gz: dad1cbc85d7fea114e6240b7d8522bb97ff39d91c913c02c79c2364201894a3dce314bfb65bad0708c2c2b82ce5b672f33cdd1f38754aa826b080c415bd3b637
data/.gitignore CHANGED
@@ -3,6 +3,7 @@
3
3
  /_yardoc/
4
4
  /coverage/
5
5
  /doc/
6
+ Gemfile_with_rails.rb.lock
6
7
  /pkg/
7
8
  /spec/reports/
8
9
  /tmp/
data/Gemfile CHANGED
@@ -4,12 +4,6 @@ git_source(:github) { |name| "https://github.com/#{name}.git" }
4
4
  # Specify your gem's dependencies in sentry-ruby.gemspec
5
5
  gemspec
6
6
  gem "sentry-ruby", path: "../sentry-ruby"
7
- gem "sentry-rails", path: "../sentry-rails"
8
-
9
- gem "rails"
10
-
11
- # For https://github.com/ruby/psych/issues/655
12
- gem "psych", "5.1.0"
13
7
 
14
8
  gem "resque-retry", "~> 1.8"
15
9
 
@@ -0,0 +1,4 @@
1
+ eval_gemfile File.expand_path("Gemfile", __dir__)
2
+
3
+ gem "sentry-rails", path: "../sentry-rails"
4
+ gem "rails"
data/Rakefile CHANGED
@@ -5,4 +5,4 @@ RSpec::Core::RakeTask.new(:spec).tap do |task|
5
5
  task.rspec_opts = "--order rand"
6
6
  end
7
7
 
8
- task :default => :spec
8
+ task default: :spec
data/example/Gemfile CHANGED
@@ -6,5 +6,4 @@ gem "resque"
6
6
  gem "sentry-resque", path: "../"
7
7
  gem "sentry-ruby", path: "../../sentry-ruby"
8
8
 
9
- gem "pry"
10
9
  gem "debug", github: "ruby/debug"
data/example/app.rb CHANGED
@@ -1,4 +1,3 @@
1
- require "pry"
2
1
  require "active_job"
3
2
  require "resque"
4
3
  require "sentry-resque"
@@ -40,5 +39,3 @@ begin
40
39
  rescue => e
41
40
  puts("inline job failed because of \"#{e.message}\"")
42
41
  end
43
-
44
-
@@ -1,5 +1,5 @@
1
1
  module Sentry
2
2
  module Resque
3
- VERSION = "5.16.0"
3
+ VERSION = "5.17.0"
4
4
  end
5
5
  end
data/lib/sentry/resque.rb CHANGED
@@ -32,7 +32,11 @@ module Sentry
32
32
 
33
33
  finish_transaction(transaction, 200)
34
34
  rescue Exception => exception
35
- klass = payload['class'].constantize
35
+ klass = if payload['class'].respond_to?(:constantize)
36
+ payload['class'].constantize
37
+ else
38
+ Object.const_get(payload['class'])
39
+ end
36
40
 
37
41
  raise if Sentry.configuration.resque.report_after_job_retries &&
38
42
  defined?(::Resque::Plugins::Retry) == 'constant' &&
@@ -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.16.0"
25
+ spec.add_dependency "sentry-ruby", "~> 5.17.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.16.0
4
+ version: 5.17.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: 2024-01-08 00:00:00.000000000 Z
11
+ date: 2024-03-13 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.16.0
19
+ version: 5.17.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.16.0
26
+ version: 5.17.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: resque
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -49,6 +49,7 @@ files:
49
49
  - ".gitignore"
50
50
  - ".rspec"
51
51
  - Gemfile
52
+ - Gemfile_with_rails.rb
52
53
  - LICENSE.txt
53
54
  - Makefile
54
55
  - README.md