karafka-testing 2.4.0 → 2.4.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: f0075ae4b6753ffed88f26fe1e9a65ebd9927ee0aa22dd5b5a720597d89f8921
4
- data.tar.gz: f2bdfa9155f2d614ce9946e6387676fff10424a2d8a5a3f391c57795c3a4556b
3
+ metadata.gz: 6aecdc81babc8c73c80c65934abb2dfcddd59a919228cf0a62afe4fa787c7e68
4
+ data.tar.gz: 1be6197c9e2f9186b8e56e176351254eb54726166cfdf4ebbd2ee48836c08048
5
5
  SHA512:
6
- metadata.gz: ff791c4d3d10d92a05130857fd31e0b562ebdb310ccf6773376f927724d4c7625a799f75c6014e45e376636d776a99a67fed0963da1348fb9b94cfcce0eab0eb
7
- data.tar.gz: 18d8ea8673e867c7df81142a884d34bde31f467470f9d077960dfd8c53727f951328948a278697f42968935d3fa63604cfbaaf596eca4cc935a4ddfe75e7f1a6
6
+ metadata.gz: 7a2ec5091955cafed3cafcd29407ac8ac38b90c378c2a950fd9ad7690582c9a1b7553ad64bbd0763783ecda5b75d507f821f8f6555fe81c665b4cf78c0b175e3
7
+ data.tar.gz: 406958b6a7c9ee99e446ebe33564a7ebb9e87c50384c89fc7b855ff280c68b51e15b2f3d50f0daa14faefcd58caed8bc0028a0bdb68cb3d26697dc49b2a54aab
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Karafka Test gem changelog
2
2
 
3
+ ## 2.4.2 (2024-06-30)
4
+ - [Fix] Fix FrozenError when accessing key and headers in `Karafka::Messages::Metadata` (tldn0718)
5
+
6
+ ## 2.4.1 (2024-06-29)
7
+ - [Fix] Fix instance variable in minitest helper (tldn0718)
8
+
3
9
  ## 2.4.0 (2024-04-26)
4
10
  - **[Breaking]** Drop Ruby `2.7` support.
5
11
  - [Refactor] Extract common components for Minitest and RSpec.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka-testing (2.4.0)
4
+ karafka-testing (2.4.2)
5
5
  karafka (>= 2.4.0, < 2.5.0)
6
6
  waterdrop (>= 2.7.0)
7
7
 
@@ -100,7 +100,7 @@ module Karafka
100
100
  # Add this message to previously produced messages
101
101
  @_karafka_consumer_messages << Karafka::Messages::Message.new(
102
102
  message[:payload],
103
- Karafka::Messages::Metadata.new(metadata).freeze
103
+ Karafka::Messages::Metadata.new(metadata)
104
104
  )
105
105
  # Update batch metadata
106
106
  batch_metadata = Karafka::Messages::Builders::BatchMetadata.call(
@@ -163,7 +163,7 @@ module Karafka
163
163
  # Inject appropriate strategy so needed options and components are available
164
164
  strategy = Karafka::App.config.internal.processing.strategy_selector.find(topic)
165
165
  @consumer.singleton_class.include(strategy)
166
- @consumer.client = @karafka_consumer_client
166
+ @consumer.client = @_karafka_consumer_client
167
167
  @consumer.coordinator = coordinators.find_or_create(topic.name, 0)
168
168
  @consumer.coordinator.seek_offset = 0
169
169
  # Indicate usage as for tests no direct enqueuing happens
@@ -108,7 +108,7 @@ module Karafka
108
108
  # Add this message to previously produced messages
109
109
  _karafka_consumer_messages << Karafka::Messages::Message.new(
110
110
  message[:payload],
111
- Karafka::Messages::Metadata.new(metadata).freeze
111
+ Karafka::Messages::Metadata.new(metadata)
112
112
  )
113
113
 
114
114
  # Update batch metadata
@@ -4,6 +4,6 @@
4
4
  module Karafka
5
5
  module Testing
6
6
  # Current version of gem. It should match Karafka framework version
7
- VERSION = '2.4.0'
7
+ VERSION = '2.4.2'
8
8
  end
9
9
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: karafka-testing
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Mensfeld
@@ -35,7 +35,7 @@ cert_chain:
35
35
  AnG1dJU+yL2BK7vaVytLTstJME5mepSZ46qqIJXMuWob/YPDmVaBF39TDSG9e34s
36
36
  msG3BiCqgOgHAnL23+CN3Rt8MsuRfEtoTKpJVcCfoEoNHOkc
37
37
  -----END CERTIFICATE-----
38
- date: 2024-04-26 00:00:00.000000000 Z
38
+ date: 2024-04-30 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: karafka
metadata.gz.sig CHANGED
Binary file