karafka-rdkafka 0.14.1 → 0.14.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +5 -0
- data/lib/rdkafka/bindings.rb +4 -4
- data/lib/rdkafka/producer/delivery_report.rb +7 -0
- data/lib/rdkafka/version.rb +1 -1
- data/spec/rdkafka/producer/delivery_report_spec.rb +4 -0
- 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: 88083ab7dfa50e2dc5b29ea72d2d846f1e2db77871b86e76057b9b49cbf0440a
|
4
|
+
data.tar.gz: 39f2b241c4786caa4829f73270446adcd9ef744e84c583dfbefaa09b0dc669eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83165b051816f6145eb89f20481ae15eb849aff39d69431c2382b00a101b58117a558e13ac5065970868a1e4d64ac829787b02a7918fc12b6f77f01e82c8f19c
|
7
|
+
data.tar.gz: 5546e37c51c0da66d3226805534f16e8f6211f4dc748869f41afa8abcbf0c09e367ef9279c838aee71684606eaebca2347b7f20c763a5116d2143b762eedfbc9
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Rdkafka Changelog
|
2
2
|
|
3
|
+
## 0.14.2 (2023-12-11)
|
4
|
+
- [Enhancement] Alias `topic_name` as `topic` in the delivery report (mensfeld)
|
5
|
+
- [Fix] Fix return type on `#rd_kafka_poll` (mensfeld)
|
6
|
+
- [Fix] `uint8_t` does not exist on Apple Silicon (mensfeld)
|
7
|
+
|
3
8
|
## 0.14.1 (2023-12-02)
|
4
9
|
- **[Feature]** Add `Admin#metadata` (mensfeld)
|
5
10
|
- **[Feature]** Add `Admin#create_partitions` (mensfeld)
|
data/lib/rdkafka/bindings.rb
CHANGED
@@ -41,7 +41,7 @@ module Rdkafka
|
|
41
41
|
# Polling
|
42
42
|
|
43
43
|
attach_function :rd_kafka_flush, [:pointer, :int], :int, blocking: true
|
44
|
-
attach_function :rd_kafka_poll, [:pointer, :int], :
|
44
|
+
attach_function :rd_kafka_poll, [:pointer, :int], :int, blocking: true
|
45
45
|
attach_function :rd_kafka_outq_len, [:pointer], :int, blocking: true
|
46
46
|
|
47
47
|
# Metadata
|
@@ -454,9 +454,9 @@ module Rdkafka
|
|
454
454
|
class NativeError < FFI::Struct # rd_kafka_error_t
|
455
455
|
layout :code, :int32,
|
456
456
|
:errstr, :pointer,
|
457
|
-
:fatal, :
|
458
|
-
:retriable, :
|
459
|
-
:txn_requires_abort, :
|
457
|
+
:fatal, :u_int8_t,
|
458
|
+
:retriable, :u_int8_t,
|
459
|
+
:txn_requires_abort, :u_int8_t
|
460
460
|
end
|
461
461
|
|
462
462
|
attach_function :rd_kafka_group_result_error, [:pointer], NativeError.by_ref # rd_kafka_group_result_t* => rd_kafka_error_t*
|
@@ -21,6 +21,13 @@ module Rdkafka
|
|
21
21
|
# @return [Integer]
|
22
22
|
attr_reader :error
|
23
23
|
|
24
|
+
# We alias the `#topic_name` under `#topic` to make this consistent with `Consumer::Message`
|
25
|
+
# where the topic name is under `#topic` method. That way we have a consistent name that
|
26
|
+
# is present in both places
|
27
|
+
#
|
28
|
+
# We do not remove the original `#topic_name` because of backwards compatibility
|
29
|
+
alias topic topic_name
|
30
|
+
|
24
31
|
private
|
25
32
|
|
26
33
|
def initialize(partition, offset, topic_name = nil, error = nil)
|
data/lib/rdkafka/version.rb
CHANGED
@@ -15,6 +15,10 @@ describe Rdkafka::Producer::DeliveryReport do
|
|
15
15
|
expect(subject.topic_name).to eq "topic"
|
16
16
|
end
|
17
17
|
|
18
|
+
it "should get the same topic name under topic alias" do
|
19
|
+
expect(subject.topic).to eq "topic"
|
20
|
+
end
|
21
|
+
|
18
22
|
it "should get the error" do
|
19
23
|
expect(subject.error).to eq -1
|
20
24
|
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: karafka-rdkafka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thijs Cadier
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
AnG1dJU+yL2BK7vaVytLTstJME5mepSZ46qqIJXMuWob/YPDmVaBF39TDSG9e34s
|
36
36
|
msG3BiCqgOgHAnL23+CN3Rt8MsuRfEtoTKpJVcCfoEoNHOkc
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2023-12-
|
38
|
+
date: 2023-12-11 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: ffi
|
metadata.gz.sig
CHANGED
Binary file
|