sbmt-kafka_producer 3.1.1 → 3.2.1

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: df2d6a732b779366dbb7f47c0f3b97020cdf21772f72c94ea20bc929ddc8cdad
4
- data.tar.gz: 3327e30a17a00cc1a200e87cf40db7e22d03a4494c54fae4d4dcc237e88e1ff2
3
+ metadata.gz: 7ef04b2d6c65a948b331f8391febd8071c8c8b89a731cf93502d6db81c3f1bf4
4
+ data.tar.gz: '08994cb0a8a3fd85bda21025445aa100b522bc765e1587f41ee239ef69ad04f1'
5
5
  SHA512:
6
- metadata.gz: dc264c48c8979e1a8ae288132a83e384957e2a8341b6f699d5a0801124d3a17c062fb45e80b6bdec389b0a29fab1afeed689b8598802ec233d68050254c59dc1
7
- data.tar.gz: 51b34e850f32e9f7442455f2dab19dbc924ee3dd91c22cfb9824556c2c8674472f3e5d0ba490718a054207613980b3a52b4cd13221a6a4f04e8c8336d1fbd660
6
+ metadata.gz: 624be193d11ef46925a37ad8ba8060f9358165c73b5896209cf29ae3face7a3f614f85ed5e7b1551588eb15f0a203148c80c451fe198e531de040c2c24c4f5a1
7
+ data.tar.gz: bf2b7570b5b994cd4fa5c38caf5703b0dc19730ba77edbf0bed7e8a3ef89576f4f74942956abaf571750d9a84fa4b14adf1268831da090f27fa40caf677c674a
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.1] - 2024-12-26
17
+
18
+ ### Fixed
19
+
20
+ - Fix initialize yabeda metrics
21
+
22
+ ## [3.2.0] - 2024-11-22
23
+
24
+ ### Changed
25
+
26
+ - Removed `ignore_kafka_error` option
27
+
16
28
  ## [3.1.1] - 2024-10-31
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
@@ -62,7 +62,6 @@ The `config/kafka_producer.yml` file is the main configuration for this gem.
62
62
  ```yaml
63
63
  default: &default
64
64
  deliver: true
65
- ignore_kafka_error: true
66
65
  # see more options at https://github.com/karafka/waterdrop/blob/master/lib/waterdrop/config.rb
67
66
  wait_on_queue_full: true
68
67
  max_payload_size: 1000012
@@ -3,7 +3,6 @@ default: &default
3
3
  wait_on_queue_full: true
4
4
  max_payload_size: 1000012
5
5
  max_wait_timeout: 60000
6
- ignore_kafka_error: true
7
6
 
8
7
  auth:
9
8
  sasl_username: <%= ENV.fetch('KAFKA_BROKERS'){ 'SCRAM-SHA-512:kafka_login:kafka_password' }.split(':').second %>
@@ -75,13 +75,7 @@ module Sbmt
75
75
  result
76
76
  end
77
77
 
78
- def ignore_kafka_errors?
79
- config.ignore_kafka_error.to_s == "true"
80
- end
81
-
82
78
  def log_error(error)
83
- return true if ignore_kafka_errors?
84
-
85
79
  log_tags = {stacktrace: error.backtrace.join("\n")}
86
80
 
87
81
  logger.tagged(log_tags) do
@@ -27,15 +27,14 @@ module Sbmt
27
27
 
28
28
  config_name :kafka_producer
29
29
 
30
- attr_config :ignore_kafka_error, :deliver, :wait_on_queue_full,
30
+ attr_config :deliver, :wait_on_queue_full,
31
31
  :max_payload_size, :max_wait_timeout,
32
32
  :wait_on_queue_full_timeout,
33
33
  auth: {}, kafka: {},
34
34
  logger_class: "::Sbmt::KafkaProducer::Logger",
35
35
  metrics_listener_class: "::Sbmt::KafkaProducer::Instrumentation::YabedaMetricsListener"
36
36
 
37
- coerce_types ignore_kafka_error: :boolean,
38
- deliver: :boolean, wait_on_queue_full: :boolean,
37
+ coerce_types deliver: :boolean, wait_on_queue_full: :boolean,
39
38
  max_payload_size: :integer, max_wait_timeout: :integer,
40
39
  wait_on_queue_full_timeout: :integer
41
40
  coerce_types kafka: coerce_to(Kafka)
@@ -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.1.1"
5
+ VERSION = "3.2.1"
6
6
  end
7
7
  end
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = "https://github.com/Kuper-Tech/sbmt-kafka_producer"
14
14
  spec.required_ruby_version = ">= 3.0.0"
15
15
 
16
- spec.metadata["allowed_push_host"] = "https://rubygems.org"
16
+ spec.metadata["allowed_push_host"] = ENV.fetch("NEXUS_URL", "https://rubygems.org")
17
17
 
18
18
  spec.metadata["homepage_uri"] = spec.homepage
19
19
  spec.metadata["source_code_uri"] = spec.homepage
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.1.1
4
+ version: 3.2.1
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-10-31 00:00:00.000000000 Z
11
+ date: 2024-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: anyway_config