sbmt-kafka_consumer 3.4.1 → 3.4.2

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: af93b22c9aee1651414e9403f9de60ffbf2c2d85288a1b5f104f9b7b3399d405
4
- data.tar.gz: 3e5a22909901810fee2becfd11a6564575a1c801311eac7e3a47f904bd30a600
3
+ metadata.gz: 46ea6a25a613913774156f44f2c81c402b647f3009e83900bdf8e46440c310fd
4
+ data.tar.gz: 2ee4be3a0439595064d837023fcbcd47a96077ac3e4928599ecdf5cb93b8fb08
5
5
  SHA512:
6
- metadata.gz: 91720a7822537c66443713a12b8039e1525c09e9c5fc25aa55d91246081b566c91512a51a3595207ab137089db08468810cab9ad1d94fd32a63c97fcc6aef35b
7
- data.tar.gz: 6378ea65496f58f5d9dd1543b9d90a181fef5ff6f3ea254f940298b83c4a8deb299de286beacc8ea258a153dea3d135566a2378f0510857ef515da6b34948ab3
6
+ metadata.gz: 1069c06f8d3f8a9195c0b6405042d78131631e9dc391affb1feb1895efe6f4b95b657ca3194d852d80f0c4592cb7cf2d820dbadcd944ab21f2c26ab270c8dfa3
7
+ data.tar.gz: f75958623481cd4885825e3f8bf61808adbd52ff6d22b8eb19bd049bb0d6a1e2bb4f36e093ba69db0cc657eec694f287c0843d44ae4493b1432cbbfc38fe51bb
data/CHANGELOG.md CHANGED
@@ -13,6 +13,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
13
13
 
14
14
  ### Fixed
15
15
 
16
+ ## [3.4.2] - 2025-04-02
17
+
18
+ ### Fixed
19
+ - Properly resolve constant `YabedaConfigurer`
20
+
16
21
  ## [3.4.1] - 2025-03-06
17
22
 
18
23
  ### Fixed
@@ -17,7 +17,7 @@ class Sbmt::KafkaConsumer::ClientConfigurer
17
17
 
18
18
  karafka_config.pause_with_exponential_backoff = config.pause_with_exponential_backoff if config.pause_with_exponential_backoff.present?
19
19
 
20
- karafka_config.concurrency = (opts[:concurrency]) || config.concurrency
20
+ karafka_config.concurrency = opts[:concurrency] || config.concurrency
21
21
 
22
22
  # Do not validate topics naming consistency
23
23
  # see https://github.com/karafka/karafka/wiki/FAQ#why-am-i-seeing-a-needs-to-be-consistent-namespacing-style-error
@@ -11,6 +11,8 @@ module Sbmt
11
11
  consumer.mark_as_consumed
12
12
  ].freeze
13
13
 
14
+ delegate :enabled?, to: :class
15
+
14
16
  class << self
15
17
  def enabled?
16
18
  !!@enabled
@@ -19,10 +21,6 @@ module Sbmt
19
21
  attr_writer :enabled
20
22
  end
21
23
 
22
- def enabled?
23
- self.class.enabled?
24
- end
25
-
26
24
  def trace(&block)
27
25
  return handle_consumed_one(&block) if @event_id == "consumer.consumed_one"
28
26
  return handle_consumed_batch(&block) if @event_id == "consumer.consumed_batch"
@@ -6,7 +6,8 @@ module Sbmt
6
6
  module KafkaConsumer
7
7
  class Railtie < Rails::Railtie
8
8
  config.before_initialize do
9
- YabedaConfigurer.configure
9
+ require "sbmt/kafka_consumer/yabeda_configurer"
10
+ ::Sbmt::KafkaConsumer::YabedaConfigurer.configure
10
11
  end
11
12
 
12
13
  # it must be consistent with sbmt_karafka initializers' name
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sbmt
4
4
  module KafkaConsumer
5
- VERSION = "3.4.1"
5
+ VERSION = "3.4.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sbmt-kafka_consumer
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.1
4
+ version: 3.4.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: 2025-03-06 00:00:00.000000000 Z
11
+ date: 2025-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails