good_job 3.12.3 → 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: '08adcef39550aab73cfa2e2e09f059bb8c9a27154e7282f004f0ce6fa8cdb489'
4
- data.tar.gz: 01a7beeab908846daf3b4a7aefdb92288aa5fa88bd5782aa93852f8c254596b1
3
+ metadata.gz: cbd9eea98505960c1c53863338762b4c814d2248caf2642fc5774e1fbc19fc1c
4
+ data.tar.gz: 2c84f9908144e29f509355010d0d9daf2c6ebda1360c411f41328e6a25c45aad
5
5
  SHA512:
6
- metadata.gz: 4b28e1d6f9a92d31e50abfbc45b8b8be1d4db5639b26faad68cf14c489d7bfbf3b94332df6bdbc4df25260d1f56406444205a3c37b688568bee6ae3a4c879a58
7
- data.tar.gz: 8b83770a89e8aeeb28bc3571d797ea0e284b6dd3fd6787653b8d714a246856a9a88dfcc752e4208719bbe81085ea16689da1131c672222d739fa89b9469d3f31
6
+ metadata.gz: 68e5e4df608a70845510c9790c10b350f1d5bf960f5574de146278d3e9a9b95270cd96116c70428815fd3e06ecab789566e82c5eaabdb64a9fdc07f7f9555d94
7
+ data.tar.gz: c56b476a28edd728c6791bb61f53e8f9c073c865301dd7a8cbf40b3f432a2eb9db5e5fe48e268b7c454b4f242f5f27c1bbcf866e2924a6150ec7f8f1a0148f58
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
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
+
3
17
  ## [v3.12.3](https://github.com/bensheldon/good_job/tree/v3.12.3) (2023-02-21)
4
18
 
5
19
  [Full Changelog](https://github.com/bensheldon/good_job/compare/v3.12.2...v3.12.3)
@@ -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)
@@ -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.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.3
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-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