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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +13 -13
- data/karafka-testing.gemspec +2 -2
- data/lib/karafka/testing/minitest/helpers.rb +18 -10
- data/lib/karafka/testing/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +6 -6
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 587bb151db13812b7c26215c9357264f21a3357448fffe542363042db19c7744
|
4
|
+
data.tar.gz: 2c624b601afc5384ae7ce43bf6b0ac19f27a8ec8b00aacd796c33da5e19fdd40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
5
|
-
karafka (>= 2.
|
6
|
-
waterdrop (>= 2.7.0.
|
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.
|
13
|
-
karafka-core (>= 2.
|
14
|
-
waterdrop (>= 2.
|
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.
|
17
|
-
karafka-rdkafka (>= 0.15.0.
|
18
|
-
karafka-rdkafka (0.15.0.
|
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
|
24
|
-
waterdrop (2.7.0.
|
25
|
-
karafka-core (>= 2.4.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.
|
37
|
+
2.5.7
|
data/karafka-testing.gemspec
CHANGED
@@ -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.
|
28
|
-
spec.add_dependency 'waterdrop', '>= 2.7.0.
|
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
|
-
|
21
|
-
|
22
|
-
Karafka::Testing.ensure_karafka_initialized!
|
20
|
+
eval_flow = lambda do
|
21
|
+
Karafka::Testing.ensure_karafka_initialized!
|
23
22
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
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
|
-
|
30
|
-
|
28
|
+
@_karafka_consumer_messages.clear
|
29
|
+
@_karafka_producer_client.reset
|
31
30
|
|
32
|
-
|
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
|
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.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-
|
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.
|
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.
|
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.
|
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.
|
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
|