sentry-delayed_job 4.2.0 → 4.3.1

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: db868f6352945d274c05edc038c741fad9d416735bd68df6550af2f56f58ffb4
4
- data.tar.gz: 7e64583c842ddb8e54d37866af6098377182f10c30120f51981c0f7944a5f2d3
3
+ metadata.gz: 9888d4edc96b1c7c6b3c6241fbcc8f56ea67e043bffaac3132db17f06403ec9b
4
+ data.tar.gz: c26084a79d7c879ee07cd2f5e3a14a3e3fb557b36051d10731cc9349926bed22
5
5
  SHA512:
6
- metadata.gz: 215f4e41121897b18f5b0b15eea29c50c583ce10e2d07536cca40d878b9de912df700256f1d54949cb4687e859a6b6121b116c27538314706fbf369cdffd5f67
7
- data.tar.gz: 6a5aeaed988bcd76e6da51cc16affdec0677f456a020bcf9b8630acb0d22dff8a63627c60e0e6e66a7a4d36f7dcb73f504927385500fe07e00eb6780d8c8929a
6
+ metadata.gz: 2d8145b047c778322f7476500b9227267efabf8ba5972318cdb9b319c7780f22a6c1f432f538e9434f64ea7fbb41b4be610a2ccafaf0989e564bef67d19541e6
7
+ data.tar.gz: 841500c12895f082dfde45c8d376a19ca817f8c023723b43908137cc41fcfb774e7dff7756555c595c6d1582ed9d1bbe055da6061575bed428d2e86d0f73bd13
data/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.3.1
4
+
5
+ - Return delayed job when the SDK is not initialized [#1373](https://github.com/getsentry/sentry-ruby/pull/1373)
6
+ - Fixes [#1334](https://github.com/getsentry/sentry-ruby/issues/1334)
7
+
8
+ ## 4.3.0
9
+
10
+ - No integration-specific changes
11
+
12
+ ## 4.2.1
13
+
14
+ - Use ::Rails::Railtie for checking Rails definition [#1287](https://github.com/getsentry/sentry-ruby/pull/1284)
15
+ - Convert job id to string to avoid weird syntax error [#1285](https://github.com/getsentry/sentry-ruby/pull/1285)
16
+ - Fixes [#1282](https://github.com/getsentry/sentry-ruby/issues/1282)
17
+
3
18
  ## 4.2.0
4
19
 
5
20
  - First release!
@@ -10,7 +10,7 @@ module Sentry
10
10
 
11
11
  register_integration name: "delayed_job", version: Sentry::DelayedJob::VERSION
12
12
 
13
- if defined?(::Rails)
13
+ if defined?(::Rails::Railtie)
14
14
  class Railtie < ::Rails::Railtie
15
15
  config.after_initialize do
16
16
  next unless Sentry.initialized?
@@ -6,9 +6,11 @@ module Sentry
6
6
  class Plugin < ::Delayed::Plugin
7
7
  callbacks do |lifecycle|
8
8
  lifecycle.around(:invoke_job) do |job, *args, &block|
9
+ next block.call(job, *args) unless Sentry.initialized?
10
+
9
11
  Sentry.with_scope do |scope|
10
12
  scope.set_extras(**generate_extra(job))
11
- scope.set_tags("delayed_job.queue" => job.queue, "delayed_job.id" => job.id)
13
+ scope.set_tags("delayed_job.queue" => job.queue, "delayed_job.id" => job.id.to_s)
12
14
 
13
15
  begin
14
16
  block.call(job, *args)
@@ -23,7 +25,7 @@ module Sentry
23
25
 
24
26
  def self.generate_extra(job)
25
27
  extra = {
26
- "delayed_job.id": job.id,
28
+ "delayed_job.id": job.id.to_s,
27
29
  "delayed_job.priority": job.priority,
28
30
  "delayed_job.attempts": job.attempts,
29
31
  "delayed_job.run_at": job.run_at,
@@ -1,5 +1,5 @@
1
1
  module Sentry
2
2
  module DelayedJob
3
- VERSION = "4.2.0"
3
+ VERSION = "4.3.1"
4
4
  end
5
5
  end
@@ -22,5 +22,5 @@ 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-core", "~> 4.2.0"
25
+ spec.add_dependency "sentry-ruby-core", "~> 4.3.0"
26
26
  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: 4.2.0
4
+ version: 4.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-02-09 00:00:00.000000000 Z
11
+ date: 2021-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sentry-ruby-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.0
19
+ version: 4.3.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: 4.2.0
26
+ version: 4.3.0
27
27
  description: A gem that provides DelayedJob integration for the Sentry error logger
28
28
  email: accounts@sentry.io
29
29
  executables: []