karafka-testing 2.1.5 → 2.1.6

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: 03bafbd13410d642081b2d48089cddab05a67fcde695aab36170e355d7e5a6ee
4
- data.tar.gz: 330c7f0bfdf78b3ee6f265f7dfe80328dd1d3c17ccd24e4ac4c50eb0f7b84960
3
+ metadata.gz: 99691afa1ba9d59e742b87675057dd8d5caca90e88462b6da8d824ca6f6f436d
4
+ data.tar.gz: ba27ebd42ac239211cc4b0706595ede83c331e08b837f68844fc83cccf287f50
5
5
  SHA512:
6
- metadata.gz: 006c9d20aa033515813738fe904a00871f0965ac4de505fdc7682adcc413e3e22a36e94f9446ff5ea97ce5b139001590e5fa5dbb52975deb5498daa94515de40
7
- data.tar.gz: 154b7141b13b9a781f08e24826030f8d4afbcd5015f31b2b0570af70406ff52e4208844efbed6d327d4fdb045305eba3f688a3c07d19399149f70036b6018fd9
6
+ metadata.gz: 8be52323dd3913df84e57e47ffe3f53a6b231fe92e500790e88d69a9a4b6ae168268b1b2d6f61dff297c0cf896bf28e4ff383d985ee47c0281bbd8a55e84fb26
7
+ data.tar.gz: e45e5683404a44540edc228ecc07bc94fd159e9361d2b6eece5405af2ed7b7c15fa8b607565af29713333a1a2825e0aed3bcd351bf0c3f0ef2f82c76abb938d9
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Karafka Test gem changelog
2
2
 
3
+ ## 2.1.6 (2023-08-06)
4
+ - [Enhancement] Make `#used?` API always return true.
5
+ - [Enhancement] Expand dummy client API with #seek.
6
+
3
7
  ## 2.1.5 (2023-07-22)
4
8
  - [Enhancement] User `prepend_before` instead of `prepend` for RSpec (ojab)
5
9
  - [Enhancement] Add support for client `#commit_offsets` and `#commit_offsets!` stubs.
data/Gemfile.lock CHANGED
@@ -1,32 +1,32 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka-testing (2.1.5)
5
- karafka (>= 2.1.5, < 3.0.0)
6
- waterdrop (>= 2.6.1)
4
+ karafka-testing (2.1.6)
5
+ karafka (>= 2.1.8, < 3.0.0)
6
+ waterdrop (>= 2.6.6)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
11
  concurrent-ruby (1.2.2)
12
12
  ffi (1.15.5)
13
- karafka (2.1.5)
14
- karafka-core (>= 2.1.0, < 2.2.0)
13
+ karafka (2.1.8)
14
+ karafka-core (>= 2.1.1, < 2.2.0)
15
15
  thor (>= 0.20)
16
- waterdrop (>= 2.6.1, < 3.0.0)
16
+ waterdrop (>= 2.6.2, < 3.0.0)
17
17
  zeitwerk (~> 2.3)
18
- karafka-core (2.1.0)
18
+ karafka-core (2.1.1)
19
19
  concurrent-ruby (>= 1.1)
20
- karafka-rdkafka (>= 0.13.0, < 0.14.0)
21
- karafka-rdkafka (0.13.0)
20
+ karafka-rdkafka (>= 0.13.1, < 0.14.0)
21
+ karafka-rdkafka (0.13.3)
22
22
  ffi (~> 1.15)
23
23
  mini_portile2 (~> 2.6)
24
24
  rake (> 12)
25
25
  mini_portile2 (2.8.1)
26
26
  rake (13.0.6)
27
27
  thor (1.2.1)
28
- waterdrop (2.6.1)
29
- karafka-core (>= 2.1.0, < 3.0.0)
28
+ waterdrop (2.6.6)
29
+ karafka-core (>= 2.1.1, < 3.0.0)
30
30
  zeitwerk (~> 2.3)
31
31
  zeitwerk (2.6.7)
32
32
 
@@ -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.1.5', '< 3.0.0'
28
- spec.add_dependency 'waterdrop', '>= 2.6.1'
27
+ spec.add_dependency 'karafka', '>= 2.1.8', '< 3.0.0'
28
+ spec.add_dependency 'waterdrop', '>= 2.6.6'
29
29
 
30
30
  spec.metadata = {
31
31
  'funding_uri' => 'https://karafka.io/#become-pro',
@@ -179,6 +179,8 @@ module Karafka
179
179
  consumer.client = _karafka_consumer_client
180
180
  consumer.coordinator = coordinators.find_or_create(topic.name, 0)
181
181
  consumer.coordinator.seek_offset = 0
182
+ # Indicate usage as for tests no direct enqueuing happens
183
+ consumer.instance_variable_set('@used', true)
182
184
  consumer
183
185
  end
184
186
  end
@@ -11,6 +11,7 @@ module Karafka
11
11
  mark_as_consumed!
12
12
  commit_offsets
13
13
  commit_offsets!
14
+ seek
14
15
  ].each do |caught_delegator|
15
16
  define_method(caught_delegator) { |*| true }
16
17
  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.5'
7
+ VERSION = '2.1.6'
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.5
4
+ version: 2.1.6
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-07-22 00:00:00.000000000 Z
38
+ date: 2023-08-06 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.1.5
46
+ version: 2.1.8
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.1.5
56
+ version: 2.1.8
57
57
  - - "<"
58
58
  - !ruby/object:Gem::Version
59
59
  version: 3.0.0
@@ -63,14 +63,14 @@ dependencies:
63
63
  requirements:
64
64
  - - ">="
65
65
  - !ruby/object:Gem::Version
66
- version: 2.6.1
66
+ version: 2.6.6
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.6.1
73
+ version: 2.6.6
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