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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +7 -7
- data/lib/waterdrop/producer.rb +10 -0
- data/lib/waterdrop/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- 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: '06984e8584d8b1ed3e6f854be6ca1cd1957acab63d6640c41087a42572da670a'
|
|
4
|
+
data.tar.gz: 9b0c94f047b5e21a554ecad5f32639a761aa32fbab9f5776a2470fdfe4adb675
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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.
|
|
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.
|
|
22
|
+
bigdecimal (3.1.6)
|
|
23
23
|
byebug (11.1.3)
|
|
24
|
-
concurrent-ruby (1.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.
|
|
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.
|
|
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.
|
|
82
|
+
2.5.4
|
data/lib/waterdrop/producer.rb
CHANGED
|
@@ -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
|
data/lib/waterdrop/version.rb
CHANGED
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.
|
|
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-
|
|
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
|