sentry-sidekiq 5.14.0 → 5.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -11
- data/lib/sentry/sidekiq/version.rb +1 -1
- data/lib/sentry/sidekiq-scheduler/scheduler.rb +15 -2
- data/sentry-sidekiq.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99c7773fed4941672765e6032cd6fa034ede2fa1af7ddcbe717d696e7e73f96d
|
4
|
+
data.tar.gz: c059026ff1fb540d7bb7b47ab358a842d1ef2473ae9a32b8114663bead468be0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9249aa9401c67882c6a015eb0346e4e7c916399d1ea2e2175d7b72ef49c2c4cf6cc5ae2ae84a2855bd2dd5969cd7729cd4bfc9f526b42f8e397a3f4bcaf2c89
|
7
|
+
data.tar.gz: 944851f9e32d13bd327e1efb4a4dc42c2d24fffd7d408afce9be5342a6b229ee383edfe07a73076b5d527296db4807f98034e3c6c0a529c7986737f0a5b55e93
|
data/Gemfile
CHANGED
@@ -6,11 +6,6 @@ gemspec
|
|
6
6
|
gem "sentry-ruby", path: "../sentry-ruby"
|
7
7
|
gem "sentry-rails", path: "../sentry-rails"
|
8
8
|
|
9
|
-
gem "rake", "~> 12.0"
|
10
|
-
gem "rspec", "~> 3.0"
|
11
|
-
gem 'simplecov'
|
12
|
-
gem "simplecov-cobertura", "~> 1.4"
|
13
|
-
gem "rexml"
|
14
9
|
# https://github.com/flavorjones/loofah/pull/267
|
15
10
|
# loofah changed the required ruby version in a patch so we need to explicitly pin it
|
16
11
|
gem "loofah", "2.20.0" if RUBY_VERSION.to_f < 2.5
|
@@ -31,9 +26,4 @@ end
|
|
31
26
|
|
32
27
|
gem "rails", "> 5.0.0", "< 7.1.0"
|
33
28
|
|
34
|
-
|
35
|
-
gem "debug", github: "ruby/debug", platform: :ruby
|
36
|
-
gem "irb"
|
37
|
-
end
|
38
|
-
|
39
|
-
gem "pry"
|
29
|
+
eval_gemfile File.expand_path("../Gemfile", __dir__)
|
@@ -37,7 +37,19 @@ module Sentry
|
|
37
37
|
# so we convert it to minutes before passing in to the monitor.
|
38
38
|
monitor_config = case interval_type
|
39
39
|
when "cron"
|
40
|
-
|
40
|
+
# fugit is a second order dependency of sidekiq-scheduler via rufus-scheduler
|
41
|
+
parsed_cron = ::Fugit.parse_cron(schedule)
|
42
|
+
timezone = parsed_cron.timezone
|
43
|
+
|
44
|
+
# fugit supports having the timezone part of the cron string,
|
45
|
+
# so we need to pull that with some hacky stuff
|
46
|
+
if timezone
|
47
|
+
parsed_cron.instance_variable_set(:@timezone, nil)
|
48
|
+
cron_without_timezone = parsed_cron.to_cron_s
|
49
|
+
Sentry::Cron::MonitorConfig.from_crontab(cron_without_timezone, timezone: timezone.name)
|
50
|
+
else
|
51
|
+
Sentry::Cron::MonitorConfig.from_crontab(schedule)
|
52
|
+
end
|
41
53
|
when "every", "interval"
|
42
54
|
Sentry::Cron::MonitorConfig.from_interval(rufus_job.frequency.to_i / 60, :minute)
|
43
55
|
end
|
@@ -50,8 +62,9 @@ module Sentry
|
|
50
62
|
# only patch if not explicitly included in job by user
|
51
63
|
unless klass_const.send(:ancestors).include?(Sentry::Cron::MonitorCheckIns)
|
52
64
|
klass_const.send(:include, Sentry::Cron::MonitorCheckIns)
|
65
|
+
slug = klass_const.send(:sentry_monitor_slug, name: name)
|
53
66
|
klass_const.send(:sentry_monitor_check_ins,
|
54
|
-
slug:
|
67
|
+
slug: slug,
|
55
68
|
monitor_config: monitor_config)
|
56
69
|
|
57
70
|
::Sidekiq.logger.info "Injected Sentry Crons monitor checkins into #{klass}"
|
data/sentry-sidekiq.gemspec
CHANGED
@@ -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.
|
25
|
+
spec.add_dependency "sentry-ruby", "~> 5.16.1"
|
26
26
|
spec.add_dependency "sidekiq", ">= 3.0"
|
27
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sentry-sidekiq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.16.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:
|
11
|
+
date: 2024-01-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.
|
19
|
+
version: 5.16.1
|
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.
|
26
|
+
version: 5.16.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sidekiq
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|