ezlog 0.10.5 → 0.10.7

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: 8cf8a14dd5827637b59bb8873f7ec6cf88c55c804aa3f90ad64990c01813fe62
4
- data.tar.gz: 569ff4987274909589ed43f98d8c4ae04badf68b28079d0309cb94d9562f2f87
3
+ metadata.gz: 94a1e9d5a6e7746631bef63ac09489ab09dd5bf747664eb587b5d0bebe8beb97
4
+ data.tar.gz: 37319e224c1e4056f38567ef0f32eeaacfc8faf9a9143de3a7714298deb38730
5
5
  SHA512:
6
- metadata.gz: '0983520700a23dc9a6ce4985c141003f5f4229e595e26f38b895fcfa54b89353f1bc8b80aa78219653a56a177c04dcc4b6ab4450bcdc9fccb25c4fe3871d18fb'
7
- data.tar.gz: f3599b031c970bae384f198a9da8fc5f9a3735a0b9dadfde0688614cdb8f0051a15a7a8a25b090dbd8d2d9119314b3e144de7989b968ed57033b885a9c522791
6
+ metadata.gz: 44f3b1728c91a1eb2f46a6dced5e7ca843aaa0b72055ccfcd7c3c47a314947d1409d0ccd31ac5a8e612083d5f7a2af0d24d80af163508dc18052febff0f2b25f
7
+ data.tar.gz: beea501d98534d51782de0c3f211347de9ed788feede73439eabc597f67e4103341a15f09f840066152ce70b33ed868fb72d032de02b0c9ae980ee6a11341c69
data/CHANGELOG.md CHANGED
@@ -1,19 +1,43 @@
1
+ ### 0.10.7 (2022-07-22)
2
+
3
+ [Full Changelog](https://github.com/emartech/ezlog/compare/v0.10.6...v0.10.7)
4
+
5
+ * Fix
6
+ * Fix sidekiq backward compatibility bug, introduced with 0.10.6 version.
7
+
8
+ ### 0.10.6 (2022-07-22), yanked
9
+
10
+ [Full Changelog](https://github.com/emartech/ezlog/compare/v0.10.5...v0.10.6)
11
+
12
+ * Features & enhancements
13
+ * Use new syntax for config to remove deprecation warnings
14
+
1
15
  ### 0.10.5 (2022-07-06)
2
16
 
3
17
  [Full Changelog](https://github.com/emartech/ezlog/compare/v0.10.4...v0.10.5)
4
18
 
5
19
  * Fix
6
- * Support newer versions of Sidekiq
20
+ * Fix a bug introduced in yanked version 0.10.4 where workers would fail to start
21
+ with an `undefined method: prepare` message on newer versions of Sidekiq
22
+ * Remove support for "job-specifc log level" feature in Sidekiq
23
+ * Fixed a bug which could result in an `undefined method 'info'` error message.
7
24
 
8
-
9
- ### 0.10.4 (2022-07-06)
25
+ ### 0.10.4 (2022-07-06), yanked
10
26
 
11
27
  [Full Changelog](https://github.com/emartech/ezlog/compare/v0.10.3...v0.10.4)
12
28
 
13
29
  * Fix
14
30
  * Removed support for "job-specific log level" feature in Sidekiq.
15
31
  * Fixed the bug which could result in an `undefined method 'info'` error message.
16
-
32
+
33
+ ### 0.10.3 (2022-06-29)
34
+
35
+ [Full Changelog](https://github.com/emartech/ezlog/compare/v0.10.2...v0.10.3)
36
+
37
+ * Fix
38
+ * Fixed a bug where `Sidekiq::Logger` was potentially initialized too many times,
39
+ which could result in an `undefined method 'info'` error message.
40
+
17
41
  ### 0.10.2 (2022-06-29)
18
42
 
19
43
  [Full Changelog](https://github.com/emartech/ezlog/compare/v0.10.1...v0.10.2)
data/lib/ezlog/railtie.rb CHANGED
@@ -71,7 +71,11 @@ module Ezlog
71
71
  ::Sidekiq.logger = Ezlog.logger('Sidekiq')
72
72
  ::Sidekiq.logger.level = app.config.log_level
73
73
  ::Sidekiq.configure_server do |config|
74
- config.options[:job_logger] = Ezlog::Sidekiq::JobLogger
74
+ if config.respond_to? :[]
75
+ config[:job_logger] = Ezlog::Sidekiq::JobLogger
76
+ else
77
+ config.options[:job_logger] = Ezlog::Sidekiq::JobLogger
78
+ end
75
79
  config.error_handlers << Ezlog::Sidekiq::ErrorLogger.new
76
80
  if defined?(::Sidekiq::ExceptionHandler) && defined?(::Sidekiq::ExceptionHandler::Logger)
77
81
  config.error_handlers.delete_if { |handler| handler.is_a? ::Sidekiq::ExceptionHandler::Logger }
data/lib/ezlog/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ezlog
2
- VERSION = '0.10.5'
2
+ VERSION = '0.10.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ezlog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.5
4
+ version: 0.10.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zoltan Ormandi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-07-06 00:00:00.000000000 Z
11
+ date: 2022-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logging
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  requirements: []
196
- rubygems_version: 3.3.7
196
+ rubygems_version: 3.3.11
197
197
  signing_key:
198
198
  specification_version: 4
199
199
  summary: A zero-configuration logging solution for projects using Sidekiq, Rails,