sidekiq-undertaker 1.0.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +9 -2
- data/.github/dependabot.yml +8 -0
- data/.github/workflows/ruby-build.yml +51 -0
- data/.gitignore +1 -0
- data/.rspec +2 -0
- data/.rubocop.yml +4 -0
- data/.rubocop_codeclimate.yml +5 -0
- data/.rubocop_todo.yml +5 -5
- data/.travis.yml +22 -17
- data/CHANGELOG.md +96 -0
- data/README.md +4 -1
- data/Rakefile +2 -0
- data/lib/sidekiq/undertaker/dead_job.rb +1 -1
- data/lib/sidekiq/undertaker/version.rb +1 -1
- data/lib/sidekiq/undertaker/web_extension/api_helpers.rb +5 -1
- data/lib/sidekiq/undertaker/web_extension.rb +2 -0
- data/lib/sidekiq/undertaker.rb +1 -1
- data/renovate.json +5 -0
- data/sidekiq-undertaker.gemspec +14 -10
- data/spec/fixtures/approvals/sidekiq_undertaker_webextension/show_filter/when_filter_page_is_called/behaves_like_a_page/the_displayed_page_is_correct_for_sidekiqv6.approved.txt +2 -1
- data/spec/fixtures/approvals/sidekiq_undertaker_webextension/show_filter/when_job_classbucket_page_is_called/behaves_like_a_page/the_displayed_page_is_correct_for_sidekiqv6.approved.txt +2 -1
- data/spec/fixtures/approvals/sidekiq_undertaker_webextension/show_filter/when_job_classbucket_page_is_polled/behaves_like_a_page/the_displayed_page_is_correct_for_sidekiqv6.approved.txt +2 -1
- data/spec/fixtures/approvals/sidekiq_undertaker_webextension/show_morgue/when_job_classerrorbucket_is_called/with_all_failures_and_errors/behaves_like_a_page/the_displayed_page_is_correct_for_sidekiqv6.approved.txt +9 -5
- data/spec/fixtures/approvals/sidekiq_undertaker_webextension/show_morgue/when_job_classerrorbucket_is_called/with_specific_job_class_and_a_specific_error/behaves_like_a_page/the_displayed_page_is_correct_for_sidekiqv6.approved.txt +9 -5
- data/spec/fixtures/approvals/sidekiq_undertaker_webextension/show_morgue/when_job_classerrorbucket_is_called/with_specific_job_class_and_a_specific_error/with_pagination/behaves_like_a_page/the_displayed_page_is_correct_for_sidekiqv6.approved.txt +1305 -0
- data/spec/sidekiq/undertaker/dead_jobs_spec.rb +1 -1
- data/spec/sidekiq/undertaker/job_distributor_spec.rb +6 -6
- data/spec/sidekiq/undertaker/job_filter_spec.rb +4 -3
- data/spec/sidekiq/undertaker/web_extension_spec.rb +29 -3
- data/spec/spec_helper.rb +4 -5
- data/web/views/morgue.erb +3 -5
- metadata +81 -75
- data/spec/fixtures/approvals/sidekiq_undertaker_webextension/show_filter/when_filter_page_is_called/behaves_like_a_page/the_displayed_page_is_correct_for_sidekiqv5.approved.txt +0 -240
- data/spec/fixtures/approvals/sidekiq_undertaker_webextension/show_filter/when_job_classbucket_page_is_called/behaves_like_a_page/the_displayed_page_is_correct_for_sidekiqv5.approved.txt +0 -241
- data/spec/fixtures/approvals/sidekiq_undertaker_webextension/show_filter/when_job_classbucket_page_is_polled/behaves_like_a_page/the_displayed_page_is_correct_for_sidekiqv5.approved.txt +0 -241
- data/spec/fixtures/approvals/sidekiq_undertaker_webextension/show_morgue/when_job_classerrorbucket_is_called/with_all_failures_and_errors/behaves_like_a_page/the_displayed_page_is_correct_for_sidekiqv5.approved.txt +0 -316
- data/spec/fixtures/approvals/sidekiq_undertaker_webextension/show_morgue/when_job_classerrorbucket_is_called/with_specific_job_class_and_a_specific_error/behaves_like_a_page/the_displayed_page_is_correct_for_sidekiqv5.approved.txt +0 -274
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00e0e140904b2a6c034ae86443f4097405c27089bd402faa9c567b9a4ed494ac
|
4
|
+
data.tar.gz: df53ecae31dbf8ab6535016bee735ab199eec205251e54332bd7e1f221c584f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c91f3a2c28ac45514a4b2de47bfbbb9029bf1377daf88ae7aa589f807fb59e6d691fc717f6661041966561d76eb516de80e7cf52a9e8bb78a6c7ac8556b9ac5b
|
7
|
+
data.tar.gz: 57177fcdb514ab963e3b67917938b8571e16f0209156505fd1f20cc32bf1f787f2922245406f8263f3a3d990934bb81fc445acee89329b69ade09025815d2ae7
|
data/.codeclimate.yml
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
version: "2"
|
2
|
+
prepare:
|
3
|
+
fetch:
|
4
|
+
- url: "https://raw.githubusercontent.com/runtastic/rt_rubocop_defaults/master/config/default.yml"
|
5
|
+
path: .rt_rubocop_defaults.yml
|
2
6
|
plugins:
|
3
7
|
git-legal:
|
4
8
|
enabled: true
|
5
|
-
|
6
|
-
|
9
|
+
rubocop:
|
10
|
+
enabled: true
|
11
|
+
channel: rubocop-1-8-1
|
12
|
+
config:
|
13
|
+
file: .rubocop_codeclimate.yml
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
2
|
+
# They are provided by a third-party and are governed by
|
3
|
+
# separate terms of service, privacy policy, and support
|
4
|
+
# documentation.
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
+
|
8
|
+
name: Ruby-Build
|
9
|
+
|
10
|
+
on:
|
11
|
+
push:
|
12
|
+
branches: [ master ]
|
13
|
+
pull_request:
|
14
|
+
branches: [ master ]
|
15
|
+
|
16
|
+
jobs:
|
17
|
+
test:
|
18
|
+
|
19
|
+
runs-on: ubuntu-latest
|
20
|
+
|
21
|
+
services:
|
22
|
+
redis:
|
23
|
+
image: redis
|
24
|
+
ports:
|
25
|
+
- 6379:6379
|
26
|
+
|
27
|
+
strategy:
|
28
|
+
fail-fast: false
|
29
|
+
matrix:
|
30
|
+
# SEE: https://github.com/ruby/setup-ruby#supported-versions
|
31
|
+
ruby-version:
|
32
|
+
- 'ruby'
|
33
|
+
- '3.1'
|
34
|
+
- '2.7'
|
35
|
+
- 'jruby'
|
36
|
+
- 'jruby-9.3.2.0'
|
37
|
+
- 'jruby-9.2.20.0'
|
38
|
+
- 'truffleruby'
|
39
|
+
- 'truffleruby+graalvm'
|
40
|
+
|
41
|
+
steps:
|
42
|
+
- uses: actions/checkout@v2
|
43
|
+
- name: Set up Ruby
|
44
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
45
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
46
|
+
uses: ruby/setup-ruby@v1
|
47
|
+
with:
|
48
|
+
ruby-version: ${{ matrix.ruby-version }}
|
49
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
50
|
+
- name: Run tests
|
51
|
+
run: bundle exec rspec spec
|
data/.gitignore
CHANGED
data/.rspec
ADDED
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2021-01-26 20:10:48 UTC using RuboCop version 1.8.1.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
8
|
|
9
9
|
# Offense count: 2
|
10
|
-
# Configuration parameters: Severity.
|
10
|
+
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes, Severity.
|
11
11
|
Metrics/AbcSize:
|
12
12
|
Max: 22
|
13
13
|
|
14
|
-
# Offense count:
|
15
|
-
# Configuration parameters: CountComments, ExcludedMethods, Severity.
|
14
|
+
# Offense count: 2
|
15
|
+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods, Severity.
|
16
16
|
Metrics/MethodLength:
|
17
|
-
Max:
|
17
|
+
Max: 14
|
18
18
|
|
19
19
|
# Offense count: 5
|
20
20
|
# Configuration parameters: .
|
data/.travis.yml
CHANGED
@@ -1,41 +1,46 @@
|
|
1
1
|
language: ruby
|
2
2
|
cache: bundler
|
3
3
|
rvm:
|
4
|
-
-
|
5
|
-
- 2.
|
6
|
-
- 2.6.
|
7
|
-
-
|
8
|
-
- jruby
|
9
|
-
|
4
|
+
- 3.0.1
|
5
|
+
- 2.7.3
|
6
|
+
- 2.6.7
|
7
|
+
- 2.5.8
|
8
|
+
- jruby # latest
|
9
|
+
- jruby-9.2.17.0
|
10
|
+
#
|
11
|
+
# 1. https://github.com/oracle/truffleruby/issues/1398
|
12
|
+
# 2. Nokogiri build fails
|
13
|
+
# - truffleruby # latest
|
14
|
+
# - truffleruby-21.0.0
|
10
15
|
jdk:
|
11
16
|
- oraclejdk11
|
12
17
|
env:
|
13
18
|
global:
|
14
19
|
- CC_TEST_REPORTER_ID=7b2f0f3c9e20e50573e293fe3743a322a74e54087f95abc98d0f1dd1f3dd0a97
|
15
20
|
matrix:
|
16
|
-
- "JRUBY_OPTS='--
|
21
|
+
- "JRUBY_OPTS='--debug'"
|
17
22
|
- "JRUBY_OPTS='-Xcompile.invokedynamic=true --debug'"
|
18
23
|
|
19
24
|
matrix:
|
20
25
|
exclude:
|
21
|
-
- rvm:
|
26
|
+
- rvm: 3.0.1
|
22
27
|
env: "JRUBY_OPTS='-Xcompile.invokedynamic=true --debug'"
|
23
|
-
- rvm: 2.
|
28
|
+
- rvm: 2.7.3
|
24
29
|
env: "JRUBY_OPTS='-Xcompile.invokedynamic=true --debug'"
|
25
|
-
- rvm: 2.6.
|
30
|
+
- rvm: 2.6.7
|
31
|
+
env: "JRUBY_OPTS='-Xcompile.invokedynamic=true --debug'"
|
32
|
+
- rvm: 2.5.8
|
33
|
+
env: "JRUBY_OPTS='-Xcompile.invokedynamic=true --debug'"
|
34
|
+
- rvm: truffleruby-21.0.0
|
35
|
+
env: "JRUBY_OPTS='-Xcompile.invokedynamic=true --debug'"
|
36
|
+
- rvm: truffleruby
|
26
37
|
env: "JRUBY_OPTS='-Xcompile.invokedynamic=true --debug'"
|
27
38
|
allow_failures:
|
28
39
|
- rvm: truffleruby
|
29
|
-
-
|
30
|
-
|
40
|
+
- rvm: truffleruby-21.0.0
|
31
41
|
services:
|
32
42
|
- redis-server
|
33
43
|
|
34
|
-
# before_install:
|
35
|
-
# - gem update --system
|
36
|
-
# - gem install bundler -v "~> 2.0"
|
37
|
-
# # - gem update bundler
|
38
|
-
|
39
44
|
before_script:
|
40
45
|
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
41
46
|
- chmod +x ./cc-test-reporter
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## Unreleased
|
4
|
+
|
5
|
+
## [1.1.1] - 2022-02-03
|
6
|
+
### Added
|
7
|
+
- Added CHANGELOG.md
|
8
|
+
|
9
|
+
## [1.1.0] - 2022-01-19
|
10
|
+
### Added
|
11
|
+
- Added renovate.json
|
12
|
+
- Added ruby-build github workflow
|
13
|
+
- Added .rspec config file
|
14
|
+
|
15
|
+
### Changed
|
16
|
+
- Updated support for Sidekiq 6.2.2 and higher
|
17
|
+
- Updated travis CI config to use latest ruby versions
|
18
|
+
- Updated to use GitHub-native Dependabot
|
19
|
+
- Updated spech_helper
|
20
|
+
- Updated approvals to version 0.0.25
|
21
|
+
|
22
|
+
## [1.0.2] - 2021-01-27
|
23
|
+
### Added
|
24
|
+
- Consider also explicitly stating that PRs must pass RuboCop to be accepted
|
25
|
+
- Added rubocop badge to README.md
|
26
|
+
|
27
|
+
### Changed
|
28
|
+
- Upgraded rubocop and rt_rubocop_defaults
|
29
|
+
- Updated rake requirement from ~> 12.3 to ~> 13.0
|
30
|
+
- Updated Travis CI to use JRuby-9.2.10.0
|
31
|
+
- Updated README to clarify RuboCop install
|
32
|
+
|
33
|
+
## [1.0.1] - 2020-02-03
|
34
|
+
### Added
|
35
|
+
- Added ruby 2.7.0 to travis file and mark ruby 2.4.9 as optional
|
36
|
+
|
37
|
+
### Changed
|
38
|
+
- Updated codeclimate.yml to enable rubocop
|
39
|
+
|
40
|
+
### Fixed
|
41
|
+
- Fixed pagination on morgue page
|
42
|
+
- Fixed rubocopo issues
|
43
|
+
|
44
|
+
## [1.0.0] - 2019-12-24
|
45
|
+
### Added
|
46
|
+
- Added RubyGems badge
|
47
|
+
- Added custom locales
|
48
|
+
|
49
|
+
### Changed
|
50
|
+
- Renamed gem from sidekiq-cleaner to sidekiq-undertaker
|
51
|
+
- Updated do not show 'all' as job or error name in titles
|
52
|
+
- Updated gemspec, .travis.yml and README.md
|
53
|
+
- Updated rename buckets and add the 'older' bucket
|
54
|
+
- Refactored move sort into JobAggregator
|
55
|
+
- Renamed JobAggregator to JobDistributor
|
56
|
+
- Updated translations
|
57
|
+
- Updated add '/filter' and '/morgue' prefixes to URLs
|
58
|
+
- Renamed Helpers to APIHelpers
|
59
|
+
- Moved view files to top level web folder
|
60
|
+
- Renamed views
|
61
|
+
- Moved WebExtension::Helper into separate file
|
62
|
+
|
63
|
+
### Removed
|
64
|
+
- Removed before install steps from .travis.yml
|
65
|
+
|
66
|
+
### Fixed
|
67
|
+
- Updated README.md to fix broken members link
|
68
|
+
- Fixed approvals specs after sidekiq ref update
|
69
|
+
- Fixed sidekiq dependency in gemspec
|
70
|
+
- Fixed broken links in filter view
|
71
|
+
- Fixed Travis link
|
72
|
+
- Fixed paths in views
|
73
|
+
|
74
|
+
## [0.3.6] - 2019-12-04
|
75
|
+
### Added
|
76
|
+
- Added Test Coverage Badge
|
77
|
+
- Added CodeClimate configuration
|
78
|
+
- Added support for JRuby
|
79
|
+
- Added .travis.yml
|
80
|
+
- Added support for csrf and allowed this to be used with newer versions of sidekiq
|
81
|
+
|
82
|
+
### Changed
|
83
|
+
- Updated travis config
|
84
|
+
- Updated Rubocop and RtRubocopDefaults gems
|
85
|
+
- Updated README.md
|
86
|
+
- Updated gemspec
|
87
|
+
- Renamed approvals specs to shorten file path
|
88
|
+
- Updated approval specs to exclude Sidekiq::VERSION
|
89
|
+
- Removed celluloid dependency
|
90
|
+
- Allowed developers to use other Rubies
|
91
|
+
- Removed .ruby-version and added .ruby-version and .rvmrc to the .gitignore
|
92
|
+
|
93
|
+
### Fixed
|
94
|
+
- Fixed "Retry All" and "Delete All" function
|
95
|
+
- Fixed Csrf and sidekiq version compatibility
|
96
|
+
- Fixed Cleaner Redirect Bug
|
data/README.md
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
[![Build Status](https://travis-ci.org/ThomasKoppensteiner/sidekiq-undertaker.svg?branch=master)](https://travis-ci.org/ThomasKoppensteiner/sidekiq-undertaker)
|
5
5
|
[![Code Climate](https://codeclimate.com/github/ThomasKoppensteiner/sidekiq-undertaker.svg)](https://codeclimate.com/github/ThomasKoppensteiner/sidekiq-undertaker)
|
6
6
|
[![Test Coverage](https://api.codeclimate.com/v1/badges/d442eb0a323d8911661f/test_coverage)](https://codeclimate.com/github/ThomasKoppensteiner/sidekiq-undertaker/test_coverage)
|
7
|
+
[![Ruby Style Guide](https://img.shields.io/badge/code_style-rubocop-brightgreen.svg)](https://github.com/rubocop-hq/rubocop)
|
7
8
|
|
8
9
|
## About
|
9
10
|
|
@@ -32,7 +33,7 @@ Or install it yourself as:
|
|
32
33
|
$ gem install sidekiq-undertaker
|
33
34
|
````
|
34
35
|
|
35
|
-
#### Install the Rubocop Pre-Commit Hook
|
36
|
+
#### Development: Install the Rubocop Pre-Commit Hook
|
36
37
|
|
37
38
|
````sh
|
38
39
|
$ rake rubocop:install
|
@@ -80,6 +81,8 @@ this fork was renamed to `sidekiq-undertaker`.
|
|
80
81
|
|
81
82
|
The [Sidekiq-Cleaner](https://github.com/HackingHabits/sidekiq-cleaner) gem was originally created by [Madan Thangavelu](https://github.com/HackingHabits).
|
82
83
|
[Tout](https://github.com/Tout/sidekiq-cleaner) and [TheWudu](https://github.com/TheWudu/sidekiq-cleaner) also contributed to it.
|
84
|
+
Thank you [Zlatko Rednjak](https://github.com/Rednjak) for adding the initial version of the `CHANGELOG.md`.
|
85
|
+
|
83
86
|
For the complete list of network members have a look at the [fork overview](https://github.com/ThomasKoppensteiner/sidekiq-undertaker/network/members).
|
84
87
|
|
85
88
|
## Alternative Projects
|
data/Rakefile
CHANGED
@@ -50,7 +50,7 @@ module Sidekiq
|
|
50
50
|
|
51
51
|
attr_writer :job_class, :time_elapsed_since_failure, :error_class, :bucket_name, :job
|
52
52
|
|
53
|
-
def job_eql?(other_job) # rubocop:disable Metrics/AbcSize
|
53
|
+
def job_eql?(other_job) # rubocop:disable Metrics/AbcSize
|
54
54
|
job.jid == other_job.jid &&
|
55
55
|
job.item == other_job.item &&
|
56
56
|
job.args == other_job.args &&
|
@@ -35,7 +35,7 @@ module Sidekiq
|
|
35
35
|
# Display dead jobs as list
|
36
36
|
@dead_jobs = @dead_jobs.map(&:job)
|
37
37
|
|
38
|
-
@undertaker_path = "undertaker/#{@req_job_class}/#{@req_error_class}/#{@req_bucket_name}"
|
38
|
+
@undertaker_path = "undertaker/morgue/#{@req_job_class}/#{@req_error_class}/#{@req_bucket_name}"
|
39
39
|
|
40
40
|
# Pagination
|
41
41
|
@total_dead = @dead_jobs.size
|
@@ -43,6 +43,10 @@ module Sidekiq
|
|
43
43
|
@count = 50 # per page
|
44
44
|
@dead_jobs = @dead_jobs[((@current_page - 1) * @count), @count]
|
45
45
|
|
46
|
+
# HINT: For making the pagination from sidekiq work, @total_size needs to be set
|
47
|
+
# https://github.com/mperham/sidekiq/blob/master/web/views/_paging.erb#L1
|
48
|
+
@total_size = @total_dead
|
49
|
+
|
46
50
|
# Remove unrelated arguments to allow _paginate url to be clean
|
47
51
|
# Hack to continue to reuse sidekiq's _pagination template
|
48
52
|
params.delete("job_class")
|
@@ -5,6 +5,7 @@ require "sidekiq/undertaker/web_extension/api_helpers"
|
|
5
5
|
module Sidekiq
|
6
6
|
module Undertaker
|
7
7
|
module WebExtension
|
8
|
+
# rubocop:disable Metrics/MethodLength
|
8
9
|
def self.registered(app)
|
9
10
|
app.helpers APIHelpers
|
10
11
|
|
@@ -32,6 +33,7 @@ module Sidekiq
|
|
32
33
|
post_undertaker_job_class_error_class_buckent_name_retry
|
33
34
|
end
|
34
35
|
end
|
36
|
+
# rubocop:enable Metrics/MethodLength
|
35
37
|
end
|
36
38
|
end
|
37
39
|
end
|
data/lib/sidekiq/undertaker.rb
CHANGED
data/sidekiq-undertaker.gemspec
CHANGED
@@ -19,21 +19,24 @@ Gem::Specification.new do |spec|
|
|
19
19
|
|
20
20
|
spec.homepage = "https://github.com/ThomasKoppensteiner/sidekiq-undertaker"
|
21
21
|
spec.metadata = {
|
22
|
-
"homepage_uri"
|
23
|
-
"source_code_uri"
|
24
|
-
"bug_tracker_uri"
|
25
|
-
"build_status_uri"
|
22
|
+
"homepage_uri" => "https://github.com/ThomasKoppensteiner/sidekiq-undertaker",
|
23
|
+
"source_code_uri" => "https://github.com/ThomasKoppensteiner/sidekiq-undertaker",
|
24
|
+
"bug_tracker_uri" => "https://github.com/ThomasKoppensteiner/sidekiq-undertaker/issues",
|
25
|
+
"build_status_uri" => "https://travis-ci.org/ThomasKoppensteiner/sidekiq-undertaker",
|
26
|
+
"rubygems_mfa_required" => "true"
|
26
27
|
}
|
27
28
|
|
29
|
+
spec.required_ruby_version = ">= 2.5.0"
|
30
|
+
|
28
31
|
spec.files = `git ls-files -z`.split("\x0")
|
29
32
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
30
33
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
31
34
|
spec.require_paths = ["lib", "lib/sidekiq/undertaker"]
|
32
35
|
|
33
36
|
spec.add_development_dependency "bundler", ">= 1.17", "<3"
|
34
|
-
spec.add_development_dependency "rake", "~>
|
37
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
35
38
|
|
36
|
-
spec.add_development_dependency "approvals", "~> 0.0
|
39
|
+
spec.add_development_dependency "approvals", "~> 0.0.25"
|
37
40
|
spec.add_development_dependency "mock_redis", "~> 0.19"
|
38
41
|
spec.add_development_dependency "pry", "~> 0.12"
|
39
42
|
spec.add_development_dependency "rack-test", "~> 1.1"
|
@@ -42,13 +45,14 @@ Gem::Specification.new do |spec|
|
|
42
45
|
spec.add_development_dependency "rspec-core", "~> 3.8"
|
43
46
|
spec.add_development_dependency "rspec-mocks", "~> 3.8"
|
44
47
|
spec.add_development_dependency "rspec-sidekiq", "~> 3.0"
|
45
|
-
spec.add_development_dependency "rt_rubocop_defaults", "~>
|
46
|
-
spec.add_development_dependency "rubocop", "~>
|
47
|
-
spec.add_development_dependency "rubocop-
|
48
|
+
spec.add_development_dependency "rt_rubocop_defaults", "~> 2.3"
|
49
|
+
spec.add_development_dependency "rubocop", "~> 1.8"
|
50
|
+
spec.add_development_dependency "rubocop-rake", "~> 0.5"
|
51
|
+
spec.add_development_dependency "rubocop-rspec", "~> 2.0"
|
48
52
|
spec.add_development_dependency "rubocop_runner", "~> 2.1"
|
49
53
|
spec.add_development_dependency "simplecov", "~> 0.14"
|
50
54
|
spec.add_development_dependency "sinatra", "~> 2.0"
|
51
55
|
spec.add_development_dependency "timecop", "~> 0.9"
|
52
56
|
|
53
|
-
spec.add_runtime_dependency "sidekiq", ">=
|
57
|
+
spec.add_runtime_dependency "sidekiq", ">= 6.2.2", "< 6.3"
|
54
58
|
end
|
@@ -9,9 +9,10 @@
|
|
9
9
|
|
10
10
|
|
11
11
|
<link href="/sidekiq/stylesheets/application.css" media="screen" rel="stylesheet" type="text/css" />
|
12
|
-
<link href="/sidekiq/stylesheets/application-dark.css" media="screen" rel="stylesheet" type="text/css" />
|
12
|
+
<link href="/sidekiq/stylesheets/application-dark.css" media="screen and (prefers-color-scheme: dark)" rel="stylesheet" type="text/css" />
|
13
13
|
|
14
14
|
|
15
|
+
<link rel="apple-touch-icon" href="/sidekiq/images/apple-touch-icon.png">
|
15
16
|
<link rel="shortcut icon" type="image/ico" href="/sidekiq/images/favicon.ico" />
|
16
17
|
<script type="text/javascript" src="/sidekiq/javascripts/application.js"></script>
|
17
18
|
<meta name="google" content="notranslate" />
|
@@ -9,9 +9,10 @@
|
|
9
9
|
|
10
10
|
|
11
11
|
<link href="/sidekiq/stylesheets/application.css" media="screen" rel="stylesheet" type="text/css" />
|
12
|
-
<link href="/sidekiq/stylesheets/application-dark.css" media="screen" rel="stylesheet" type="text/css" />
|
12
|
+
<link href="/sidekiq/stylesheets/application-dark.css" media="screen and (prefers-color-scheme: dark)" rel="stylesheet" type="text/css" />
|
13
13
|
|
14
14
|
|
15
|
+
<link rel="apple-touch-icon" href="/sidekiq/images/apple-touch-icon.png">
|
15
16
|
<link rel="shortcut icon" type="image/ico" href="/sidekiq/images/favicon.ico" />
|
16
17
|
<script type="text/javascript" src="/sidekiq/javascripts/application.js"></script>
|
17
18
|
<meta name="google" content="notranslate" />
|
@@ -9,9 +9,10 @@
|
|
9
9
|
|
10
10
|
|
11
11
|
<link href="/sidekiq/stylesheets/application.css" media="screen" rel="stylesheet" type="text/css" />
|
12
|
-
<link href="/sidekiq/stylesheets/application-dark.css" media="screen" rel="stylesheet" type="text/css" />
|
12
|
+
<link href="/sidekiq/stylesheets/application-dark.css" media="screen and (prefers-color-scheme: dark)" rel="stylesheet" type="text/css" />
|
13
13
|
|
14
14
|
|
15
|
+
<link rel="apple-touch-icon" href="/sidekiq/images/apple-touch-icon.png">
|
15
16
|
<link rel="shortcut icon" type="image/ico" href="/sidekiq/images/favicon.ico" />
|
16
17
|
<script type="text/javascript" src="/sidekiq/javascripts/application.js"></script>
|
17
18
|
<meta name="google" content="notranslate" />
|
@@ -9,9 +9,10 @@
|
|
9
9
|
|
10
10
|
|
11
11
|
<link href="/sidekiq/stylesheets/application.css" media="screen" rel="stylesheet" type="text/css" />
|
12
|
-
<link href="/sidekiq/stylesheets/application-dark.css" media="screen" rel="stylesheet" type="text/css" />
|
12
|
+
<link href="/sidekiq/stylesheets/application-dark.css" media="screen and (prefers-color-scheme: dark)" rel="stylesheet" type="text/css" />
|
13
13
|
|
14
14
|
|
15
|
+
<link rel="apple-touch-icon" href="/sidekiq/images/apple-touch-icon.png">
|
15
16
|
<link rel="shortcut icon" type="image/ico" href="/sidekiq/images/favicon.ico" />
|
16
17
|
<script type="text/javascript" src="/sidekiq/javascripts/application.js"></script>
|
17
18
|
<meta name="google" content="notranslate" />
|
@@ -165,13 +166,16 @@
|
|
165
166
|
</h3>
|
166
167
|
</div>
|
167
168
|
<div class="col-sm-12">
|
168
|
-
|
169
|
+
<div class="col-sm-4">
|
170
|
+
|
171
|
+
|
172
|
+
</div>
|
169
173
|
</div>
|
170
174
|
</header>
|
171
175
|
|
172
176
|
|
173
177
|
<form action="/sidekiq/undertaker/morgue" method="post">
|
174
|
-
<input type='hidden' name='authenticity_token' value=''/>
|
178
|
+
<input type='hidden' name='authenticity_token' value='stubbed-csrf-token'/>
|
175
179
|
<table class="table table-striped table-bordered table-white">
|
176
180
|
<thead>
|
177
181
|
<tr>
|
@@ -278,12 +282,12 @@
|
|
278
282
|
</form>
|
279
283
|
|
280
284
|
<form action="/sidekiq/undertaker/morgue/all/all/total_dead/delete" method="post">
|
281
|
-
<input type='hidden' name='authenticity_token' value=''/>
|
285
|
+
<input type='hidden' name='authenticity_token' value='stubbed-csrf-token'/>
|
282
286
|
<input class="btn btn-danger btn-xs pull-right" type="submit" name="delete" value="Bury All" data-confirm="Are you sure?" />
|
283
287
|
</form>
|
284
288
|
|
285
289
|
<form action="/sidekiq/undertaker/morgue/all/all/total_dead/retry" method="post">
|
286
|
-
<input type='hidden' name='authenticity_token' value=''/>
|
290
|
+
<input type='hidden' name='authenticity_token' value='stubbed-csrf-token'/>
|
287
291
|
<input class="btn btn-danger btn-xs pull-right" type="submit" name="retry" value="Revive All" data-confirm="Are you sure?" />
|
288
292
|
</form>
|
289
293
|
|
@@ -9,9 +9,10 @@
|
|
9
9
|
|
10
10
|
|
11
11
|
<link href="/sidekiq/stylesheets/application.css" media="screen" rel="stylesheet" type="text/css" />
|
12
|
-
<link href="/sidekiq/stylesheets/application-dark.css" media="screen" rel="stylesheet" type="text/css" />
|
12
|
+
<link href="/sidekiq/stylesheets/application-dark.css" media="screen and (prefers-color-scheme: dark)" rel="stylesheet" type="text/css" />
|
13
13
|
|
14
14
|
|
15
|
+
<link rel="apple-touch-icon" href="/sidekiq/images/apple-touch-icon.png">
|
15
16
|
<link rel="shortcut icon" type="image/ico" href="/sidekiq/images/favicon.ico" />
|
16
17
|
<script type="text/javascript" src="/sidekiq/javascripts/application.js"></script>
|
17
18
|
<meta name="google" content="notranslate" />
|
@@ -165,13 +166,16 @@
|
|
165
166
|
</h3>
|
166
167
|
</div>
|
167
168
|
<div class="col-sm-12">
|
168
|
-
|
169
|
+
<div class="col-sm-4">
|
170
|
+
|
171
|
+
|
172
|
+
</div>
|
169
173
|
</div>
|
170
174
|
</header>
|
171
175
|
|
172
176
|
|
173
177
|
<form action="/sidekiq/undertaker/morgue" method="post">
|
174
|
-
<input type='hidden' name='authenticity_token' value=''/>
|
178
|
+
<input type='hidden' name='authenticity_token' value='stubbed-csrf-token'/>
|
175
179
|
<table class="table table-striped table-bordered table-white">
|
176
180
|
<thead>
|
177
181
|
<tr>
|
@@ -236,12 +240,12 @@
|
|
236
240
|
</form>
|
237
241
|
|
238
242
|
<form action="/sidekiq/undertaker/morgue/HardWorker/RuntimeError/1_hour/delete" method="post">
|
239
|
-
<input type='hidden' name='authenticity_token' value=''/>
|
243
|
+
<input type='hidden' name='authenticity_token' value='stubbed-csrf-token'/>
|
240
244
|
<input class="btn btn-danger btn-xs pull-right" type="submit" name="delete" value="Bury All" data-confirm="Are you sure?" />
|
241
245
|
</form>
|
242
246
|
|
243
247
|
<form action="/sidekiq/undertaker/morgue/HardWorker/RuntimeError/1_hour/retry" method="post">
|
244
|
-
<input type='hidden' name='authenticity_token' value=''/>
|
248
|
+
<input type='hidden' name='authenticity_token' value='stubbed-csrf-token'/>
|
245
249
|
<input class="btn btn-danger btn-xs pull-right" type="submit" name="retry" value="Revive All" data-confirm="Are you sure?" />
|
246
250
|
</form>
|
247
251
|
|