sidekiq_admin_enquerer 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +2 -1
- data/README.md +3 -2
- data/lib/sidekiq_admin_enquerer/version.rb +6 -1
- data/lib/sidekiq_admin_enquerer/web_app/web_helpers.rb +2 -2
- data/lib/sidekiq_admin_enquerer/web_app.rb +4 -4
- data/lib/sidekiq_admin_enquerer.rb +3 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3267c03619a4a994c32bf46244a0c49a22e25becd1688118a6ec9b778c1cdc3
|
4
|
+
data.tar.gz: f6806fd21b9af1b0b445e04c1052ce1e38a45bc58dbc7f905adc2d57e197f771
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88a488247ed50b8d5628b515cd57fcffde97e290541c993bbca3229f6e564b13ec6563c42ad2b5332e90d9bf401853bcd55d7b27846f4fe46e83f0523b75f5dd
|
7
|
+
data.tar.gz: ac641c6d56fa6f41e99251fcf3f8b2e64599c95a99e99eb7d54c0700b7b71a0015e848ecedc87eb3139080ed2e31532647e5131d173a5da805b932d537a203b3
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
# Changelog
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
+
## [0.1.2] - 2023-07-24
|
5
|
+
### Fixed
|
6
|
+
- Empty parameter job list during `job runing` (empty list is a `nil` value in final) leads to invocation `#values` on them;
|
7
|
+
|
8
|
+
## [0.1.1] - 2023-07-21
|
9
|
+
### Fixed
|
10
|
+
- `ueuer`-postfix typo in class names, modules, routes and docs (`ueuer` => `uerer`);
|
11
|
+
|
4
12
|
## [0.1.0] - 2023-07-09
|
5
13
|
|
6
14
|
- Prototype;
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
sidekiq_admin_enquerer (0.1.
|
4
|
+
sidekiq_admin_enquerer (0.1.2)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -97,6 +97,7 @@ GEM
|
|
97
97
|
|
98
98
|
PLATFORMS
|
99
99
|
arm64-darwin-22
|
100
|
+
x86_64-darwin-22
|
100
101
|
|
101
102
|
DEPENDENCIES
|
102
103
|
armitage-rubocop (~> 1.51)
|
data/README.md
CHANGED
@@ -10,6 +10,7 @@
|
|
10
10
|
|
11
11
|
# TODO:
|
12
12
|
|
13
|
+
- job invocation form redesign;
|
13
14
|
- interactive UI tabs for each performing method (sidekiq's UI has no jquery and bootstrap-js integrations);
|
14
15
|
- job invocation rework (support for kwarg invocation and analysis of passed attributes);
|
15
16
|
- specs;
|
@@ -39,10 +40,10 @@ require 'sidekiq_admin_enquerer'
|
|
39
40
|
|
40
41
|
# ...your sidekiq configs...
|
41
42
|
|
42
|
-
|
43
|
+
SidekiqAdminEnquerer.load
|
43
44
|
```
|
44
45
|
|
45
|
-
- navigate to `/your-sidekiq-path/
|
46
|
+
- navigate to `/your-sidekiq-path/enquerer`
|
46
47
|
|
47
48
|
---
|
48
49
|
|
@@ -9,7 +9,7 @@ module SidekiqAdminEnquerer::WebApp::WebHelpers
|
|
9
9
|
# @api private
|
10
10
|
# @since 0.1.0
|
11
11
|
def side_enq__enqueue_path(job)
|
12
|
-
"#{root_path}
|
12
|
+
"#{root_path}enquerer/#{job.name}"
|
13
13
|
end
|
14
14
|
|
15
15
|
# @return [String]
|
@@ -17,7 +17,7 @@ module SidekiqAdminEnquerer::WebApp::WebHelpers
|
|
17
17
|
# @api private
|
18
18
|
# @since 0.1.0
|
19
19
|
def side_enq__enqueue_job_path
|
20
|
-
"#{root_path}
|
20
|
+
"#{root_path}enquerer"
|
21
21
|
end
|
22
22
|
|
23
23
|
# @param job_method [SidekiqAdminEnquerer::WebApp::JobMethodWrapper]
|
@@ -27,19 +27,19 @@ module SidekiqAdminEnquerer::WebApp
|
|
27
27
|
def registered(app)
|
28
28
|
app.helpers(WebHelpers)
|
29
29
|
|
30
|
-
app.get('/
|
30
|
+
app.get('/enquerer') do
|
31
31
|
@jobs = AppControl.jobs
|
32
32
|
render(:erb, TEMPLATES[:jobs])
|
33
33
|
end
|
34
34
|
|
35
|
-
app.get('/
|
35
|
+
app.get('/enquerer/:job_name') do
|
36
36
|
@job = AppControl.find_job(params[:job_name])
|
37
37
|
render(:erb, TEMPLATES[:job])
|
38
38
|
end
|
39
39
|
|
40
|
-
app.post('/
|
40
|
+
app.post('/enquerer') do
|
41
41
|
AppControl.run_job(params)
|
42
|
-
redirect File.join(root_path, '
|
42
|
+
redirect File.join(root_path, 'enquerer')
|
43
43
|
end
|
44
44
|
end
|
45
45
|
end
|
@@ -48,11 +48,12 @@ module SidekiqAdminEnquerer
|
|
48
48
|
#
|
49
49
|
# @api private
|
50
50
|
# @since 0.1.0
|
51
|
+
# @version 0.1.2
|
51
52
|
# rubocop:disable Metrics/AbcSize
|
52
53
|
def run_job(job, params)
|
53
54
|
# TODO: rework with attribute analysis
|
54
55
|
job_perform_method = params['perform_method']
|
55
|
-
job_params = params[job_perform_method]
|
56
|
+
job_params = params[job_perform_method] || {} # NOTE: {} means that no parameters were passed
|
56
57
|
job.respond_to?(:sidekiq_options) ? job.sidekiq_options['queue'].to_s : 'default'
|
57
58
|
|
58
59
|
if params['submit'] == 'enqueue'
|
@@ -82,7 +83,7 @@ module SidekiqAdminEnquerer
|
|
82
83
|
def load
|
83
84
|
if defined?(Sidekiq::Web)
|
84
85
|
Sidekiq::Web.register(SidekiqAdminEnquerer::WebApp)
|
85
|
-
Sidekiq::Web.tabs['
|
86
|
+
Sidekiq::Web.tabs['Enquerer'] = 'enquerer'
|
86
87
|
end
|
87
88
|
end
|
88
89
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq_admin_enquerer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rustam Ibragimov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
146
|
- !ruby/object:Gem::Version
|
147
147
|
version: '0'
|
148
148
|
requirements: []
|
149
|
-
rubygems_version: 3.4.
|
149
|
+
rubygems_version: 3.4.6
|
150
150
|
signing_key:
|
151
151
|
specification_version: 4
|
152
152
|
summary: Sidekiq Admin Enquerer.
|