good_job 3.12.2 → 3.12.4

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: caa82da35ecdc7a40488de110b0e52b0a0e073abd8ca6e0cf877b3df4f770fce
4
- data.tar.gz: 2bb351a541183ccd8f5b5d58209c09813ecc09cebafd4cea1daad462a66337fc
3
+ metadata.gz: cbd9eea98505960c1c53863338762b4c814d2248caf2642fc5774e1fbc19fc1c
4
+ data.tar.gz: 2c84f9908144e29f509355010d0d9daf2c6ebda1360c411f41328e6a25c45aad
5
5
  SHA512:
6
- metadata.gz: a15ac0a81f3efcc6184ed7717430f67aa59d857a873ced5824922e36f499a275ec141636edbb80a3a7c587a9fdd64c3b98c3c189d09d4db45807829957259ca6
7
- data.tar.gz: 3b948c09db4ca2a60a90770937960db944e2569b3f54fc570e597f97a3b8da3ee247b96d734e0d593be87eac9de0b3a75c20e08daa77590dd94be9d6b3219f36
6
+ metadata.gz: 68e5e4df608a70845510c9790c10b350f1d5bf960f5574de146278d3e9a9b95270cd96116c70428815fd3e06ecab789566e82c5eaabdb64a9fdc07f7f9555d94
7
+ data.tar.gz: c56b476a28edd728c6791bb61f53e8f9c073c865301dd7a8cbf40b3f432a2eb9db5e5fe48e268b7c454b4f242f5f27c1bbcf866e2924a6150ec7f8f1a0148f58
data/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # Changelog
2
2
 
3
+ ## [v3.12.4](https://github.com/bensheldon/good_job/tree/v3.12.4) (2023-02-24)
4
+
5
+ [Full Changelog](https://github.com/bensheldon/good_job/compare/v3.12.3...v3.12.4)
6
+
7
+ **Closed issues:**
8
+
9
+ - Rails 7.1 - Serialized columns like a store now needs a `coder: JSON` [\#863](https://github.com/bensheldon/good_job/issues/863)
10
+ - Does good\_job automatically retry on ActiveRecord::LockWaitTimeout? [\#860](https://github.com/bensheldon/good_job/issues/860)
11
+ - race condition for batches callback [\#832](https://github.com/bensheldon/good_job/issues/832)
12
+
13
+ **Merged pull requests:**
14
+
15
+ - Add serialize coder kwarg for Rails 7.1-alpha [\#864](https://github.com/bensheldon/good_job/pull/864) ([bensheldon](https://github.com/bensheldon))
16
+
17
+ ## [v3.12.3](https://github.com/bensheldon/good_job/tree/v3.12.3) (2023-02-21)
18
+
19
+ [Full Changelog](https://github.com/bensheldon/good_job/compare/v3.12.2...v3.12.3)
20
+
21
+ **Closed issues:**
22
+
23
+ - \[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)
24
+ - Use timestamps with timezone when set as the default for postgresql. [\#668](https://github.com/bensheldon/good_job/issues/668)
25
+
26
+ **Merged pull requests:**
27
+
28
+ - Fix bug where notification check does not use configuration [\#857](https://github.com/bensheldon/good_job/pull/857) ([mitchellhenke](https://github.com/mitchellhenke))
29
+ - Fix template for the update migrations 03 index \(\#851\) [\#852](https://github.com/bensheldon/good_job/pull/852) ([julienanne](https://github.com/julienanne))
30
+
3
31
  ## [v3.12.2](https://github.com/bensheldon/good_job/tree/v3.12.2) (2023-02-16)
4
32
 
5
33
  [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)
@@ -2,7 +2,7 @@
2
2
  class CreateIndexGoodJobsJobsOnPriorityCreatedAtWhenUnfinished < ActiveRecord::Migration<%= migration_version %>
3
3
  disable_ddl_transaction!
4
4
 
5
- def change
5
+ def change
6
6
  reversible do |dir|
7
7
  dir.up do
8
8
  # Ensure this incremental update migration is idempotent
@@ -234,8 +234,8 @@ module GoodJob
234
234
  end
235
235
 
236
236
  def send_notify?(active_job)
237
- return true unless active_job.respond_to?(:good_job_notify)
238
237
  return false unless GoodJob.configuration.enable_listen_notify
238
+ return true unless active_job.respond_to?(:good_job_notify)
239
239
 
240
240
  !(active_job.good_job_notify == false || (active_job.class.good_job_notify == false && active_job.good_job_notify.nil?))
241
241
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module GoodJob
3
3
  # GoodJob gem version.
4
- VERSION = '3.12.2'
4
+ VERSION = '3.12.4'
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.2
4
+ version: 3.12.4
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-02-16 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