rush_job_mongoid 1.0.2 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/app/assets/javascript/rush_job_mongoid/application.js +3 -3
- data/app/assets/javascript/rush_job_mongoid/controllers/rush_job_mongoid_confirm_controller.js +11 -0
- data/app/assets/javascript/rush_job_mongoid/controllers/rush_job_mongoid_table_update_controller.js +10 -6
- data/app/controllers/rush_job_mongoid/dashboard_controller.rb +5 -0
- data/app/controllers/rush_job_mongoid/rush_jobs_controller.rb +6 -1
- data/app/models/rush_job_mongoid/rush_job.rb +4 -0
- data/app/views/layouts/rush_job_mongoid/_navbar.html.erb +13 -3
- data/app/views/rush_job_mongoid/dashboard/_dashboard_tables.html.erb +35 -31
- data/app/views/rush_job_mongoid/dashboard/_queues_table.html.erb +6 -1
- data/app/views/rush_job_mongoid/dashboard/index.html.erb +1 -3
- data/app/views/rush_job_mongoid/dashboard/index.turbo_stream.erb +7 -0
- data/app/views/rush_job_mongoid/rush_jobs/_jobs_table.html.erb +49 -41
- data/app/views/rush_job_mongoid/rush_jobs/edit.html.erb +7 -2
- data/app/views/rush_job_mongoid/rush_jobs/index.html.erb +1 -3
- data/app/views/rush_job_mongoid/rush_jobs/index.turbo_stream.erb +6 -0
- data/app/views/rush_job_mongoid/shared/_pagination_link.html.erb +5 -2
- data/config/importmap.rb +1 -1
- data/lib/rush_job_mongoid/version.rb +1 -1
- metadata +34 -19
- data/app/views/rush_job_mongoid/dashboard/index.js.erb +0 -3
- data/app/views/rush_job_mongoid/rush_jobs/index.js.erb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfe3e243025032efc67c34edd6acc243999d62de370ffbd8773d483ccccb639d
|
4
|
+
data.tar.gz: 687116c6dad0b2fd37b23e63d21ef08da63d2236f3ced42335d1fdaca31ece9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec16e5c8b09cd397694ae254ce88452d31f21328f4e3508924ef5a274eb52e1dbe6a9886e9f23a35d14476b9f61ec80b617c3d40e3c809d647cafb2488995202
|
7
|
+
data.tar.gz: 6562c846568c565c98c24ccd2cd2f5e5ffebd5c084f05cba0ffcdd9833e99f4786dad70142bf6ecd35d9f5493a21d22321c3fbf5cf115d5f4c1f94b2cf64710e
|
data/README.md
CHANGED
@@ -30,7 +30,7 @@ Queues on the dashboard are eager loaded. If there are lots of queues this can a
|
|
30
30
|
Add this line to your Ruby on Rails application's Gemfile:
|
31
31
|
|
32
32
|
```ruby
|
33
|
-
gem '
|
33
|
+
gem 'rush_job_mongoid', '~> 1.2.0'
|
34
34
|
```
|
35
35
|
|
36
36
|
And then execute:
|
@@ -53,8 +53,8 @@ Open an issue or
|
|
53
53
|
3. `bundle exec brakeman`
|
54
54
|
4. Open pull request
|
55
55
|
|
56
|
-
##
|
57
|
-
|
56
|
+
## Turbo
|
57
|
+
This gem uses turbo-rails, https://github.com/hotwired/turbo-rails. For Rails UJS fork from v1.0.2
|
58
58
|
|
59
59
|
## License
|
60
60
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { Application } from '@hotwired/stimulus';
|
2
|
-
import
|
2
|
+
import RushJobMongoidConfirmController from './controllers/rush_job_mongoid_confirm_controller';
|
3
3
|
import RushJobMongoidFiltersController from './controllers/rush_job_mongoid_filters_controller';
|
4
4
|
import RushJobMongoidPollingController from './controllers/rush_job_mongoid_polling_controller';
|
5
5
|
import RushJobMongoidReloadJobsTableController from './controllers/rush_job_mongoid_reload_jobs_table_controller';
|
6
6
|
import 'bootstrap';
|
7
|
-
|
8
|
-
Rails.start();
|
7
|
+
import '@hotwired/turbo-rails';
|
9
8
|
|
10
9
|
window.Stimulus = Application.start();
|
10
|
+
Stimulus.register('rush-job-mongoid-confirm', RushJobMongoidConfirmController);
|
11
11
|
Stimulus.register('rush-job-mongoid-filter', RushJobMongoidFiltersController);
|
12
12
|
Stimulus.register('rush-job-mongoid-polling', RushJobMongoidPollingController);
|
13
13
|
Stimulus.register('rush-job-mongoid-reload-jobs-table', RushJobMongoidReloadJobsTableController);
|
data/app/assets/javascript/rush_job_mongoid/controllers/rush_job_mongoid_confirm_controller.js
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
import { Controller } from '@hotwired/stimulus';
|
2
|
+
|
3
|
+
export default class RushJobMongoidConfirmController extends Controller {
|
4
|
+
displayConfirm(e) {
|
5
|
+
const confirmMessage = e.target.dataset.confirmMessage;
|
6
|
+
|
7
|
+
if (confirm(confirmMessage) !== true) {
|
8
|
+
e.preventDefault();
|
9
|
+
}
|
10
|
+
}
|
11
|
+
}
|
data/app/assets/javascript/rush_job_mongoid/controllers/rush_job_mongoid_table_update_controller.js
CHANGED
@@ -1,19 +1,23 @@
|
|
1
1
|
import { Controller } from '@hotwired/stimulus';
|
2
|
-
import Rails from '@rails/ujs';
|
3
2
|
|
4
3
|
export class RushJobMongoidTableUpdateController extends Controller {
|
5
4
|
updateJobs() {
|
5
|
+
const headers = { 'Accept': 'text/vnd.turbo-stream.html' };
|
6
|
+
|
6
7
|
this.blurTable();
|
8
|
+
this.clearFlash();
|
7
9
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
dataType: 'script',
|
12
|
-
});
|
10
|
+
fetch(document.location.href, { headers: headers })
|
11
|
+
.then(response => response.text())
|
12
|
+
.then(html => Turbo.renderStreamMessage(html));
|
13
13
|
}
|
14
14
|
|
15
15
|
blurTable() {
|
16
16
|
const jobsContainer = document.getElementById('rush-job-mongoid-jobs');
|
17
17
|
jobsContainer.classList.add('table-refresh');
|
18
18
|
}
|
19
|
+
|
20
|
+
clearFlash() {
|
21
|
+
document.getElementById('rush-job-mongoid-flash-messages').innerHTML = '';
|
22
|
+
}
|
19
23
|
}
|
@@ -6,6 +6,11 @@ module RushJobMongoid
|
|
6
6
|
@locked_jobs_presenter = PaginationPresenter.new(params[:locked_jobs_page])
|
7
7
|
@locked_jobs = LockedJobs.new(filter_params)
|
8
8
|
@queues_presenter = QueueGroupsPresenter.new(params[:queue_groups_page]) if queue_groups_enabled?
|
9
|
+
|
10
|
+
respond_to do |format|
|
11
|
+
format.html
|
12
|
+
format.turbo_stream
|
13
|
+
end
|
9
14
|
end
|
10
15
|
|
11
16
|
def destroy
|
@@ -5,6 +5,11 @@ module RushJobMongoid
|
|
5
5
|
def index
|
6
6
|
@pagination_presenter = PaginationPresenter.new(params[:page])
|
7
7
|
@rush_jobs = RushJob.filter(filter_params).locked_by_desc.paginate(@pagination_presenter.page, 20)
|
8
|
+
|
9
|
+
respond_to do |format|
|
10
|
+
format.html
|
11
|
+
format.turbo_stream
|
12
|
+
end
|
8
13
|
end
|
9
14
|
|
10
15
|
def edit
|
@@ -16,7 +21,7 @@ module RushJobMongoid
|
|
16
21
|
flash[:success] = t(:updated_job, job_id: @job.id)
|
17
22
|
redirect_to rush_jobs_path(doc_id: @job.id)
|
18
23
|
else
|
19
|
-
flash[:danger] = t(:unable_to_update, errors: @job.
|
24
|
+
flash.now[:danger] = t(:unable_to_update, errors: @job.error_message)
|
20
25
|
render :edit, status: :unprocessable_entity
|
21
26
|
end
|
22
27
|
end
|
@@ -49,18 +49,28 @@
|
|
49
49
|
</a>
|
50
50
|
<div class="dropdown-menu"
|
51
51
|
data-bs-popper="static">
|
52
|
-
<%= button_to t("#{invert_theme}_mode"),
|
52
|
+
<%= button_to t("#{invert_theme}_mode"),
|
53
|
+
settings_path, class: "nav-link",
|
54
|
+
method: :patch,
|
55
|
+
params: { setting: 'theme' },
|
56
|
+
data: { turbo: false } %>
|
53
57
|
<%= button_to t("#{editing_enabled? ? 'disable_editing' : 'enable_editing'}"),
|
54
58
|
settings_path,
|
55
59
|
class: "nav-link",
|
56
60
|
method: :patch,
|
57
61
|
params: { setting: 'editing' },
|
58
|
-
data: {
|
62
|
+
data: {
|
63
|
+
turbo: false,
|
64
|
+
controller: 'rush-job-mongoid-confirm',
|
65
|
+
action: 'click->rush-job-mongoid-confirm#displayConfirm',
|
66
|
+
confirm_message: t("#{editing_enabled? ? 'disable_editing_confirmation' : 'enable_editing_confirmation'}")
|
67
|
+
} %>
|
59
68
|
<%= button_to t("#{queue_groups_enabled? ? 'disable_queues' : 'enable_queues'}"),
|
60
69
|
settings_path,
|
61
70
|
class: "nav-link",
|
62
71
|
method: :patch,
|
63
|
-
params: { setting: 'queue_groups_presenter' }
|
72
|
+
params: { setting: 'queue_groups_presenter' },
|
73
|
+
data: { turbo: false } %>
|
64
74
|
</div>
|
65
75
|
</li>
|
66
76
|
</ul>
|
@@ -1,34 +1,38 @@
|
|
1
|
-
|
2
|
-
<div
|
3
|
-
<div
|
4
|
-
<
|
5
|
-
<
|
6
|
-
<
|
7
|
-
<
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
<
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
1
|
+
<%= turbo_frame_tag 'rush_job_mongoid_dashboard_frame' do %>
|
2
|
+
<div id="rush-job-mongoid-jobs">
|
3
|
+
<div id="rush-job-mongoid-dashboard-locked-jobs">
|
4
|
+
<div class="d-flex justify-content-left">
|
5
|
+
<div class="table-responsive">
|
6
|
+
<table class="table table-bordered table-striped">
|
7
|
+
<thead>
|
8
|
+
<tr>
|
9
|
+
<th><%= t :id %></th>
|
10
|
+
<th><%= t :locked_at %></th>
|
11
|
+
<th><%= t :locked_by %></th>
|
12
|
+
<th><%= t :job_class %></th>
|
13
|
+
<th><%= t :arguments %></th>
|
14
|
+
</tr>
|
15
|
+
</thead>
|
16
|
+
<tbody>
|
17
|
+
<% @locked_jobs.paginate(@locked_jobs_presenter.page).each do |job| %>
|
18
|
+
<tr>
|
19
|
+
<td><%= job.id %></td>
|
20
|
+
<td><%= job.locked_at %></td>
|
21
|
+
<td><%= job.locked_by %></td>
|
22
|
+
<td><%= job.job_class %></td>
|
23
|
+
<td><%= job.job_arguments %></td>
|
24
|
+
</tr>
|
25
|
+
<% end %>
|
26
|
+
</tbody>
|
27
|
+
</table>
|
28
|
+
</div>
|
29
|
+
</div>
|
28
30
|
|
29
|
-
|
30
|
-
</div>
|
31
|
+
<%= render 'rush_job_mongoid/shared/pagination', controller: 'dashboard', pagination_param: 'locked_jobs_page', pages_count: @locked_jobs_presenter.pages(@locked_jobs.jobs.count, 10), page: @locked_jobs_presenter.page %>
|
32
|
+
</div>
|
31
33
|
|
32
|
-
<% if queue_groups_enabled? %>
|
33
|
-
|
34
|
+
<% if queue_groups_enabled? %>
|
35
|
+
<%= render 'queues_table' %>
|
36
|
+
<% end %>
|
37
|
+
</div>
|
34
38
|
<% end %>
|
@@ -26,7 +26,12 @@
|
|
26
26
|
class: "btn btn-danger btn-sm",
|
27
27
|
method: :delete,
|
28
28
|
params: { queue: group[:queue], priority: group[:priority] },
|
29
|
-
data: {
|
29
|
+
data: {
|
30
|
+
turbo: false,
|
31
|
+
controller: 'rush-job-mongoid-confirm',
|
32
|
+
action: 'click->rush-job-mongoid-confirm#displayConfirm',
|
33
|
+
confirm_message: t(:clear_queue_confirmation, queue: group[:queue])
|
34
|
+
} %></td>
|
30
35
|
<% end %>
|
31
36
|
</tr>
|
32
37
|
<% end %>
|
@@ -1,43 +1,51 @@
|
|
1
|
-
|
2
|
-
<
|
3
|
-
<
|
4
|
-
|
5
|
-
<
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
<
|
22
|
-
<%
|
23
|
-
<
|
1
|
+
<%= turbo_frame_tag 'rush_job_mongoid_jobs_frame' do %>
|
2
|
+
<div id="rush-job-mongoid-jobs">
|
3
|
+
<table class="table table-bordered table-striped">
|
4
|
+
<thead>
|
5
|
+
<tr>
|
6
|
+
<% if editing_enabled? %>
|
7
|
+
<th></th>
|
8
|
+
<% end %>
|
9
|
+
<th><%= t :priority %></th>
|
10
|
+
<th><%= t :attempts %></th>
|
11
|
+
<th><%= t :job_class %></th>
|
12
|
+
<th><%= t :arguments %></th>
|
13
|
+
<th><%= t :run_at %></th>
|
14
|
+
<th><%= t :locked_at %></th>
|
15
|
+
<th><%= t :locked_by %></th>
|
16
|
+
<th><%= t :failed_at %></th>
|
17
|
+
<th><%= t :last_error %></th>
|
18
|
+
<th><%= t :queue %></th>
|
19
|
+
</tr>
|
20
|
+
</thead>
|
21
|
+
<tbody>
|
22
|
+
<% @rush_jobs.each do |job| %>
|
23
|
+
<tr>
|
24
|
+
<% if editing_enabled? %>
|
25
|
+
<td><%= link_to image_tag("rush_job_mongoid/pencil-square-#{invert_theme}.svg",
|
26
|
+
id: "rush-job-mongoid-pencil-square-#{job.id}",
|
27
|
+
alt: 'pencil square'), edit_rush_job_path(job.id),
|
28
|
+
target: '_top' %>
|
29
|
+
</td>
|
30
|
+
<% end %>
|
31
|
+
<td><%= job.priority %></td>
|
32
|
+
<td><%= job.attempts %></td>
|
33
|
+
<td><%= job.job_class %></td>
|
34
|
+
<td><%= job.job_arguments %></td>
|
35
|
+
<td><%= job.run_at %></td>
|
36
|
+
<td><%= job.locked_at %></td>
|
37
|
+
<td><%= job.locked_by %></td>
|
38
|
+
<td><%= job.failed_at %></td>
|
39
|
+
<td><%= job.last_error %></td>
|
40
|
+
<td><%= job.queue %></td>
|
41
|
+
</tr>
|
24
42
|
<% end %>
|
25
|
-
|
26
|
-
|
27
|
-
<td><%= job.job_class %></td>
|
28
|
-
<td><%= job.job_arguments %></td>
|
29
|
-
<td><%= job.run_at %></td>
|
30
|
-
<td><%= job.locked_at %></td>
|
31
|
-
<td><%= job.locked_by %></td>
|
32
|
-
<td><%= job.failed_at %></td>
|
33
|
-
<td><%= job.last_error %></td>
|
34
|
-
<td><%= job.queue %></td>
|
35
|
-
</tr>
|
36
|
-
<% end %>
|
37
|
-
</tbody>
|
38
|
-
</table>
|
43
|
+
</tbody>
|
44
|
+
</table>
|
39
45
|
|
40
|
-
<%= render 'rush_job_mongoid/shared/pagination', controller: 'rush_jobs',
|
41
|
-
|
42
|
-
|
43
|
-
|
46
|
+
<%= render 'rush_job_mongoid/shared/pagination', controller: 'rush_jobs',
|
47
|
+
pagination_param: 'page',
|
48
|
+
pages_count: @pagination_presenter.pages(RushJobMongoid::RushJob.filter(filter_param_query).count, 20),
|
49
|
+
page: @pagination_presenter.page %>
|
50
|
+
</div>
|
51
|
+
<% end %>
|
@@ -39,7 +39,7 @@
|
|
39
39
|
<%= form.label :queue, t(:queue), class: 'form-label' %>
|
40
40
|
<%= form.text_field :queue, class: 'form-control' %>
|
41
41
|
</div>
|
42
|
-
<%= form.submit t(:update), class: 'btn btn-primary' %>
|
42
|
+
<%= form.submit t(:update), class: 'btn btn-primary', data: { turbo: false } %>
|
43
43
|
<% end %>
|
44
44
|
|
45
45
|
<div class="mt-3">
|
@@ -47,5 +47,10 @@
|
|
47
47
|
rush_job_url(@job),
|
48
48
|
class: "btn btn-danger",
|
49
49
|
method: :delete,
|
50
|
-
data: {
|
50
|
+
data: {
|
51
|
+
turbo: false,
|
52
|
+
controller: 'rush-job-mongoid-confirm',
|
53
|
+
action: 'click->rush-job-mongoid-confirm#displayConfirm',
|
54
|
+
confirm_message: t(:delete_job_confirmation, job_id: @job.id)
|
55
|
+
} %>
|
51
56
|
</div>
|
@@ -1,3 +1,6 @@
|
|
1
1
|
<li class="page-item">
|
2
|
-
<%= link_to link_display,
|
3
|
-
|
2
|
+
<%= link_to link_display,
|
3
|
+
{ controller: controller, params: request.parameters.merge(pagination_param => page) },
|
4
|
+
class: link_class,
|
5
|
+
target: '_top' %>
|
6
|
+
</li>
|
data/config/importmap.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
pin 'rush_job_mongoid/application', preload: true
|
2
2
|
pin 'bootstrap', to: 'https://ga.jspm.io/npm:bootstrap@5.3.1/dist/js/bootstrap.esm.js'
|
3
3
|
pin '@popperjs/core', to: 'https://ga.jspm.io/npm:@popperjs/core@2.11.8/lib/index.js'
|
4
|
-
pin '@rails/ujs', to: 'https://ga.jspm.io/npm:@rails/ujs@7.0.6/lib/assets/compiled/rails-ujs.js'
|
5
4
|
pin '@hotwired/stimulus', to: 'https://ga.jspm.io/npm:@hotwired/stimulus@3.2.2/dist/stimulus.js'
|
5
|
+
pin '@hotwired/turbo-rails', to: 'turbo.min.js', preload: true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rush_job_mongoid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
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-
|
11
|
+
date: 2024-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|
@@ -39,75 +39,89 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '7.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: delayed_job
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '4.1'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '4.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: delayed_job_mongoid
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '3.0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '3.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: importmap-rails
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '2.
|
75
|
+
version: '2.0'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '2.
|
82
|
+
version: '2.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: mongoid
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '9.0'
|
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: '
|
96
|
+
version: '9.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: sassc-rails
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '2.1'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '2.1'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: turbo-rails
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '2.0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '2.0'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: brakeman
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -278,6 +292,7 @@ files:
|
|
278
292
|
- app/assets/images/rush_job_mongoid/pencil-square-dark.svg
|
279
293
|
- app/assets/images/rush_job_mongoid/pencil-square-light.svg
|
280
294
|
- app/assets/javascript/rush_job_mongoid/application.js
|
295
|
+
- app/assets/javascript/rush_job_mongoid/controllers/rush_job_mongoid_confirm_controller.js
|
281
296
|
- app/assets/javascript/rush_job_mongoid/controllers/rush_job_mongoid_filters_controller.js
|
282
297
|
- app/assets/javascript/rush_job_mongoid/controllers/rush_job_mongoid_polling_controller.js
|
283
298
|
- app/assets/javascript/rush_job_mongoid/controllers/rush_job_mongoid_reload_jobs_table_controller.js
|
@@ -304,11 +319,11 @@ files:
|
|
304
319
|
- app/views/rush_job_mongoid/dashboard/_dashboard_tables.html.erb
|
305
320
|
- app/views/rush_job_mongoid/dashboard/_queues_table.html.erb
|
306
321
|
- app/views/rush_job_mongoid/dashboard/index.html.erb
|
307
|
-
- app/views/rush_job_mongoid/dashboard/index.
|
322
|
+
- app/views/rush_job_mongoid/dashboard/index.turbo_stream.erb
|
308
323
|
- app/views/rush_job_mongoid/rush_jobs/_jobs_table.html.erb
|
309
324
|
- app/views/rush_job_mongoid/rush_jobs/edit.html.erb
|
310
325
|
- app/views/rush_job_mongoid/rush_jobs/index.html.erb
|
311
|
-
- app/views/rush_job_mongoid/rush_jobs/index.
|
326
|
+
- app/views/rush_job_mongoid/rush_jobs/index.turbo_stream.erb
|
312
327
|
- app/views/rush_job_mongoid/shared/_pagination.html.erb
|
313
328
|
- app/views/rush_job_mongoid/shared/_pagination_link.html.erb
|
314
329
|
- app/views/rush_job_mongoid/shared/_polling.html.erb
|
@@ -1,3 +0,0 @@
|
|
1
|
-
document.getElementById('rush-job-mongoid-flash-messages').innerHTML = "<%= j (render partial: 'layouts/rush_job_mongoid/flash_messages') %>"
|
2
|
-
document.getElementById('rush-job-mongoid-jobs').innerHTML = "<%= j (render partial: 'dashboard_tables') %>"
|
3
|
-
document.getElementById('rush-job-mongoid-jobs').classList.remove('table-refresh');
|
@@ -1,3 +0,0 @@
|
|
1
|
-
document.getElementById('rush-job-mongoid-flash-messages').innerHTML = "<%= j (render partial: 'layouts/rush_job_mongoid/flash_messages') %>"
|
2
|
-
document.getElementById('rush-job-mongoid-jobs').innerHTML = "<%= j (render partial: 'jobs_table') %>"
|
3
|
-
document.getElementById('rush-job-mongoid-jobs').classList.remove('table-refresh');
|