karafka-testing 2.1.0 → 2.1.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: ffde2b857a9458b775eba84baaedb83a81fef050c484370f8c0156a71aee763d
4
- data.tar.gz: 52227a01c8ff61c50db492ecfd469e42d1d24ce8e46740ffd8df49e3f69d1293
3
+ metadata.gz: fae4b939191c552b4f9a1c7244e832de0f721ea5297c3a741b7c263b1e2d6a52
4
+ data.tar.gz: e12fa021909dca8333090b6bb685f24cc418d6f5f93a3049c51677e3b1a1f46c
5
5
  SHA512:
6
- metadata.gz: b5ab336e1f578c9c918678d614226600ad4f14eb5dcf9404dfd0d6749b4f66d4fd62cf0372263bfb063fa948de1b2aeb47d9c374b5fe2fbf87ebe02b47a9dfef
7
- data.tar.gz: 4be00387b896b5b29fbbcdc5481827e736bbc8eed9ddd2cfac773bf542fe2ad7db7a385dadd5d59ade7f15f637e40be8459d0094b6f25f648d29905fe2d55599
6
+ metadata.gz: ee5da08ea6b37dd2cf9bd19141d246288fdf1cddd4206c2159006cc09df0a63a8dc307cba3920435c5636872c5df8c3d91ca2998f673cf796cc41cf297ae5014
7
+ data.tar.gz: d5555fd3870e33a1a0ae36da998d27326a4fc71a1829990f3442df048d7d28a0a53644415fb82da8f636b7904309e1ca9d03cee2ab16e2365ee1236a9d7d2c24
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,7 +1,10 @@
1
1
  # Karafka Test gem changelog
2
2
 
3
+ ## 2.1.1 (2023-06-07)
4
+ - [Enhancement] Support WaterDrop stubs with Mocha.
5
+
3
6
  ## 2.1.0 (2023-05-22)
4
- - Align Karafka expectations to match `2.1.0`.
7
+ - [Maintenance] Align Karafka expectations to match `2.1.0`.
5
8
 
6
9
  ## 2.0.11 (2023-04-13)
7
10
  - Align metadata builder format with Karafka `2.0.40`.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka-testing (2.1.0)
4
+ karafka-testing (2.1.1)
5
5
  karafka (>= 2.1.0, < 3.0.0)
6
6
 
7
7
  GEM
@@ -33,7 +33,11 @@ module Karafka
33
33
  _karafka_consumer_messages.clear
34
34
  _karafka_producer_client.reset
35
35
 
36
- allow(Karafka.producer).to receive(:client).and_return(_karafka_producer_client)
36
+ if Object.const_defined?('Mocha', false)
37
+ Karafka.producer.stubs(:client).returns(_karafka_producer_client)
38
+ else
39
+ allow(Karafka.producer).to receive(:client).and_return(_karafka_producer_client)
40
+ end
37
41
  end
38
42
  end
39
43
  end
@@ -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.0'
7
+ VERSION = '2.1.1'
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.0
4
+ version: 2.1.1
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-05-22 00:00:00.000000000 Z
38
+ date: 2023-06-07 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: karafka
metadata.gz.sig CHANGED
Binary file