rufus-scheduler 3.1.4 → 3.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +410 -0
- data/CREDITS.md +142 -0
- data/LICENSE.txt +1 -1
- data/Makefile +27 -0
- data/README.md +407 -143
- data/lib/rufus/scheduler/job_array.rb +36 -66
- data/lib/rufus/scheduler/jobs_core.rb +369 -0
- data/lib/rufus/scheduler/jobs_one_time.rb +53 -0
- data/lib/rufus/scheduler/jobs_repeat.rb +335 -0
- data/lib/rufus/scheduler/locks.rb +41 -67
- data/lib/rufus/scheduler/util.rb +89 -179
- data/lib/rufus/scheduler.rb +545 -453
- data/rufus-scheduler.gemspec +22 -11
- metadata +44 -85
- data/CHANGELOG.txt +0 -243
- data/CREDITS.txt +0 -88
- data/Rakefile +0 -83
- data/TODO.txt +0 -151
- data/lib/rufus/scheduler/cronline.rb +0 -470
- data/lib/rufus/scheduler/jobs.rb +0 -633
- data/lib/rufus/scheduler/zones.rb +0 -174
- data/lib/rufus/scheduler/zotime.rb +0 -155
- data/spec/basics_spec.rb +0 -54
- data/spec/cronline_spec.rb +0 -915
- data/spec/error_spec.rb +0 -139
- data/spec/job_array_spec.rb +0 -39
- data/spec/job_at_spec.rb +0 -58
- data/spec/job_cron_spec.rb +0 -128
- data/spec/job_every_spec.rb +0 -104
- data/spec/job_in_spec.rb +0 -20
- data/spec/job_interval_spec.rb +0 -68
- data/spec/job_repeat_spec.rb +0 -357
- data/spec/job_spec.rb +0 -631
- data/spec/lock_custom_spec.rb +0 -47
- data/spec/lock_flock_spec.rb +0 -47
- data/spec/lock_lockfile_spec.rb +0 -61
- data/spec/lock_spec.rb +0 -59
- data/spec/parse_spec.rb +0 -263
- data/spec/schedule_at_spec.rb +0 -158
- data/spec/schedule_cron_spec.rb +0 -66
- data/spec/schedule_every_spec.rb +0 -109
- data/spec/schedule_in_spec.rb +0 -80
- data/spec/schedule_interval_spec.rb +0 -128
- data/spec/scheduler_spec.rb +0 -1067
- data/spec/spec_helper.rb +0 -126
- data/spec/threads_spec.rb +0 -96
- data/spec/zotime_spec.rb +0 -396
data/rufus-scheduler.gemspec
CHANGED
@@ -10,28 +10,39 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.platform = Gem::Platform::RUBY
|
11
11
|
s.authors = [ 'John Mettraux' ]
|
12
12
|
s.email = [ 'jmettraux@gmail.com' ]
|
13
|
-
s.homepage = '
|
14
|
-
s.rubyforge_project = 'rufus'
|
13
|
+
s.homepage = 'https://github.com/jmettraux/rufus-scheduler'
|
15
14
|
s.license = 'MIT'
|
16
15
|
s.summary = 'job scheduler for Ruby (at, cron, in and every jobs)'
|
17
16
|
|
18
17
|
s.description = %{
|
19
|
-
|
18
|
+
Job scheduler for Ruby (at, cron, in and every jobs). Not a replacement for crond.
|
20
19
|
}.strip
|
21
20
|
|
21
|
+
s.metadata = {
|
22
|
+
'changelog_uri' => s.homepage + '/blob/master/CHANGELOG.md',
|
23
|
+
'bug_tracker_uri' => s.homepage + '/issues',
|
24
|
+
'homepage_uri' => s.homepage,
|
25
|
+
'source_code_uri' => s.homepage,
|
26
|
+
#'wiki_uri' => s.homepage + '/flor/wiki',
|
27
|
+
#'documentation_uri' => s.homepage + '/tree/master/doc',
|
28
|
+
#'mailing_list_uri' => 'https://groups.google.com/forum/#!forum/floraison',
|
29
|
+
}
|
30
|
+
|
22
31
|
#s.files = `git ls-files`.split("\n")
|
23
32
|
s.files = Dir[
|
24
|
-
'
|
25
|
-
'
|
26
|
-
'
|
33
|
+
'README.{md,txt}',
|
34
|
+
'CHANGELOG.{md,txt}', 'CREDITS.{md,txt}', 'LICENSE.{md,txt}',
|
35
|
+
'Makefile',
|
36
|
+
'lib/**/*.rb', #'spec/**/*.rb', 'test/**/*.rb',
|
37
|
+
"#{s.name}.gemspec",
|
27
38
|
]
|
28
39
|
|
29
|
-
|
40
|
+
s.required_ruby_version = '>= 1.9'
|
41
|
+
|
42
|
+
s.add_runtime_dependency 'fugit', '~> 1.1', '>= 1.1.6'
|
30
43
|
|
31
|
-
s.add_development_dependency '
|
32
|
-
s.add_development_dependency '
|
33
|
-
s.add_development_dependency 'chronic'
|
34
|
-
s.add_development_dependency 'tzinfo'
|
44
|
+
s.add_development_dependency 'rspec', '~> 3.7'
|
45
|
+
s.add_development_dependency 'chronic', '~> 0.10'
|
35
46
|
|
36
47
|
s.require_path = 'lib'
|
37
48
|
end
|
metadata
CHANGED
@@ -1,151 +1,110 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rufus-scheduler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
5
|
-
prerelease:
|
4
|
+
version: 3.8.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- John Mettraux
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2022-07-12 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
14
|
+
name: fugit
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
22
|
-
|
19
|
+
version: '1.1'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.1.6
|
23
|
+
type: :runtime
|
23
24
|
prerelease: false
|
24
25
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.1'
|
30
|
+
- - ">="
|
28
31
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
32
|
+
version: 1.1.6
|
30
33
|
- !ruby/object:Gem::Dependency
|
31
34
|
name: rspec
|
32
35
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
36
|
requirements:
|
35
|
-
- -
|
37
|
+
- - "~>"
|
36
38
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
39
|
+
version: '3.7'
|
38
40
|
type: :development
|
39
41
|
prerelease: false
|
40
42
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
43
|
requirements:
|
43
|
-
- -
|
44
|
+
- - "~>"
|
44
45
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
46
|
+
version: '3.7'
|
46
47
|
- !ruby/object:Gem::Dependency
|
47
48
|
name: chronic
|
48
49
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
50
|
requirements:
|
51
|
-
- -
|
51
|
+
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '0'
|
53
|
+
version: '0.10'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ! '>='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: tzinfo
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
57
|
requirements:
|
67
|
-
- -
|
58
|
+
- - "~>"
|
68
59
|
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
70
|
-
|
71
|
-
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ! '>='
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '0'
|
78
|
-
description: job scheduler for Ruby (at, cron, in and every jobs).
|
60
|
+
version: '0.10'
|
61
|
+
description: Job scheduler for Ruby (at, cron, in and every jobs). Not a replacement
|
62
|
+
for crond.
|
79
63
|
email:
|
80
64
|
- jmettraux@gmail.com
|
81
65
|
executables: []
|
82
66
|
extensions: []
|
83
67
|
extra_rdoc_files: []
|
84
68
|
files:
|
85
|
-
-
|
69
|
+
- CHANGELOG.md
|
70
|
+
- CREDITS.md
|
71
|
+
- LICENSE.txt
|
72
|
+
- Makefile
|
73
|
+
- README.md
|
86
74
|
- lib/rufus-scheduler.rb
|
87
75
|
- lib/rufus/scheduler.rb
|
76
|
+
- lib/rufus/scheduler/job_array.rb
|
77
|
+
- lib/rufus/scheduler/jobs_core.rb
|
78
|
+
- lib/rufus/scheduler/jobs_one_time.rb
|
79
|
+
- lib/rufus/scheduler/jobs_repeat.rb
|
88
80
|
- lib/rufus/scheduler/locks.rb
|
89
|
-
- lib/rufus/scheduler/zotime.rb
|
90
|
-
- lib/rufus/scheduler/cronline.rb
|
91
81
|
- lib/rufus/scheduler/util.rb
|
92
|
-
- lib/rufus/scheduler/jobs.rb
|
93
|
-
- lib/rufus/scheduler/zones.rb
|
94
|
-
- lib/rufus/scheduler/job_array.rb
|
95
|
-
- spec/job_spec.rb
|
96
|
-
- spec/schedule_in_spec.rb
|
97
|
-
- spec/zotime_spec.rb
|
98
|
-
- spec/spec_helper.rb
|
99
|
-
- spec/job_array_spec.rb
|
100
|
-
- spec/schedule_interval_spec.rb
|
101
|
-
- spec/job_at_spec.rb
|
102
|
-
- spec/schedule_at_spec.rb
|
103
|
-
- spec/error_spec.rb
|
104
|
-
- spec/lock_spec.rb
|
105
|
-
- spec/schedule_cron_spec.rb
|
106
|
-
- spec/job_interval_spec.rb
|
107
|
-
- spec/job_repeat_spec.rb
|
108
|
-
- spec/schedule_every_spec.rb
|
109
|
-
- spec/threads_spec.rb
|
110
|
-
- spec/cronline_spec.rb
|
111
|
-
- spec/lock_lockfile_spec.rb
|
112
|
-
- spec/job_in_spec.rb
|
113
|
-
- spec/parse_spec.rb
|
114
|
-
- spec/scheduler_spec.rb
|
115
|
-
- spec/lock_custom_spec.rb
|
116
|
-
- spec/basics_spec.rb
|
117
|
-
- spec/job_cron_spec.rb
|
118
|
-
- spec/job_every_spec.rb
|
119
|
-
- spec/lock_flock_spec.rb
|
120
82
|
- rufus-scheduler.gemspec
|
121
|
-
|
122
|
-
- TODO.txt
|
123
|
-
- LICENSE.txt
|
124
|
-
- CREDITS.txt
|
125
|
-
- README.md
|
126
|
-
homepage: http://github.com/jmettraux/rufus-scheduler
|
83
|
+
homepage: https://github.com/jmettraux/rufus-scheduler
|
127
84
|
licenses:
|
128
85
|
- MIT
|
86
|
+
metadata:
|
87
|
+
changelog_uri: https://github.com/jmettraux/rufus-scheduler/blob/master/CHANGELOG.md
|
88
|
+
bug_tracker_uri: https://github.com/jmettraux/rufus-scheduler/issues
|
89
|
+
homepage_uri: https://github.com/jmettraux/rufus-scheduler
|
90
|
+
source_code_uri: https://github.com/jmettraux/rufus-scheduler
|
129
91
|
post_install_message:
|
130
92
|
rdoc_options: []
|
131
93
|
require_paths:
|
132
94
|
- lib
|
133
95
|
required_ruby_version: !ruby/object:Gem::Requirement
|
134
|
-
none: false
|
135
96
|
requirements:
|
136
|
-
- -
|
97
|
+
- - ">="
|
137
98
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
99
|
+
version: '1.9'
|
139
100
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
|
-
none: false
|
141
101
|
requirements:
|
142
|
-
- -
|
102
|
+
- - ">="
|
143
103
|
- !ruby/object:Gem::Version
|
144
104
|
version: '0'
|
145
105
|
requirements: []
|
146
|
-
|
147
|
-
rubygems_version: 1.8.23
|
106
|
+
rubygems_version: 3.0.3
|
148
107
|
signing_key:
|
149
|
-
specification_version:
|
108
|
+
specification_version: 4
|
150
109
|
summary: job scheduler for Ruby (at, cron, in and every jobs)
|
151
110
|
test_files: []
|
data/CHANGELOG.txt
DELETED
@@ -1,243 +0,0 @@
|
|
1
|
-
|
2
|
-
= rufus-scheduler CHANGELOG.txt
|
3
|
-
|
4
|
-
|
5
|
-
== rufus-scheduler - 3.1.4 released 2015/08/29
|
6
|
-
|
7
|
-
- fix cron issue reported by Jesse https://github.com/jhw-at-prosperworks-com
|
8
|
-
|
9
|
-
|
10
|
-
== rufus-scheduler - 3.1.3 released 2015/06/20
|
11
|
-
|
12
|
-
- prevent Thread[:rufus_scheduler_time] -> nil, gh-156
|
13
|
-
- fix inconsistency in Job#start_work_thread
|
14
|
-
|
15
|
-
|
16
|
-
== rufus-scheduler - 3.1.2 released 2015/05/23
|
17
|
-
|
18
|
-
- avoid cron/:first_at infinite loop, thanks https://github.com/pouellet
|
19
|
-
|
20
|
-
|
21
|
-
== rufus-scheduler - 3.1.1 released 2015/04/19
|
22
|
-
|
23
|
-
- fix ZoTime.is_timezone? on OSX, thanks https://github.com/yaauie
|
24
|
-
|
25
|
-
|
26
|
-
== rufus-scheduler - 3.1.0 released 2015/04/18
|
27
|
-
|
28
|
-
- go without tzinfo (and its dependencies)
|
29
|
-
- include @ketan's #next_time improvements
|
30
|
-
- remove 2.x warning message on install
|
31
|
-
|
32
|
-
|
33
|
-
== rufus-scheduler - 3.0.9 released 2014/08/30
|
34
|
-
|
35
|
-
- fix TZ with underscores, thanks https://github.com/gnilrets
|
36
|
-
- integrate https://github.com/ecin Lock mecha
|
37
|
-
|
38
|
-
|
39
|
-
== rufus-scheduler - 3.0.8 released 2014/06/09
|
40
|
-
|
41
|
-
- handle TZInfo errors on DST transitions, thanks https://github.com/junhanamaki
|
42
|
-
- implement Scheduler#up?
|
43
|
-
- let schedule and schedule_at use Chronic if present
|
44
|
-
- let Rufus::Scheduler.parse use Chronic if present
|
45
|
-
|
46
|
-
|
47
|
-
== rufus-scheduler - 3.0.7 released 2014/03/18
|
48
|
-
|
49
|
-
- implement Scheduler #occurrences and #timeline, inspired by kreynolds
|
50
|
-
- implement Job #last_work_time and #mean_work_time
|
51
|
-
- implement Job#count
|
52
|
-
- add more info to the stderr error output (scheduler/tz info)
|
53
|
-
- prevent skipping a day on switch to summertime, gh-114, thanks Matteo
|
54
|
-
|
55
|
-
|
56
|
-
== rufus-scheduler - 3.0.6 released 2014/02/14
|
57
|
-
|
58
|
-
- avoid "can't be called from trap context" on Ruby 2.0, gh-98
|
59
|
-
|
60
|
-
|
61
|
-
== rufus-scheduler - 3.0.5 released 2014/01/30
|
62
|
-
|
63
|
-
- implement Job#call(do_rescue=false), gh-97
|
64
|
-
- implement :first => :now for repeat jobs, gh-96
|
65
|
-
|
66
|
-
|
67
|
-
== rufus-scheduler - 3.0.4 released 2014/01/19
|
68
|
-
|
69
|
-
- make CronLine#frequency faster (to avoid 20s schedule_cron times)
|
70
|
-
|
71
|
-
|
72
|
-
== rufus-scheduler - 3.0.3 released 2013/12/12
|
73
|
-
|
74
|
-
- CronLine#previous_time fix by Yassen Bantchev (https://github.com/yassenb)
|
75
|
-
- introduce ZookeptScheduler example in the readme
|
76
|
-
- rename #consider_lockfile to #lock and introduce #unlock
|
77
|
-
|
78
|
-
|
79
|
-
== rufus-scheduler - 3.0.2 released 2013/10/22
|
80
|
-
|
81
|
-
- default :max_work_threads to 28
|
82
|
-
- fix "rufus rushes to create work threads" issue, thanks Gatis Tomsons
|
83
|
-
- introduce Rufus::Scheduler::NotRunningError, thanks Gatis Tomsons
|
84
|
-
|
85
|
-
|
86
|
-
== rufus-scheduler - 3.0.1 released 2013/10/19
|
87
|
-
|
88
|
-
- fix post_install_message, thanks Ted Pennings
|
89
|
-
- bring back .parse_time_string and .parse_duration_string
|
90
|
-
|
91
|
-
|
92
|
-
== rufus-scheduler - 3.0.0 released 2013/10/02
|
93
|
-
|
94
|
-
- complete rewrite.
|
95
|
-
- introduce scheduler.interval('10s') { ... }
|
96
|
-
|
97
|
-
|
98
|
-
== rufus-scheduler - 2.0.24 released 2013/09/02
|
99
|
-
|
100
|
-
- lowered tzinfo dependency to >= 0.3.22
|
101
|
-
http://stackoverflow.com/questions/18551970
|
102
|
-
|
103
|
-
|
104
|
-
== rufus-scheduler - 2.0.23 released 2013/07/26
|
105
|
-
|
106
|
-
- mutex vs timeout fix by Tobias Kraze
|
107
|
-
|
108
|
-
|
109
|
-
== rufus-scheduler - 2.0.22 released 2013/07/16
|
110
|
-
|
111
|
-
- parse "/10 * * * *" again (like <= 2.0.19 did), thanks @skrd
|
112
|
-
|
113
|
-
|
114
|
-
== rufus-scheduler - 2.0.21 released 2013/07/15
|
115
|
-
|
116
|
-
- add license (MIT) to gemspec file
|
117
|
-
|
118
|
-
|
119
|
-
== rufus-scheduler - 2.0.20 released 2013/07/15
|
120
|
-
|
121
|
-
- add Rufus::Scheduler.new (so that rs 3.0 quickstarts are OK with 2.0.20)
|
122
|
-
- implement CronLine#previous_time(now=Time.now) (Idea Matteo Cerutti)
|
123
|
-
- throw ArgumentError for invalid cron lines (Thanks Aimee Rose)
|
124
|
-
- cron 0 vs 24 hour case straightening (Thanks Aimee Rose)
|
125
|
-
- support for sun#L or sun#-2 in cron lines
|
126
|
-
|
127
|
-
|
128
|
-
== rufus-scheduler - 2.0.19 released 2013/05/07
|
129
|
-
|
130
|
-
- raise ArgumentError on <= 0.0 "every" frequency (Thanks Lucy Fu)
|
131
|
-
- support multiple mutexes (Thanks Rainux Luo)
|
132
|
-
|
133
|
-
|
134
|
-
== rufus-scheduler - 2.0.18 released 2013/03/06
|
135
|
-
|
136
|
-
- support for "L" in cron lines (Thanks Andrew Davey)
|
137
|
-
- support for negative time strings (Thanks Danny "northox" Fullerton)
|
138
|
-
- reject invalid weekdays (Thanks pazustep)
|
139
|
-
|
140
|
-
|
141
|
-
== rufus-scheduler - 2.0.17 released 2012/06/14
|
142
|
-
|
143
|
-
- @andrehjr patch to make it work on Ruby 1.9.3
|
144
|
-
- raises ArgumentError on unknown/unsupported options (Idea Tero Tilus)
|
145
|
-
|
146
|
-
|
147
|
-
== rufus-scheduler - 2.0.16 released 2011/12/31
|
148
|
-
|
149
|
-
- hardened Rufus.parse_time_string
|
150
|
-
- running job thread: getting rid of the job pointer once job is done
|
151
|
-
|
152
|
-
|
153
|
-
== rufus-scheduler - 2.0.15 released 2011/12/20
|
154
|
-
|
155
|
-
- Scheduler#running_jobs (Thanks Louis Coilliot)
|
156
|
-
|
157
|
-
|
158
|
-
== rufus-scheduler - 2.0.14 released 2011/12/11
|
159
|
-
|
160
|
-
- Job #pause and #resume
|
161
|
-
- Scheduler #pause(job_or_job_id) and #resume(job_or_job_id)
|
162
|
-
- Scheduler#unschedule(job_or_job_id)
|
163
|
-
|
164
|
-
|
165
|
-
== rufus-scheduler - 2.0.13 released 2011/11/14
|
166
|
-
|
167
|
-
- cron lines now OK with "09". Thanks Anthony Lewis
|
168
|
-
|
169
|
-
|
170
|
-
== rufus-scheduler - 2.0.12 released 2011/10/28
|
171
|
-
|
172
|
-
- hardened exception handling. Thanks Sam Gibson
|
173
|
-
- accepting #handle_exception, #log_exception or #on_exception
|
174
|
-
- scheduler.in '1s', :mutex => 'that_mutex_name'
|
175
|
-
|
176
|
-
|
177
|
-
== rufus-scheduler - 2.0.11 released 2011/09/30
|
178
|
-
|
179
|
-
- require 'rufus-scheduler' works
|
180
|
-
|
181
|
-
|
182
|
-
== rufus-scheduler - 2.0.10 released 2011/06/26
|
183
|
-
|
184
|
-
- every and allow_overlapping now surviving exceptions. Thanks sha1dy
|
185
|
-
|
186
|
-
|
187
|
-
== rufus-scheduler - 2.0.9 released 2011/04/22
|
188
|
-
|
189
|
-
- Scheduler#first_at and :discard_past => true. Thanks concept47
|
190
|
-
- Scheduler#cron and monthdays (sun#2 or mon#1)
|
191
|
-
- Scheduler#unschedule_by_tag(t)
|
192
|
-
|
193
|
-
|
194
|
-
== rufus-scheduler - 2.0.8 released 2010/12/31
|
195
|
-
|
196
|
-
- issue with cron '0 7-23/2 * * *' fixed. Thanks Pickerel
|
197
|
-
|
198
|
-
|
199
|
-
== rufus-scheduler - 2.0.7 released 2010/11/09
|
200
|
-
|
201
|
-
- :allow_overlapping => false, thanks Adam Davies
|
202
|
-
- cron and timezones, thanks Tanzeeb Khalili
|
203
|
-
- Scheduler#trigger_threads, thanks Tim Uckun
|
204
|
-
|
205
|
-
|
206
|
-
== rufus-scheduler - 2.0.6 released 2010/05/01
|
207
|
-
|
208
|
-
- timeout jobs not outliving their parent job anymore, thanks Joel Wood
|
209
|
-
|
210
|
-
|
211
|
-
== rufus-scheduler - 2.0.5 released 2010/03/02
|
212
|
-
|
213
|
-
- fixed parse_time_string(s) issue, thanks Gonzalo Suarez
|
214
|
-
|
215
|
-
|
216
|
-
== rufus-scheduler - 2.0.4 released 2010/02/12
|
217
|
-
|
218
|
-
- addressing issue with every and timeout, thanks Tony Day
|
219
|
-
|
220
|
-
|
221
|
-
== rufus-scheduler - 2.0.3 released 2009/11/04
|
222
|
-
|
223
|
-
- made sure Schedulables with a call(job) method were OK when passed as second
|
224
|
-
parameter (thanks Nate Wiger)
|
225
|
-
|
226
|
-
|
227
|
-
== rufus-scheduler - 2.0.2 released 2009/10/31
|
228
|
-
|
229
|
-
- unified JobQueue and CronJobQueue, and handed @last_second management to the
|
230
|
-
latter
|
231
|
-
- #trigger_block method for easier override
|
232
|
-
- passing :job => job among Schedulable trigger parameters
|
233
|
-
|
234
|
-
|
235
|
-
== rufus-scheduler - 2.0.1 released 2009/05/07
|
236
|
-
== rufus-scheduler - 2.0.0 released 2009/05/07
|
237
|
-
|
238
|
-
...
|
239
|
-
|
240
|
-
- initial release
|
241
|
-
|
242
|
-
(was openwferu-scheduler before that)
|
243
|
-
|
data/CREDITS.txt
DELETED
@@ -1,88 +0,0 @@
|
|
1
|
-
|
2
|
-
= CREDITS.txt
|
3
|
-
|
4
|
-
|
5
|
-
== Contributors
|
6
|
-
|
7
|
-
- Jesse Willet (https://github.com/jhw-at-prosperworks-com) cron vs "*/10"
|
8
|
-
- Pascal Ouellet (https://github.com/pouellet) Scheduler#timeline loop fix
|
9
|
-
- Ryan Biesemeyer (https://github.com/yaauie) ZoTime.is_timezone? on OSX
|
10
|
-
- Ketan Padegaonkar (https://github.com/ketan) .brute_frequency improvement
|
11
|
-
- Gabriel Gilder (https://github.com/ggilder) LA DST specs
|
12
|
-
- Sterling Paramore (https://github.com/gnilrets) underscore TZ fix
|
13
|
-
- ecin (https://github.com/ecin) new lock mecha
|
14
|
-
- Adam Jonas (https://github.com/adamjonas) migrate specs to "expect"
|
15
|
-
- Yassen Bantchev (https://github.com/yassenb) CronLine#previous_time rewrite
|
16
|
-
- Eric Lindvall (https://github.com/eric) Zookeeper locked example
|
17
|
-
- Ted Pennings (https://github.com/tedpennings) typo in post_install_message
|
18
|
-
- Tobias Kraze (https://github.com/kratob) timeout vs mutex fix
|
19
|
-
- Patrick Farrell (https://github.com/pfarrell) pointing at deprecated start_new
|
20
|
-
- Thomas Sevestre (https://github.com/thomassevestre) :exception option
|
21
|
-
- Matteo Cerutti - last_time / previous_time idea (and initial implementation)
|
22
|
-
- Aimee Rose (https://github.com/AimeeRose) cronline and > 24
|
23
|
-
- Lucy Fu (https://github.com/lfu) arg error on <= 0 "every" freq
|
24
|
-
- Rainux Luo (https://github.com/rainux) multiple mutexes
|
25
|
-
- Andrew Davey (https://github.com/asdavey) "L" in cron lines
|
26
|
-
- Stig Kleppe-Jørgensen (https://github.com/stigkj)
|
27
|
-
- Danny "northox" Fullerton (https://github.com/northox) negative time strings
|
28
|
-
- Marcus Brito (https://github.com/pazustep) CronLine proofing
|
29
|
-
- André Luis Leal Cardoso Junior (https://github.com/andrehjr) 1.9.3 patch
|
30
|
-
- Anthony Lewis (https://github.com/anthonylewis) cron lines and 09 issue
|
31
|
-
- concept47 (https://github.com/concept47) every and :discard_past
|
32
|
-
- Chris Kampemeier (http://github.com/chrisk) rspec 2.0 refinements
|
33
|
-
- Tanzeeb Khalili (http://github.com/tanzeeb) cron and timezones
|
34
|
-
- Adam Davies (http://github.com/adz), :allow_overlapping => false
|
35
|
-
- Klaas Jan Wierenga, at/every/in stress tests (1.0 and 2.0)
|
36
|
-
- TobyH (http://github.com/tobyh), faster and cleaner CronLine#next_time
|
37
|
-
|
38
|
-
|
39
|
-
== Feedback
|
40
|
-
|
41
|
-
- Patrik Ragnarsson - https://github.com/dentarg - timeout vs nil, gh-156
|
42
|
-
- twitter @adefilaedward1 - typo in readme
|
43
|
-
- Michael Guymon - https://github.com/mguymon - #next_time vs :first_at
|
44
|
-
- junhanamaki - https://github.com/junhanamaki - #next_time and dst ambiguities
|
45
|
-
- kreynolds (tossrock) - inspiration for #occurrences
|
46
|
-
- Matteo - https://github.com/m4ce - dst and cron issue
|
47
|
-
- Tobias Bielohlawek - https://github.com/rngtng - missing assertion
|
48
|
-
- Joe Taylor and Agis Anastasopoulos -
|
49
|
-
http://stackoverflow.com/questions/21280870 - :first => :now and Job#call
|
50
|
-
- Gatis Tomsons - https://github.io/gacha - heavy work threads and lock errors
|
51
|
-
- https://github.com/joast - missing .to_time_string alias (code and doc)
|
52
|
-
- Tamir Duberstein - https://github.com/tamird - rdoc inaccuracies
|
53
|
-
- Kevin Bouwkamp - https://github.com/bmxpert1 - first_at issues
|
54
|
-
- Daniel Beauchamp - https://github.com/pushmatrix - pre/post trigger callbacks
|
55
|
-
- Arthur Maltson - https://github.com/amaltson - readme fixes
|
56
|
-
- skrd - https://github.com/skrd - "/10 * * * *" cron issue
|
57
|
-
- Hongli Lai - Scheduler#stop(:terminate => true) request
|
58
|
-
- Tero Tilus - raises on unsupported/unknown options
|
59
|
-
- Louis Coilliot - Scheduler#running_jobs
|
60
|
-
- Henrique G. Testa - pause/resume concept
|
61
|
-
- Sam Gibson - https://github.com/samfoo - exception handling hardening
|
62
|
-
- sha1dy - https://github.com/sha1dy - every and overlapping exception issue
|
63
|
-
- Defusal - unschedule_by_tag
|
64
|
-
- pickerel - https://github.com/pickerel
|
65
|
-
- Gonzalo Suarez - parse_time_string(s) issue
|
66
|
-
- Tony Day - http://github.com/tonyday - every and overlapping timeout issue
|
67
|
-
- Nate Wiger (Schedulable call/trigger issue)
|
68
|
-
- Aldric (readme errors)
|
69
|
-
- Kenneth Kalmer (daemon-kit)
|
70
|
-
- Chris Evans, :timeout tests on JRuby
|
71
|
-
- Tim Uckun, :timeout concept
|
72
|
-
- K Liu, for the note about CronLine#next_time
|
73
|
-
- Xianhang Zhang, find_jobs(tag=nil) patch
|
74
|
-
- Yi Wen, for lib/rufus-scheduler.rb
|
75
|
-
- Adam Green and Rael Dornfest for the Taskr breaking issue feedback
|
76
|
-
- Sean Liu, unschedule_every issue
|
77
|
-
- Manfred Usselman (no cronjobs on sundays bug)
|
78
|
-
- Michael Goth, tests with precision > 1s
|
79
|
-
|
80
|
-
* many people gave feedback previously, see
|
81
|
-
http://openwferu.rubyforge.org/svn/trunk/openwfe-ruby/CREDITS.txt
|
82
|
-
|
83
|
-
|
84
|
-
== and finally
|
85
|
-
|
86
|
-
- many thanks to the author and contributors of the tzinfo gem (http://tzinfo.github.io/)
|
87
|
-
- many thanks to the EventMachine team (especially Aman Gupta)
|
88
|
-
|
data/Rakefile
DELETED
@@ -1,83 +0,0 @@
|
|
1
|
-
|
2
|
-
require 'rubygems'
|
3
|
-
|
4
|
-
require 'rake'
|
5
|
-
require 'rake/clean'
|
6
|
-
require 'rdoc/task'
|
7
|
-
|
8
|
-
|
9
|
-
#
|
10
|
-
# clean
|
11
|
-
|
12
|
-
CLEAN.include('pkg', 'rdoc')
|
13
|
-
|
14
|
-
|
15
|
-
#
|
16
|
-
# test / spec
|
17
|
-
|
18
|
-
#task :spec => :check_dependencies do
|
19
|
-
task :spec do
|
20
|
-
exec 'rspec spec/'
|
21
|
-
end
|
22
|
-
task :test => :spec
|
23
|
-
|
24
|
-
task :default => :spec
|
25
|
-
|
26
|
-
|
27
|
-
#
|
28
|
-
# gem
|
29
|
-
|
30
|
-
GEMSPEC_FILE = Dir['*.gemspec'].first
|
31
|
-
GEMSPEC = eval(File.read(GEMSPEC_FILE))
|
32
|
-
GEMSPEC.validate
|
33
|
-
|
34
|
-
|
35
|
-
desc %{
|
36
|
-
builds the gem and places it in pkg/
|
37
|
-
}
|
38
|
-
task :build do
|
39
|
-
|
40
|
-
sh "gem build #{GEMSPEC_FILE}"
|
41
|
-
sh "mkdir -p pkg"
|
42
|
-
sh "mv #{GEMSPEC.name}-#{GEMSPEC.version}.gem pkg/"
|
43
|
-
end
|
44
|
-
|
45
|
-
desc %{
|
46
|
-
builds the gem and pushes it to rubygems.org
|
47
|
-
}
|
48
|
-
task :push => :build do
|
49
|
-
|
50
|
-
sh "gem push pkg/#{GEMSPEC.name}-#{GEMSPEC.version}.gem"
|
51
|
-
end
|
52
|
-
|
53
|
-
|
54
|
-
#
|
55
|
-
# rdoc
|
56
|
-
#
|
57
|
-
# make sure to have rdoc 2.5.x to run that
|
58
|
-
|
59
|
-
Rake::RDocTask.new do |rd|
|
60
|
-
|
61
|
-
rd.main = 'README.txt'
|
62
|
-
rd.rdoc_dir = "rdoc/#{GEMSPEC.name}"
|
63
|
-
|
64
|
-
rd.rdoc_files.include('README.rdoc', 'CHANGELOG.txt', 'lib/**/*.rb')
|
65
|
-
|
66
|
-
rd.title = "#{GEMSPEC.name} #{GEMSPEC.version}"
|
67
|
-
end
|
68
|
-
|
69
|
-
|
70
|
-
#
|
71
|
-
# upload_rdoc
|
72
|
-
|
73
|
-
desc %{
|
74
|
-
upload the rdoc to rubyforge
|
75
|
-
}
|
76
|
-
task :upload_rdoc => [ :clean, :rdoc ] do
|
77
|
-
|
78
|
-
account = 'jmettraux@rubyforge.org'
|
79
|
-
webdir = '/var/www/gforge-projects/rufus'
|
80
|
-
|
81
|
-
sh "rsync -azv -e ssh rdoc/#{GEMSPEC.name} #{account}:#{webdir}/"
|
82
|
-
end
|
83
|
-
|