waterdrop 2.6.12 → 2.6.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b69e4151ceb0d03f8ac34e05793f96e4907791c5dbdc49f5beeffa7eb02d5bcf
4
- data.tar.gz: fef1a647d06d7f7ab3f26045f1ce22e7b2b40476c31b7526198291a55d73c828
3
+ metadata.gz: '06984e8584d8b1ed3e6f854be6ca1cd1957acab63d6640c41087a42572da670a'
4
+ data.tar.gz: 9b0c94f047b5e21a554ecad5f32639a761aa32fbab9f5776a2470fdfe4adb675
5
5
  SHA512:
6
- metadata.gz: 271f3de27ae484cb95b6dbc0718bbe59119262035f130511d7ef84071b598dd3e06695f233ad9335c7e318e5da754b3ec2852b1655c23d28ee2d88d67aff901c
7
- data.tar.gz: eabff4ab9ea4c832054583d52dd83d003d27333394d8630133b08d3f46d9c11278c6bd76dd4408750f4d0c41654eb2d70d94f83fbedf2250dfa0b2538a6e8e30
6
+ metadata.gz: 610ec69f42c6d209e3d024825d62ecd25e7d50ad212d14b4b2db7534463f63e5cee4662b0412db559d1537fa28ef76acd3b22418f686fcea6c6406a1cb6cec54
7
+ data.tar.gz: af35df96c8566d1fef3d16898553277c3d15a572ab8fc563858048beae70915a761109a32cd101b22123174f16dc601f7f28c2699fae20126d5dd9dc519fcd23
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # WaterDrop changelog
2
2
 
3
+ ## 2.6.13 (2024-01-29)
4
+ - [Enhancement] Expose `#partition_count` for building custom partitioners that need to be aware of number of partitions on a given topic.
5
+
3
6
  ## 2.6.12 (2024-01-03)
4
7
  - [Enhancement] Provide ability to label message dispatches for increased observability.
5
8
  - [Enhancement] Provide ability to commit offset during the transaction with a consumer provided.
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- waterdrop (2.6.12)
4
+ waterdrop (2.6.13)
5
5
  karafka-core (>= 2.2.3, < 3.0.0)
6
6
  zeitwerk (~> 2.3)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (7.1.2)
11
+ activesupport (7.1.3)
12
12
  base64
13
13
  bigdecimal
14
14
  concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -19,9 +19,9 @@ GEM
19
19
  mutex_m
20
20
  tzinfo (~> 2.0)
21
21
  base64 (0.2.0)
22
- bigdecimal (3.1.5)
22
+ bigdecimal (3.1.6)
23
23
  byebug (11.1.3)
24
- concurrent-ruby (1.2.2)
24
+ concurrent-ruby (1.2.3)
25
25
  connection_pool (2.4.1)
26
26
  diff-lcs (1.5.0)
27
27
  docile (1.4.0)
@@ -35,12 +35,12 @@ GEM
35
35
  karafka-core (2.2.7)
36
36
  concurrent-ruby (>= 1.1)
37
37
  karafka-rdkafka (>= 0.13.9, < 0.15.0)
38
- karafka-rdkafka (0.14.6)
38
+ karafka-rdkafka (0.14.7)
39
39
  ffi (~> 1.15)
40
40
  mini_portile2 (~> 2.6)
41
41
  rake (> 12)
42
42
  mini_portile2 (2.8.5)
43
- minitest (5.20.0)
43
+ minitest (5.21.2)
44
44
  mutex_m (0.2.0)
45
45
  rake (13.1.0)
46
46
  rspec (3.12.0)
@@ -79,4 +79,4 @@ DEPENDENCIES
79
79
  waterdrop!
80
80
 
81
81
  BUNDLED WITH
82
- 2.5.3
82
+ 2.5.4
@@ -122,6 +122,16 @@ module WaterDrop
122
122
  @client
123
123
  end
124
124
 
125
+ # Fetches and caches the partition count of a topic
126
+ #
127
+ # @param topic [String] topic for which we want to get the number of partitions
128
+ # @return [Integer] number of partitions of the requested topic
129
+ #
130
+ # @note It uses the underlying `rdkafka-ruby` partition count cache.
131
+ def partition_count(topic)
132
+ client.partition_count(topic.to_s)
133
+ end
134
+
125
135
  # Purges data from both the buffer queue as well as the librdkafka queue.
126
136
  #
127
137
  # @note This is an operation that can cause data loss. Keep that in mind. It will not only
@@ -3,5 +3,5 @@
3
3
  # WaterDrop library
4
4
  module WaterDrop
5
5
  # Current WaterDrop version
6
- VERSION = '2.6.12'
6
+ VERSION = '2.6.13'
7
7
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: waterdrop
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.12
4
+ version: 2.6.13
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-01-03 00:00:00.000000000 Z
38
+ date: 2024-01-29 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: karafka-core
metadata.gz.sig CHANGED
Binary file