good_job 2.7.2 → 2.7.3

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: e4843101f6fce50527e8d0157ff7ced91fabb0ae41c3c92006abd49e9005ea78
4
- data.tar.gz: f8f243fb7f9e3ea2ec17fc795ad5bbd79b017f68665d98b911dfe27177e13389
3
+ metadata.gz: f6f10b3664d49f86aef9b010af1ca673fc34235966ae98c55fed5ba271bcaae2
4
+ data.tar.gz: bd7f84c9c0b75342ea10d72ad40d7fba4cd51aa8105348e362587de16452a19b
5
5
  SHA512:
6
- metadata.gz: f2dbdd1c1811bfc09153a8eed32b95f337919d22434b004622a0ab78eb6803e68f5a66761e828bf2054421d5d5f9b798be54e7f60cc486602a997c804ab9fb2d
7
- data.tar.gz: 953672a066c27a231fb76c3c9839b4cb9685deb0ed4f25a3e153f4ede0833afa0a263f4d37532715a62ed7a96825384b8f7d6fef7352416d0c64068864798fee
6
+ metadata.gz: 9a1de45c7584ec2d55b54187ee818fdb0c58a954463425a5c5394e097fb7a7236c02219f6cdbbf26168103bd359ed1b72f5cbb096b8d3ae5a524ca3c3277be23
7
+ data.tar.gz: 1d2ab4cb0c942e9818bbefaac4fa518afde793f7648cc64350d2c4c45201745e2e00be47ecc1942d093ce8a1a0459fa30060f46680bc77c789044b0f56a4e89b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [v2.7.3](https://github.com/bensheldon/good_job/tree/v2.7.3) (2021-11-30)
4
+
5
+ [Full Changelog](https://github.com/bensheldon/good_job/compare/v2.7.2...v2.7.3)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - Logger error on 2.7.2 [\#463](https://github.com/bensheldon/good_job/issues/463)
10
+
11
+ **Merged pull requests:**
12
+
13
+ - Fix Railtie configuration assignment when Rails configuration is a Hash, not an OrderedOptions [\#464](https://github.com/bensheldon/good_job/pull/464) ([bensheldon](https://github.com/bensheldon))
14
+
3
15
  ## [v2.7.2](https://github.com/bensheldon/good_job/tree/v2.7.2) (2021-11-29)
4
16
 
5
17
  [Full Changelog](https://github.com/bensheldon/good_job/compare/v2.7.1...v2.7.2)
@@ -24,10 +24,12 @@ module GoodJob
24
24
 
25
25
  initializer 'good_job.rails_config' do
26
26
  config.after_initialize do
27
- GoodJob.logger = Rails.application.config.good_job.logger unless Rails.application.config.good_job.logger.nil?
28
- GoodJob.on_thread_error = Rails.application.config.good_job.on_thread_error unless Rails.application.config.good_job.on_thread_error.nil?
29
- GoodJob.preserve_job_records = Rails.application.config.good_job.preserve_job_records unless Rails.application.config.good_job.preserve_job_records.nil?
30
- GoodJob.retry_on_unhandled_error = Rails.application.config.good_job.retry_on_unhandled_error unless Rails.application.config.good_job.retry_on_unhandled_error.nil?
27
+ rails_config = Rails.application.config.good_job
28
+
29
+ GoodJob.logger = rails_config[:logger] if rails_config.key?(:logger)
30
+ GoodJob.on_thread_error = rails_config[:on_thread_error] if rails_config.key?(:on_thread_error)
31
+ GoodJob.preserve_job_records = rails_config[:preserve_job_records] if rails_config.key?(:preserve_job_records)
32
+ GoodJob.retry_on_unhandled_error = rails_config[:retry_on_unhandled_error] if rails_config.key?(:retry_on_unhandled_error)
31
33
  end
32
34
  end
33
35
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module GoodJob
3
3
  # GoodJob gem version.
4
- VERSION = '2.7.2'
4
+ VERSION = '2.7.3'
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: 2.7.2
4
+ version: 2.7.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: 2021-11-29 00:00:00.000000000 Z
11
+ date: 2021-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob