rufus-scheduler 3.1.6 → 3.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.txt +5 -0
- data/CREDITS.txt +2 -0
- data/README.md +1 -1
- data/lib/rufus/scheduler.rb +2 -2
- data/spec/job_spec.rb +10 -0
- metadata +21 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e079dbf3241c1ac813823dfb641c9c0ffb65142
|
4
|
+
data.tar.gz: 6447c995f17e2ab55ddb7f1c781bbc9d529f9b1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58b5446a8cffced91db92c159566f03283f04216e07af6ab7f0a88b5ee49783e79ec8ab86a2de2fc88533026874b2fc057e0a195a39d3e4c12a5a5c0538b4df9
|
7
|
+
data.tar.gz: ae3792df85ae9325692a9894564b7bd631a46bde3274c7f3302a711a034d838607e457a8cb8ea9680fe5cd62534b4c280b44eaa427995f6e8c06d7f0d64307cf
|
data/CHANGELOG.txt
CHANGED
@@ -2,6 +2,11 @@
|
|
2
2
|
= rufus-scheduler CHANGELOG.txt
|
3
3
|
|
4
4
|
|
5
|
+
== rufus-scheduler - 3.1.7 released 2015-10-15
|
6
|
+
|
7
|
+
- ack #unscheduled_at in #scheduled?, by Claude https://github.com/claudeatsafe
|
8
|
+
|
9
|
+
|
5
10
|
== rufus-scheduler - 3.1.6 released 2015-10-01
|
6
11
|
|
7
12
|
- fix job id uniqueness (JRuby), thanks 김성식 https://github.com/kssminus
|
data/CREDITS.txt
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
== Contributors
|
6
6
|
|
7
|
+
- Claude Vessaz (https://github.com/claudeatsafe) ack #unscheduled_at in #scheduled?
|
7
8
|
- 김성식 (https://github.com/kssminus) job id uniqueness effort
|
8
9
|
- Jesse Willet (https://github.com/jhw-at-prosperworks-com) cron vs "*/10"
|
9
10
|
- Pascal Ouellet (https://github.com/pouellet) Scheduler#timeline loop fix
|
@@ -39,6 +40,7 @@
|
|
39
40
|
|
40
41
|
== Feedback
|
41
42
|
|
43
|
+
- Suisea - https://github.com/suisea - readme rewording
|
42
44
|
- Radek - http://stackoverflow.com/users/250422 - gh-166
|
43
45
|
- Patrik Ragnarsson - https://github.com/dentarg - timeout vs nil, gh-156
|
44
46
|
- twitter @adefilaedward1 - typo in readme
|
data/README.md
CHANGED
data/lib/rufus/scheduler.rb
CHANGED
@@ -39,7 +39,7 @@ module Rufus
|
|
39
39
|
require 'rufus/scheduler/job_array'
|
40
40
|
require 'rufus/scheduler/locks'
|
41
41
|
|
42
|
-
VERSION = '3.1.
|
42
|
+
VERSION = '3.1.7'
|
43
43
|
|
44
44
|
#
|
45
45
|
# A common error class for rufus-scheduler
|
@@ -387,7 +387,7 @@ module Rufus
|
|
387
387
|
|
388
388
|
job, job_id = fetch(job_or_job_id)
|
389
389
|
|
390
|
-
!! (job && job.next_time != nil)
|
390
|
+
!! (job && job.unscheduled_at.nil? && job.next_time != nil)
|
391
391
|
end
|
392
392
|
|
393
393
|
# Lists all the threads associated with this scheduler.
|
data/spec/job_spec.rb
CHANGED
@@ -176,6 +176,16 @@ describe Rufus::Scheduler::Job do
|
|
176
176
|
expect(job.running?).to eq(true)
|
177
177
|
expect(job.scheduled?).to eq(true)
|
178
178
|
end
|
179
|
+
|
180
|
+
it 'returns false if job is unscheduled' do
|
181
|
+
job = @scheduler.schedule_interval('0.1s') { sleep 0.1 }
|
182
|
+
job.unschedule
|
183
|
+
|
184
|
+
sleep 0.3
|
185
|
+
|
186
|
+
expect(job.running?).to eq(false)
|
187
|
+
expect(job.scheduled?).to eq(false)
|
188
|
+
end
|
179
189
|
end
|
180
190
|
|
181
191
|
describe '#call' do
|
metadata
CHANGED
@@ -1,69 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rufus-scheduler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Mettraux
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 2.13.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
40
|
version: 2.13.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: chronic
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: tzinfo
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
description: job scheduler for Ruby (at, cron, in and every jobs).
|
@@ -73,7 +73,14 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
+
- CHANGELOG.txt
|
77
|
+
- CREDITS.txt
|
78
|
+
- LICENSE.txt
|
79
|
+
- README.md
|
76
80
|
- Rakefile
|
81
|
+
- TODO.txt
|
82
|
+
- lib/rufus-scheduler.rb
|
83
|
+
- lib/rufus/scheduler.rb
|
77
84
|
- lib/rufus/scheduler/cronline.rb
|
78
85
|
- lib/rufus/scheduler/job_array.rb
|
79
86
|
- lib/rufus/scheduler/jobs.rb
|
@@ -81,8 +88,7 @@ files:
|
|
81
88
|
- lib/rufus/scheduler/util.rb
|
82
89
|
- lib/rufus/scheduler/zones.rb
|
83
90
|
- lib/rufus/scheduler/zotime.rb
|
84
|
-
-
|
85
|
-
- lib/rufus-scheduler.rb
|
91
|
+
- rufus-scheduler.gemspec
|
86
92
|
- spec/basics_spec.rb
|
87
93
|
- spec/cronline_spec.rb
|
88
94
|
- spec/error_spec.rb
|
@@ -108,12 +114,6 @@ files:
|
|
108
114
|
- spec/spec_helper.rb
|
109
115
|
- spec/threads_spec.rb
|
110
116
|
- spec/zotime_spec.rb
|
111
|
-
- rufus-scheduler.gemspec
|
112
|
-
- CHANGELOG.txt
|
113
|
-
- CREDITS.txt
|
114
|
-
- LICENSE.txt
|
115
|
-
- TODO.txt
|
116
|
-
- README.md
|
117
117
|
homepage: http://github.com/jmettraux/rufus-scheduler
|
118
118
|
licenses:
|
119
119
|
- MIT
|
@@ -124,17 +124,17 @@ require_paths:
|
|
124
124
|
- lib
|
125
125
|
required_ruby_version: !ruby/object:Gem::Requirement
|
126
126
|
requirements:
|
127
|
-
- -
|
127
|
+
- - ">="
|
128
128
|
- !ruby/object:Gem::Version
|
129
129
|
version: '0'
|
130
130
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
131
|
requirements:
|
132
|
-
- -
|
132
|
+
- - ">="
|
133
133
|
- !ruby/object:Gem::Version
|
134
134
|
version: '0'
|
135
135
|
requirements: []
|
136
136
|
rubyforge_project: rufus
|
137
|
-
rubygems_version: 2.
|
137
|
+
rubygems_version: 2.2.2
|
138
138
|
signing_key:
|
139
139
|
specification_version: 4
|
140
140
|
summary: job scheduler for Ruby (at, cron, in and every jobs)
|