karafka-testing 2.1.4 → 2.1.5

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: 053ac6d1b86ca621030d7d73ad5e8c629a8b3c4ebf05c83ab89646772edf6565
4
- data.tar.gz: 3c8182120690c121f41ea395ddef68b35ef18af9a4a448b106dc1efbd45cb5d2
3
+ metadata.gz: 03bafbd13410d642081b2d48089cddab05a67fcde695aab36170e355d7e5a6ee
4
+ data.tar.gz: 330c7f0bfdf78b3ee6f265f7dfe80328dd1d3c17ccd24e4ac4c50eb0f7b84960
5
5
  SHA512:
6
- metadata.gz: 8dc3c9437a06c83b85329170d670172152b17c0057b6a40655630032d885f7a743306eaafdd737ac7a65db4a0a9aa3da2d53f2aac2659587a31b8b3e9a3cb16e
7
- data.tar.gz: 67cbaef664caedeadb54cd8fa1ccc3be917fbc17f5cfe34b22a1ad8ee259937f652de68e16dc870ef7b490f66ec16856d2de3f3e841075ad17620725e041f329
6
+ metadata.gz: 006c9d20aa033515813738fe904a00871f0965ac4de505fdc7682adcc413e3e22a36e94f9446ff5ea97ce5b139001590e5fa5dbb52975deb5498daa94515de40
7
+ data.tar.gz: 154b7141b13b9a781f08e24826030f8d4afbcd5015f31b2b0570af70406ff52e4208844efbed6d327d4fdb045305eba3f688a3c07d19399149f70036b6018fd9
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Karafka Test gem changelog
2
2
 
3
+ ## 2.1.5 (2023-07-22)
4
+ - [Enhancement] User `prepend_before` instead of `prepend` for RSpec (ojab)
5
+ - [Enhancement] Add support for client `#commit_offsets` and `#commit_offsets!` stubs.
6
+ - [Fix] Make sure that `#mark_as_consumed!` and `#mark_as_consumed` return true.
7
+
3
8
  ## 2.1.4 (2023-06-20)
4
9
  - [Fix] Fix invalid consumer group assignment for consumers created for non-default consumer group when same topic is being used multiple times.
5
10
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka-testing (2.1.4)
4
+ karafka-testing (2.1.5)
5
5
  karafka (>= 2.1.5, < 3.0.0)
6
6
  waterdrop (>= 2.6.1)
7
7
 
@@ -29,7 +29,7 @@ module Karafka
29
29
  # Producer fake client to mock communication with Kafka
30
30
  base.let(:_karafka_producer_client) { Karafka::Testing::SpecProducerClient.new(self) }
31
31
 
32
- base.before do
32
+ base.prepend_before do
33
33
  _karafka_consumer_messages.clear
34
34
  _karafka_producer_client.reset
35
35
 
@@ -9,8 +9,10 @@ module Karafka
9
9
  %i[
10
10
  mark_as_consumed
11
11
  mark_as_consumed!
12
+ commit_offsets
13
+ commit_offsets!
12
14
  ].each do |caught_delegator|
13
- define_method(caught_delegator) { |*| }
15
+ define_method(caught_delegator) { |*| true }
14
16
  end
15
17
 
16
18
  # @return [Boolean] assignments are never lost for specs
@@ -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.1.4'
7
+ VERSION = '2.1.5'
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.1.4
4
+ version: 2.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Mensfeld
@@ -35,7 +35,7 @@ cert_chain:
35
35
  Qf04B9ceLUaC4fPVEz10FyobjaFoY4i32xRto3XnrzeAgfEe4swLq8bQsR3w/EF3
36
36
  MGU0FeSV2Yj7Xc2x/7BzLK8xQn5l7Yy75iPF+KP3vVmDHnNl
37
37
  -----END CERTIFICATE-----
38
- date: 2023-06-20 00:00:00.000000000 Z
38
+ date: 2023-07-22 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: karafka
metadata.gz.sig CHANGED
Binary file