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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODRhZWVmNmIyMGVjMzEyOTIzZWVmNzUzMWYzNjZjMTZkNTM3YmJkOA==
4
+ MGM1NjVjNDE3NDdhZDNmMmM4ODk1M2ZlNTZkNTI4ZmQzZjQ1ZjY4YQ==
5
5
  data.tar.gz: !binary |-
6
- ZTQ5MDhjZTE1NjMyNjcxZTg3Yzk1YjA3OGJjYTgwN2M0OWU4YzJmYQ==
6
+ YmQ5OWJiZGQyNWY0NWZhNTJiMWM2YjkwOGVhMjQxODBmYTlmMmQ4Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZmEwOGJjMGU3ZWE4NmU2ZDQ0MGQ4Y2I2NWFiOThkMTgwMWUwZDllNzE0NWQ0
10
- MmU4YTczZTM1OGUwZmMwOWZkZGZhZDViY2M5YjA2YmEzODJjMmNkMzMwY2Iz
11
- M2ZkOGQyN2M1ZDRmZWY0ZTJmZjExZjE5NmZlODRiNTIwNzMzNWQ=
9
+ M2Y1OGIwODA2MGI2YmQ3NzAwNmQxYzFlN2Y0OGRjOGNiNTAxYjU4NDU3NDcz
10
+ MjhjMzM0YzQwNDk3MDkyOTk5YzBlMTg2OWRjMDg3MTk4YjBjZmIyNzVkYTU3
11
+ NmQ4NTI1OTM3ZTMwY2I2Y2RhMmQ5ZDIwMzYyODJhMWY2YTNhOTQ=
12
12
  data.tar.gz: !binary |-
13
- YTY4NGZiNjE1Njg1NGViZTU4NjkxZTIyNzE4OTYzYjFkMGJjMjc4NzMzNzJj
14
- ODA0NDg3NjYzM2EzZmYxNjhiMDdiOTE4ODAyYjY3Y2Q4YTFjMGE2NzQ3ZmNm
15
- ZDA0MGQxN2MxMDVkZmU0ZWEzNjBjNjU0NDk0YzQ3MGEwZDZkMTc=
13
+ NDM5OGI4NWI5ZWRmOWJlNzEyN2YwMjM2YjRiMmVmMzhiYzMyOGI0MzZhNzlm
14
+ YzAyOTczZjUwYTUzYjVjMDlhNDRkNWUwNDViOTNlZGQ1M2IzNDFlYjI1MTJj
15
+ ZDU1MWYwOTAyYzhhZDBlOGY2NDQ3OGIxMTk3MTY0YTUxMjhiYWY=
data/.gitignore CHANGED
@@ -20,3 +20,4 @@ tmp
20
20
  *.o
21
21
  *.a
22
22
  mkmf.log
23
+ .project
@@ -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", "~> 1.6"
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"
@@ -1,3 +1,3 @@
1
1
  module DelayedCronJob
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
@@ -1,5 +1,5 @@
1
1
  require 'delayed_job'
2
- require 'english'
2
+ require 'English'
3
3
  require 'delayed_cron_job/cronline'
4
4
  require 'delayed_cron_job/plugin'
5
5
  require 'delayed_cron_job/version'
@@ -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
- job = Delayed::Job.enqueue(handler)
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.0
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-05 00:00:00.000000000 Z
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: '1.6'
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: '1.6'
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.2.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: