good_job 3.12.3 → 3.12.5

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: '08adcef39550aab73cfa2e2e09f059bb8c9a27154e7282f004f0ce6fa8cdb489'
4
- data.tar.gz: 01a7beeab908846daf3b4a7aefdb92288aa5fa88bd5782aa93852f8c254596b1
3
+ metadata.gz: 2ab20515ae75193d46a2340d2b14b7e34217fb5eddf6e468cdd1d9d2aacb8a0d
4
+ data.tar.gz: 318bfc51ed42c853dbebcba084780d2c359b62fee526bf76482e7ccba2122ab7
5
5
  SHA512:
6
- metadata.gz: 4b28e1d6f9a92d31e50abfbc45b8b8be1d4db5639b26faad68cf14c489d7bfbf3b94332df6bdbc4df25260d1f56406444205a3c37b688568bee6ae3a4c879a58
7
- data.tar.gz: 8b83770a89e8aeeb28bc3571d797ea0e284b6dd3fd6787653b8d714a246856a9a88dfcc752e4208719bbe81085ea16689da1131c672222d739fa89b9469d3f31
6
+ metadata.gz: 9d78a07949afbda9ab3f45f5605cbc6411d26402c89b1e273f32584c2bbe7bccf5c48d58e201fc9b529d5b2d0dfd4874aebd82d79a4e2af72360bb0e0b61cfa1
7
+ data.tar.gz: 4b3b505b89ce9696a9f94198ba853b06e0a37adb100006ddce43e8d334b1ef05afb6ee2b37c9d33ffc05f0fc3fc60ef2a2a8a346311f3e6e2298e2228eeb062a
data/CHANGELOG.md CHANGED
@@ -1,19 +1,45 @@
1
1
  # Changelog
2
2
 
3
- ## [v3.12.3](https://github.com/bensheldon/good_job/tree/v3.12.3) (2023-02-21)
3
+ ## [v3.12.5](https://github.com/bensheldon/good_job/tree/v3.12.5) (2023-02-24)
4
4
 
5
- [Full Changelog](https://github.com/bensheldon/good_job/compare/v3.12.2...v3.12.3)
5
+ [Full Changelog](https://github.com/bensheldon/good_job/compare/v3.12.4...v3.12.5)
6
6
 
7
- **Closed issues:**
7
+ **Fixed bugs:**
8
8
 
9
- - \[Not Critical\] Too much space \(One\) in db/migrate/XXXXXX\_create\_index\_good\_jobs\_jobs\_on\_priority\_created\_at\_when\_unfinished.rb [\#851](https://github.com/bensheldon/good_job/issues/851)
10
- - Use timestamps with timezone when set as the default for postgresql. [\#668](https://github.com/bensheldon/good_job/issues/668)
9
+ - Fix I18n number formatting; other Dashboard development tweaks [\#862](https://github.com/bensheldon/good_job/pull/862) ([bensheldon](https://github.com/bensheldon))
11
10
 
12
11
  **Merged pull requests:**
13
12
 
13
+ - Update Development Dependencies. Use Ruby 3.2 and Rails 7.0 [\#865](https://github.com/bensheldon/good_job/pull/865) ([bensheldon](https://github.com/bensheldon))
14
+
15
+ ## [v3.12.4](https://github.com/bensheldon/good_job/tree/v3.12.4) (2023-02-24)
16
+
17
+ [Full Changelog](https://github.com/bensheldon/good_job/compare/v3.12.3...v3.12.4)
18
+
19
+ **Fixed bugs:**
20
+
21
+ - Add serialize coder kwarg for Rails 7.1-alpha [\#864](https://github.com/bensheldon/good_job/pull/864) ([bensheldon](https://github.com/bensheldon))
22
+
23
+ **Closed issues:**
24
+
25
+ - Rails 7.1 - Serialized columns like a store now needs a `coder: JSON` [\#863](https://github.com/bensheldon/good_job/issues/863)
26
+ - Does good\_job automatically retry on ActiveRecord::LockWaitTimeout? [\#860](https://github.com/bensheldon/good_job/issues/860)
27
+ - race condition for batches callback [\#832](https://github.com/bensheldon/good_job/issues/832)
28
+
29
+ ## [v3.12.3](https://github.com/bensheldon/good_job/tree/v3.12.3) (2023-02-21)
30
+
31
+ [Full Changelog](https://github.com/bensheldon/good_job/compare/v3.12.2...v3.12.3)
32
+
33
+ **Fixed bugs:**
34
+
14
35
  - Fix bug where notification check does not use configuration [\#857](https://github.com/bensheldon/good_job/pull/857) ([mitchellhenke](https://github.com/mitchellhenke))
15
36
  - Fix template for the update migrations 03 index \(\#851\) [\#852](https://github.com/bensheldon/good_job/pull/852) ([julienanne](https://github.com/julienanne))
16
37
 
38
+ **Closed issues:**
39
+
40
+ - \[Not Critical\] Too much space \(One\) in db/migrate/XXXXXX\_create\_index\_good\_jobs\_jobs\_on\_priority\_created\_at\_when\_unfinished.rb [\#851](https://github.com/bensheldon/good_job/issues/851)
41
+ - Use timestamps with timezone when set as the default for postgresql. [\#668](https://github.com/bensheldon/good_job/issues/668)
42
+
17
43
  ## [v3.12.2](https://github.com/bensheldon/good_job/tree/v3.12.2) (2023-02-16)
18
44
 
19
45
  [Full Changelog](https://github.com/bensheldon/good_job/compare/v3.12.1...v3.12.2)
@@ -72,8 +72,15 @@ module GoodJob
72
72
  end
73
73
  end
74
74
 
75
- attribute :serialized_properties, :json, default: -> { {} } # Can be set as default value in `serialize` as of Rails v6.1
76
- serialize :serialized_properties, PropertySerializer
75
+ if Rails.gem_version < Gem::Version.new('6.1.0.alpha')
76
+ # serialize does not yet take a default value, must set via Attributes API
77
+ attribute :serialized_properties, :json, default: -> { {} }
78
+ serialize :serialized_properties, PropertySerializer
79
+ elsif Rails.gem_version < Gem::Version.new('7.1.0.alpha')
80
+ serialize :serialized_properties, PropertySerializer, default: -> { {} }
81
+ else
82
+ serialize :serialized_properties, coder: PropertySerializer, default: -> { {} }
83
+ end
77
84
  alias_attribute :properties, :serialized_properties
78
85
 
79
86
  def properties=(value)
@@ -15,7 +15,7 @@
15
15
  <option value="" <%= "selected='selected'" if params[:queue_name].blank? %>>All queues</option>
16
16
 
17
17
  <% filter.queues.each do |name, count| %>
18
- <option value="<%= name.to_param %>" <%= "selected='selected'" if params[:queue_name] == name %>><%= name %> (<%= number_with_delimiter(count) %>)</option>
18
+ <option value="<%= name.to_param %>" <%= "selected='selected'" if params[:queue_name] == name %>><%= name %> (<%= number_with_delimiter(count, t('good_job.number.format')) %>)</option>
19
19
  <% end %>
20
20
  </select>
21
21
  </div>
@@ -26,7 +26,7 @@
26
26
  <option value="" <%= "selected='selected'" if params[:job_class].blank? %>>All jobs</option>
27
27
 
28
28
  <% filter.job_classes.each do |name, count| %>
29
- <option value="<%= name.to_param %>" <%= "selected='selected'" if params[:job_class] == name %>><%= name %> (<%= number_with_delimiter(count) %>)</option>
29
+ <option value="<%= name.to_param %>" <%= "selected='selected'" if params[:job_class] == name %>><%= name %> (<%= number_with_delimiter(count, t('good_job.number.format')) %>)</option>
30
30
  <% end %>
31
31
  </select>
32
32
  </div>
@@ -56,7 +56,7 @@
56
56
  <li class="nav-item">
57
57
  <%= link_to filter.to_params(state: name), class: "nav-link #{"active" if params[:state] == name}" do %>
58
58
  <%= t(name, scope: 'good_job.status') %>
59
- <span class="badge bg-primary rounded-pill <%= "bg-secondary" if count == 0 %>"><%= number_with_delimiter(count) %></span>
59
+ <span class="badge bg-primary rounded-pill <%= "bg-secondary" if count == 0 %>"><%= number_with_delimiter(count, t('good_job.number.format')) %></span>
60
60
  <% end %>
61
61
  </li>
62
62
  <% end %>
@@ -11,14 +11,14 @@
11
11
  <%= link_to jobs_path, class: ["nav-link", ("active" if controller_name == 'jobs')] do %>
12
12
  <%= t(".jobs") %>
13
13
  <% jobs_count = GoodJob::Job.count %>
14
- <span class="badge bg-secondary rounded-pill"><%= number_to_human(jobs_count, unit: "good_job.number") %></span>
14
+ <span class="badge bg-secondary rounded-pill"><%= number_to_human(jobs_count, **I18n.t("good_job.number.human.decimal_units")) %></span>
15
15
  <% end %>
16
16
  </li>
17
17
  <li class="nav-item">
18
18
  <%= link_to batches_path, class: ["nav-link", ("active" if controller_name == 'batches')] do %>
19
19
  <%= "Batches" %>
20
20
  <% batches_count = GoodJob::BatchRecord.migrated? ? GoodJob::BatchRecord.all.size : 0 %>
21
- <span class="badge bg-secondary rounded-pill"><%= batches_count %></span>
21
+ <span class="badge bg-secondary rounded-pill"><%= number_to_human(batches_count, units: I18n.t("good_job.number.human.decimal_units.units"), precision: 3) %></span>
22
22
  <% end %>
23
23
  </li>
24
24
  <li class="nav-item">
@@ -52,7 +52,10 @@ en:
52
52
  separator: "."
53
53
  human:
54
54
  decimal_units:
55
+ delimiter: ","
55
56
  format: "%n%u"
57
+ precision: 3
58
+ separator: "."
56
59
  units:
57
60
  billion: B
58
61
  million: M
@@ -60,10 +63,6 @@ en:
60
63
  thousand: K
61
64
  trillion: T
62
65
  unit: ''
63
- format:
64
- delimiter: ","
65
- precision: 3
66
- separator: "."
67
66
  shared:
68
67
  footer:
69
68
  last_update_html: Last updated <time id="page-updated-at" datetime="%{time}">%{time}</time>
@@ -52,7 +52,10 @@ es:
52
52
  separator: ","
53
53
  human:
54
54
  decimal_units:
55
+ delimiter: " "
55
56
  format: "%n%u"
57
+ precision: 3
58
+ separator: ","
56
59
  units:
57
60
  billion: B
58
61
  million: M
@@ -60,10 +63,6 @@ es:
60
63
  thousand: k
61
64
  trillion: T
62
65
  unit: ''
63
- format:
64
- delimiter: " "
65
- precision: 3
66
- separator: ","
67
66
  shared:
68
67
  footer:
69
68
  last_update_html: Última actualización <time id="page-updated-at" datetime="%{time}">%{time}</time>
@@ -52,7 +52,10 @@ fr:
52
52
  separator: ","
53
53
  human:
54
54
  decimal_units:
55
+ delimiter: " "
55
56
  format: "%n%u"
57
+ precision: 3
58
+ separator: ","
56
59
  units:
57
60
  billion: B
58
61
  million: M
@@ -60,10 +63,6 @@ fr:
60
63
  thousand: k
61
64
  trillion: T
62
65
  unit: ''
63
- format:
64
- delimiter: " "
65
- precision: 3
66
- separator: ","
67
66
  shared:
68
67
  footer:
69
68
  last_update_html: Dernière mise à jour <time id="page-updated-at" datetime="%{time}">%{time}</time>
@@ -52,7 +52,10 @@ nl:
52
52
  separator: ","
53
53
  human:
54
54
  decimal_units:
55
+ delimiter: "."
55
56
  format: "%n%u"
57
+ precision: 3
58
+ separator: ","
56
59
  units:
57
60
  billion: B
58
61
  million: M
@@ -60,10 +63,6 @@ nl:
60
63
  thousand: K
61
64
  trillion: T
62
65
  unit: ''
63
- format:
64
- delimiter: "."
65
- precision: 3
66
- separator: ","
67
66
  shared:
68
67
  footer:
69
68
  last_update_html: Laatst bijgewerkt <time id="page-updated-at" datetime="%{time}">%{time}</time>
@@ -76,7 +76,10 @@ ru:
76
76
  separator: ","
77
77
  human:
78
78
  decimal_units:
79
+ delimiter: " "
79
80
  format: "%n%u"
81
+ precision: 3
82
+ separator: ","
80
83
  units:
81
84
  billion: Б
82
85
  million: М
@@ -84,10 +87,6 @@ ru:
84
87
  thousand: К
85
88
  trillion: Т
86
89
  unit: ''
87
- format:
88
- delimiter: " "
89
- precision: 3
90
- separator: ","
91
90
  shared:
92
91
  footer:
93
92
  last_update_html: Последнее обновление <time id="page-updated-at" datetime="%{time}">%{time}</time>
@@ -76,7 +76,10 @@ ua:
76
76
  separator: ","
77
77
  human:
78
78
  decimal_units:
79
+ delimiter: " "
79
80
  format: "%n%u"
81
+ precision: 3
82
+ separator: ","
80
83
  units:
81
84
  billion: Блн
82
85
  million: Млн
@@ -84,10 +87,6 @@ ua:
84
87
  thousand: Тис
85
88
  trillion: Трил
86
89
  unit: ''
87
- format:
88
- delimiter: " "
89
- precision: 3
90
- separator: ","
91
90
  shared:
92
91
  footer:
93
92
  last_update_html: Оснаннє оновлення <time id="page-updated-at" datetime="%{time}">%{time}</time>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module GoodJob
3
3
  # GoodJob gem version.
4
- VERSION = '3.12.3'
4
+ VERSION = '3.12.5'
5
5
  end
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.12.3
4
+ version: 3.12.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Sheldon
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-02-21 00:00:00.000000000 Z
11
+ date: 2023-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob
@@ -436,7 +436,7 @@ metadata:
436
436
  homepage_uri: https://github.com/bensheldon/good_job
437
437
  source_code_uri: https://github.com/bensheldon/good_job
438
438
  rubygems_mfa_required: 'true'
439
- post_install_message:
439
+ post_install_message:
440
440
  rdoc_options:
441
441
  - "--title"
442
442
  - GoodJob - a multithreaded, Postgres-based ActiveJob backend for Ruby on Rails
@@ -458,8 +458,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
458
458
  - !ruby/object:Gem::Version
459
459
  version: '0'
460
460
  requirements: []
461
- rubygems_version: 3.4.5
462
- signing_key:
461
+ rubygems_version: 3.4.6
462
+ signing_key:
463
463
  specification_version: 4
464
464
  summary: A multithreaded, Postgres-based ActiveJob backend for Ruby on Rails
465
465
  test_files: []