rush_job 1.1.2 → 1.2.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/README.md +1 -1
- data/app/assets/javascript/rush_job/application.js +3 -3
- data/app/assets/javascript/rush_job/controllers/rush_job_polling_controller.js +1 -1
- data/app/assets/javascript/rush_job/controllers/rush_job_reload_jobs_table_controller.js +1 -1
- data/app/assets/javascript/rush_job/controllers/rush_job_table_update_controller.js +13 -4
- data/config/importmap.rb +4 -0
- data/lib/rush_job/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0eb9df24e7c11682daffe5668b62cf2a990221e660e2caa24013a2ce213895b8
|
4
|
+
data.tar.gz: 91b6504b8ef25c7cc6d127f07e443a5809f21ada4d9401cce5644e78179ea480
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d15e808676c9eaa01d10c795898d8a545d2885544010a788a664281a25b6f4ab984b640c2ecd9335e1b2adb48f473d1c49d9edb9a00af69f1d02f9bd8e2cbfa3
|
7
|
+
data.tar.gz: 92bd89d583eb12ff8e82c751cffd7fb364b35f9eb3143b9cedeca0656514980175a016e1cccc094ec21b44a599c2b7e4965bd8798e65f3fb866a5643c1c207bc
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Application } from '@hotwired/stimulus';
|
2
|
-
import RushJobConfirmController from '
|
3
|
-
import RushJobPollingController from '
|
4
|
-
import RushJobReloadJobsTableController from '
|
2
|
+
import RushJobConfirmController from 'rush_job/controllers/rush_job_confirm_controller';
|
3
|
+
import RushJobPollingController from 'rush_job/controllers/rush_job_polling_controller';
|
4
|
+
import RushJobReloadJobsTableController from 'rush_job/controllers/rush_job_reload_jobs_table_controller';
|
5
5
|
import 'bootstrap';
|
6
6
|
import '@hotwired/turbo-rails';
|
7
7
|
|
@@ -1,15 +1,24 @@
|
|
1
1
|
import { Controller } from '@hotwired/stimulus';
|
2
2
|
|
3
3
|
export class RushJobTableUpdateController extends Controller {
|
4
|
-
updateJobs() {
|
4
|
+
async updateJobs() {
|
5
5
|
const headers = { 'Accept': 'text/vnd.turbo-stream.html' };
|
6
6
|
|
7
7
|
this.blurTable();
|
8
8
|
this.clearFlash();
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
try {
|
11
|
+
const response = await fetch(document.location.href, { headers: headers })
|
12
|
+
|
13
|
+
if (!response.ok) {
|
14
|
+
throw new Error(`Failed to fetch job data. Status: ${response.status}`);
|
15
|
+
}
|
16
|
+
|
17
|
+
const response_text = await response.text();
|
18
|
+
Turbo.renderStreamMessage(response_text);
|
19
|
+
} catch (error) {
|
20
|
+
console.error(error.message);
|
21
|
+
}
|
13
22
|
}
|
14
23
|
|
15
24
|
blurTable() {
|
data/config/importmap.rb
CHANGED
@@ -1,4 +1,8 @@
|
|
1
1
|
pin 'rush_job/application', preload: true
|
2
|
+
pin 'rush_job/controllers/rush_job_confirm_controller', preload: true
|
3
|
+
pin 'rush_job/controllers/rush_job_polling_controller', preload: true
|
4
|
+
pin 'rush_job/controllers/rush_job_reload_jobs_table_controller', preload: true
|
5
|
+
pin 'rush_job/controllers/rush_job_table_update_controller', preload: true
|
2
6
|
pin 'bootstrap', to: 'https://ga.jspm.io/npm:bootstrap@5.3.1/dist/js/bootstrap.esm.js'
|
3
7
|
pin '@popperjs/core', to: 'https://ga.jspm.io/npm:@popperjs/core@2.11.8/lib/index.js'
|
4
8
|
pin '@hotwired/stimulus', to: 'https://ga.jspm.io/npm:@hotwired/stimulus@3.2.2/dist/stimulus.js'
|
data/lib/rush_job/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rush_job
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JavaKoala
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '2.
|
89
|
+
version: '2.1'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '2.
|
96
|
+
version: '2.1'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: pagy
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|