rush_job_mongoid 1.5.0 → 1.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4299628853a978d30ae8aebe0d641ecd811d3b663bbf3fc1217f32767fdb9537
4
- data.tar.gz: 001601df04520cb90687811262bb9b6ebe44492ad21824b04c1c81d7ea755af3
3
+ metadata.gz: d754ff815789ca8996daa4c0b7ad06653f58b85f3669ef9e1886962fd425bc2e
4
+ data.tar.gz: 8718d81b3587be62744ff69a1b305042ded8a827e9402ff963bd57c2ad8d074f
5
5
  SHA512:
6
- metadata.gz: 70b2bfd96db812000a29158167cc91a124abd3ea9b6d27ae4e1af5135ea1450d60b7d41ab483f49f8903b83e360a3a6f51dae3ca22ea33137acc8309b4724e6a
7
- data.tar.gz: 78ba438b4b0076facf55a418fd779852e3b11383fb4835d680941f0bc44b5e2d28b63e20eaf3c25f1a820d28d2465bce725680f1163f790e79e12f67cc56743c
6
+ metadata.gz: 0f2dc1070d54badc0d042aa03077d82ec25ccb0feddb523849f442efc130551259d6af6ec5ab309f8e62696a5e1868c19cb6682f717990cd3058b6f73a21e379
7
+ data.tar.gz: 9afe86a6f61d63d8fa00ff666197c61911c4723ba2931bccc2ecc62fd730985c242e2e32d70e22df891b65f3665de632b73f8b2db0e4bb7c93faddf7fcd00b78
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright JavaKoala
1
+ Copyright 2025 JavaKoala
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
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 'rush_job_mongoid', '~> 1.5'
33
+ gem 'rush_job_mongoid', '~> 1.6'
34
34
  ```
35
35
 
36
36
  And then execute:
@@ -56,5 +56,10 @@ Open an issue or
56
56
  ## Turbo
57
57
  This gem uses turbo-rails, https://github.com/hotwired/turbo-rails. For Rails UJS fork from v1.0.2
58
58
 
59
+ ## Propshaft
60
+ This gem uses propshaft, https://github.com/rails/propshaft, and uses a CDN for Bootstrap CSS https://www.jsdelivr.com/package/npm/bootswatch
61
+
62
+ For the previous bundled CSS and sprockets fork from v1.5.0
63
+
59
64
  ## License
60
65
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -23,7 +23,7 @@ export class RushJobMongoidTableUpdateController extends Controller {
23
23
 
24
24
  blurTable() {
25
25
  const jobsContainer = document.getElementById('rush-job-mongoid-jobs');
26
- jobsContainer.classList.add('table-refresh');
26
+ jobsContainer.classList.add('opacity-25');
27
27
  }
28
28
 
29
29
  clearFlash() {
@@ -48,15 +48,15 @@ module RushJobMongoid
48
48
  end
49
49
 
50
50
  def update_params
51
- params.require(:rush_job).permit(:priority,
52
- :attempts,
53
- :handler,
54
- :run_at,
55
- :locked_at,
56
- :locked_by,
57
- :failed_at,
58
- :last_error,
59
- :queue)
51
+ params.expect(rush_job: %i[priority
52
+ attempts
53
+ handler
54
+ run_at
55
+ locked_at
56
+ locked_by
57
+ failed_at
58
+ last_error
59
+ queue])
60
60
  end
61
61
  end
62
62
  end
@@ -12,9 +12,7 @@ module RushJobMongoid
12
12
  @queue_groups_presenter.pages(@rush_job_queue_groups.count, 10)
13
13
  end
14
14
 
15
- def page
16
- @queue_groups_presenter.page
17
- end
15
+ delegate :page, to: :@queue_groups_presenter
18
16
 
19
17
  private
20
18
 
@@ -9,7 +9,7 @@
9
9
  <%= javascript_importmap_tags %>
10
10
  <%= javascript_import_module_tag "rush_job_mongoid/application" %>
11
11
 
12
- <%= stylesheet_link_tag "rush_job_mongoid/application", media: "all" %>
12
+ <link href="https://cdn.jsdelivr.net/npm/bootswatch@5.3.3/dist/spacelab/bootstrap.min.css" rel="stylesheet">
13
13
  </head>
14
14
  <body data-bs-theme=<%= current_theme %>>
15
15
  <%= render 'layouts/rush_job_mongoid/navbar' %>
@@ -17,7 +17,7 @@
17
17
  <%= render 'layouts/rush_job_mongoid/flash_messages' %>
18
18
  </div>
19
19
 
20
- <div class="jobs-container">
20
+ <div class="mx-4">
21
21
  <%= yield %>
22
22
  </div>
23
23
 
@@ -1,7 +1,7 @@
1
1
  module RushJobMongoid
2
2
  require 'importmap-rails'
3
3
  require 'mongoid'
4
- require 'sassc-rails'
4
+ require 'propshaft'
5
5
 
6
6
  class Engine < ::Rails::Engine
7
7
  isolate_namespace RushJobMongoid
@@ -1,3 +1,3 @@
1
1
  module RushJobMongoid
2
- VERSION = '1.5.0'.freeze
2
+ VERSION = '1.6.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rush_job_mongoid
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - JavaKoala
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-02 00:00:00.000000000 Z
10
+ date: 2025-03-08 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: actionview
@@ -94,19 +94,19 @@ dependencies:
94
94
  - !ruby/object:Gem::Version
95
95
  version: '9.0'
96
96
  - !ruby/object:Gem::Dependency
97
- name: sassc-rails
97
+ name: propshaft
98
98
  requirement: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: '2.1'
102
+ version: '1.1'
103
103
  type: :runtime
104
104
  prerelease: false
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: '2.1'
109
+ version: '1.1'
110
110
  - !ruby/object:Gem::Dependency
111
111
  name: turbo-rails
112
112
  requirement: !ruby/object:Gem::Requirement
@@ -183,14 +183,14 @@ dependencies:
183
183
  requirements:
184
184
  - - "~>"
185
185
  - !ruby/object:Gem::Version
186
- version: '6.5'
186
+ version: '6.6'
187
187
  type: :development
188
188
  prerelease: false
189
189
  version_requirements: !ruby/object:Gem::Requirement
190
190
  requirements:
191
191
  - - "~>"
192
192
  - !ruby/object:Gem::Version
193
- version: '6.5'
193
+ version: '6.6'
194
194
  - !ruby/object:Gem::Dependency
195
195
  name: rubocop-capybara
196
196
  requirement: !ruby/object:Gem::Requirement
@@ -211,42 +211,42 @@ dependencies:
211
211
  requirements:
212
212
  - - "~>"
213
213
  - !ruby/object:Gem::Version
214
- version: 0.36.0
214
+ version: 0.37.1
215
215
  type: :development
216
216
  prerelease: false
217
217
  version_requirements: !ruby/object:Gem::Requirement
218
218
  requirements:
219
219
  - - "~>"
220
220
  - !ruby/object:Gem::Version
221
- version: 0.36.0
221
+ version: 0.37.1
222
222
  - !ruby/object:Gem::Dependency
223
223
  name: rubocop-rails
224
224
  requirement: !ruby/object:Gem::Requirement
225
225
  requirements:
226
226
  - - "~>"
227
227
  - !ruby/object:Gem::Version
228
- version: '2.28'
228
+ version: '2.30'
229
229
  type: :development
230
230
  prerelease: false
231
231
  version_requirements: !ruby/object:Gem::Requirement
232
232
  requirements:
233
233
  - - "~>"
234
234
  - !ruby/object:Gem::Version
235
- version: '2.28'
235
+ version: '2.30'
236
236
  - !ruby/object:Gem::Dependency
237
237
  name: selenium-webdriver
238
238
  requirement: !ruby/object:Gem::Requirement
239
239
  requirements:
240
240
  - - "~>"
241
241
  - !ruby/object:Gem::Version
242
- version: '4.27'
242
+ version: '4.29'
243
243
  type: :development
244
244
  prerelease: false
245
245
  version_requirements: !ruby/object:Gem::Requirement
246
246
  requirements:
247
247
  - - "~>"
248
248
  - !ruby/object:Gem::Version
249
- version: '4.27'
249
+ version: '4.29'
250
250
  - !ruby/object:Gem::Dependency
251
251
  name: simplecov
252
252
  requirement: !ruby/object:Gem::Requirement
@@ -261,20 +261,6 @@ dependencies:
261
261
  - - "~>"
262
262
  - !ruby/object:Gem::Version
263
263
  version: 0.22.0
264
- - !ruby/object:Gem::Dependency
265
- name: sprockets-rails
266
- requirement: !ruby/object:Gem::Requirement
267
- requirements:
268
- - - "~>"
269
- - !ruby/object:Gem::Version
270
- version: '3.5'
271
- type: :development
272
- prerelease: false
273
- version_requirements: !ruby/object:Gem::Requirement
274
- requirements:
275
- - - "~>"
276
- - !ruby/object:Gem::Version
277
- version: '3.5'
278
264
  description: Rails web interface for delayed_job using Rails::Engine and MongoDB
279
265
  email:
280
266
  - javakoala1@gmail.com
@@ -296,9 +282,6 @@ files:
296
282
  - app/assets/javascript/rush_job_mongoid/controllers/rush_job_mongoid_polling_controller.js
297
283
  - app/assets/javascript/rush_job_mongoid/controllers/rush_job_mongoid_reload_jobs_table_controller.js
298
284
  - app/assets/javascript/rush_job_mongoid/controllers/rush_job_mongoid_table_update_controller.js
299
- - app/assets/stylesheets/rush_job_mongoid/application.scss
300
- - app/assets/stylesheets/rush_job_mongoid/components/_polling.scss
301
- - app/assets/stylesheets/rush_job_mongoid/layout/_container.scss
302
285
  - app/controllers/rush_job_mongoid/application_controller.rb
303
286
  - app/controllers/rush_job_mongoid/dashboard_controller.rb
304
287
  - app/controllers/rush_job_mongoid/rush_jobs_controller.rb
@@ -333,7 +316,6 @@ files:
333
316
  - lib/rush_job_mongoid/engine.rb
334
317
  - lib/rush_job_mongoid/version.rb
335
318
  - lib/tasks/rush_job_mongoid_tasks.rake
336
- - vendor/stylesheets/rush_job_mongoid/bootstrap.css
337
319
  homepage: https://github.com/JavaKoala/rush_job_mongoid
338
320
  licenses:
339
321
  - MIT
@@ -1,16 +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_mongoid/bootstrap";
15
- @import "layout/container";
16
- @import "components/polling";
@@ -1,3 +0,0 @@
1
- .table-refresh {
2
- opacity: 0.3;
3
- }
@@ -1,4 +0,0 @@
1
- .jobs-container {
2
- margin-left: 5%;
3
- margin-right: 5%;
4
- }