resque-scheduler 4.3.0 → 4.7.0

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.

data/CHANGELOG.md ADDED
@@ -0,0 +1,510 @@
1
+ # Change Log
2
+
3
+ **ATTN**: This project uses [semantic versioning](http://semver.org/).
4
+
5
+ ## [4.7.0] - 2022-10-6
6
+ ### Fixed
7
+ - Fix tests for redis-rb 5.0 (#757)
8
+ - Use Resque::DataStore#reconnect for redis-rb 5.0 compat (#757)
9
+ - Test suite runs `flushall` to prevent flakiness (#757)
10
+
11
+ ## [4.6.0] - 2022-08-04
12
+ ### Changed
13
+ - Remove support for Ruby < 2.3
14
+ - Configuration to use a set of truthy values to enable boolean settings instead of simply existence
15
+ - Add `delay_or_enqueue_at` for delaying existing jobs or creating a new job(#645)
16
+ - Fix deprecated uses of Redis#pipelined
17
+ - Fix reading configuration from environment for boolean values (#735)
18
+ - Unblock rufus-scheduler lock on lower than 3.7 by fixing scheduler shutdown (#736)
19
+ - Removed testing against jruby (resque doesn't test against jruby)
20
+
21
+ ## [4.5.0] - 2021-09-25
22
+ ### Added
23
+ - Support Ruby 3
24
+ - Add optional argument to `remove_schedule` to control reloading of the schedule
25
+
26
+ ### Fixed
27
+ - Fix XSS vulnerability on the `/delayed/search` page
28
+ - Ensure that jobs are directly created for jobs enqueued at `Time.now`
29
+ - Fix queuing to custom job queues in `enqueue_delayed_selection`
30
+ - Ensure `before_enqueue` and `after_enqueue` callbacks are called in all cases of queuing a job
31
+ - Fix redis error when running resque-scheduler without Redis
32
+
33
+ ### Changed
34
+ - Change CI from Travis to GitHub Actions
35
+ - Only allow rufus-scheduler versions lower than 3.7
36
+ - Update vagrant configuration
37
+
38
+ ## [4.4.0] - 2019-04-11
39
+ ### Added
40
+ - Support Resque 2
41
+ - Support redis-rb 4
42
+ - Support Ruby 2.5
43
+
44
+ ### Fixed
45
+ - Redis timeouts no longer crash the scheduler process
46
+ - Fix race condition when running multiple schedulers
47
+ - Fix setting the `poll_sleep_amount` option
48
+ - Escape class names in resque-web /delayed URLs
49
+
50
+ ### Changed
51
+ - Addressed redis-namespace deprecation warnings
52
+ - Ensure `enqueue_in` args are Numeric, catching a common issue passing `ActiveSupport::Duration`
53
+
54
+ ## [4.3.1] - 2017-11-20
55
+ ### Changed
56
+ - Add support and testing for ruby 2.4
57
+ - Change log format and file name
58
+ - Drop testing on ruby 1.9.3
59
+ - `Lock::Resilient`: Refresh lua script sha if it does not exist in redis server
60
+
61
+ ### Fixed
62
+ - Reporting version via `resque-scheduler --version`
63
+ - Class name escaping in `/delayed` view
64
+
65
+ ## [4.3.0] - 2016-06-26
66
+ ### Added
67
+ - Windows testing on Appveyor
68
+ - Code of Conduct
69
+
70
+ ### Changed
71
+ - Silence output by default when daemonizing
72
+ - Update vagrant setup
73
+ - Update gem metadata per latest Bundler defaults
74
+
75
+ ## [4.2.1] - 2016-06-08
76
+ ### Added
77
+ - Docs improvements
78
+
79
+ ### Changed
80
+ - Optimization of `find_delayed_selection`
81
+ - More defensive code around redis disconnects
82
+ - Only trap existing signals on given platform
83
+ - RuboCop auto-fixes
84
+ - Dependency updates
85
+
86
+ ## [4.2.0] - 2016-04-29
87
+ ### Added
88
+ - Index column to scheduler tab
89
+ - Failure hook support for better extensibility
90
+
91
+ ### Changed
92
+ - Clean up and simplify the scheduling extension
93
+ - Make `Resque::Scheduler.logger` accessible to user
94
+ - Default failure handler now outputs stacktrace
95
+ - Update rufus-scheduler
96
+
97
+ ### Fixed
98
+ - Displaying schedules appropriate to the `env` in scheduler UI
99
+ - A race condition in concurrent restarts
100
+
101
+ ## [4.1.0] - 2016-02-10
102
+ ### Added
103
+ - View helper to cut down on repetition
104
+ - `Resque.(find|enqueue)_delayed_selection` methods to complement
105
+ `Resque.remove_delayed_selection`
106
+
107
+ ### Changed
108
+ - Leave undefined env vars unset in internal options hash
109
+ - Insulate checking `Rails.env`
110
+ - Documentation updates and typo fixes
111
+
112
+ ### Fixed
113
+ - Check thread life only if present
114
+
115
+ ## [4.0.0] - 2014-12-21
116
+ ### Added
117
+ - Show current master in the web UI
118
+
119
+ ### Changed
120
+ - Bump rufus-scheduler dependency to `~> 3.0`
121
+ - Address warning from redis-namespace related to `#unwatch`
122
+ - Documentation updates
123
+
124
+ ### Fixed
125
+ - Bugfix related to schedule check when no jobs are in the queue
126
+
127
+ ## [3.1.0] - 2014-12-21
128
+ ### Added
129
+ - Note in README.md about production redis deployment configuration
130
+ - Better PID file cleanup
131
+ - Option to filter by job class in `Resque.remove_delayed_selection`
132
+ - Tell-don't-ask with `Resque.schedule` to enable atomic clear & set
133
+
134
+ ### Changed
135
+ - Avoid use of redis `KEYS` command in `Resque.remove_delayed_selection`
136
+
137
+ ### Fixed
138
+ - Only release master lock if it belongs to us
139
+ - Only override configuration options if provided
140
+
141
+ ## [3.0.0] - 2014-05-27
142
+ ### Added
143
+ - Vagrant setup
144
+ - Support for last execution information through the web
145
+ - CodeClimate integration
146
+ - `Resque.delayed?` and `Resque.next_delayed_schedule`
147
+ - Allow scheduled jobs to be deleted via resque web
148
+
149
+ ### Changed
150
+ - The grand re-namespacing of `resque_scheduler/(.*)` =&gt;
151
+ `resque/scheduler/\1`
152
+ - "Refactoring"
153
+ - Cleanup of a ton of rubocop offenses
154
+ - Documentation updates
155
+ - Handling signals while "sleeping" by relying on `Thread#wakeup`
156
+ - Testing against same rubies as resque (+ 2.1.1)
157
+ - Renamed `Resque.set_last_run` to `Resque.last_enqueued_at`
158
+
159
+ ### Fixed
160
+ - Duplicated layout for `search_form` partial template.
161
+ - Issue where Web UI was ONLY showing jobs that only run in the current
162
+ environment
163
+
164
+ ## [2.5.5] - 2014-02-27
165
+ ### Changed
166
+ - Only showing link to job with args if job is present
167
+ - Only showing scheduled jobs that match current env or omit env
168
+ - Ensuring lock and acquire lua scripts are refreshed on timeout change
169
+ - Switch to using `mono_logger` instead of stdlib `logger`
170
+
171
+ ## [2.5.4] - 2014-02-17
172
+ ### Changed
173
+ - Documentation updates
174
+
175
+ ## [2.5.3] - 2014-02-12
176
+ ### Fixed
177
+ - Handling signals during poll sleep
178
+
179
+ ## [2.5.2] - 2014-02-11
180
+ ### Changed
181
+ - Pinning down dependency versions more tightly
182
+
183
+ ## [2.5.1] - 2014-02-09
184
+ ### Fixed
185
+ - Make signal handling (really) Ruby 2 compatible
186
+
187
+ ## [2.5.0] - 2014-02-09
188
+ ### Added
189
+ - Search feature to the Delayed tab in Resque Web
190
+
191
+ ### Changed
192
+ - Use `logger.error` when logging errors from `handle_errors`
193
+
194
+ ### Fixed
195
+ - Confusion with redis version requirements in `README.md`
196
+
197
+ ## [2.4.0] - 2014-01-14
198
+ ### Added
199
+ - Including optional env and app names in procline
200
+ - A standalone `resque-scheduler` executable
201
+ - Support for persistence of dynamic schedules
202
+ - `.configure` convenience method for block-style configuration
203
+ - `.remove_delayed_selection` method to remove based on result of a block
204
+ - Support for viewing all schedules for a job in web UI
205
+
206
+ ### Changed
207
+ - Bumping the copyright year
208
+ - Corrected doc for syntax of class and every keys
209
+ - Use resque redis namespace in the master lock key
210
+ - Various test improvements, :bug: fixes, and documentation updates!
211
+
212
+ ### Removed
213
+ - **POSSIBLE BREAKING CHANGE**: Dropping support for ree
214
+
215
+ ### Fixed
216
+ - An explosion regarding `every` in the views
217
+ - Unsafe shutdown in Ruby 2
218
+
219
+ ## 2.3.1 (2013-11-20)
220
+ ### Fixed
221
+ - `require_paths` in gemspec
222
+
223
+ ## 2.3.0 (2013-11-07)
224
+ ### Added
225
+ - Add rufus scheduler `every` notice to README
226
+ - Specify MIT license in gemspec
227
+
228
+ ### Changed
229
+ - **BREAKING CHANGE**: Added `RESQUE_SCHEDULER_INTERVAL` in place of `INTERVAL`
230
+ - Use `Float()` instead of `Integer()` to calculate poll sleep amount
231
+ - Upgraded dependence of Resque to support 1.25
232
+ - Use `Resque.validate` instead of custom `.validate_job!`
233
+
234
+ ### Fixed
235
+ - Re-introduced `ThreadError` on Ruby 2
236
+
237
+ ## 2.2.0 (2013-10-13)
238
+ ### Added
239
+ - Support for parameterized resque jobs.
240
+ - Allowing prefix for `master_lock_key`.
241
+ - `Resque.clean_schedules` method, which is useful when setting up the scheduler
242
+ for the first time.
243
+
244
+ ### Changed
245
+ - Locking rufus-scheduler dependency to `~> 2.0`
246
+ - Updated redis dependency to `>= 3.0.0`
247
+
248
+ ### Fixed
249
+ - Bug fixes related to first time schedule retrieval and missing schedules.
250
+
251
+ ## 2.1.0 (2013-09-20)
252
+ ### Added
253
+ - Add `#scheduled_at` which returns an array of timestamps at which the
254
+ specified job is scheduled
255
+ - Add `#enqueue_delayed` for enqueueing specific delayed jobs immediately
256
+ - Show server local time in resque-web
257
+ - Add support for configuring `Resque::Scheduler.poll_sleep_amount` via the
258
+ `INTERVAL` environmental variable.
259
+
260
+ ### Changed
261
+ - Locking to resque &lt; 1.25.0 (for now)
262
+ - Syncing stdout/stderr
263
+ - Using a logger instead of `#puts`, configurable via `LOGFILE`, `VERBOSE`, and
264
+ `MUTE` environmental variables, as well as being settable via
265
+ `Resque::Scheduler#logger`
266
+ - Enqueue immediately if job is being enqueued in the past
267
+
268
+ ### Removed
269
+ - Dependency on `Resque::Helpers`
270
+
271
+ ### Fixed
272
+ - Ensuring `Resque.schedule=` sets rather than appends
273
+ - Process daemonization fixes including stdio redirection and redis client
274
+ reconnection
275
+ - Scheduler template when arrays are passed to rufus-scheduler
276
+ - Fixed shutdown in ruby 2.0.0
277
+
278
+ ## [2.0.1] - 2013-03-20
279
+ ### Added
280
+ - Locking to support master failover
281
+ - Allow custom job classes to be used in `Resque.enqueue_at`
282
+ - Allowing `#enqueue_at` to call `#scheduled` when `Resque.inline` is `true`
283
+
284
+ ### Changed
285
+ - More efficient `#remove_delayed` implementation
286
+
287
+ ## [2.0.0] - 2012-05-04
288
+ ### Added
289
+ - Support for Resque.inline configuration (carlosantoniodasilva)
290
+
291
+ ### Fixed
292
+ - Possible job loss race condition around deleting delayed queues and enqueuing
293
+ a job 0 seconds in the future.
294
+
295
+ ## [2.0.0.h] - 2012-03-19
296
+ ### Added
297
+ - Plugin support with hooks (andreas)
298
+
299
+ ## [2.0.0.f] - 2011-11-03
300
+ ### Added
301
+ - Support `ENV['BACKGROUND']` flag for daemonizing (bernerdschaefer)
302
+ - Added support for `before_schedule` and `after_schedule` hooks (yaauie)
303
+ - Added `remove_delayed_job_from_timestamp` to remove delayed jobs from
304
+ a given timestamp.
305
+
306
+ ### Fixed
307
+ - Address race condition with delayed jobs (using redis transactions)
308
+
309
+ ## [2.0.0.e] - 2011-09-16
310
+ ### Added
311
+ - `enqueue_at_with_queue`/`enqueue_in_with_queue` support (niralisse)
312
+ - `Resque::Scheduler.poll_sleep_amount` to allow for configuring
313
+ the sleep time b/w delayed queue polls.
314
+ - "Clear Delayed Jobs" button to the Delayed Jobs page (john-griffin)
315
+
316
+ ### Fixed
317
+ - Pagination issue on the Delayed tab
318
+
319
+ ## [2.0.0.d] - 2011-04-04
320
+ ### Changed
321
+ - Porting bug fixes from v1.9-stable
322
+
323
+ ## [2.0.0.c] - 2011-03-25
324
+ ### Changed
325
+ - Rake task drop a pid file (sreeix)
326
+
327
+ ## [2.0.0.b] - 2011-02-25
328
+ ### Fixed
329
+ - Bugs
330
+
331
+ ## 2.0.0.a - 2010-12-10
332
+ ### Added
333
+ - Dynamic schedule support (brianjlandau, davidyang)
334
+
335
+ ### Changed
336
+ - Now depends on redis >=1.3
337
+
338
+ ## [1.9.11] - 2013-11-20
339
+ ### Fixed
340
+ - Behavior of `#validate_job!` via `#enqueue_at_with_queue` #286
341
+ - `require_paths` in gemspec #288
342
+
343
+ ## [1.9.10] - 2013-09-19
344
+ ### Added
345
+ - Backported `#enqueue_at_with_queue`
346
+ - Locking to resque &lt; 1.25.0
347
+ - Ruby 1.8 compatibility in scheduler tab when schedule keys are symbols
348
+
349
+ ### Changed
350
+ - Mocha setup compatibility
351
+
352
+ ## [1.9.9] - 2011-03-29
353
+ ### Added
354
+ - Compatibility with resque 1.15.0
355
+
356
+ ## [1.9.8] - 2011-01-14
357
+ ### Changed
358
+ - Validates delayed jobs prior to insertion into the delayed queue (bogdan)
359
+ - Rescue exceptions that occur during queuing and log them (dgrijalva)
360
+
361
+ ## [1.9.7] - 2010-11-09
362
+ ### Added
363
+ - Support for rufus-scheduler "every" syntax (fallwith)
364
+ - Ability to pass a Time to `handle_delayed_items` for testing/staging (rcarver)
365
+
366
+ ## [1.9.6] - 2010-10-08
367
+ ### Added
368
+ - Support for custom job classes (like resque-status) (mattetti)
369
+
370
+ ## [1.9.5] - 2010-09-09
371
+ ### Changed
372
+ - Updated scheduler rake task to allow for an alternate setup task
373
+ to avoid loading the entire stack. (chewbranca)
374
+
375
+ ### Fixed
376
+ - Sig issue on win32 (#25)
377
+
378
+ ## [1.9.4] - 2010-07-29
379
+ ### Added
380
+ - Ability to remove jobs from delayed queue (joshsz)
381
+
382
+ ### Fixed
383
+ - Issue #23 (removing .present? reference)
384
+
385
+ ## [1.9.3] - 2010-07-07
386
+ ### Fixed
387
+ - Bug fix (#19)
388
+
389
+ ## [1.9.2] - 2010-06-16
390
+ ### Fixed
391
+ - Issue with redis gem 2.0.1 and redis server 1.2.6 (dbackeus)
392
+
393
+ ## [1.9.1] - 2010-06-04
394
+ ### Fixed
395
+ - Issue with redis server 1.2.6 and redis gem 2.0.1
396
+
397
+ ## [1.9.0] - 2010-06-04
398
+ ### Added
399
+ - Redis 2.0 support (bpo)
400
+
401
+ ## [1.8.2] - 2010-06-04
402
+ ### Added
403
+ - Queue now functionality to delayed timestamps (daviddoan)
404
+
405
+ ## [1.8.1] - 2010-05-19
406
+ ### Added
407
+ - `rails_env` for scheduled jobs to support scoping jobs by
408
+ `RAILS_ENV` (gravis).
409
+ - Adding gemspec for bundler support.
410
+
411
+ ### Fixed
412
+ - Ruby 1.8.6 compatibility issue.
413
+
414
+ ## [1.8.0] - 2010-04-14
415
+ ### Added
416
+ - Tests for resque-web (gravis)
417
+
418
+ ### Changed
419
+ - Moving version to match corresponding resque version
420
+ - Sorting schedule on Scheduler tab
421
+
422
+ ## [1.0.5] - 2010-03-01
423
+ ### Fixed
424
+ - Support for overriding queue from schedule config.
425
+
426
+ ### Changed
427
+ - The queue is now stored with the job and arguments in the delayed queue so
428
+ there is no longer a need for the scheduler to load job classes to introspect
429
+ the queue.
430
+
431
+ ### Removed
432
+ - resque-web dependency on loading the job classes for "Queue Now", provided
433
+ "queue" is specified in the schedule.
434
+
435
+ ## [1.0.4] - 2010-02-26
436
+ ### Added
437
+ - Support for specifying the queue to put the job onto. This allows for you to
438
+ have one job that can go onto multiple queues and be able to schedule jobs
439
+ without having to load the job classes.
440
+
441
+ ## [1.0.3] - 2010-02-11
442
+ ### Added
443
+ - Support for scheduled jobs with empty crons. This is helpful to have jobs that
444
+ you don't want on a schedule, but do want to be able to queue by clicking a
445
+ button.
446
+
447
+ ## [1.0.2] - 2010-02-10
448
+ ### Changed
449
+ - Delayed Job tab to display job details if only 1 job exists for a given
450
+ timestamp
451
+
452
+ ## [1.0.1] - 2010-02-01
453
+ ### Fixed
454
+ - Delayed jobs close together resulted in a 5 second sleep
455
+
456
+ ## [1.0.0] - 2009-12-21
457
+ ### Added
458
+ - Initial release
459
+
460
+ [Unreleased]: https://github.com/resque/resque-scheduler/compare/v4.5.0...HEAD
461
+ [4.5.0]: https://github.com/resque/resque-scheduler/compare/v4.4.0...v4.5.0
462
+ [4.4.0]: https://github.com/resque/resque-scheduler/compare/v4.3.1...v4.4.0
463
+ [4.3.1]: https://github.com/resque/resque-scheduler/compare/v4.3.0...v4.3.1
464
+ [4.3.0]: https://github.com/resque/resque-scheduler/compare/v4.2.1...v4.3.0
465
+ [4.2.1]: https://github.com/resque/resque-scheduler/compare/v4.2.0...v4.2.1
466
+ [4.2.0]: https://github.com/resque/resque-scheduler/compare/v4.1.0...v4.2.0
467
+ [4.1.0]: https://github.com/resque/resque-scheduler/compare/v4.0.0...v4.1.0
468
+ [4.0.0]: https://github.com/resque/resque-scheduler/compare/v3.1.0...v4.0.0
469
+ [3.1.0]: https://github.com/resque/resque-scheduler/compare/v3.0.0...v3.1.0
470
+ [3.0.0]: https://github.com/resque/resque-scheduler/compare/v2.5.5...v3.0.0
471
+ [2.5.5]: https://github.com/resque/resque-scheduler/compare/v2.5.4...v2.5.5
472
+ [2.5.4]: https://github.com/resque/resque-scheduler/compare/v2.5.3...v2.5.4
473
+ [2.5.3]: https://github.com/resque/resque-scheduler/compare/v2.5.2...v2.5.3
474
+ [2.5.2]: https://github.com/resque/resque-scheduler/compare/v2.5.1...v2.5.2
475
+ [2.5.1]: https://github.com/resque/resque-scheduler/compare/v2.5.0...v2.5.1
476
+ [2.5.0]: https://github.com/resque/resque-scheduler/compare/v2.4.0...v2.5.0
477
+ [2.4.0]: https://github.com/resque/resque-scheduler/compare/v2.3.1...v2.4.0
478
+ [2.3.1]: https://github.com/resque/resque-scheduler/compare/v2.3.0...v2.3.1
479
+ [2.3.0]: https://github.com/resque/resque-scheduler/compare/v2.2.0...v2.3.0
480
+ [2.2.0]: https://github.com/resque/resque-scheduler/compare/v2.1.0...v2.2.0
481
+ [2.1.0]: https://github.com/resque/resque-scheduler/compare/v2.0.1...v2.1.0
482
+ [2.0.1]: https://github.com/resque/resque-scheduler/compare/v2.0.0...v2.0.1
483
+ [2.0.0]: https://github.com/resque/resque-scheduler/compare/v2.0.0.h...v2.0.0
484
+ [2.0.0.h]: https://github.com/resque/resque-scheduler/compare/v2.0.0.f...v2.0.0.h
485
+ [2.0.0.f]: https://github.com/resque/resque-scheduler/compare/v2.0.0.e...v2.0.0.f
486
+ [2.0.0.e]: https://github.com/resque/resque-scheduler/compare/v2.0.0.d...v2.0.0.e
487
+ [2.0.0.d]: https://github.com/resque/resque-scheduler/compare/v2.0.0.c...v2.0.0.d
488
+ [2.0.0.c]: https://github.com/resque/resque-scheduler/compare/61c7b5f...v2.0.0.c
489
+ [2.0.0.b]: https://github.com/resque/resque-scheduler/compare/v2.0.0.a...61c7b5f
490
+ [1.9.11]: https://github.com/resque/resque-scheduler/compare/v1.9.10...v1.9.11
491
+ [1.9.10]: https://github.com/resque/resque-scheduler/compare/v1.9.9...v1.9.10
492
+ [1.9.9]: https://github.com/resque/resque-scheduler/compare/v1.9.8...v1.9.9
493
+ [1.9.8]: https://github.com/resque/resque-scheduler/compare/v1.9.7...v1.9.8
494
+ [1.9.7]: https://github.com/resque/resque-scheduler/compare/v1.9.6...v1.9.7
495
+ [1.9.6]: https://github.com/resque/resque-scheduler/compare/v1.9.5...v1.9.6
496
+ [1.9.5]: https://github.com/resque/resque-scheduler/compare/v1.9.4...v1.9.5
497
+ [1.9.4]: https://github.com/resque/resque-scheduler/compare/v1.9.3...v1.9.4
498
+ [1.9.3]: https://github.com/resque/resque-scheduler/compare/v1.9.2...v1.9.3
499
+ [1.9.2]: https://github.com/resque/resque-scheduler/compare/v1.9.1...v1.9.2
500
+ [1.9.1]: https://github.com/resque/resque-scheduler/compare/v1.9.0...v1.9.1
501
+ [1.9.0]: https://github.com/resque/resque-scheduler/compare/v1.8.2...v1.9.0
502
+ [1.8.2]: https://github.com/resque/resque-scheduler/compare/v1.8.1...v1.8.2
503
+ [1.8.1]: https://github.com/resque/resque-scheduler/compare/v1.8.0...v1.8.1
504
+ [1.8.0]: https://github.com/resque/resque-scheduler/compare/v1.0.5...v1.8.0
505
+ [1.0.5]: https://github.com/resque/resque-scheduler/compare/v1.0.4...v1.0.5
506
+ [1.0.4]: https://github.com/resque/resque-scheduler/compare/v1.0.3...v1.0.4
507
+ [1.0.3]: https://github.com/resque/resque-scheduler/compare/v1.0.2...v1.0.3
508
+ [1.0.2]: https://github.com/resque/resque-scheduler/compare/v1.0.1...v1.0.2
509
+ [1.0.1]: https://github.com/resque/resque-scheduler/compare/v1.0.0...v1.0.1
510
+ [1.0.0]: https://github.com/resque/resque-scheduler/compare/v0.0.1...v1.0.0
data/Gemfile CHANGED
@@ -1,4 +1,27 @@
1
1
  # vim:fileencoding=utf-8
2
2
  source 'https://rubygems.org'
3
3
 
4
+ case resque_version = ENV.fetch('RESQUE', 'master')
5
+ when 'master'
6
+ gem 'resque', git: 'https://github.com/resque/resque'
7
+ else
8
+ gem 'resque', resque_version
9
+ end
10
+
11
+ case rufus_scheduler_version = ENV.fetch('RUFUS_SCHEDULER', '3.6')
12
+ when 'master'
13
+ gem 'rufus-scheduler', git: 'https://github.com/jmettraux/rufus-scheduler'
14
+ else
15
+ gem 'rufus-scheduler', rufus_scheduler_version
16
+ end
17
+
18
+ case redis_version = ENV.fetch('REDIS_VERSION', 'latest')
19
+ when 'master'
20
+ gem 'redis', git: 'https://github.com/redis/redis-rb'
21
+ when 'latest'
22
+ gem 'redis'
23
+ else
24
+ gem 'redis', redis_version
25
+ end
26
+
4
27
  gemspec