karafka-testing 2.0.7 → 2.0.9

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: def278737ad0002bf304bb3cd11147059afc0e922e43d3c6831571c0f0bb2c37
4
- data.tar.gz: 1aa29aa83794776d0dfcf3b7f03abd1f4914c80d5301a71ea5c354bcc5671ee9
3
+ metadata.gz: d499a5d388f8f5c78b3ce04acaaf39c6e91258aee2f4ee9dd735b49fb347d5c8
4
+ data.tar.gz: 39fd403da1f2765b187f1956b5bb3ad23087431cd4f6c361d73c424848387a1b
5
5
  SHA512:
6
- metadata.gz: 8570a7b1a25b32776f0d4887b77e9e6cd7bb47a5ec4f5345a7e52459dab3c6e3c87dd2df36896403686828f84edb44e630487e02535a83cc6705995ad06e1f4c
7
- data.tar.gz: c549db8ad9cf987843b8fcc9a20fee37a736599dfb25c50057856a5aadcfe23c74cddd4ff57c7abe2d0acdb67b84badaf8a2ae964d2ad5a26abbad0f5d3f0fff
6
+ metadata.gz: f6c3f83bb6f2f21df4fdb39bac678defc7e88dd6dcae0a6a94bd4b7f064a433f4d69c853000d78cdb63f50c577018dd792a358a6c2de2caf116dca21f4a8baab
7
+ data.tar.gz: 0535a23028db30bf015d32d87297ad01d76ee96451acb0596dd787a0152fac249dd4d5a668de29fc40b5998700f316d430b764722beb31775451c9ff71e0782f
checksums.yaml.gz.sig CHANGED
@@ -1,4 +1,2 @@
1
- h"u>����O�ȅv��R1R��禿�NuaB�u�0s� &�z���
2
- 26���1��El¨���B>7��j��fc�<4 'X/�'B�>���-h}l\D
3
- ��.������k���j�o�evyŴF�&��a�/ v�阓�ȅ�!��ₕ�t�T(f�{�)6�������Ȟ��M-EI�y����k���&jUX�+d#=$i~�{�?+|������^�c4�1�%���n!�6M���p�(�Tk����i��0��U8͕�բU\��
4
- ˇ�|��W^��rW����F��s�t�^!�i�
1
+ >���,v8�;=��W��_ފ4�Й�V�?s)L���Sr����@�;F��U��¸?�%����3�f
2
+ [І����bl%8} �S��/�_�e�vH�o|HT�=d�4ˈeΡh�&����4J���"�g���w�l����mG��D"N�5O=����{M_���wm\ ��
@@ -0,0 +1 @@
1
+ custom: ['https://karafka.io/#become-pro']
@@ -16,14 +16,15 @@ jobs:
16
16
  fail-fast: false
17
17
  matrix:
18
18
  ruby:
19
+ - '3.2'
19
20
  - '3.1'
20
21
  - '3.0'
21
22
  - '2.7'
22
23
  include:
23
- - ruby: '3.1'
24
+ - ruby: '3.2'
24
25
  coverage: 'true'
25
26
  steps:
26
- - uses: actions/checkout@v2
27
+ - uses: actions/checkout@v3
27
28
  - name: Install package dependencies
28
29
  run: "[ -e $APT_DEPS ] || sudo apt-get install -y --no-install-recommends $APT_DEPS"
29
30
  - name: Set up Ruby
@@ -42,13 +43,13 @@ jobs:
42
43
  strategy:
43
44
  fail-fast: false
44
45
  steps:
45
- - uses: actions/checkout@v2
46
+ - uses: actions/checkout@v3
46
47
  with:
47
48
  fetch-depth: 0
48
49
  - name: Set up Ruby
49
50
  uses: ruby/setup-ruby@v1
50
51
  with:
51
- ruby-version: 3.1
52
+ ruby-version: 3.2
52
53
  - name: Install latest bundler
53
54
  run: gem install bundler --no-document
54
55
  - name: Install Diffend plugin
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.2
1
+ 3.2.1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Karafka Test gem changelog
2
2
 
3
+ ## 2.0.9 (2023-02-10)
4
+ - Inject consumer strategy to the test consumer instance.
5
+
6
+ ## 2.0.8 (2022-11-03)
7
+ - Do not lock Ruby and rely on `karafka-core` via `karafka`.
8
+ - Due to changes in the engine, lock to `2.0.20`.
9
+
3
10
  ## 2.0.7 (2022-11-03)
4
11
  - Release version with cert with valid access permissions (#114).
5
12
 
data/Gemfile.lock CHANGED
@@ -1,34 +1,33 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka-testing (2.0.7)
5
- karafka (>= 2.0, < 3.0.0)
4
+ karafka-testing (2.0.9)
5
+ karafka (>= 2.0.20, < 3.0.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- concurrent-ruby (1.1.10)
10
+ concurrent-ruby (1.2.0)
11
11
  ffi (1.15.5)
12
- karafka (2.0.15)
13
- karafka-core (>= 2.0.2, < 3.0.0)
14
- rdkafka (>= 0.12)
12
+ karafka (2.0.30)
13
+ karafka-core (>= 2.0.9, < 3.0.0)
15
14
  thor (>= 0.20)
16
- waterdrop (>= 2.4.1, < 3.0.0)
15
+ waterdrop (>= 2.4.10, < 3.0.0)
17
16
  zeitwerk (~> 2.3)
18
- karafka-core (2.0.3)
17
+ karafka-core (2.0.10)
19
18
  concurrent-ruby (>= 1.1)
20
- mini_portile2 (2.8.0)
21
- rake (13.0.6)
22
- rdkafka (0.12.0)
19
+ karafka-rdkafka (>= 0.12)
20
+ karafka-rdkafka (0.12.0)
23
21
  ffi (~> 1.15)
24
22
  mini_portile2 (~> 2.6)
25
23
  rake (> 12)
24
+ mini_portile2 (2.8.1)
25
+ rake (13.0.6)
26
26
  thor (1.2.1)
27
- waterdrop (2.4.2)
28
- karafka-core (>= 2.0.2, < 3.0.0)
29
- rdkafka (>= 0.10)
27
+ waterdrop (2.4.10)
28
+ karafka-core (>= 2.0.9, < 3.0.0)
30
29
  zeitwerk (~> 2.3)
31
- zeitwerk (2.6.4)
30
+ zeitwerk (2.6.6)
32
31
 
33
32
  PLATFORMS
34
33
  arm64-darwin
@@ -38,4 +37,4 @@ DEPENDENCIES
38
37
  karafka-testing!
39
38
 
40
39
  BUNDLED WITH
41
- 2.3.24
40
+ 2.4.6
@@ -20,13 +20,11 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = %w[lib]
21
21
  spec.cert_chain = %w[certs/cert_chain.pem]
22
22
 
23
- spec.required_ruby_version = '>= 2.7'
24
-
25
23
  if $PROGRAM_NAME.end_with?('gem')
26
24
  spec.signing_key = File.expand_path('~/.ssh/gem-private_key.pem')
27
25
  end
28
26
 
29
- spec.add_dependency 'karafka', '>= 2.0', '< 3.0.0'
27
+ spec.add_dependency 'karafka', '>= 2.0.20', '< 3.0.0'
30
28
 
31
29
  spec.metadata = {
32
30
  'source_code_uri' => 'https://github.com/karafka/karafka-testing',
@@ -167,6 +167,9 @@ module Karafka
167
167
  consumer = described_class.new
168
168
  consumer.topic = topic
169
169
  consumer.producer = Karafka::App.producer
170
+ # Inject appropriate strategy so needed options and components are available
171
+ strategy = Karafka::App.config.internal.processing.strategy_selector.find(topic)
172
+ consumer.singleton_class.include(strategy)
170
173
  consumer.client = _karafka_consumer_client
171
174
  consumer.coordinator = coordinators.find_or_create(topic.name, 0)
172
175
  consumer.coordinator.seek_offset = 0
@@ -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.7'
7
+ VERSION = '2.0.9'
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.7
4
+ version: 2.0.9
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: 2022-11-03 00:00:00.000000000 Z
38
+ date: 2023-02-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.0'
46
+ version: 2.0.20
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'
56
+ version: 2.0.20
57
57
  - - "<"
58
58
  - !ruby/object:Gem::Version
59
59
  version: 3.0.0
@@ -66,6 +66,7 @@ extra_rdoc_files: []
66
66
  files:
67
67
  - ".coditsu/ci.yml"
68
68
  - ".diffend.yml"
69
+ - ".github/FUNDING.yml"
69
70
  - ".github/workflows/ci.yml"
70
71
  - ".gitignore"
71
72
  - ".rspec"
@@ -101,14 +102,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
101
102
  requirements:
102
103
  - - ">="
103
104
  - !ruby/object:Gem::Version
104
- version: '2.7'
105
+ version: '0'
105
106
  required_rubygems_version: !ruby/object:Gem::Requirement
106
107
  requirements:
107
108
  - - ">="
108
109
  - !ruby/object:Gem::Version
109
110
  version: '0'
110
111
  requirements: []
111
- rubygems_version: 3.3.7
112
+ rubygems_version: 3.4.6
112
113
  signing_key:
113
114
  specification_version: 4
114
115
  summary: Library which provides helpers for easier Karafka consumers tests
metadata.gz.sig CHANGED
Binary file