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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 161402489dfcdf913cf73ef86f184c851d647c284206deb9761aa80ada580aa8
4
- data.tar.gz: 4dea8e57f7f9c1faecb172f7ffcf03d35e7f9ad868c4d0369fe1ee306c90f0c5
3
+ metadata.gz: 65bccddb87a808e1e7ed2d3cf7ec25e4c278f3db8c1bccef12abd03276631655
4
+ data.tar.gz: 77077879fb7ac1d3ee4a5f132ba8e231459af173cb8d594c88d024875bab8ada
5
5
  SHA512:
6
- metadata.gz: 7dd18f7162eeed150855f60046fbaef6d919dbd5b9d5339177a1945f071b6f1aa84cddefadffee53977df7950aec30c7492f15d19b6eed1ad003b825dad814c5
7
- data.tar.gz: e56e16e439d66112c8e26e28d2f4fc7626cdd014b8c90bd39f79cf74d78892fe1a8ad910520cad9a3d3e8c83828d631f04235e2236d7b7230bdd66ef5680b33f
6
+ metadata.gz: c6fbfb181abbca38d832a55b38cec79729644a5387bc43361e990b083ca5b6db966fee9e50c86b47f5f4e39eaaa8530b5fbbb5c621d5bd535c485d818a55cc8b
7
+ data.tar.gz: 1aa06d42ba77b0936bb87b51cc6366fc799ae18934d6f015c1af1f0e3142465cb10cbe52b0baba8bdce32cb2f678b0ce9587903a2b5fc55e455b88ee060b5c83
@@ -1,5 +1,5 @@
1
1
  module Sentry
2
2
  module Sidekiq
3
- VERSION = "5.15.2"
3
+ VERSION = "5.16.0"
4
4
  end
5
5
  end
@@ -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
- Sentry::Cron::MonitorConfig.from_crontab(schedule)
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
@@ -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.15.2"
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.15.2
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: 2023-12-18 00:00:00.000000000 Z
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.15.2
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.15.2
26
+ version: 5.16.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sidekiq
29
29
  requirement: !ruby/object:Gem::Requirement