delayed_cron_job 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.gitignore +1 -0
- data/delayed_cron_job.gemspec +1 -1
- data/lib/delayed_cron_job/version.rb +1 -1
- data/lib/delayed_cron_job.rb +1 -1
- data/spec/delayed_cron_job_spec.rb +3 -1
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MGM1NjVjNDE3NDdhZDNmMmM4ODk1M2ZlNTZkNTI4ZmQzZjQ1ZjY4YQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YmQ5OWJiZGQyNWY0NWZhNTJiMWM2YjkwOGVhMjQxODBmYTlmMmQ4Yw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2Y1OGIwODA2MGI2YmQ3NzAwNmQxYzFlN2Y0OGRjOGNiNTAxYjU4NDU3NDcz
|
10
|
+
MjhjMzM0YzQwNDk3MDkyOTk5YzBlMTg2OWRjMDg3MTk4YjBjZmIyNzVkYTU3
|
11
|
+
NmQ4NTI1OTM3ZTMwY2I2Y2RhMmQ5ZDIwMzYyODJhMWY2YTNhOTQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDM5OGI4NWI5ZWRmOWJlNzEyN2YwMjM2YjRiMmVmMzhiYzMyOGI0MzZhNzlm
|
14
|
+
YzAyOTczZjUwYTUzYjVjMDlhNDRkNWUwNDViOTNlZGQ1M2IzNDFlYjI1MTJj
|
15
|
+
ZDU1MWYwOTAyYzhhZDBlOGY2NDQ3OGIxMTk3MTY0YTUxMjhiYWY=
|
data/.gitignore
CHANGED
data/delayed_cron_job.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
|
24
24
|
spec.add_dependency "delayed_job"
|
25
25
|
|
26
|
-
spec.add_development_dependency "bundler"
|
26
|
+
spec.add_development_dependency "bundler"
|
27
27
|
spec.add_development_dependency "rake"
|
28
28
|
spec.add_development_dependency "rspec"
|
29
29
|
spec.add_development_dependency "sqlite3"
|
data/lib/delayed_cron_job.rb
CHANGED
@@ -31,6 +31,7 @@ describe DelayedCronJob do
|
|
31
31
|
|
32
32
|
it 'schedules a new job after success' do
|
33
33
|
job.update_column(:run_at, now)
|
34
|
+
job.reload
|
34
35
|
|
35
36
|
worker.work_off
|
36
37
|
|
@@ -47,6 +48,7 @@ describe DelayedCronJob do
|
|
47
48
|
it 'schedules a new job after failure' do
|
48
49
|
allow_any_instance_of(TestJob).to receive(:perform).and_raise('Fail!')
|
49
50
|
job.update(run_at: now)
|
51
|
+
job.reload
|
50
52
|
|
51
53
|
worker.work_off
|
52
54
|
|
@@ -153,7 +155,7 @@ describe DelayedCronJob do
|
|
153
155
|
end
|
154
156
|
|
155
157
|
it 'does not reschedule a job after a successful run' do
|
156
|
-
|
158
|
+
Delayed::Job.enqueue(handler)
|
157
159
|
|
158
160
|
worker.work_off
|
159
161
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: delayed_cron_job
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pascal Zumkehr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: delayed_job
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ! '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ! '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
138
|
version: '0'
|
139
139
|
requirements: []
|
140
140
|
rubyforge_project:
|
141
|
-
rubygems_version: 2.
|
141
|
+
rubygems_version: 2.1.11
|
142
142
|
signing_key:
|
143
143
|
specification_version: 4
|
144
144
|
summary: An extension to Delayed::Job that allows you to set cron expressions for
|
@@ -146,4 +146,3 @@ summary: An extension to Delayed::Job that allows you to set cron expressions fo
|
|
146
146
|
test_files:
|
147
147
|
- spec/delayed_cron_job_spec.rb
|
148
148
|
- spec/spec_helper.rb
|
149
|
-
has_rdoc:
|