sidecloq 0.4.7 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +45 -0
- data/.gitignore +2 -0
- data/Appraisals +15 -0
- data/Gemfile +2 -11
- data/README.md +2 -20
- data/Rakefile +10 -3
- data/gemfiles/sidekiq_6.4.gemfile +16 -0
- data/gemfiles/sidekiq_6.5.gemfile +16 -0
- data/gemfiles/sidekiq_7.0.gemfile +16 -0
- data/gemfiles/sidekiq_7.1.gemfile +16 -0
- data/lib/sidecloq/locker.rb +7 -0
- data/lib/sidecloq/schedule.rb +2 -2
- data/lib/sidecloq/utils.rb +21 -2
- data/lib/sidecloq/version.rb +1 -1
- data/lib/sidecloq/web.rb +3 -0
- data/lib/sidecloq.rb +1 -1
- data/sidecloq.gemspec +8 -4
- data/web/locales/en.yml +6 -0
- data/web/locales/es.yml +6 -0
- data/web/views/recurring.erb +8 -8
- metadata +69 -32
- data/.travis.yml +0 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a045d77686f36ac1c35ea972467fddd1255e1c62ac7e48ec2a43dc1224411dc
|
4
|
+
data.tar.gz: a8b247df8cb7a55bcb1beedd90ef444b03fe9953b77f930c790a19315d63299b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e72331acbc6f275a9223bc8618f4accc78be11f0f82f98864a45de87ee294e3961dcba3eb11944920ff0f4a5467dc7727198389a57098c1d896bc36bb0838b21
|
7
|
+
data.tar.gz: 8997cef497985bec676d32aec8cac53e104ca24ab1543bc7ef366aba28d7cf2f2a9f1f24ec48565f04316d515f8ab8bf040b6b86894288a83667f172f2bac9a4
|
@@ -0,0 +1,45 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ "main" ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ "main" ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
ci:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
continue-on-error: true
|
13
|
+
strategy:
|
14
|
+
fail-fast: false
|
15
|
+
matrix:
|
16
|
+
ruby-version:
|
17
|
+
- "2.7"
|
18
|
+
- "3.0"
|
19
|
+
- "3.1"
|
20
|
+
- "3.2"
|
21
|
+
- jruby-9.4
|
22
|
+
sidekiq-version:
|
23
|
+
- "6.4"
|
24
|
+
- "6.5"
|
25
|
+
- "7.0"
|
26
|
+
- "7.1"
|
27
|
+
- main
|
28
|
+
services:
|
29
|
+
redis:
|
30
|
+
image: redis
|
31
|
+
options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
|
32
|
+
ports:
|
33
|
+
- 6379:6379
|
34
|
+
env:
|
35
|
+
sidekiq: ${{ matrix.sidekiq-version }}
|
36
|
+
steps:
|
37
|
+
- uses: actions/checkout@v3
|
38
|
+
- name: Set up Ruby
|
39
|
+
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
|
40
|
+
with:
|
41
|
+
ruby-version: ${{ matrix.ruby-version }}
|
42
|
+
bundler-cache: true
|
43
|
+
- name: Run tests
|
44
|
+
run: bundle exec rake
|
45
|
+
timeout-minutes: 5
|
data/.gitignore
CHANGED
data/Appraisals
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
appraise "sidekiq-6.4" do
|
2
|
+
gem "sidekiq", "~> 6.4.0"
|
3
|
+
end
|
4
|
+
|
5
|
+
appraise "sidekiq-6.5" do
|
6
|
+
gem "sidekiq", "~> 6.5.0"
|
7
|
+
end
|
8
|
+
|
9
|
+
appraise "sidekiq-7.0" do
|
10
|
+
gem "sidekiq", "~> 7.0.0"
|
11
|
+
end
|
12
|
+
|
13
|
+
appraise "sidekiq-7.1" do
|
14
|
+
gem "sidekiq", "~> 7.1.0"
|
15
|
+
end
|
data/Gemfile
CHANGED
@@ -7,23 +7,14 @@ platforms :mri, :rbx do
|
|
7
7
|
gem 'minitest-utils'
|
8
8
|
end
|
9
9
|
|
10
|
-
# https://github.com/sinatra/sinatra/blob/master/Gemfile
|
11
10
|
sidekiq_dep =
|
12
|
-
case ENV['sidekiq']
|
13
|
-
when /(
|
11
|
+
case ENV['sidekiq'].to_s.sub('sidekiq-', '')
|
12
|
+
when /(?:\d+\.)+\d+/ then "~> #{$&}#{'.0' if Gem::Version.new($&).segments.size == 2}"
|
14
13
|
else {github: 'mperham/sidekiq', branch: ENV['sidekiq']}
|
15
14
|
end
|
16
15
|
|
17
16
|
gem 'sidekiq', sidekiq_dep
|
18
17
|
|
19
|
-
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.2.2")
|
20
|
-
# rack >= 2.0 requires ruby >= 2.2.2
|
21
|
-
gem 'rack', '< 2.0'
|
22
|
-
# activejob >= 5 requires ruby >= 2.2.2
|
23
|
-
gem 'activejob', '< 5'
|
24
|
-
end
|
25
|
-
|
26
18
|
group :test do
|
27
19
|
gem "simplecov"
|
28
|
-
gem "codeclimate-test-reporter", "~> 1.0.0"
|
29
20
|
end
|
data/README.md
CHANGED
@@ -2,11 +2,9 @@
|
|
2
2
|
|
3
3
|
# Sidecloq
|
4
4
|
|
5
|
-
[![
|
5
|
+
[![CI](https://github.com/mattyr/sidecloq/actions/workflows/ci.yml/badge.svg)](https://github.com/mattyr/sidecloq/actions/workflows/ci.yml)
|
6
6
|
[![Gem Version](https://badge.fury.io/rb/sidecloq.svg)](https://badge.fury.io/rb/sidecloq)
|
7
|
-
[![Code Climate](https://codeclimate.com/github/mattyr/sidecloq/badges/gpa.svg)](https://codeclimate.com/github/mattyr/sidecloq)
|
8
7
|
[![Test Coverage](https://codeclimate.com/github/mattyr/sidecloq/badges/coverage.svg)](https://codeclimate.com/github/mattyr/sidecloq/coverage)
|
9
|
-
[![Dependency Status](https://gemnasium.com/mattyr/sidecloq.svg)](https://gemnasium.com/mattyr/sidecloq)
|
10
8
|
|
11
9
|
Recurring / Periodic / Scheduled / Cron job extension for
|
12
10
|
[Sidekiq](https://github.com/mperham/sidekiq)
|
@@ -25,8 +23,6 @@ you.
|
|
25
23
|
|
26
24
|
Sidecloq is:
|
27
25
|
|
28
|
-
- **Lightweight:** Celluloid is not required. This coincides well with
|
29
|
-
Sidekiq 4/5, which no longer use Celluloid.
|
30
26
|
- **Clean:** Sidecloq leverages only the public API of Sidekiq, and does
|
31
27
|
not pollute the Sidekiq namespace.
|
32
28
|
- **Easy to deploy:** Sidecloq boots with all Sidekiq processes,
|
@@ -44,9 +40,7 @@ Add this line to your application's Gemfile:
|
|
44
40
|
gem 'sidecloq'
|
45
41
|
```
|
46
42
|
|
47
|
-
|
48
|
-
Sidekiq, you can run Sidecloq. Note that Sidekiq >= 5 does not support
|
49
|
-
MRI ruby < 2.2.2.
|
43
|
+
Requires sidekiq version >= 6.4. MRI < 2.7 and jruby < 9.4 are not supported.
|
50
44
|
|
51
45
|
## Configuration
|
52
46
|
|
@@ -127,18 +121,6 @@ it's corresponding "Enqueue now" button.
|
|
127
121
|
|
128
122
|
![Sidecloq web ui extension screenshot](assets/screenshot.png)
|
129
123
|
|
130
|
-
## Notes
|
131
|
-
|
132
|
-
If you are running MRI < 2.2.2, you will need to make sure you are using
|
133
|
-
rack < 2.0. You can do this by adding:
|
134
|
-
|
135
|
-
```ruby
|
136
|
-
gem 'rack', '< 2.0'
|
137
|
-
```
|
138
|
-
|
139
|
-
To your app's Gemfile. (This will also keep you from using the 5.x
|
140
|
-
series of Sidekiq, as it requires MRI > 2.2.2).
|
141
|
-
|
142
124
|
## Contributing
|
143
125
|
|
144
126
|
Bug reports and pull requests are welcome.
|
data/Rakefile
CHANGED
@@ -17,8 +17,7 @@ task :web do
|
|
17
17
|
Sidekiq.configure_client do |config|
|
18
18
|
config.redis = {
|
19
19
|
url: 'redis://localhost:6379/0',
|
20
|
-
size: 1
|
21
|
-
namespace: 'sidecloq'
|
20
|
+
size: 1
|
22
21
|
}
|
23
22
|
end
|
24
23
|
|
@@ -36,12 +35,20 @@ task :web do
|
|
36
35
|
end
|
37
36
|
|
38
37
|
class DoWork
|
38
|
+
include Sidekiq::Worker
|
39
39
|
end
|
40
40
|
|
41
|
+
require 'rack/server'
|
42
|
+
require 'rack/session/cookie'
|
41
43
|
require 'sidekiq/web'
|
42
44
|
require 'sidecloq/web'
|
43
45
|
|
44
46
|
Rack::Server.start(
|
45
|
-
app:
|
47
|
+
app: Rack::Session::Cookie.new(
|
48
|
+
Sidekiq::Web,
|
49
|
+
secret: SecureRandom.hex(32),
|
50
|
+
same_site: true,
|
51
|
+
max_age: 86400
|
52
|
+
)
|
46
53
|
)
|
47
54
|
end
|
data/lib/sidecloq/locker.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'redis-client'
|
2
|
+
|
1
3
|
module Sidecloq
|
2
4
|
# Locker obtains or waits for an exclusive lock on a key in redis
|
3
5
|
class Locker
|
@@ -8,6 +10,11 @@ module Sidecloq
|
|
8
10
|
def initialize(options = {})
|
9
11
|
# we keep a connection from the pool by default
|
10
12
|
@redis = options[:redis] || Sidekiq.redis_pool.checkout
|
13
|
+
# for compatibility with sidekiq < 7, we need to convert the Redis
|
14
|
+
# instance to a RedisClient instance, which redlock requires
|
15
|
+
if defined?(Redis) && @redis.instance_of?(Redis)
|
16
|
+
@redis = RedisClient.new(@redis.connection.except(:location))
|
17
|
+
end
|
11
18
|
@key = options[:lock_key] || DEFAULT_LOCK_KEY
|
12
19
|
@ttl = options[:ttl] || 60
|
13
20
|
@check_interval = options[:check_interval] || 15
|
data/lib/sidecloq/schedule.rb
CHANGED
@@ -34,7 +34,7 @@ module Sidecloq
|
|
34
34
|
def self.from_hash(hash)
|
35
35
|
hash = hash[env] if hash.key?(env)
|
36
36
|
|
37
|
-
specs = hash.each_with_object({}) do |(name, spec), memo|
|
37
|
+
specs = (hash || []).each_with_object({}) do |(name, spec), memo|
|
38
38
|
memo[name] = spec.dup.tap do |s|
|
39
39
|
s['class'] = name unless spec.key?('class') || spec.key?(:class)
|
40
40
|
s['args'] = s['args'] || s[:args] || []
|
@@ -78,7 +78,7 @@ module Sidecloq
|
|
78
78
|
end
|
79
79
|
|
80
80
|
def self.rails_env
|
81
|
-
Rails.env if defined?(Rails)
|
81
|
+
Rails.env if defined?(Rails::Engine)
|
82
82
|
end
|
83
83
|
|
84
84
|
def self.rack_env
|
data/lib/sidecloq/utils.rb
CHANGED
@@ -8,15 +8,34 @@ module Sidecloq
|
|
8
8
|
@context = ctx
|
9
9
|
end
|
10
10
|
|
11
|
+
def sidekiq_logging_context_method
|
12
|
+
@sidekiq_logging_context_method ||=
|
13
|
+
begin
|
14
|
+
if defined? Sidekiq::Logging
|
15
|
+
# sidekiq < 6
|
16
|
+
Sidekiq::Logging.method(:with_context)
|
17
|
+
elsif defined?(Sidekiq::Context)
|
18
|
+
# sidekiq 6, <= 6.0.1
|
19
|
+
Sidekiq::Context.method(:with)
|
20
|
+
else
|
21
|
+
# sidekiq 6, master
|
22
|
+
Sidekiq.logger.method(:with_context)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
11
27
|
def method_missing(meth, *args)
|
12
|
-
|
28
|
+
sidekiq_logging_context_method.call(@context) do
|
13
29
|
Sidekiq.logger.send(meth, *args)
|
14
30
|
end
|
15
31
|
end
|
16
32
|
end
|
17
33
|
|
34
|
+
|
18
35
|
def logger
|
19
|
-
@logger ||= ContextLogger.new(
|
36
|
+
@logger ||= ContextLogger.new(
|
37
|
+
defined?(Sidekiq::Logging) ? 'Sidecloq' : {sidecloq: true}
|
38
|
+
)
|
20
39
|
end
|
21
40
|
|
22
41
|
def redis(&block)
|
data/lib/sidecloq/version.rb
CHANGED
data/lib/sidecloq/web.rb
CHANGED
@@ -2,6 +2,7 @@ module Sidecloq
|
|
2
2
|
# Plugin for sidekiq-web
|
3
3
|
module Web
|
4
4
|
VIEW_PATH = File.expand_path('../../../web/views', __FILE__)
|
5
|
+
LOCALES = File.expand_path('../../../web/locales', __FILE__)
|
5
6
|
|
6
7
|
def self.registered(app)
|
7
8
|
app.get '/recurring' do
|
@@ -24,5 +25,7 @@ module Sidecloq
|
|
24
25
|
end
|
25
26
|
end
|
26
27
|
|
28
|
+
Sidekiq::Web.locales << Sidecloq::Web::LOCALES
|
29
|
+
|
27
30
|
Sidekiq::Web.register(Sidecloq::Web)
|
28
31
|
Sidekiq::Web.tabs['Recurring'] = 'recurring'
|
data/lib/sidecloq.rb
CHANGED
@@ -66,7 +66,7 @@ module Sidecloq
|
|
66
66
|
|
67
67
|
if File.exist?(options[:schedule_file])
|
68
68
|
return Schedule.from_yaml(options[:schedule_file])
|
69
|
-
elsif defined?(Rails)
|
69
|
+
elsif defined?(Rails::Engine)
|
70
70
|
# try rails-root-relative
|
71
71
|
full_path = File.join(Rails.root, options[:schedule_file])
|
72
72
|
if File.exist?(full_path)
|
data/sidecloq.gemspec
CHANGED
@@ -19,14 +19,18 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
|
-
spec.add_dependency 'sidekiq', '>=
|
23
|
-
spec.add_dependency 'redlock', '>=
|
22
|
+
spec.add_dependency 'sidekiq', '>= 6.0.0', '< 8'
|
23
|
+
spec.add_dependency 'redlock', '>= 2.0.0', '< 3'
|
24
|
+
# redlock needs redis-client
|
25
|
+
spec.add_dependency 'redis-client', '>= 0.14.0'
|
24
26
|
# mimics some dev dependencies of sidekiq:
|
25
27
|
spec.add_dependency 'concurrent-ruby'
|
26
|
-
spec.add_dependency 'rufus-scheduler', '~> 3.
|
28
|
+
spec.add_dependency 'rufus-scheduler', '~> 3.9'
|
27
29
|
|
28
30
|
spec.add_development_dependency 'rake', '>= 10.0'
|
29
31
|
spec.add_development_dependency 'minitest'
|
30
|
-
spec.add_development_dependency
|
32
|
+
spec.add_development_dependency "appraisal"
|
31
33
|
spec.add_development_dependency 'activejob'
|
34
|
+
spec.add_development_dependency 'rack', '< 3'
|
35
|
+
spec.add_development_dependency 'webrick'
|
32
36
|
end
|
data/web/locales/en.yml
ADDED
data/web/locales/es.yml
ADDED
data/web/views/recurring.erb
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
<h3
|
1
|
+
<h3><%= t('RecurringJobs') %></h3>
|
2
2
|
|
3
3
|
<div class="table_container">
|
4
4
|
<table class="table table-hover table-bordered table-striped table-white">
|
5
5
|
<thead>
|
6
6
|
<tr>
|
7
|
-
<th
|
8
|
-
<th
|
9
|
-
<th
|
10
|
-
<th
|
11
|
-
<th
|
12
|
-
<th
|
7
|
+
<th><%= t('Name') %></th>
|
8
|
+
<th><%= t('Cron') %></th>
|
9
|
+
<th><%= t('Job') %></th>
|
10
|
+
<th><%= t('Queue') %></th>
|
11
|
+
<th><%= t('Arguments') %></th>
|
12
|
+
<th><%= t('Actions') %></th>
|
13
13
|
</tr>
|
14
14
|
</thead>
|
15
15
|
|
@@ -26,7 +26,7 @@
|
|
26
26
|
<td>
|
27
27
|
<form action="<%= root_path %>recurring/<%= CGI.escape(name).gsub('+', '%20') %>/enqueue" method="post">
|
28
28
|
<%= csrf_tag if respond_to?(:csrf_tag) %>
|
29
|
-
<input class='btn btn-
|
29
|
+
<input class='btn btn-primary btn-xs' type="submit" name="enque" value="<%= t('EnqueueNow') %>"/>
|
30
30
|
</form>
|
31
31
|
</td>
|
32
32
|
</tr>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidecloq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Robinson
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sidekiq
|
@@ -16,40 +16,54 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 6.0.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '8'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 6.0.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '8'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: redlock
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
39
|
+
version: 2.0.0
|
40
40
|
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
42
|
+
version: '3'
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version:
|
49
|
+
version: 2.0.0
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: '
|
52
|
+
version: '3'
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: redis-client
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: 0.14.0
|
60
|
+
type: :runtime
|
61
|
+
prerelease: false
|
62
|
+
version_requirements: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 0.14.0
|
53
67
|
- !ruby/object:Gem::Dependency
|
54
68
|
name: concurrent-ruby
|
55
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,20 +84,14 @@ dependencies:
|
|
70
84
|
requirements:
|
71
85
|
- - "~>"
|
72
86
|
- !ruby/object:Gem::Version
|
73
|
-
version: '3.
|
74
|
-
- - ">="
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: 3.1.10
|
87
|
+
version: '3.9'
|
77
88
|
type: :runtime
|
78
89
|
prerelease: false
|
79
90
|
version_requirements: !ruby/object:Gem::Requirement
|
80
91
|
requirements:
|
81
92
|
- - "~>"
|
82
93
|
- !ruby/object:Gem::Version
|
83
|
-
version: '3.
|
84
|
-
- - ">="
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
version: 3.1.10
|
94
|
+
version: '3.9'
|
87
95
|
- !ruby/object:Gem::Dependency
|
88
96
|
name: rake
|
89
97
|
requirement: !ruby/object:Gem::Requirement
|
@@ -113,25 +121,19 @@ dependencies:
|
|
113
121
|
- !ruby/object:Gem::Version
|
114
122
|
version: '0'
|
115
123
|
- !ruby/object:Gem::Dependency
|
116
|
-
name:
|
124
|
+
name: appraisal
|
117
125
|
requirement: !ruby/object:Gem::Requirement
|
118
126
|
requirements:
|
119
|
-
- - "~>"
|
120
|
-
- !ruby/object:Gem::Version
|
121
|
-
version: '1.5'
|
122
127
|
- - ">="
|
123
128
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
129
|
+
version: '0'
|
125
130
|
type: :development
|
126
131
|
prerelease: false
|
127
132
|
version_requirements: !ruby/object:Gem::Requirement
|
128
133
|
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '1.5'
|
132
134
|
- - ">="
|
133
135
|
- !ruby/object:Gem::Version
|
134
|
-
version:
|
136
|
+
version: '0'
|
135
137
|
- !ruby/object:Gem::Dependency
|
136
138
|
name: activejob
|
137
139
|
requirement: !ruby/object:Gem::Requirement
|
@@ -146,6 +148,34 @@ dependencies:
|
|
146
148
|
- - ">="
|
147
149
|
- !ruby/object:Gem::Version
|
148
150
|
version: '0'
|
151
|
+
- !ruby/object:Gem::Dependency
|
152
|
+
name: rack
|
153
|
+
requirement: !ruby/object:Gem::Requirement
|
154
|
+
requirements:
|
155
|
+
- - "<"
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '3'
|
158
|
+
type: :development
|
159
|
+
prerelease: false
|
160
|
+
version_requirements: !ruby/object:Gem::Requirement
|
161
|
+
requirements:
|
162
|
+
- - "<"
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: '3'
|
165
|
+
- !ruby/object:Gem::Dependency
|
166
|
+
name: webrick
|
167
|
+
requirement: !ruby/object:Gem::Requirement
|
168
|
+
requirements:
|
169
|
+
- - ">="
|
170
|
+
- !ruby/object:Gem::Version
|
171
|
+
version: '0'
|
172
|
+
type: :development
|
173
|
+
prerelease: false
|
174
|
+
version_requirements: !ruby/object:Gem::Requirement
|
175
|
+
requirements:
|
176
|
+
- - ">="
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: '0'
|
149
179
|
description: Recurring / Periodic / Scheduled / Cron job extension for Sidekiq
|
150
180
|
email:
|
151
181
|
- robinson.matty@gmail.com
|
@@ -153,12 +183,17 @@ executables: []
|
|
153
183
|
extensions: []
|
154
184
|
extra_rdoc_files: []
|
155
185
|
files:
|
186
|
+
- ".github/workflows/ci.yml"
|
156
187
|
- ".gitignore"
|
157
|
-
-
|
188
|
+
- Appraisals
|
158
189
|
- Gemfile
|
159
190
|
- LICENSE.txt
|
160
191
|
- README.md
|
161
192
|
- Rakefile
|
193
|
+
- gemfiles/sidekiq_6.4.gemfile
|
194
|
+
- gemfiles/sidekiq_6.5.gemfile
|
195
|
+
- gemfiles/sidekiq_7.0.gemfile
|
196
|
+
- gemfiles/sidekiq_7.1.gemfile
|
162
197
|
- lib/sidecloq.rb
|
163
198
|
- lib/sidecloq/job_enqueuer.rb
|
164
199
|
- lib/sidecloq/locker.rb
|
@@ -169,12 +204,14 @@ files:
|
|
169
204
|
- lib/sidecloq/version.rb
|
170
205
|
- lib/sidecloq/web.rb
|
171
206
|
- sidecloq.gemspec
|
207
|
+
- web/locales/en.yml
|
208
|
+
- web/locales/es.yml
|
172
209
|
- web/views/recurring.erb
|
173
210
|
homepage: http://github.com/mattyr/sidecloq
|
174
211
|
licenses:
|
175
212
|
- MIT
|
176
213
|
metadata: {}
|
177
|
-
post_install_message:
|
214
|
+
post_install_message:
|
178
215
|
rdoc_options: []
|
179
216
|
require_paths:
|
180
217
|
- lib
|
@@ -189,8 +226,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
189
226
|
- !ruby/object:Gem::Version
|
190
227
|
version: '0'
|
191
228
|
requirements: []
|
192
|
-
rubygems_version: 3.
|
193
|
-
signing_key:
|
229
|
+
rubygems_version: 3.4.12
|
230
|
+
signing_key:
|
194
231
|
specification_version: 4
|
195
232
|
summary: Recurring / Periodic / Scheduled / Cron job extension for Sidekiq
|
196
233
|
test_files: []
|
data/.travis.yml
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
dist: bionic
|
2
|
-
language: ruby
|
3
|
-
sudo: false
|
4
|
-
cache: bundler
|
5
|
-
services:
|
6
|
-
- redis-server
|
7
|
-
rvm:
|
8
|
-
- 2.0.0
|
9
|
-
- 2.1.10
|
10
|
-
- 2.2.10
|
11
|
-
- 2.3.8
|
12
|
-
- 2.4.5
|
13
|
-
- 2.5.3
|
14
|
-
- 2.6.1
|
15
|
-
- jruby-9.1.17.0
|
16
|
-
- jruby-9.2.5.0
|
17
|
-
env:
|
18
|
-
- "sidekiq=3.5.4"
|
19
|
-
- "sidekiq=4.2.10"
|
20
|
-
- "sidekiq=5.1.3"
|
21
|
-
- "sidekiq=5.2.5"
|
22
|
-
- "sidekiq=master"
|
23
|
-
matrix:
|
24
|
-
allow_failures:
|
25
|
-
- env: "sidekiq=master"
|
26
|
-
exclude:
|
27
|
-
# sidekiq 5 does not support < ruby 2.2.2
|
28
|
-
- rvm: 2.0.0
|
29
|
-
env: sidekiq=master
|
30
|
-
- rvm: 2.0.0
|
31
|
-
env: sidekiq=5.1.3
|
32
|
-
- rvm: 2.0.0
|
33
|
-
env: sidekiq=5.2.5
|
34
|
-
- rvm: 2.1.10
|
35
|
-
env: sidekiq=master
|
36
|
-
- rvm: 2.1.10
|
37
|
-
env: sidekiq=5.1.3
|
38
|
-
- rvm: 2.1.10
|
39
|
-
env: sidekiq=5.2.5
|
40
|
-
fast_finish: true
|
41
|
-
after_success:
|
42
|
-
- bundle exec codeclimate-test-reporter
|