forked from resque/resque-scheduler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
58 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
inherit_from: .rubocop_todo.yml | ||
|
||
AllCops: | ||
TargetRubyVersion: 2.7 | ||
NewCops: enable | ||
Include: | ||
- Gemfile | ||
- '**/Rakefile' | ||
- resque-scheduler.gemspec | ||
- bin/resque-scheduler | ||
|
||
Documentation: | ||
Enabled: false | ||
|
||
Style/DoubleNegation: | ||
Enabled: false | ||
Metrics/PerceivedComplexity: | ||
Enabled: false | ||
Metrics/ClassLength: | ||
Max: 110 | ||
Bundler/DuplicatedGem: | ||
Exclude: | ||
- 'Gemfile' | ||
Style/FrozenStringLiteralComment: | ||
Enabled: false |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# vim:fileencoding=utf-8 | ||
source 'https://rubygems.org' | ||
|
||
case resque_version = ENV.fetch('RESQUE', 'latest') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# vim:fileencoding=utf-8 | ||
require 'bundler/gem_tasks' | ||
require 'rake/testtask' | ||
require 'yard' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# vim:fileencoding=utf-8 | ||
|
||
require 'redis' | ||
require 'resque' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
# vim:fileencoding=utf-8 | ||
require 'resque/scheduler/tasks' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# vim:fileencoding=utf-8 | ||
|
||
require 'json' | ||
require 'yaml' | ||
require 'resque' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# vim:fileencoding=utf-8 | ||
|
||
class SendEmailJob | ||
@queue = :send_emails | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# vim:fileencoding=utf-8 | ||
|
||
class User < ActiveRecord::Base | ||
after_create :schedule_send_email | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# vim:fileencoding=utf-8 | ||
|
||
require 'resque/tasks' | ||
require 'resque/scheduler/tasks' | ||
require 'yaml' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#!/usr/bin/env ruby | ||
# vim:fileencoding=utf-8 | ||
|
||
require 'resque-scheduler' | ||
Resque::Scheduler::Cli.run! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# vim:fileencoding=utf-8 | ||
require_relative 'resque/scheduler' | ||
|
||
Resque.extend Resque::Scheduler::Extension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# vim:fileencoding=utf-8 | ||
|
||
require 'optparse' | ||
|
||
module Resque | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# vim:fileencoding=utf-8 | ||
|
||
module Resque | ||
module Scheduler | ||
module Configuration | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# vim:fileencoding=utf-8 | ||
require 'resque' | ||
require_relative 'plugin' | ||
require_relative '../scheduler' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# vim:fileencoding=utf-8 | ||
|
||
require 'English' # $PROCESS_ID | ||
|
||
module Resque | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# vim:fileencoding=utf-8 | ||
|
||
require_relative 'scheduling_extensions' | ||
require_relative 'delaying_extensions' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# vim:fileencoding=utf-8 | ||
%w(base basic resilient).each do |file| | ||
require "resque/scheduler/lock/#{file}" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# vim:fileencoding=utf-8 | ||
|
||
module Resque | ||
module Scheduler | ||
module Lock | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# vim:fileencoding=utf-8 | ||
require_relative 'base' | ||
|
||
module Resque | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# vim:fileencoding=utf-8 | ||
require_relative 'base' | ||
|
||
module Resque | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# vim:fileencoding=utf-8 | ||
|
||
require 'mono_logger' | ||
|
||
module Resque | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# vim:fileencoding=utf-8 | ||
|
||
module Resque | ||
module Scheduler | ||
module Plugin | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# vim:fileencoding=utf-8 | ||
|
||
module Resque | ||
module Scheduler | ||
module SchedulingExtensions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# vim:fileencoding=utf-8 | ||
require 'resque-scheduler' | ||
require 'resque/server' | ||
require 'tilt/erb' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# vim:fileencoding=utf-8 | ||
|
||
module Resque | ||
module Scheduler | ||
module SignalHandling | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# vim:fileencoding=utf-8 | ||
|
||
require 'resque/tasks' | ||
require 'resque-scheduler' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# vim:fileencoding=utf-8 | ||
|
||
module Resque | ||
module Scheduler | ||
class Util | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# vim:fileencoding=utf-8 | ||
|
||
module Resque | ||
module Scheduler | ||
VERSION = '4.10.2'.freeze | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
# vim:fileencoding=utf-8 | ||
lib = File.expand_path('../lib', __FILE__) | ||
lib = File.expand_path('lib', __dir__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'resque/scheduler/version' | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = 'resque-scheduler' | ||
spec.version = Resque::Scheduler::VERSION | ||
spec.authors = <<-EOF.split(/\n/).map(&:strip) | ||
spec.authors = <<-AUTHORS.split(/\n/).map(&:strip) | ||
Ben VandenBos | ||
Simon Eskildsen | ||
Ryan Biesemeyer | ||
Dan Buch | ||
Michael Bianco | ||
Patrick Tulskie | ||
EOF | ||
spec.email = %w( | ||
AUTHORS | ||
spec.email = %w[ | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
) | ||
] | ||
spec.summary = 'Light weight job scheduling on top of Resque' | ||
spec.description = <<-DESCRIPTION | ||
Light weight job scheduling on top of Resque. | ||
|
@@ -32,7 +31,7 @@ Gem::Specification.new do |spec| | |
spec.license = 'MIT' | ||
spec.metadata['rubygems_mfa_required'] = 'true' | ||
|
||
spec.required_ruby_version = '>= 2.3.0' | ||
spec.required_ruby_version = '>= 2.7.0' | ||
|
||
spec.files = `git ls-files -z`.split("\0").reject do |f| | ||
f.match(%r{^(test|spec|features|examples|bin|tasks)/}) || | ||
|
@@ -41,7 +40,7 @@ Gem::Specification.new do |spec| | |
end | ||
spec.bindir = 'exe' | ||
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } | ||
spec.require_paths = %w(lib) | ||
spec.require_paths = %w[lib] | ||
|
||
spec.add_development_dependency 'bundler' | ||
spec.add_development_dependency 'json' | ||
|
@@ -52,12 +51,14 @@ Gem::Specification.new do |spec| | |
spec.add_development_dependency 'rake' | ||
spec.add_development_dependency 'simplecov' | ||
spec.add_development_dependency 'test-unit' | ||
spec.add_development_dependency 'yard' | ||
spec.add_development_dependency 'timecop' | ||
spec.add_development_dependency 'yard' | ||
|
||
# We pin rubocop because new cops have a tendency to result in false-y | ||
# positives for new contributors, which is not a nice experience. | ||
spec.add_development_dependency 'rubocop', '~> 0.40.0' | ||
spec.add_development_dependency 'ostruct' | ||
spec.add_development_dependency 'racc' | ||
spec.add_development_dependency 'rubocop', '~> 0.92.0' | ||
|
||
spec.add_runtime_dependency 'mono_logger', '~> 1.0' | ||
spec.add_runtime_dependency 'redis', '>= 3.3' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# vim:fileencoding=utf-8 | ||
require_relative 'test_helper' | ||
|
||
context 'Cli' do | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# vim:fileencoding=utf-8 | ||
require_relative 'test_helper' | ||
|
||
context 'Configuration' do | ||
|
Oops, something went wrong.