loggun 0.6.0 → 0.7.0

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: 8bdbf0283432b32fe9fe682ca29e432480e1bae6cc4ff31879b50a26120b10c9
4
- data.tar.gz: bce5fe0878cba0d1e758289baa9b2227bfc81a1946443c2b7bfc8ee4580a3267
3
+ metadata.gz: f9ed650d3f6c3918eec13856e0819f62575867b5da1ff0849cfc0429293c8487
4
+ data.tar.gz: 94199fd125aab495113d28910d77570c54ef616c2047da76b66803665053bd6f
5
5
  SHA512:
6
- metadata.gz: e8f76f5a5d5244f20d6b3cf5ed1f2c41ef87f93f50ac107626bc6f45cc2a3b44629d6b3d45af61bbd79e424f99ce99f1070937bb97c6e35906c8ea6d2609efd8
7
- data.tar.gz: 923f02afe9583bbb919671fbeb6fb54e8553efd1a01a6102d2eed865158a21c30c1effdd9e46f836488541b622ac8ae7e5c6ca9bfaa89e43752de40f0827aef3
6
+ metadata.gz: 4ce89bf3fe7e5f6cf9326022828cfd2a87c3f32ef5166f8502980fd5bcb7cc92020d0def934c7ffee99a03a4a504b0a8ab6b762dfd6f694db92cb63de5ac56b9
7
+ data.tar.gz: 66d4cd0e1817f9450bbc13f206ed686ef97644dba46a7cef3ffc9192ea838c76d9dd261ebda4fc51f80b8210d5afd3704e964170439036ccc061a967402d527e
data/CHANGELOG.md CHANGED
@@ -1,17 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.0 - 2023-09-19
4
+ * fixes
5
+ * Middleware Changes for Sidekiq 7.0
6
+
3
7
  ## 0.6.0 - 2020-09-22
4
8
  * features
5
9
  * Sidekiq client middlware for logging enqueued jobs
6
10
 
7
11
  ## 0.5.1 - 2020-09-22
8
12
  * fix
9
- * `message` string only in `log_format == :json`
13
+ * `message` string only in `log_format == :json`
10
14
 
11
15
  ## 0.5.0 - 2020-09-22
12
16
  * features
13
17
  * `config.log_format` - for control full log rows format
14
- * `config.exclude_keys`, `config.include_keys` - for include or exclude keys from `:json` log_format
18
+ * `config.exclude_keys`, `config.include_keys` - for include or exclude keys from `:json` log_format
15
19
 
16
20
  ## 0.4.1 - 2020-07-28
17
21
  * fixes
@@ -8,8 +8,16 @@ module Loggun
8
8
  def apply
9
9
  return unless defined?(::Sidekiq) && ::Sidekiq::VERSION >= MIN_SIDEKIQ_V
10
10
 
11
- ::Sidekiq.client_middleware do |chain|
12
- chain.add ClientMiddleware
11
+ if ::Sidekiq::VERSION >= '7.0.0'
12
+ ::Sidekiq.configure_client do |config|
13
+ config.client_middleware do |chain|
14
+ chain.add ClientMiddleware
15
+ end
16
+ end
17
+ else
18
+ ::Sidekiq.client_middleware do |chain|
19
+ chain.add ClientMiddleware
20
+ end
13
21
  end
14
22
 
15
23
  ::Sidekiq.configure_server do |config|
@@ -1,3 +1,3 @@
1
1
  module Loggun
2
- VERSION = '0.6.0'.freeze
2
+ VERSION = '0.7.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loggun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aleksandr Noskov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-09-22 00:00:00.000000000 Z
12
+ date: 2023-10-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  - !ruby/object:Gem::Version
184
184
  version: '0'
185
185
  requirements: []
186
- rubygems_version: 3.1.2
186
+ rubygems_version: 3.4.6
187
187
  signing_key:
188
188
  specification_version: 4
189
189
  summary: Loggun