rush_job_mongoid 1.2.0 → 1.3.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 +2 -2
- data/app/models/rush_job_mongoid/rush_job.rb +2 -4
- data/app/views/rush_job_mongoid/rush_jobs/edit.html.erb +2 -2
- data/app/views/rush_job_mongoid/rush_jobs/index.html.erb +1 -1
- data/config/locales/en.yml +2 -0
- data/lib/rush_job_mongoid/version.rb +1 -1
- metadata +24 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9515ce4b1fd90a74b0959c805981a82449cf3f28f00fe328a5e12753464e6355
|
4
|
+
data.tar.gz: 2e27a3e9ff1076261c2b10eedf9d590f44c065527899bf45cc5c7e6b6f773c6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 950e7a850279f648e49458dd338d91734c86a08047a7df1a2ffae2de5ee10468872e4b48d35b63f3019b80bda70e032816fe45a1d800ff44f71bdba1de31a21a
|
7
|
+
data.tar.gz: 3d4e87bd1e40fecc96cbef57558d3424b3051e1a806e0906825137449bf9015d7067592b7c467d43d7d809a98e7bf9ec1f61b4668e338010d404aac1211495cf
|
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.
|
33
|
+
gem 'rush_job_mongoid', '~> 1.3.0'
|
34
34
|
```
|
35
35
|
|
36
36
|
And then execute:
|
@@ -48,7 +48,7 @@ Open an issue or
|
|
48
48
|
1. Fork
|
49
49
|
2. Update
|
50
50
|
3. Test
|
51
|
-
1. `bundle exec rails
|
51
|
+
1. `bundle exec rails test:all` and check coverage in `test/coverage/index.html`
|
52
52
|
2. `bundle exec rubocop`
|
53
53
|
3. `bundle exec brakeman`
|
54
54
|
4. Open pull request
|
@@ -45,10 +45,8 @@ module RushJobMongoid
|
|
45
45
|
} }
|
46
46
|
]).to_a
|
47
47
|
|
48
|
-
group_result =
|
49
|
-
|
50
|
-
groups.each do |group|
|
51
|
-
group_result << { queue: group['_id']['queue'], priority: group['_id']['priority'], count: group['count'] }
|
48
|
+
group_result = groups.map do |group|
|
49
|
+
{ queue: group['_id']['queue'], priority: group['_id']['priority'], count: group['count'] }
|
52
50
|
end
|
53
51
|
|
54
52
|
group_result.sort_by! { |group| [group[:priority], group[:queue]] }
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<h3 class="text-body"
|
1
|
+
<h3 class="text-body"><%= t :edit_job %> <%= @job.id %></h3>
|
2
2
|
|
3
3
|
<%= link_to 'Back', :back, class: 'btn btn-primary btn-sm mb-3' %>
|
4
4
|
|
@@ -43,7 +43,7 @@
|
|
43
43
|
<% end %>
|
44
44
|
|
45
45
|
<div class="mt-3">
|
46
|
-
<%= button_to
|
46
|
+
<%= button_to t(:delete),
|
47
47
|
rush_job_url(@job),
|
48
48
|
class: "btn btn-danger",
|
49
49
|
method: :delete,
|
data/config/locales/en.yml
CHANGED
@@ -9,11 +9,13 @@ en:
|
|
9
9
|
dark_mode: "Dark Mode"
|
10
10
|
dashboard: "Dashboard"
|
11
11
|
delayed_title: "Delayed Jobs"
|
12
|
+
delete: "Delete"
|
12
13
|
deleted_job: "Deleted job %{job_id}"
|
13
14
|
delete_job_confirmation: "Are you sure you want to delete job %{job_id} ?"
|
14
15
|
disable_editing: "Disable Editing"
|
15
16
|
disable_editing_confirmation: "Are you sure?"
|
16
17
|
disable_queues: "Disable Queues"
|
18
|
+
edit_job: "Edit Job"
|
17
19
|
edit_warning: "Verify workers are stopped before editing. Minimal validations are applied."
|
18
20
|
enable_editing: "Enable Editing"
|
19
21
|
enable_editing_confirmation: "Are you sure? Verify workers are stopped before editing."
|
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.
|
4
|
+
version: 1.3.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-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '8.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '8.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activesupport
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '8.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '8.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: delayed_job
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,28 +128,28 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '6.
|
131
|
+
version: '6.2'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '6.
|
138
|
+
version: '6.2'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: capybara
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '3.
|
145
|
+
version: '3.40'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: '3.
|
152
|
+
version: '3.40'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: database_cleaner-mongoid
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,84 +170,84 @@ dependencies:
|
|
170
170
|
requirements:
|
171
171
|
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: '1.
|
173
|
+
version: '1.9'
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: '1.
|
180
|
+
version: '1.9'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: puma
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
185
|
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: '6.
|
187
|
+
version: '6.4'
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version: '6.
|
194
|
+
version: '6.4'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: rubocop-capybara
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
199
|
- - "~>"
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version: '2.
|
201
|
+
version: '2.21'
|
202
202
|
type: :development
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
206
|
- - "~>"
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version: '2.
|
208
|
+
version: '2.21'
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
210
|
name: rubocop-minitest
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
213
|
- - "~>"
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version: 0.
|
215
|
+
version: 0.36.0
|
216
216
|
type: :development
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
220
|
- - "~>"
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version: 0.
|
222
|
+
version: 0.36.0
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
224
|
name: rubocop-rails
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
226
226
|
requirements:
|
227
227
|
- - "~>"
|
228
228
|
- !ruby/object:Gem::Version
|
229
|
-
version: '2.
|
229
|
+
version: '2.27'
|
230
230
|
type: :development
|
231
231
|
prerelease: false
|
232
232
|
version_requirements: !ruby/object:Gem::Requirement
|
233
233
|
requirements:
|
234
234
|
- - "~>"
|
235
235
|
- !ruby/object:Gem::Version
|
236
|
-
version: '2.
|
236
|
+
version: '2.27'
|
237
237
|
- !ruby/object:Gem::Dependency
|
238
238
|
name: selenium-webdriver
|
239
239
|
requirement: !ruby/object:Gem::Requirement
|
240
240
|
requirements:
|
241
241
|
- - "~>"
|
242
242
|
- !ruby/object:Gem::Version
|
243
|
-
version: '4.
|
243
|
+
version: '4.26'
|
244
244
|
type: :development
|
245
245
|
prerelease: false
|
246
246
|
version_requirements: !ruby/object:Gem::Requirement
|
247
247
|
requirements:
|
248
248
|
- - "~>"
|
249
249
|
- !ruby/object:Gem::Version
|
250
|
-
version: '4.
|
250
|
+
version: '4.26'
|
251
251
|
- !ruby/object:Gem::Dependency
|
252
252
|
name: simplecov
|
253
253
|
requirement: !ruby/object:Gem::Requirement
|
@@ -268,14 +268,14 @@ dependencies:
|
|
268
268
|
requirements:
|
269
269
|
- - "~>"
|
270
270
|
- !ruby/object:Gem::Version
|
271
|
-
version: '3.
|
271
|
+
version: '3.5'
|
272
272
|
type: :development
|
273
273
|
prerelease: false
|
274
274
|
version_requirements: !ruby/object:Gem::Requirement
|
275
275
|
requirements:
|
276
276
|
- - "~>"
|
277
277
|
- !ruby/object:Gem::Version
|
278
|
-
version: '3.
|
278
|
+
version: '3.5'
|
279
279
|
description: Rails web interface for delayed_job using Rails::Engine and MongoDB
|
280
280
|
email:
|
281
281
|
- javakoala1@gmail.com
|