good_job 3.16.1 → 3.16.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 364c1bd829e85f9b002b0265bf57b4e29b517ca314ed8335affab915320eb09c
4
- data.tar.gz: 035dc69a55772e2516ac73783cec24bd47c1974a3ba3b3b8a568649985b9a37e
3
+ metadata.gz: df700f1e4e911894d7f47d8b46c6159200e9f68bc6c7db9c9d8592999320851f
4
+ data.tar.gz: 0f8994e16848891c3a2a41064b8ee12555c9880035735ed1635a6ffd888ef276
5
5
  SHA512:
6
- metadata.gz: 124c045c8948530ba298410381bba29717de39b95b1b2fb53c06957c528c86bd84359fe14658b2b2bee84c31c0e83afb85194bca964f6255cc907cf95c72e5c3
7
- data.tar.gz: da74da4e4a00efa81bc995339df665c2a400ac54377078694ba961f8f788c0635b53865b76fee479197e4e478d744888ef393565a854441da935622c5a74a34f
6
+ metadata.gz: f73d66cf94b957e59aaf4352d0bd0f0e4d5477144875a5923f846f5dadaf938b7a3f6c1f0cf21ae353258145e5ad2f4cc4c98a5c433d77c6b45b74c315358cdc
7
+ data.tar.gz: 99a1ba23209daa2890fee61443a91ff61a5ce2c8b7a5c5eeb55f54d85cc8166b97c3551d132a765ef6907924c78291e52d1b5cec705a9829f833f688506ecd76
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [v3.16.2](https://github.com/bensheldon/good_job/tree/v3.16.2) (2023-07-13)
4
+
5
+ [Full Changelog](https://github.com/bensheldon/good_job/compare/v3.16.1...v3.16.2)
6
+
7
+ **Closed issues:**
8
+
9
+ - Support for customized job display name [\#956](https://github.com/bensheldon/good_job/issues/956)
10
+
11
+ **Merged pull requests:**
12
+
13
+ - Add `GoodJob::Job#display_name` to allow customizing dashboard job display [\#1008](https://github.com/bensheldon/good_job/pull/1008) ([paul](https://github.com/paul))
14
+
3
15
  ## [v3.16.1](https://github.com/bensheldon/good_job/tree/v3.16.1) (2023-07-11)
4
16
 
5
17
  [Full Changelog](https://github.com/bensheldon/good_job/compare/v3.16.0...v3.16.1)
@@ -149,6 +149,12 @@ module GoodJob
149
149
  })
150
150
  end
151
151
 
152
+ # Used when displaying this job in the GoodJob dashboard.
153
+ # @return [String]
154
+ def display_name
155
+ job_class
156
+ end
157
+
152
158
  # Tests whether the job is being executed right now.
153
159
  # @return [Boolean]
154
160
  def running?
@@ -23,7 +23,7 @@
23
23
  <div class="row align-items-center">
24
24
  <div class="col-lg-4">
25
25
  <%= tag.code link_to(job.id, job_path(job), class: "small text-muted text-decoration-none") %>
26
- <%= tag.h5 tag.code(link_to(job.job_class, job_path(job), class: "text-reset text-decoration-none")), class: "text-reset mb-0" %>
26
+ <%= tag.h5 tag.code(link_to(job.display_name, job_path(job), class: "text-reset text-decoration-none")), class: "text-reset mb-0" %>
27
27
  </div>
28
28
  <div class="col-4 col-lg-1 text-lg-center">
29
29
  <div class="d-lg-none small text-muted mt-1"><%=t "good_job.models.job.queue" %></div>
@@ -64,7 +64,7 @@
64
64
  <%= check_box_tag 'job_ids[]', job.id, false, id: dom_id(job, :checkbox), data: { "checkbox-toggle-each": "job_ids" } %>
65
65
  <div class="ms-2">
66
66
  <%= tag.code link_to(job.id, job_path(job), class: "small text-muted text-decoration-none") %>
67
- <%= tag.h5 tag.code(link_to(job.job_class, job_path(job), class: "text-reset text-decoration-none")), class: "text-reset mb-0" %>
67
+ <%= tag.h5 tag.code(link_to(job.display_name, job_path(job), class: "text-reset text-decoration-none")), class: "text-reset mb-0" %>
68
68
  <% if job.error %>
69
69
  <div class="mt-1 small">
70
70
  <strong class="small"><%=t "good_job.shared.error" %>:</strong>
@@ -13,7 +13,7 @@
13
13
  </nav>
14
14
  <div class="row align-items-center">
15
15
  <div class="col-md-5">
16
- <h2 class="mb-2 mb-md-0"><%= tag.code @job.job_class %></h2>
16
+ <h2 class="mb-2 mb-md-0"><%= tag.code @job.display_name %></h2>
17
17
  </div>
18
18
  <div class="col-6 col-md-2">
19
19
  <div class="small text-muted text-uppercase"><%= t "good_job.models.job.queue" %></div>
@@ -2,7 +2,7 @@
2
2
 
3
3
  module GoodJob
4
4
  # GoodJob gem version.
5
- VERSION = '3.16.1'
5
+ VERSION = '3.16.2'
6
6
 
7
7
  # GoodJob version as Gem::Version object
8
8
  GEM_VERSION = Gem::Version.new(VERSION)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: good_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.16.1
4
+ version: 3.16.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Sheldon
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-11 00:00:00.000000000 Z
11
+ date: 2023-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob