good_job 3.4.5 → 3.4.6

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: 844b8a9661a1a6eefe86a2e58d829405b92bc7b54ad51ba6aeafea22c11ca080
4
- data.tar.gz: c09eab3a34fe0ba218d79c0576bc1d9fe8cb41182c6d2bbf0af28c9bbbd4ce9a
3
+ metadata.gz: 9f6f46bc81c3d161377238784c24c81deb1f06480b4fd49cd87192bff37bed60
4
+ data.tar.gz: a7e1d948e9bd98a94128f61fc8b12b32627ec2b828d36e7b06baa272c304a00e
5
5
  SHA512:
6
- metadata.gz: 9d492d0763ab41e64f3670bc15176f6eec58d4fea9b4be7aa850cb2eaff4dba56d94ce42c6b0d123046dc2f0f2d183ad69e1fe6792b3e0b7fc077a32fecdff78
7
- data.tar.gz: bb956e43b86d88a4492d715ddef00710d5667d6aed2a33b9fe9c532cfb1515f74a03e8bc7d7b86b4655296ed5ab22ad8813d9794c281304f1672853364928d1e
6
+ metadata.gz: 69db268ef55985004f348fa62d7c07e82e10d961b9667a16367fec4a5af11ff05daf9e1ac9a064946e6d41434a9fabf9ea3bce7ced52a8bca342c876e1168d8e
7
+ data.tar.gz: 234f79a1ee23c7609f5e22b3a0c4e3d883e67011ed28f68befae868b9ac252adb6869e8261ef9af3a754da105edf93701fc8525cc81e487b8e30b6d94c636850
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## [v3.4.6](https://github.com/bensheldon/good_job/tree/v3.4.6) (2022-09-26)
4
+
5
+ [Full Changelog](https://github.com/bensheldon/good_job/compare/v3.4.5...v3.4.6)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - Support SemanticLogger logging with improve stdout logic and tagged logs [\#715](https://github.com/bensheldon/good_job/pull/715) ([bensheldon](https://github.com/bensheldon))
10
+
11
+ **Closed issues:**
12
+
13
+ - Unable to Replace GoodJob's Logger [\#667](https://github.com/bensheldon/good_job/issues/667)
14
+ - Jobs never get run... [\#516](https://github.com/bensheldon/good_job/issues/516)
15
+
3
16
  ## [v3.4.5](https://github.com/bensheldon/good_job/tree/v3.4.5) (2022-09-12)
4
17
 
5
18
  [Full Changelog](https://github.com/bensheldon/good_job/compare/v3.4.4...v3.4.5)
@@ -209,7 +222,6 @@
209
222
  - UI engine does not work without explicit require [\#646](https://github.com/bensheldon/good_job/issues/646)
210
223
  - Should `:inline` adapter mode retry jobs? [\#611](https://github.com/bensheldon/good_job/issues/611)
211
224
  - Error Job Not Preserved [\#594](https://github.com/bensheldon/good_job/issues/594)
212
- - Jobs never get run... [\#516](https://github.com/bensheldon/good_job/issues/516)
213
225
  - Release GoodJob 3.0 [\#507](https://github.com/bensheldon/good_job/issues/507)
214
226
  - Improve security of Gem releases [\#422](https://github.com/bensheldon/good_job/issues/422)
215
227
 
data/lib/good_job/cli.rb CHANGED
@@ -156,7 +156,7 @@ module GoodJob
156
156
  # Rails or from the application can be set up here.
157
157
  def set_up_application!
158
158
  require RAILS_ENVIRONMENT_RB
159
- return unless GoodJob::CLI.log_to_stdout? && !ActiveSupport::Logger.logger_outputs_to?(GoodJob.logger, $stdout)
159
+ return if !GoodJob::CLI.log_to_stdout? || ActiveSupport::Logger.logger_outputs_to?(GoodJob.logger, $stdout)
160
160
 
161
161
  GoodJob::LogSubscriber.loggers << ActiveSupport::TaggedLogging.new(ActiveSupport::Logger.new($stdout))
162
162
  GoodJob::LogSubscriber.reset_logger
@@ -206,7 +206,7 @@ module GoodJob
206
206
  good_job_tag = ["ActiveJob"].freeze
207
207
 
208
208
  self.class.loggers.inject(block) do |inner, each_logger|
209
- if each_logger.respond_to?(:tagged) && each_logger.formatter
209
+ if each_logger.respond_to?(:tagged) && each_logger.try(:formatter).try(:current_tags).respond_to?(:include?)
210
210
  tags_for_logger = if each_logger.formatter.current_tags.include?("ActiveJob")
211
211
  good_job_tag + tags
212
212
  else
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module GoodJob
3
3
  # GoodJob gem version.
4
- VERSION = '3.4.5'
4
+ VERSION = '3.4.6'
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.4.5
4
+ version: 3.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Sheldon
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-12 00:00:00.000000000 Z
11
+ date: 2022-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob