sidetiq 0.4.0.rc1 → 0.4.0.rc2

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
  SHA1:
3
- metadata.gz: afa72994a97058431570f5d871d813841987f3d3
4
- data.tar.gz: 481d72a325c1c96c24cd0f0f38a346fc85077abf
3
+ metadata.gz: 456f6b922646c7e198b83f34b299e07f984a6c0f
4
+ data.tar.gz: 3401166967dab3170b26f961147d014950e68dfe
5
5
  SHA512:
6
- metadata.gz: ea02330ee1cceb86a386b2d47bb2b825462e549fbf236f411bf08c9b55172ec4d7073e5eaab6b9ebbabff1c2280c330ad0247014bcbcc5625ed6d4651ab0430f
7
- data.tar.gz: 5989c73b9f8e9c203b18ffa22dcedc2f92e06eeceafa88f6e301e08a0d8c631d6ceeb6b47fa747fc85c528711208a67e4a6d29b53993e0df04ca342271a269d3
6
+ metadata.gz: 34d95105066f87aa9736bf3e4e454df16cf065f841051809f60e5f3aa1123d750fcaa317c545d6344ad6cfcb3ad199b987cb52a2ebf3ae21794ce13910485242
7
+ data.tar.gz: de936682d4191d86e36e94439f97d2ce549ddd671b793eca78f1d39b33462c6e8373513cf66ec8f7b7ce5f90dcf1378b43a513745c56a61b4f50070916ffa405
data/CHANGELOG.md CHANGED
@@ -1,6 +1,7 @@
1
1
  0.4.0
2
2
  -----
3
3
 
4
+ - Clock now start looping automatically if `Sidekiq.server?` returns true.
4
5
  - Show job history in web extension.
5
6
  - Integrate with Sidekiq's exception handling/reporting in critical parts.
6
7
  - Store more detailed lock metadata.
data/examples/server.rb CHANGED
@@ -11,7 +11,3 @@ Sidekiq.logger.level = Logger::DEBUG
11
11
 
12
12
  Sidekiq.options[:poll_interval] = 1
13
13
 
14
- Sidekiq.configure_server do |config|
15
- Sidetiq.clock.start!
16
- end
17
-
@@ -4,10 +4,19 @@ module Sidetiq
4
4
  include Sidetiq::Actor
5
5
  include Sidekiq::ExceptionHandler
6
6
 
7
- # Public: Starts the clock loop.
7
+ def initialize(*args, &block)
8
+ super
9
+
10
+ if Sidekiq.server?
11
+ after(0) do
12
+ debug "Sidetiq::Clock looping ..."
13
+ loop!
14
+ end
15
+ end
16
+ end
17
+
8
18
  def start!
9
- debug "Sidetiq::Clock looping ..."
10
- loop!
19
+ warn "Sidetiq::Clock#start! is deprecated. Calling it is no longer required."
11
20
  end
12
21
 
13
22
  private
@@ -11,7 +11,7 @@ module Sidetiq
11
11
  PATCH = 0
12
12
 
13
13
  # Public: Sidetiq version suffix.
14
- SUFFIX = 'rc1'
14
+ SUFFIX = 'rc2'
15
15
 
16
16
  # Public: String representation of the current Sidetiq version.
17
17
  STRING = [MAJOR, MINOR, PATCH, SUFFIX].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidetiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0.rc1
4
+ version: 0.4.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Svensson