rush_job 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +10 -3
- data/app/assets/javascript/rush_job/controllers/rush_job_table_update_controller.js +1 -1
- data/app/views/layouts/rush_job/application.html.erb +11 -8
- data/app/views/rush_job/dashboard/_dashboard_tables.html.erb +3 -5
- data/app/views/rush_job/rush_jobs/_jobs_table.html.erb +2 -6
- data/app/views/rush_job/shared/_polling.html.erb +3 -3
- data/lib/rush_job/engine.rb +1 -14
- data/lib/rush_job/version.rb +1 -1
- metadata +6 -31
- data/app/assets/config/rush_job_manifest.js +0 -4
- data/app/assets/stylesheets/rush_job/application.scss +0 -19
- data/app/assets/stylesheets/rush_job/components/_pagination.scss +0 -15
- data/app/assets/stylesheets/rush_job/components/_polling.scss +0 -26
- data/app/assets/stylesheets/rush_job/pages/_rush_jobs_index.scss +0 -10
- data/app/assets/stylesheets/rush_job/themes/_dark.scss +0 -7
- data/app/assets/stylesheets/rush_job/themes/_light.scss +0 -7
- data/vendor/stylesheets/rush_job/bootstrap.css +0 -12273
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b249399c47d90674bd19f4bd5612456500cd7b3948585bbb245790a7b67253cf
|
4
|
+
data.tar.gz: eb2bc8fbd0be165871285c2d0ca078602883252208d79e6a3c3e349fac603610
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa2af89b4f8fee4ecdcaa63724709c011c7769b8a762db6c39bddeed281f1f62948ed5ae83f724cbbddd55ab23ded66a8540fbe003202b2e37ae1c1d22c84314
|
7
|
+
data.tar.gz: 0a99607c75a87e31be2c7acf42741c73ed633e6a0e64c7405ce466e74c15f31a2df44795c0f3a790c5dcc503bfe3ff8fc1b5b0f251bf8fe41aee06a0be88fe4a
|
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
# RushJob
|
2
2
|
User interface for Delayed Job (https://github.com/collectiveidea/delayed_job) in Ruby on Rails
|
3
3
|
|
4
|
-
<img
|
5
|
-
<img
|
4
|
+
<img alt="Light dashboard" src="docs/assets/light-dashboard.gif">
|
5
|
+
<img alt="Light jobs" src="docs/assets/light-jobs.png">
|
6
|
+
<img alt="Dark dashboard" src="docs/assets/dark-dashboard.gif">
|
7
|
+
<img alt="Dark jobs" src="docs/assets/dark-jobs.png">
|
6
8
|
|
7
9
|
### Note
|
8
10
|
- This has only been tested with SQLite and Postgresql.
|
@@ -17,7 +19,7 @@ Navigate to the `/rush_job` route in your application to see the Delayed Jobs. L
|
|
17
19
|
Add this line to your Ruby on Rails application's Gemfile:
|
18
20
|
|
19
21
|
```ruby
|
20
|
-
gem 'rush_job', '~> 1.
|
22
|
+
gem 'rush_job', '~> 1.3'
|
21
23
|
```
|
22
24
|
|
23
25
|
And then execute:
|
@@ -40,6 +42,11 @@ Open an issue or
|
|
40
42
|
3. `bundle exec brakeman`
|
41
43
|
4. Open pull request
|
42
44
|
|
45
|
+
## Propshaft
|
46
|
+
This gem uses propshaft, https://github.com/rails/propshaft, and uses a CDN for Bootstrap CSS https://www.jsdelivr.com/package/npm/bootswatch
|
47
|
+
|
48
|
+
For the previous bundled CSS and sprockets frok from v1.2.0
|
49
|
+
|
43
50
|
## Turbo
|
44
51
|
This gem uses turbo-rails, https://github.com/hotwired/turbo-rails. For Rails UJS fork from v0.6.1
|
45
52
|
|
@@ -23,7 +23,7 @@ export class RushJobTableUpdateController extends Controller {
|
|
23
23
|
|
24
24
|
blurTable() {
|
25
25
|
const jobsContainer = document.getElementById('rush-job-jobs-container');
|
26
|
-
jobsContainer.classList.add('
|
26
|
+
jobsContainer.classList.add('opacity-25');
|
27
27
|
}
|
28
28
|
|
29
29
|
clearFlash() {
|
@@ -9,15 +9,18 @@
|
|
9
9
|
<%= javascript_importmap_tags %>
|
10
10
|
<%= javascript_import_module_tag "rush_job/application" %>
|
11
11
|
|
12
|
-
|
12
|
+
<link href="https://cdn.jsdelivr.net/npm/bootswatch@5.3.3/dist/spacelab/bootstrap.min.css" rel="stylesheet">
|
13
13
|
</head>
|
14
|
-
<body
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
14
|
+
<body data-bs-theme="<%= current_theme %>">
|
15
|
+
<header>
|
16
|
+
<%= render 'layouts/rush_job/navbar' %>
|
17
|
+
<div id="rush-job-flash-messages">
|
18
|
+
<%= render 'layouts/rush_job/flash_messages' %>
|
19
|
+
</div>
|
20
|
+
</header>
|
21
21
|
|
22
|
+
<main class="mx-4">
|
23
|
+
<%= yield %>
|
24
|
+
</main>
|
22
25
|
</body>
|
23
26
|
</html>
|
@@ -1,9 +1,7 @@
|
|
1
1
|
<%= turbo_frame_tag 'rush_job_dashboard_frame' do %>
|
2
|
-
<div id="rush-job-jobs-container"
|
3
|
-
class="jobs-container"
|
4
|
-
role="main">
|
2
|
+
<div id="rush-job-jobs-container" role="main">
|
5
3
|
<div class="d-flex justify-content-left">
|
6
|
-
<h2 class="
|
4
|
+
<h2 class="text-<%= invert_theme %>"><%= t :locked_jobs %></h2>
|
7
5
|
</div>
|
8
6
|
<div id="rush-job-dashboard-locked-jobs" class="mb-2 d-flex justify-content-left">
|
9
7
|
<div class="table-responsive">
|
@@ -41,7 +39,7 @@
|
|
41
39
|
</div>
|
42
40
|
|
43
41
|
<div class="d-flex justify-content-left">
|
44
|
-
<h2 class="
|
42
|
+
<h2 class="text-<%= invert_theme %>"><%= t :queues %></h2>
|
45
43
|
</div>
|
46
44
|
<div id="rush-job-dashboard-queues" class="d-flex justify-content-left">
|
47
45
|
<div class="table-responsive">
|
@@ -1,7 +1,5 @@
|
|
1
1
|
<%= turbo_frame_tag 'rush_job_jobs_frame' do %>
|
2
|
-
<div id="rush-job-jobs-container"
|
3
|
-
class="jobs-container"
|
4
|
-
role="main">
|
2
|
+
<div id="rush-job-jobs-container" role="main">
|
5
3
|
<div class="table-responsive">
|
6
4
|
<table class="table
|
7
5
|
table-bordered
|
@@ -43,7 +41,5 @@
|
|
43
41
|
</div>
|
44
42
|
</div>
|
45
43
|
|
46
|
-
|
47
|
-
<%== pagy_bootstrap_nav(@pagy) if @pagy.pages > 1 %>
|
48
|
-
</div>
|
44
|
+
<%== pagy_bootstrap_nav(@pagy) if @pagy.pages > 1 %>
|
49
45
|
<% end %>
|
@@ -1,8 +1,8 @@
|
|
1
|
-
<div
|
1
|
+
<div data-controller="rush-job-polling">
|
2
2
|
<div class="row align-items-center">
|
3
3
|
<div class="col-3">
|
4
4
|
<label for="rush-job-polling-range"
|
5
|
-
class="
|
5
|
+
class="mb-2"
|
6
6
|
data-rush-job-polling-target="pollingTimeLabel">
|
7
7
|
<%= t :polling_time %> 13 <%= t :polling_time_unit %>
|
8
8
|
</label>
|
@@ -35,7 +35,7 @@
|
|
35
35
|
role="switch"
|
36
36
|
data-rush-job-polling-target="pollingSlide"
|
37
37
|
data-action="input->rush-job-polling#pollingToggle">
|
38
|
-
<label
|
38
|
+
<label for="rush-job-polling"><%= t :enable_polling %></label>
|
39
39
|
</div>
|
40
40
|
</div>
|
41
41
|
<div class="col-3" data-controller="rush-job-reload-jobs-table">
|
data/lib/rush_job/engine.rb
CHANGED
@@ -3,7 +3,7 @@ module RushJob
|
|
3
3
|
require 'pagy'
|
4
4
|
require 'pagy/extras/array'
|
5
5
|
require 'pagy/extras/bootstrap'
|
6
|
-
require '
|
6
|
+
require 'propshaft'
|
7
7
|
|
8
8
|
class Engine < ::Rails::Engine
|
9
9
|
isolate_namespace RushJob
|
@@ -12,18 +12,5 @@ module RushJob
|
|
12
12
|
app.config.importmap.paths << root.join('config/importmap.rb')
|
13
13
|
app.config.importmap.cache_sweepers << root.join('app/assets/javascripts')
|
14
14
|
end
|
15
|
-
|
16
|
-
initializer 'rush_job.assets.precompile' do |app|
|
17
|
-
app.config.assets.precompile += %w[
|
18
|
-
rush_job/application.css
|
19
|
-
rush_job/application.scss
|
20
|
-
rush_job/application.js
|
21
|
-
rush_job/arrow-up-light.svg
|
22
|
-
rush_job/arrow-up-dark.svg
|
23
|
-
rush_job/arrow-down-light.svg
|
24
|
-
rush_job/arrow-down-dark.svg
|
25
|
-
rush_job_manifest.js
|
26
|
-
]
|
27
|
-
end
|
28
15
|
end
|
29
16
|
end
|
data/lib/rush_job/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rush_job
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JavaKoala
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-02-12 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: actionview
|
@@ -109,19 +108,19 @@ dependencies:
|
|
109
108
|
- !ruby/object:Gem::Version
|
110
109
|
version: '9.3'
|
111
110
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
111
|
+
name: propshaft
|
113
112
|
requirement: !ruby/object:Gem::Requirement
|
114
113
|
requirements:
|
115
114
|
- - "~>"
|
116
115
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
116
|
+
version: '1.1'
|
118
117
|
type: :runtime
|
119
118
|
prerelease: false
|
120
119
|
version_requirements: !ruby/object:Gem::Requirement
|
121
120
|
requirements:
|
122
121
|
- - "~>"
|
123
122
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
123
|
+
version: '1.1'
|
125
124
|
- !ruby/object:Gem::Dependency
|
126
125
|
name: turbo-rails
|
127
126
|
requirement: !ruby/object:Gem::Requirement
|
@@ -262,20 +261,6 @@ dependencies:
|
|
262
261
|
- - "~>"
|
263
262
|
- !ruby/object:Gem::Version
|
264
263
|
version: 0.22.0
|
265
|
-
- !ruby/object:Gem::Dependency
|
266
|
-
name: sprockets-rails
|
267
|
-
requirement: !ruby/object:Gem::Requirement
|
268
|
-
requirements:
|
269
|
-
- - "~>"
|
270
|
-
- !ruby/object:Gem::Version
|
271
|
-
version: '3.5'
|
272
|
-
type: :development
|
273
|
-
prerelease: false
|
274
|
-
version_requirements: !ruby/object:Gem::Requirement
|
275
|
-
requirements:
|
276
|
-
- - "~>"
|
277
|
-
- !ruby/object:Gem::Version
|
278
|
-
version: '3.5'
|
279
264
|
- !ruby/object:Gem::Dependency
|
280
265
|
name: sqlite3
|
281
266
|
requirement: !ruby/object:Gem::Requirement
|
@@ -300,7 +285,6 @@ files:
|
|
300
285
|
- MIT-LICENSE
|
301
286
|
- README.md
|
302
287
|
- Rakefile
|
303
|
-
- app/assets/config/rush_job_manifest.js
|
304
288
|
- app/assets/images/rush_job/arrow-down-dark.svg
|
305
289
|
- app/assets/images/rush_job/arrow-down-light.svg
|
306
290
|
- app/assets/images/rush_job/arrow-up-dark.svg
|
@@ -310,12 +294,6 @@ files:
|
|
310
294
|
- app/assets/javascript/rush_job/controllers/rush_job_polling_controller.js
|
311
295
|
- app/assets/javascript/rush_job/controllers/rush_job_reload_jobs_table_controller.js
|
312
296
|
- app/assets/javascript/rush_job/controllers/rush_job_table_update_controller.js
|
313
|
-
- app/assets/stylesheets/rush_job/application.scss
|
314
|
-
- app/assets/stylesheets/rush_job/components/_pagination.scss
|
315
|
-
- app/assets/stylesheets/rush_job/components/_polling.scss
|
316
|
-
- app/assets/stylesheets/rush_job/pages/_rush_jobs_index.scss
|
317
|
-
- app/assets/stylesheets/rush_job/themes/_dark.scss
|
318
|
-
- app/assets/stylesheets/rush_job/themes/_light.scss
|
319
297
|
- app/controllers/rush_job/application_controller.rb
|
320
298
|
- app/controllers/rush_job/dashboard_controller.rb
|
321
299
|
- app/controllers/rush_job/rush_jobs_controller.rb
|
@@ -345,7 +323,6 @@ files:
|
|
345
323
|
- lib/rush_job/engine.rb
|
346
324
|
- lib/rush_job/version.rb
|
347
325
|
- lib/tasks/rush_job_tasks.rake
|
348
|
-
- vendor/stylesheets/rush_job/bootstrap.css
|
349
326
|
homepage: https://github.com/JavaKoala/rush_job
|
350
327
|
licenses:
|
351
328
|
- MIT
|
@@ -354,7 +331,6 @@ metadata:
|
|
354
331
|
source_code_uri: https://github.com/JavaKoala/rush_job
|
355
332
|
changelog_uri: https://github.com/JavaKoala/rush_job
|
356
333
|
rubygems_mfa_required: 'true'
|
357
|
-
post_install_message:
|
358
334
|
rdoc_options: []
|
359
335
|
require_paths:
|
360
336
|
- lib
|
@@ -369,8 +345,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
369
345
|
- !ruby/object:Gem::Version
|
370
346
|
version: '0'
|
371
347
|
requirements: []
|
372
|
-
rubygems_version: 3.
|
373
|
-
signing_key:
|
348
|
+
rubygems_version: 3.6.2
|
374
349
|
specification_version: 4
|
375
350
|
summary: User interface for delayed_job
|
376
351
|
test_files: []
|
@@ -1,19 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
-
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
-
* It is generally better to create a new file per style scope.
|
12
|
-
*
|
13
|
-
*/
|
14
|
-
@import "../../../vendor/stylesheets/rush_job/bootstrap";
|
15
|
-
@import "components/pagination";
|
16
|
-
@import "components/polling";
|
17
|
-
@import "themes/dark";
|
18
|
-
@import "themes/light";
|
19
|
-
@import "pages/rush_jobs_index";
|
@@ -1,15 +0,0 @@
|
|
1
|
-
.page-link.disabled, .disabled > .page-link {
|
2
|
-
color: rgb(68, 110, 155);
|
3
|
-
}
|
4
|
-
|
5
|
-
.page-item:first-child .page-link {
|
6
|
-
color: rgb(68, 110, 155);
|
7
|
-
}
|
8
|
-
|
9
|
-
.page-item:last-child .page-link {
|
10
|
-
color: rgb(68, 110, 155);
|
11
|
-
}
|
12
|
-
|
13
|
-
.page-link {
|
14
|
-
color: rgb(68, 110, 155);
|
15
|
-
}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
.polling-container {
|
2
|
-
margin-left: 5%;
|
3
|
-
margin-right: 5%;
|
4
|
-
}
|
5
|
-
|
6
|
-
.polling-range-form-label-dark {
|
7
|
-
color: rgb(0, 0, 0);
|
8
|
-
margin-bottom: 0.5rem;
|
9
|
-
}
|
10
|
-
|
11
|
-
.polling-range-form-label-light {
|
12
|
-
color: rgb(255, 255, 255);
|
13
|
-
margin-bottom: 0.5rem;
|
14
|
-
}
|
15
|
-
|
16
|
-
.form-check-label-dark {
|
17
|
-
color: rgb(0, 0, 0);
|
18
|
-
}
|
19
|
-
|
20
|
-
.form-check-label-light {
|
21
|
-
color: rgb(255, 255, 255);
|
22
|
-
}
|
23
|
-
|
24
|
-
.table-refresh {
|
25
|
-
opacity: 0.3;
|
26
|
-
}
|