sidekiq_admin_enquerer 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +3 -2
- data/lib/sidekiq_admin_enquerer/version.rb +5 -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 +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54fe41c8cbbce1cf1a39e1deb135ae8aa4e1b65de4dbb49b75e851e02004a1f4
|
4
|
+
data.tar.gz: 9051fbd4e2b377ea71094521fdf346407c1981a59e75a3329ffabba75ef44800
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbd33b5d38c04305e5353d80b0a7efaa9dab623400555181ec57539bbd5009d0612eb5484f8f8af1a548b5620a24b49867561daeea4616611ca66961f6ab4d21
|
7
|
+
data.tar.gz: fb8980277180a7cf69dc44a88d118b79981800367b02019229fe50a7180f4e6faa87a8e36e9574c49d162ac0e844088d5c2eccbd123b9c64ac50788c0e651e70
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
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
|
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.1
|
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-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|