karafka-testing 2.4.5 → 2.4.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: 313429288b0507e9a5d37447f07dd3d70d0a00148016a64de5aa76f1ba8fa3c3
4
- data.tar.gz: 57cf29b1c0903d1513a5e4dd97ae8a3f34aa46e88d9a245444e961b8d204a268
3
+ metadata.gz: c79b1159d1792ce286856601f7db1228058fc71cdc3a722fbd3d270143a60996
4
+ data.tar.gz: 93950ef116e875e84f66be650e30aec7411171805d03d390d51b3f5121388bb8
5
5
  SHA512:
6
- metadata.gz: '08061414c271a17e938e4905da3c831944d7fd862335aee2bf9e42510549382faff04a1c89563317040b480a887973b6337832347f3d2ca02424e0ce72476601'
7
- data.tar.gz: 416a42da8dd2aa28be84af59cc3bcef919f281b03e2575227dbe3e32ca1ed36522cc89ed7649c2a45df14d5f7818e0c9832a3d79e5de25d4d609e61ad2c12594
6
+ metadata.gz: f4ba0829c1550ceceb2d6eb21dfb1335e2faabbfed3e357e4820b066d58d8a8ad35586a39b62af1ca03fc5d09017344e0f88d1e698aae0e3b3cf5630f754d166
7
+ data.tar.gz: ddfaa0e377b8c363e51f8b902a07e702c945248817459c5ead0ea8ec115ef245f21196ad9fb5c5ea341d0a73ca2c516c4bcf3c29bd1ec408a422cc72d261dec8
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Karafka Testing Changelog
2
2
 
3
+ ## 2.4.6 (2024-07-31)
4
+ - [Fix] uninitialized constant `Karafka::Testing::Errors::ConsumerGroupNotFound`.
5
+
3
6
  ## 2.4.5 (2024-07-21)
4
7
  - [Enhancement] Provide `karafka.consumer_messages` to get (or alter) the messages that will go into created consumer.
5
8
  - [Fix] `#consumer_group_metadata_pointer` is not stubbed in the consumer client.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka-testing (2.4.5)
4
+ karafka-testing (2.4.6)
5
5
  karafka (>= 2.4.0, < 2.5.0)
6
6
  waterdrop (>= 2.7.0)
7
7
 
@@ -39,9 +39,11 @@ module Karafka
39
39
  # Find matching consumer group
40
40
  .find { |cg, _sgs| cg.name == requested_consumer_group.to_s }
41
41
  # Raise error if not found
42
- .tap { |cg| cg || raise(Errors::ConsumerGroupNotFound, requested_consumer_group) }
43
- # Since lookup was on a hash, get the value, that is subscription groups
44
- .last
42
+ .then do |cg|
43
+ cg || raise(Errors::ConsumerGroupNotFoundError, requested_consumer_group)
44
+ # Since lookup was on a hash, get the value, that is subscription groups
45
+ cg.last
46
+ end
45
47
  else
46
48
  ::Karafka::App
47
49
  .subscription_groups
@@ -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.5'
7
+ VERSION = '2.4.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.4.5
4
+ version: 2.4.6
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-07-21 00:00:00.000000000 Z
38
+ date: 2024-07-31 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: karafka
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  - !ruby/object:Gem::Version
133
133
  version: '0'
134
134
  requirements: []
135
- rubygems_version: 3.5.9
135
+ rubygems_version: 3.5.11
136
136
  signing_key:
137
137
  specification_version: 4
138
138
  summary: Library which provides helpers for easier Karafka consumers tests
metadata.gz.sig CHANGED
Binary file