sbmt-kafka_producer 2.2.0 → 2.2.2

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: 4f2c9bec545e5dd939135a388d69acd38c4adfbc65c5d0f9db1cfc94d5431290
4
- data.tar.gz: 77d7376225e878c89499bb19bea8cd87230b247a4b238856fc2724101872a9f8
3
+ metadata.gz: a5e838e0df302300e7c1b9b226edd81af21f4f836e520d03d0e47a7263732eec
4
+ data.tar.gz: 21d9f7f42b5338f79734e43737383d819eb53cb8403c57ca4b002aef0bd53416
5
5
  SHA512:
6
- metadata.gz: 9fb93062edacf5150ad961b79031acdbc4adcf7cf823563014b041bd69e78cb988caf46b107b5f27c6fb0eafdc8d460da2b88c3279786aedf7534a3ad4febfb2
7
- data.tar.gz: 11cc83bda4221bac3b65be54606d75dbb2c1acc7e55d6cb41012207ad78fc6715d1bdc3fc8da58ff1bd45d339bdfc2a77167bc7af7115c005d0aa9dd77e536ae
6
+ metadata.gz: d4be18e16012cbb34b54ab75d577ed5847028757859c4363f0c58806daa9a6be91ee698b11867157481ed4e718d5d389c836d31c02541e77f5cb940bafc7dbb7
7
+ data.tar.gz: b7bf961952f18c32b9c51f0bb375ae1c77fffbc5c82b158025e5503997bd99dd05d34dc2b706f2e9740dae59ec4dc7c3370620abdb2c0d9b0bc5df22aedfc828
data/.rubocop.yml CHANGED
@@ -18,7 +18,7 @@ AllCops:
18
18
  NewCops: enable
19
19
  SuggestExtensions: false
20
20
  TargetRubyVersion: 2.7
21
- TargetRailsVersion: 5.2
21
+ TargetRailsVersion: 6.0
22
22
 
23
23
  RSpec/FilePath:
24
24
  Enabled: false
data/Appraisals CHANGED
@@ -3,12 +3,10 @@
3
3
  # See compatibility table at https://www.fastruby.io/blog/ruby/rails/versions/compatibility-table.html
4
4
 
5
5
  versions_map = {
6
- "5.1" => %w[2.7],
7
- "5.2" => %w[2.7],
8
6
  "6.0" => %w[2.7],
9
7
  "6.1" => %w[2.7 3.0],
10
8
  "7.0" => %w[3.1],
11
- "7.1" => %w[3.2]
9
+ "7.1" => %w[3.2, 3.3]
12
10
  }
13
11
 
14
12
  current_ruby_version = RUBY_VERSION.split(".").first(2).join(".")
data/CHANGELOG.md CHANGED
@@ -13,6 +13,19 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
13
13
 
14
14
  ### Fixed
15
15
 
16
+ ## [2.2.2] - 2024-06-15
17
+
18
+ ### Fixed
19
+
20
+ - Fixed display of metrics `kafka_api_calls` and `kafka_api_errors`
21
+
22
+ ## [2.2.1] - 2024-06-07
23
+
24
+ ### Changed
25
+
26
+ - Drop support for Rails 5
27
+ - Temporary limit upper version of Waterdrop to less than 2.7
28
+
16
29
  ## [2.2.0] - 2024-04-12
17
30
 
18
31
  ### Changed
data/Gemfile CHANGED
@@ -3,3 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gemspec
6
+
7
+ # FIXME: remove this after drop support for Ruby 2.7
8
+ gem "ffi", "< 1.17"
@@ -71,7 +71,7 @@ module Sbmt
71
71
  }
72
72
 
73
73
  Yabeda.kafka_api.calls
74
- .increment(broker_tags, by: broker_statistics["tx"])
74
+ .increment(broker_tags, by: broker_statistics["tx_d"])
75
75
  Yabeda.kafka_api.latency
76
76
  .measure(broker_tags, broker_statistics["rtt"]["avg"])
77
77
  Yabeda.kafka_api.request_size
@@ -79,7 +79,7 @@ module Sbmt
79
79
  Yabeda.kafka_api.response_size
80
80
  .measure(broker_tags, broker_statistics["rxbytes"])
81
81
  Yabeda.kafka_api.errors
82
- .increment(broker_tags, by: broker_statistics["txerrs"] + broker_statistics["rxerrs"])
82
+ .increment(broker_tags, by: broker_statistics["txerrs_d"] + broker_statistics["rxerrs_d"])
83
83
  end
84
84
  end
85
85
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sbmt
4
4
  module KafkaProducer
5
- VERSION = "2.2.0"
5
+ VERSION = "2.2.2"
6
6
  end
7
7
  end
@@ -35,7 +35,7 @@ Gem::Specification.new do |spec|
35
35
  spec.add_dependency "connection_pool"
36
36
  spec.add_dependency "dry-initializer", "~> 3.0"
37
37
  spec.add_dependency "dry-struct"
38
- spec.add_dependency "waterdrop", "~> 2.5"
38
+ spec.add_dependency "waterdrop", "~> 2.5", "< 2.7" # BREAKING: undefined method `wait_timeout='' for #<Karafka::Core::Configurable::Node`
39
39
  spec.add_dependency "zeitwerk", "~> 2.6"
40
40
  spec.add_dependency "yabeda", ">= 0.11"
41
41
 
@@ -47,7 +47,7 @@ Gem::Specification.new do |spec|
47
47
  spec.add_development_dependency "opentelemetry-common", ">= 0.17.0"
48
48
  spec.add_development_dependency "opentelemetry-instrumentation-base", ">= 0.17.0"
49
49
  spec.add_development_dependency "rake", ">= 13.0"
50
- spec.add_development_dependency "rails", ">= 5.2"
50
+ spec.add_development_dependency "rails", ">= 6.0"
51
51
  spec.add_development_dependency "rspec", ">= 3.0"
52
52
  spec.add_development_dependency "rspec_junit_formatter", ">= 0.6"
53
53
  spec.add_development_dependency "rspec-rails", ">= 4.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sbmt-kafka_producer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sbermarket Ruby-Platform Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-04-16 00:00:00.000000000 Z
11
+ date: 2024-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: anyway_config
@@ -73,6 +73,9 @@ dependencies:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '2.5'
76
+ - - "<"
77
+ - !ruby/object:Gem::Version
78
+ version: '2.7'
76
79
  type: :runtime
77
80
  prerelease: false
78
81
  version_requirements: !ruby/object:Gem::Requirement
@@ -80,6 +83,9 @@ dependencies:
80
83
  - - "~>"
81
84
  - !ruby/object:Gem::Version
82
85
  version: '2.5'
86
+ - - "<"
87
+ - !ruby/object:Gem::Version
88
+ version: '2.7'
83
89
  - !ruby/object:Gem::Dependency
84
90
  name: zeitwerk
85
91
  requirement: !ruby/object:Gem::Requirement
@@ -226,14 +232,14 @@ dependencies:
226
232
  requirements:
227
233
  - - ">="
228
234
  - !ruby/object:Gem::Version
229
- version: '5.2'
235
+ version: '6.0'
230
236
  type: :development
231
237
  prerelease: false
232
238
  version_requirements: !ruby/object:Gem::Requirement
233
239
  requirements:
234
240
  - - ">="
235
241
  - !ruby/object:Gem::Version
236
- version: '5.2'
242
+ version: '6.0'
237
243
  - !ruby/object:Gem::Dependency
238
244
  name: rspec
239
245
  requirement: !ruby/object:Gem::Requirement
@@ -420,7 +426,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
420
426
  - !ruby/object:Gem::Version
421
427
  version: '0'
422
428
  requirements: []
423
- rubygems_version: 3.4.10
429
+ rubygems_version: 3.5.11
424
430
  signing_key:
425
431
  specification_version: 4
426
432
  summary: Ruby gem for producing Kafka messages