karafka 2.4.17 → 2.4.18

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: a26065fae7fe2d8f878b56e497d3551f3f0277b27ed3356b59fd478f017b4144
4
- data.tar.gz: 356d0e078a32f0b22dc7d06d0f0e896d17b55e7a52866acf92933aeb6a611548
3
+ metadata.gz: 66dcb47a4936205b3d71838001db5c64e6fab4da332f54fcb8e64521a081c871
4
+ data.tar.gz: 5f113ec8bc1459a5994acf8935c802b893695fd69002937b4a91b5697423cb81
5
5
  SHA512:
6
- metadata.gz: 1043bb3ff799cc5294de4936552f4dcc3a78f9aabca275fd35259c87dfdc257cc63a778722d833c8a1f3e9449084e6266e6cd507d396cd92457b8e6078ced631
7
- data.tar.gz: 57fe56b280f460be5f3fe2a734587d75ad08e25ae96363da68d5791fe62b6427402de400e6cae2e38660bbcefdb314be45d0299d15c50131a1ebe15f44c23c96
6
+ metadata.gz: 1abbfec5c703e755f012d9171934e7486ab0fbfd1295c0fd2b81216156783156415aaa2d547215aa9ec8a62f54db53b269181ed6638644c66529456f897a708a
7
+ data.tar.gz: 677b50678298d384ea4862fc703327a9e351d1f2bacd82f027f4f43fd60cceaac81a93cec133c005e7f90f917162301ff5725bfe5f0ba6ed1754ce2fa0503c66
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Karafka Framework Changelog
2
2
 
3
+ ## 2.4.18 (2025-04-09)
4
+ - [Fix] Make sure `Bundler.with_unbundled_env` is not called multiple times.
5
+
3
6
  ## 2.4.17 (2025-01-15)
4
7
  - [Enhancement] Clean message key and headers when cleaning messages via the cleaner API (Pro).
5
8
  - [Enhancement] Allow for setting `metadata: false` in the cleaner API for granular cleaning control (Pro)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka (2.4.17)
4
+ karafka (2.4.18)
5
5
  base64 (~> 0.2)
6
6
  karafka-core (>= 2.4.4, < 2.5.0)
7
7
  karafka-rdkafka (>= 0.17.2)
@@ -123,4 +123,4 @@ DEPENDENCIES
123
123
  stringio
124
124
 
125
125
  BUNDLED WITH
126
- 2.6.2
126
+ 2.4.22
@@ -3,5 +3,5 @@
3
3
  # Main module namespace
4
4
  module Karafka
5
5
  # Current Karafka version
6
- VERSION = '2.4.17'
6
+ VERSION = '2.4.18'
7
7
  end
data/lib/karafka.rb CHANGED
@@ -56,15 +56,21 @@ module Karafka
56
56
 
57
57
  # @return [Pathname] Karafka app root path (user application path)
58
58
  def root
59
+ return @root if @root
60
+
59
61
  # If user points to a different root explicitly, use it
60
- return Pathname.new(ENV['KARAFKA_ROOT_DIR']) if ENV['KARAFKA_ROOT_DIR']
62
+ if ENV['KARAFKA_ROOT_DIR']
63
+ @root = Pathname.new(ENV['KARAFKA_ROOT_DIR'])
64
+
65
+ return @root
66
+ end
61
67
 
62
68
  # By default we infer the project root from bundler.
63
69
  # We cannot use the BUNDLE_GEMFILE env directly because it may be altered by things like
64
70
  # ruby-lsp. Instead we always fallback to the most outer Gemfile. In most of the cases, it
65
71
  # won't matter but in case of some automatic setup alterations like ruby-lsp, the location
66
72
  # from which the project starts may not match the original Gemfile.
67
- Pathname.new(
73
+ @root = Pathname.new(
68
74
  File.dirname(
69
75
  Bundler.with_unbundled_env { Bundler.default_gemfile }
70
76
  )
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: karafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.17
4
+ version: 2.4.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Mensfeld
@@ -34,7 +34,7 @@ cert_chain:
34
34
  i9zWxov0mr44TWegTVeypcWGd/0nxu1+QHVNHJrpqlPBRvwQsUm7fwmRInGpcaB8
35
35
  ap8wNYvryYzrzvzUxIVFBVM5PacgkFqRmolCa8I7tdKQN+R1
36
36
  -----END CERTIFICATE-----
37
- date: 2025-01-15 00:00:00.000000000 Z
37
+ date: 2025-04-09 00:00:00.000000000 Z
38
38
  dependencies:
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: base64
metadata.gz.sig CHANGED
Binary file