sbmt-kafka_producer 3.2.0 → 3.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: 3ce35f992f57c20f9746ed0c2d914f9fe8a783bad484d4b1edc0007bab97d0c0
4
- data.tar.gz: b03f5d0240033e4d38bf11aa80c140e13d2776260d606bd74093cb8fb143e862
3
+ metadata.gz: 3ea0a004bfc52e8ea17147e3790736b3a11a872a3f07e8c0d116f556e16d1547
4
+ data.tar.gz: a564730ca23fe349b675781d4c3baf2ba176b29276fb5898f6f4375f4ac3ff37
5
5
  SHA512:
6
- metadata.gz: 244f293d301325ecfbffff6d19c9683488f265028d384dde9dd0ca445451185ea4f48b7225ade46ad32e86d9f29549a0bf47446b7d27eb9332efac0ac41b7e5d
7
- data.tar.gz: 66981ce8b08d64ea14f474cee45a8d776fd10326516c7abeade30261a1646b385e8621037918986995e76c956dfa2ef8e17ea7b3222b1d23202080bb187a330d
6
+ metadata.gz: ad63b11408ba5e6cf902ed147cafcb36f384e59ba3464b70497f3cf14fe34527dd4e7ce9a0ec2e286839eb108c3c4e5163a225f7547712e8da1a747740a757ec
7
+ data.tar.gz: 224a37380c9a438b2bff12a98b75b4e61bcec1b35acd6301c47aca446a885359b0ea8054d39c417c4c42764ed28083cc4bc313072dd686e506769b10a8227704
data/Appraisals CHANGED
@@ -6,7 +6,8 @@ versions_map = {
6
6
  "6.1" => %w[2.7 3.0],
7
7
  "7.0" => %w[3.1],
8
8
  "7.1" => %w[3.2],
9
- "7.2" => %w[3.3]
9
+ "7.2" => %w[3.3],
10
+ "8.0" => %w[3.3]
10
11
  }
11
12
 
12
13
  current_ruby_version = RUBY_VERSION.split(".").first(2).join(".")
data/CHANGELOG.md CHANGED
@@ -13,6 +13,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
13
13
 
14
14
  ### Fixed
15
15
 
16
+ ## [3.2.2] - 2025-01-27
17
+
18
+ ### Fixed
19
+
20
+ - Kafka configuration was overwritten with the default authorization options (#2)
21
+
22
+ ## [3.2.1] - 2024-12-26
23
+
24
+ ### Fixed
25
+
26
+ - Fix initialize yabeda metrics
27
+
16
28
  ## [3.2.0] - 2024-11-22
17
29
 
18
30
  ### Changed
data/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- source ENV.fetch("NEXUS_PUBLIC_SOURCE_URL", "https://rubygems.org")
3
+ source ENV.fetch("RUBYGEMS_PUBLIC_SOURCE", "https://rubygems.org")
4
4
 
5
5
  gemspec
data/README.md CHANGED
@@ -106,6 +106,18 @@ auth:
106
106
  sasl_mechanism: SCRAM-SHA-512
107
107
  ```
108
108
 
109
+ If you need to use another variant, use the low-level custom Kafka options `kafka_config:` of `config/kafka_producer.yml`. These options will overwrite the options in the auth section.
110
+
111
+ Example of SASL_SSL protocol auth via `kafka_config`:
112
+
113
+ ```yaml
114
+ kafka_config:
115
+ security.protocol: SASL_SSL
116
+ sasl.username: user
117
+ sasl.password: pwd
118
+ ssl.ca.pem: ca_cert
119
+ sasl.mechanism: SCRAM-SHA-512
120
+ ```
109
121
  ### `kafka` config section
110
122
 
111
123
  The `servers` key is required and should be in rdkafka format: without `kafka://` prefix, for example: `srv1:port1,srv2:port2,...`.
@@ -41,8 +41,8 @@ module Sbmt
41
41
  coerce_types auth: coerce_to(Auth)
42
42
 
43
43
  def to_kafka_options
44
- kafka.to_kafka_options
45
- .merge(auth.to_kafka_options)
44
+ auth.to_kafka_options
45
+ .merge(kafka.to_kafka_options)
46
46
  end
47
47
  end
48
48
  end
@@ -3,7 +3,7 @@
3
3
  module Sbmt
4
4
  module KafkaProducer
5
5
  class Railtie < Rails::Railtie
6
- initializer "sbmt_kafka_producer_yabeda.configure_rails_initialization" do
6
+ config.before_initialize do
7
7
  YabedaConfigurer.configure
8
8
  end
9
9
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sbmt
4
4
  module KafkaProducer
5
- VERSION = "3.2.0"
5
+ VERSION = "3.2.2"
6
6
  end
7
7
  end
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: 3.2.0
4
+ version: 3.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kuper Ruby-Platform Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-25 00:00:00.000000000 Z
11
+ date: 2025-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: anyway_config
@@ -426,7 +426,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
426
426
  - !ruby/object:Gem::Version
427
427
  version: '0'
428
428
  requirements: []
429
- rubygems_version: 3.3.7
429
+ rubygems_version: 3.5.21
430
430
  signing_key:
431
431
  specification_version: 4
432
432
  summary: Ruby gem for producing Kafka messages