sentry-sidekiq 5.15.2 → 5.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sentry/sidekiq/version.rb +1 -1
- data/lib/sentry/sidekiq-scheduler/scheduler.rb +13 -1
- 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: 65bccddb87a808e1e7ed2d3cf7ec25e4c278f3db8c1bccef12abd03276631655
|
4
|
+
data.tar.gz: 77077879fb7ac1d3ee4a5f132ba8e231459af173cb8d594c88d024875bab8ada
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6fbfb181abbca38d832a55b38cec79729644a5387bc43361e990b083ca5b6db966fee9e50c86b47f5f4e39eaaa8530b5fbbb5c621d5bd535c485d818a55cc8b
|
7
|
+
data.tar.gz: 1aa06d42ba77b0936bb87b51cc6366fc799ae18934d6f015c1af1f0e3142465cb10cbe52b0baba8bdce32cb2f678b0ce9587903a2b5fc55e455b88ee060b5c83
|
@@ -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
|
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.0"
|
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.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:
|
11
|
+
date: 2024-01-08 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.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.
|
26
|
+
version: 5.16.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sidekiq
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|