karafka-testing 2.0.11 → 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: c1f84bf5bebb37a085bc0c7ccd9e1acfee582cf4aa850e966f8c271a5bbdf6ab
4
- data.tar.gz: 9554beff009178b588c308fc1b5cad2227964a3a0c51b819298e3b18c4039de1
3
+ metadata.gz: fae4b939191c552b4f9a1c7244e832de0f721ea5297c3a741b7c263b1e2d6a52
4
+ data.tar.gz: e12fa021909dca8333090b6bb685f24cc418d6f5f93a3049c51677e3b1a1f46c
5
5
  SHA512:
6
- metadata.gz: e2a4933f9c8f8bac798da2647e34779c84ccc69dc8f53c0401642bee8966cde6fc99d904fece1a31fd8cf1e4e8d60b31c08d2035437c6a00067603b98df5b189
7
- data.tar.gz: '08d586c18840e86d02b57c26906518f643c4546cd3d73817df3e62b08d04e9da4f49d90b4b99ad62c1ef0490a308892f25ea269f4e06dfbb121b8b63052e91e9'
6
+ metadata.gz: ee5da08ea6b37dd2cf9bd19141d246288fdf1cddd4206c2159006cc09df0a63a8dc307cba3920435c5636872c5df8c3d91ca2998f673cf796cc41cf297ae5014
7
+ data.tar.gz: d5555fd3870e33a1a0ae36da998d27326a4fc71a1829990f3442df048d7d28a0a53644415fb82da8f636b7904309e1ca9d03cee2ab16e2365ee1236a9d7d2c24
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.1.1 (2023-06-07)
4
+ - [Enhancement] Support WaterDrop stubs with Mocha.
5
+
6
+ ## 2.1.0 (2023-05-22)
7
+ - [Maintenance] Align Karafka expectations to match `2.1.0`.
8
+
3
9
  ## 2.0.11 (2023-04-13)
4
10
  - Align metadata builder format with Karafka `2.0.40`.
5
11
 
data/Gemfile.lock CHANGED
@@ -1,15 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka-testing (2.0.11)
5
- karafka (>= 2.0.40, < 3.0.0)
4
+ karafka-testing (2.1.1)
5
+ karafka (>= 2.1.0, < 3.0.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
10
  concurrent-ruby (1.2.2)
11
11
  ffi (1.15.5)
12
- karafka (2.0.40)
12
+ karafka (2.1.0)
13
13
  karafka-core (>= 2.0.12, < 3.0.0)
14
14
  thor (>= 0.20)
15
15
  waterdrop (>= 2.4.10, < 3.0.0)
@@ -37,4 +37,4 @@ DEPENDENCIES
37
37
  karafka-testing!
38
38
 
39
39
  BUNDLED WITH
40
- 2.4.10
40
+ 2.4.12
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.signing_key = File.expand_path('~/.ssh/gem-private_key.pem')
25
25
  end
26
26
 
27
- spec.add_dependency 'karafka', '>= 2.0.40', '< 3.0.0'
27
+ spec.add_dependency 'karafka', '>= 2.1.0', '< 3.0.0'
28
28
 
29
29
  spec.metadata = {
30
30
  'funding_uri' => 'https://karafka.io/#become-pro',
@@ -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.0.11'
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.0.11
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-04-13 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
@@ -43,7 +43,7 @@ dependencies:
43
43
  requirements:
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 2.0.40
46
+ version: 2.1.0
47
47
  - - "<"
48
48
  - !ruby/object:Gem::Version
49
49
  version: 3.0.0
@@ -53,7 +53,7 @@ dependencies:
53
53
  requirements:
54
54
  - - ">="
55
55
  - !ruby/object:Gem::Version
56
- version: 2.0.40
56
+ version: 2.1.0
57
57
  - - "<"
58
58
  - !ruby/object:Gem::Version
59
59
  version: 3.0.0
metadata.gz.sig CHANGED
Binary file