resque-scheduler 2.0.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of resque-scheduler might be problematic. Click here for more details.
- checksums.yaml +15 -0
- data/.gitignore +2 -0
- data/.rubocop.yml +129 -0
- data/.travis.yml +18 -0
- data/AUTHORS.md +63 -0
- data/CONTRIBUTING.md +6 -0
- data/Gemfile +3 -7
- data/HISTORY.md +65 -6
- data/LICENSE +3 -1
- data/{README.markdown → README.md} +218 -113
- data/Rakefile +22 -9
- data/lib/resque/scheduler/lock/base.rb +52 -0
- data/lib/resque/scheduler/lock/basic.rb +28 -0
- data/lib/resque/scheduler/lock/resilient.rb +69 -0
- data/lib/resque/scheduler/lock.rb +3 -0
- data/lib/resque/scheduler.rb +56 -19
- data/lib/resque/scheduler_locking.rb +89 -0
- data/lib/resque_scheduler/logger_builder.rb +51 -0
- data/lib/resque_scheduler/server/views/delayed.erb +2 -1
- data/lib/resque_scheduler/server/views/requeue-params.erb +23 -0
- data/lib/resque_scheduler/server/views/scheduler.erb +4 -3
- data/lib/resque_scheduler/server.rb +25 -3
- data/lib/resque_scheduler/tasks.rb +9 -3
- data/lib/resque_scheduler/util.rb +34 -0
- data/lib/resque_scheduler/version.rb +3 -1
- data/lib/resque_scheduler.rb +89 -38
- data/resque-scheduler.gemspec +26 -20
- data/script/migrate_to_timestamps_set.rb +14 -0
- data/test/delayed_queue_test.rb +67 -16
- data/test/redis-test.conf +0 -7
- data/test/resque-web_test.rb +105 -3
- data/test/scheduler_args_test.rb +1 -1
- data/test/scheduler_locking_test.rb +180 -0
- data/test/scheduler_setup_test.rb +59 -0
- data/test/scheduler_test.rb +21 -12
- data/test/support/redis_instance.rb +129 -0
- data/test/test_helper.rb +26 -14
- metadata +105 -32
metadata
CHANGED
@@ -1,80 +1,127 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque-scheduler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
5
|
-
prerelease:
|
4
|
+
version: 2.3.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Ben VandenBos
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-11-20 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: mocha
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
18
30
|
requirements:
|
19
31
|
- - ! '>='
|
20
32
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
33
|
+
version: '0'
|
22
34
|
type: :development
|
23
35
|
prerelease: false
|
24
36
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
37
|
requirements:
|
27
38
|
- - ! '>='
|
28
39
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
40
|
+
version: '0'
|
30
41
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
42
|
+
name: rack-test
|
32
43
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
44
|
requirements:
|
35
45
|
- - ! '>='
|
36
46
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
38
|
-
type: :
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
39
49
|
prerelease: false
|
40
50
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
51
|
requirements:
|
43
52
|
- - ! '>='
|
44
53
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
54
|
+
version: '0'
|
46
55
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
56
|
+
name: rake
|
48
57
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
58
|
requirements:
|
51
59
|
- - ! '>='
|
52
60
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
54
|
-
type: :
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
55
63
|
prerelease: false
|
56
64
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
65
|
requirements:
|
59
66
|
- - ! '>='
|
60
67
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
68
|
+
version: '0'
|
62
69
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
70
|
+
name: rubocop
|
64
71
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
72
|
requirements:
|
67
73
|
- - ! '>='
|
68
74
|
- !ruby/object:Gem::Version
|
69
75
|
version: '0'
|
70
|
-
type: :
|
76
|
+
type: :development
|
71
77
|
prerelease: false
|
72
78
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
79
|
requirements:
|
75
80
|
- - ! '>='
|
76
81
|
- !ruby/object:Gem::Version
|
77
82
|
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: redis
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ! '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 3.0.0
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ! '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 3.0.0
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: resque
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ~>
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.25'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '1.25'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rufus-scheduler
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '2.0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ~>
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '2.0'
|
78
125
|
description: ! "Light weight job scheduling on top of Resque.\n Adds methods enqueue_at/enqueue_in
|
79
126
|
to schedule jobs in the future.\n Also supports queueing jobs on a fixed, cron-like
|
80
127
|
schedule."
|
@@ -85,51 +132,77 @@ extensions: []
|
|
85
132
|
extra_rdoc_files: []
|
86
133
|
files:
|
87
134
|
- .gitignore
|
135
|
+
- .rubocop.yml
|
136
|
+
- .travis.yml
|
137
|
+
- AUTHORS.md
|
138
|
+
- CONTRIBUTING.md
|
88
139
|
- Gemfile
|
89
140
|
- HISTORY.md
|
90
141
|
- LICENSE
|
91
|
-
- README.
|
142
|
+
- README.md
|
92
143
|
- Rakefile
|
93
144
|
- lib/resque/scheduler.rb
|
145
|
+
- lib/resque/scheduler/lock.rb
|
146
|
+
- lib/resque/scheduler/lock/base.rb
|
147
|
+
- lib/resque/scheduler/lock/basic.rb
|
148
|
+
- lib/resque/scheduler/lock/resilient.rb
|
149
|
+
- lib/resque/scheduler_locking.rb
|
94
150
|
- lib/resque_scheduler.rb
|
151
|
+
- lib/resque_scheduler/logger_builder.rb
|
95
152
|
- lib/resque_scheduler/plugin.rb
|
96
153
|
- lib/resque_scheduler/server.rb
|
97
154
|
- lib/resque_scheduler/server/views/delayed.erb
|
98
155
|
- lib/resque_scheduler/server/views/delayed_timestamp.erb
|
156
|
+
- lib/resque_scheduler/server/views/requeue-params.erb
|
99
157
|
- lib/resque_scheduler/server/views/scheduler.erb
|
100
158
|
- lib/resque_scheduler/tasks.rb
|
159
|
+
- lib/resque_scheduler/util.rb
|
101
160
|
- lib/resque_scheduler/version.rb
|
102
161
|
- resque-scheduler.gemspec
|
162
|
+
- script/migrate_to_timestamps_set.rb
|
103
163
|
- tasks/resque_scheduler.rake
|
104
164
|
- test/delayed_queue_test.rb
|
105
165
|
- test/redis-test.conf
|
106
166
|
- test/resque-web_test.rb
|
107
167
|
- test/scheduler_args_test.rb
|
108
168
|
- test/scheduler_hooks_test.rb
|
169
|
+
- test/scheduler_locking_test.rb
|
170
|
+
- test/scheduler_setup_test.rb
|
109
171
|
- test/scheduler_test.rb
|
172
|
+
- test/support/redis_instance.rb
|
110
173
|
- test/test_helper.rb
|
111
|
-
homepage: http://github.com/
|
112
|
-
licenses:
|
174
|
+
homepage: http://github.com/resque/resque-scheduler
|
175
|
+
licenses:
|
176
|
+
- MIT
|
177
|
+
metadata: {}
|
113
178
|
post_install_message:
|
114
179
|
rdoc_options: []
|
115
180
|
require_paths:
|
116
181
|
- lib
|
117
182
|
required_ruby_version: !ruby/object:Gem::Requirement
|
118
|
-
none: false
|
119
183
|
requirements:
|
120
184
|
- - ! '>='
|
121
185
|
- !ruby/object:Gem::Version
|
122
186
|
version: '0'
|
123
187
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
|
-
none: false
|
125
188
|
requirements:
|
126
189
|
- - ! '>='
|
127
190
|
- !ruby/object:Gem::Version
|
128
|
-
version:
|
191
|
+
version: '0'
|
129
192
|
requirements: []
|
130
193
|
rubyforge_project:
|
131
|
-
rubygems_version:
|
194
|
+
rubygems_version: 2.0.3
|
132
195
|
signing_key:
|
133
|
-
specification_version:
|
196
|
+
specification_version: 4
|
134
197
|
summary: Light weight job scheduling on top of Resque
|
135
|
-
test_files:
|
198
|
+
test_files:
|
199
|
+
- test/delayed_queue_test.rb
|
200
|
+
- test/redis-test.conf
|
201
|
+
- test/resque-web_test.rb
|
202
|
+
- test/scheduler_args_test.rb
|
203
|
+
- test/scheduler_hooks_test.rb
|
204
|
+
- test/scheduler_locking_test.rb
|
205
|
+
- test/scheduler_setup_test.rb
|
206
|
+
- test/scheduler_test.rb
|
207
|
+
- test/support/redis_instance.rb
|
208
|
+
- test/test_helper.rb
|