mini_scheduler 0.13.0 → 0.14.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: ba1f84f21c6f32b3085b9632348bd401ffbc0f5920bf1b850c645a7b1599335d
4
- data.tar.gz: 0c79d4c284be049977dec995de59bc020c108fcb0a7e300bbb975a801787df94
3
+ metadata.gz: 319678529749db26d855d097741f1ff271bb3f19e87276eb764ede430f831d0e
4
+ data.tar.gz: e01a47b807bb03ee1f2f97a36f55d95663cb9a79b5cb87bb6fef64c45969c961
5
5
  SHA512:
6
- metadata.gz: 5fa187b74ece7225aab2ddf186699cc2c4e1ce58980660e7d1caa823580f24fb9283d79f2d58a99fc4f460d451b9b85ca66a76a617a8f84f08f51c70a00edd5a
7
- data.tar.gz: 2a75aaae5394830ad9e613494f9edbd42bf83180b1e27e24bf1428f2f70e9b35d6bc314329f97681f230dd7e586db7e881d678d3c83d748fe7e8ab5451ce5564
6
+ metadata.gz: 581b32d6f15869169797af99f68c3ffc4c137e54404b77a2f62948d8e448e822821fa24a56571d66355c96e16d2e38e321995b2b9f606e01caaeeec8aa8bc74a
7
+ data.tar.gz: 81467c469e97e95510dff3749d3efeedd7eb58344bb7ff30357979c05b8398fc9a75f282f8a8a60f0f8241861edafbcf4a85ff1091557f44236cc19d6fba5a01
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.14.0 - 2022-06-20
2
+
3
+ - Fix compatibility with Sidekiq 6.5 (#15)
4
+
1
5
  # 0.13.0 - 2020-11-30
2
6
 
3
7
  - Fix exception code so it has parity with Sidekiq 4.2.3 and up, version bump cause
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MiniScheduler
4
- VERSION = "0.13.0"
4
+ VERSION = "0.14.0"
5
5
  end
@@ -4,7 +4,12 @@ require 'mini_scheduler/schedule'
4
4
  require 'mini_scheduler/schedule_info'
5
5
  require 'mini_scheduler/manager'
6
6
  require 'mini_scheduler/distributed_mutex'
7
- require 'sidekiq/exception_handler'
7
+ require 'sidekiq'
8
+
9
+ begin
10
+ require 'sidekiq/exception_handler'
11
+ rescue LoadError
12
+ end
8
13
 
9
14
  module MiniScheduler
10
15
 
@@ -13,7 +18,13 @@ module MiniScheduler
13
18
  end
14
19
 
15
20
  class SidekiqExceptionHandler
16
- extend Sidekiq::ExceptionHandler
21
+ if defined?(Sidekiq::ExceptionHandler)
22
+ extend Sidekiq::ExceptionHandler
23
+ else
24
+ def self.handle_exception(exception, context)
25
+ Sidekiq.handle_exception(exception, context)
26
+ end
27
+ end
17
28
  end
18
29
 
19
30
  def self.job_exception_handler(&blk)
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini_scheduler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Saffron
8
8
  - Neil Lalonde
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-11-29 00:00:00.000000000 Z
12
+ date: 2022-06-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sidekiq
@@ -182,7 +182,7 @@ homepage: https://github.com/discourse/mini_scheduler
182
182
  licenses:
183
183
  - MIT
184
184
  metadata: {}
185
- post_install_message:
185
+ post_install_message:
186
186
  rdoc_options: []
187
187
  require_paths:
188
188
  - lib
@@ -197,8 +197,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
197
  - !ruby/object:Gem::Version
198
198
  version: '0'
199
199
  requirements: []
200
- rubygems_version: 3.1.4
201
- signing_key:
200
+ rubygems_version: 3.1.6
201
+ signing_key:
202
202
  specification_version: 4
203
203
  summary: Adds recurring jobs for Sidekiq
204
204
  test_files: []