rekiq 0.6.0 → 0.7.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
  SHA1:
3
- metadata.gz: 8c02fc37de00489fe1195f4cb22ed4bf1700ab13
4
- data.tar.gz: 073c844c1ee5f5c671ce71b15d6ef9fe8fd5aa3c
3
+ metadata.gz: 5ab17f1066259e1b4fce0a5391f53892d24623f8
4
+ data.tar.gz: 8e5c4948b2489f7da947a1b217f795f9fdf350b6
5
5
  SHA512:
6
- metadata.gz: 4e7aa8af8e713b349c90d0f1519c8532e5fd22cb7d6ec6eb16ec844e912af72d698a735ae0e07739191de5864486f0aaa313e392e51b0444286fbdcda2331ed3
7
- data.tar.gz: 19fb11a43f48c45e730b361c439d0a5df6f0bf281c61906051c72f01168110886740f99bfdf17f894e5dc80a5f1664efdebdb0dfa26332369655723f0e2b5d6c
6
+ metadata.gz: 6753e66d5b3e4163949f5f53d2078d6d40c300ae626db977c0a4acc3729114a1726bffbfee2fa7e7806d29cc528e061ed4e0f7354799be1beaf3fa7b7451b276
7
+ data.tar.gz: 919abea474e6f00c19ac3b78a9c9ba1bc84a8bf05dc7982faa55667a1090fa11cafd9b41b905325971b5880d226da0bda16da62efc3aaf9b7ee083173bff88d5
@@ -1,3 +1,3 @@
1
1
  module Rekiq
2
- VERSION = "0.6.0"
2
+ VERSION = "0.7.0"
3
3
  end
@@ -44,9 +44,9 @@ module Rekiq
44
44
  .schedule
45
45
 
46
46
  if jid.nil?
47
- return ::Sidekiq.logger.info \
48
- "recurring work for #{name} scheduled for " \
49
- "#{work_time} with jid #{jid}"
47
+ ::Sidekiq.logger.info \
48
+ "recurring work for #{name} scheduled for " \
49
+ "#{work_time} with jid #{jid}"
50
50
  end
51
51
 
52
52
  jid
@@ -26,6 +26,21 @@ describe Rekiq::Worker do
26
26
  end
27
27
 
28
28
  describe '.perform_recurringly' do
29
+ context 'for schedule that does not return next occurrence' do
30
+ let(:schedule) { IceCube::Schedule.new(Time.now - 3600) }
31
+ before do
32
+ @jid = ExampleWorker.perform_recurringly(schedule)
33
+ end
34
+
35
+ it 'returns nil' do
36
+ expect(@jid).to eq(nil)
37
+ end
38
+
39
+ it 'does not schedule worker' do
40
+ expect(ExampleWorker.jobs.count).to eq(0)
41
+ end
42
+ end
43
+
29
44
  context 'scheduled one hour from now' do
30
45
  let(:time) { Time.now + 3600 }
31
46
  let(:schedule) { IceCube::Schedule.new(time) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - junhanamaki