good_job 4.0.2 → 4.0.3

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: e2bd0a03d12095efe56c49c36fce5dbef909efbb4a984203c49b5ad2e0ba2fc5
4
- data.tar.gz: 5bc6fc1c127bcffe8388b8f0994c3a2c82b31952387c6be67a35fc280bf1c4cd
3
+ metadata.gz: 41adaae5b9a9c016ba000f7610efa23d533a177374e61039f135a1d152be146c
4
+ data.tar.gz: 92443b132e11697ae1ba31758852a818e5fbaf201cf080649f1c948d927265d4
5
5
  SHA512:
6
- metadata.gz: 0a4c1d788d8c8ea031b4b4654b65b7fe170a0f24d1ffb2550a150de100c8c73f66a4b7d3b19bce99b7f752230c50c5b59829bd906cc3036759553b5615b1b451
7
- data.tar.gz: 25b4458b92cbeca4db9f6486ee73e41f415b12ab585b35d7724f24e88f99e86b038be2e73f67b4e4bc6c60ff3d01df7903529ab9c859d3df9259db0a113460bc
6
+ metadata.gz: 155174df9c9d4daf50f4e898585e2cf40898de46eb5974592acdf32cc435cb4cb13b6d4953862a89a3b8223d7bbd2c9e79c60d4a974642f180092d836d04ebb2
7
+ data.tar.gz: 84b922a4853ffb85da2380ab80c20b3d7392f403218838c3fdcb8872726d2df469d81edeaa28cb2f5a76401280460839c1d3f6ca1f2c9a98c4a1b275ff99cee4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## [v4.0.3](https://github.com/bensheldon/good_job/tree/v4.0.3) (2024-07-10)
4
+
5
+ [Full Changelog](https://github.com/bensheldon/good_job/compare/v4.0.2...v4.0.3)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - Only set duration attribute to interval on Rails 6.1 [\#1412](https://github.com/bensheldon/good_job/pull/1412) ([bdewater-thatch](https://github.com/bdewater-thatch))
10
+
11
+ **Closed issues:**
12
+
13
+ - GoodJob error: TypeError: can't cast ActiveSupport::Duration \(on v4.0.0\) [\#1413](https://github.com/bensheldon/good_job/issues/1413)
14
+ - Question: is it possible to clean a set of scheduled jobs \(by class name\) from console? [\#1410](https://github.com/bensheldon/good_job/issues/1410)
15
+ - "Couldn't find GoodJob::BatchRecord" error [\#1387](https://github.com/bensheldon/good_job/issues/1387)
16
+ - Empty alerts "\[\]"? [\#1372](https://github.com/bensheldon/good_job/issues/1372)
17
+ - Release GoodJob 4.0 [\#764](https://github.com/bensheldon/good_job/issues/764)
18
+
19
+ **Merged pull requests:**
20
+
21
+ - Add Active Support load hooks for Job and \(Discrete\)Execution; move all outside class definition bodies [\#1414](https://github.com/bensheldon/good_job/pull/1414) ([bensheldon](https://github.com/bensheldon))
22
+
3
23
  ## [v4.0.2](https://github.com/bensheldon/good_job/tree/v4.0.2) (2024-07-08)
4
24
 
5
25
  [Full Changelog](https://github.com/bensheldon/good_job/compare/v4.0.1...v4.0.2)
@@ -57,7 +57,7 @@ module GoodJob
57
57
  I18n.default_locale
58
58
  end
59
59
  end
60
-
61
- ActiveSupport.run_load_hooks(:good_job_application_controller, self)
62
60
  end
63
61
  end
62
+
63
+ ActiveSupport.run_load_hooks(:good_job_application_controller, GoodJob::ApplicationController)
@@ -43,7 +43,7 @@ module GoodJob
43
43
  def self.bind_value(name, value, type_class)
44
44
  Arel::Nodes::BindParam.new(ActiveRecord::Relation::QueryAttribute.new(name, value, type_class.new))
45
45
  end
46
-
47
- ActiveSupport.run_load_hooks(:good_job_base_record, self)
48
46
  end
49
47
  end
48
+
49
+ ActiveSupport.run_load_hooks(:good_job_base_record, GoodJob::BaseRecord)
@@ -15,7 +15,7 @@ module GoodJob # :nodoc:
15
15
  alias_attribute :performed_at, :created_at
16
16
 
17
17
  # TODO: Remove when support for Rails 6.1 is dropped
18
- attribute :duration, :interval
18
+ attribute :duration, :interval if ActiveJob.version.canonical_segments.take(2) == [6, 1]
19
19
 
20
20
  def number
21
21
  serialized_params.fetch('executions', 0) + 1
@@ -60,3 +60,5 @@ module GoodJob # :nodoc:
60
60
  end
61
61
  end
62
62
  end
63
+
64
+ ActiveSupport.run_load_hooks(:good_job_execution, GoodJob::DiscreteExecution)
@@ -224,3 +224,5 @@ module GoodJob
224
224
  end
225
225
  end
226
226
  end
227
+
228
+ ActiveSupport.run_load_hooks(:good_job_job, GoodJob::Job)
@@ -2,7 +2,7 @@
2
2
 
3
3
  module GoodJob
4
4
  # GoodJob gem version.
5
- VERSION = '4.0.2'
5
+ VERSION = '4.0.3'
6
6
 
7
7
  # GoodJob version as Gem::Version object
8
8
  GEM_VERSION = Gem::Version.new(VERSION)
data/lib/good_job.rb CHANGED
@@ -291,6 +291,6 @@ module GoodJob
291
291
  def self.migrated?
292
292
  true
293
293
  end
294
-
295
- ActiveSupport.run_load_hooks(:good_job, self)
296
294
  end
295
+
296
+ ActiveSupport.run_load_hooks(:good_job, GoodJob)
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: 4.0.2
4
+ version: 4.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Sheldon
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-08 00:00:00.000000000 Z
11
+ date: 2024-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob