karafka-testing 2.4.0.beta1 → 2.4.0.rc1

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: e62624d40d7aa454841a212de1beaf67127ef06873bd0604dcbfe4747a397cf5
4
- data.tar.gz: 2e031857e92ce50f55ea24e3cb32309a070c11ea930de263f05ec9c82f24992d
3
+ metadata.gz: 587bb151db13812b7c26215c9357264f21a3357448fffe542363042db19c7744
4
+ data.tar.gz: 2c624b601afc5384ae7ce43bf6b0ac19f27a8ec8b00aacd796c33da5e19fdd40
5
5
  SHA512:
6
- metadata.gz: b2c5398aa8d03a31499a29b60f3e45456e6151cbbd57f979dac9ddc6aea283e5fb6b0613a1df336fb3d46284af16861125a7df980c9701ace2af2d2d3ef8336f
7
- data.tar.gz: f32201af31b9e0840ce41e7c17a16a64b7fedfb99a4cb1815f2b18a1fa45bed474eb9dc02e3b68e504a0d2be2191a141e64ed52fad25fee9ba86e42030250a0f
6
+ metadata.gz: c70be00aeb884026f00025dc207219761ba5374e91980d89fffff2b4a76eef26098896cf60860d8f9dc088e8606569ab23c3b6ad6b75e31225ca6ad51f7296c4
7
+ data.tar.gz: 344b7a3176b89a1882656eb730a458093b580e25a4e6363472b3dd95f200999697c5216814fbecb4c214a50f231e6e32f46cca1af6c90a6274ce4b6b09f19e4d
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -4,6 +4,9 @@
4
4
  - **[Breaking]** Drop Ruby `2.7` support.
5
5
  - [Fix] Support again `require: false` on gem loading.
6
6
 
7
+ ## 2.3.2 (2024-04-03)
8
+ - [Enhancement] Support `Minitest::Spec`.
9
+
7
10
  ## 2.3.1 (2024-03-07)
8
11
  - [Enhancement] Prevent usage of testing when Karafka is not loaded.
9
12
  - [Enhancement] Prevent usage of testing when Karafka is not initialized.
data/Gemfile.lock CHANGED
@@ -1,28 +1,28 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka-testing (2.4.0.beta1)
5
- karafka (>= 2.3.0, < 2.5.0)
6
- waterdrop (>= 2.7.0.beta2)
4
+ karafka-testing (2.4.0.rc1)
5
+ karafka (>= 2.4.0.beta1, < 2.5.0)
6
+ waterdrop (>= 2.7.0.rc1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
11
  ffi (1.16.3)
12
- karafka (2.3.3)
13
- karafka-core (>= 2.3.0, < 2.4.0)
14
- waterdrop (>= 2.6.12, < 3.0.0)
12
+ karafka (2.4.0.beta1)
13
+ karafka-core (>= 2.4.0.rc1, < 2.5.0)
14
+ waterdrop (>= 2.7.0.rc1, < 3.0.0)
15
15
  zeitwerk (~> 2.3)
16
- karafka-core (2.4.0.beta2)
17
- karafka-rdkafka (>= 0.15.0.beta3, < 0.16.0)
18
- karafka-rdkafka (0.15.0.beta3)
16
+ karafka-core (2.4.0.rc1)
17
+ karafka-rdkafka (>= 0.15.0.rc1, < 0.16.0)
18
+ karafka-rdkafka (0.15.0.rc1)
19
19
  ffi (~> 1.15)
20
20
  mini_portile2 (~> 2.6)
21
21
  rake (> 12)
22
22
  mini_portile2 (2.8.5)
23
- rake (13.1.0)
24
- waterdrop (2.7.0.beta2)
25
- karafka-core (>= 2.4.0.beta2, < 3.0.0)
23
+ rake (13.2.1)
24
+ waterdrop (2.7.0.rc1)
25
+ karafka-core (>= 2.4.0.rc1, < 3.0.0)
26
26
  zeitwerk (~> 2.3)
27
27
  zeitwerk (2.6.13)
28
28
 
@@ -34,4 +34,4 @@ DEPENDENCIES
34
34
  karafka-testing!
35
35
 
36
36
  BUNDLED WITH
37
- 2.5.6
37
+ 2.5.7
@@ -24,8 +24,8 @@ 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.3.0', '< 2.5.0'
28
- spec.add_dependency 'waterdrop', '>= 2.7.0.beta2'
27
+ spec.add_dependency 'karafka', '>= 2.4.0.beta1', '< 2.5.0'
28
+ spec.add_dependency 'waterdrop', '>= 2.7.0.rc1'
29
29
 
30
30
  spec.required_ruby_version = '>= 3.0.0'
31
31
 
@@ -17,19 +17,27 @@ module Karafka
17
17
  # Adds all the needed extra functionalities to the minitest group
18
18
  # @param base [Class] Minitest example group we want to extend
19
19
  def included(base)
20
- base.class_eval do
21
- setup do
22
- Karafka::Testing.ensure_karafka_initialized!
20
+ eval_flow = lambda do
21
+ Karafka::Testing.ensure_karafka_initialized!
23
22
 
24
- @karafka = Karafka::Testing::Minitest::Proxy.new(self)
25
- @_karafka_consumer_messages = []
26
- @_karafka_consumer_client = Karafka::Testing::SpecConsumerClient.new
27
- @_karafka_producer_client = Karafka::Testing::SpecProducerClient.new(self)
23
+ @karafka = Karafka::Testing::Minitest::Proxy.new(self)
24
+ @_karafka_consumer_messages = []
25
+ @_karafka_consumer_client = Karafka::Testing::SpecConsumerClient.new
26
+ @_karafka_producer_client = Karafka::Testing::SpecProducerClient.new(self)
28
27
 
29
- @_karafka_consumer_messages.clear
30
- @_karafka_producer_client.reset
28
+ @_karafka_consumer_messages.clear
29
+ @_karafka_producer_client.reset
31
30
 
32
- Karafka.producer.stubs(:client).returns(@_karafka_producer_client)
31
+ Karafka.producer.stubs(:client).returns(@_karafka_producer_client)
32
+ end
33
+
34
+ if base.to_s == 'Minitest::Spec'
35
+ base.class_eval do
36
+ before(&eval_flow)
37
+ end
38
+ else
39
+ base.class_eval do
40
+ setup(&eval_flow)
33
41
  end
34
42
  end
35
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.4.0.beta1'
7
+ VERSION = '2.4.0.rc1'
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.beta1
4
+ version: 2.4.0.rc1
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-03-27 00:00:00.000000000 Z
38
+ date: 2024-04-10 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.3.0
46
+ version: 2.4.0.beta1
47
47
  - - "<"
48
48
  - !ruby/object:Gem::Version
49
49
  version: 2.5.0
@@ -53,7 +53,7 @@ dependencies:
53
53
  requirements:
54
54
  - - ">="
55
55
  - !ruby/object:Gem::Version
56
- version: 2.3.0
56
+ version: 2.4.0.beta1
57
57
  - - "<"
58
58
  - !ruby/object:Gem::Version
59
59
  version: 2.5.0
@@ -63,14 +63,14 @@ dependencies:
63
63
  requirements:
64
64
  - - ">="
65
65
  - !ruby/object:Gem::Version
66
- version: 2.7.0.beta2
66
+ version: 2.7.0.rc1
67
67
  type: :runtime
68
68
  prerelease: false
69
69
  version_requirements: !ruby/object:Gem::Requirement
70
70
  requirements:
71
71
  - - ">="
72
72
  - !ruby/object:Gem::Version
73
- version: 2.7.0.beta2
73
+ version: 2.7.0.rc1
74
74
  description: Library which provides helpers for easier Karafka consumers tests
75
75
  email:
76
76
  - contact@karafka.io
metadata.gz.sig CHANGED
Binary file