karafka-rdkafka 0.14.1 → 0.14.2

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: 31a04189b142cd826aece2945d0a5415996bc72d4d90b1e843dd7db3378f05b3
4
- data.tar.gz: 2ff92cdb856c24e3997e0e3c04b5c96fd9a807965581cec91beb3902b072ef88
3
+ metadata.gz: 88083ab7dfa50e2dc5b29ea72d2d846f1e2db77871b86e76057b9b49cbf0440a
4
+ data.tar.gz: 39f2b241c4786caa4829f73270446adcd9ef744e84c583dfbefaa09b0dc669eb
5
5
  SHA512:
6
- metadata.gz: '09f1db3f1be3ce2f665318ba60356d82ebf00b633470fb0ab249e38110f605d9e4a4f5e296c6bb4a29972ad577d2f71f3e5318c26f699fac71b481e2eb622c6a'
7
- data.tar.gz: 6185cdb77c7d75f69052b5df9d5adf8942c28e0b7f842c617fd7f265549e6fa0fcc3cbaa24aeed0c4ea511a24ede8dcbf3a50e0d81ae1289eed627c143764407
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)
@@ -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], :void, blocking: true
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, :uint8_t,
458
- :retriable, :uint8_t,
459
- :txn_requires_abort, :uint8_t
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)
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rdkafka
4
- VERSION = "0.14.1"
4
+ VERSION = "0.14.2"
5
5
  LIBRDKAFKA_VERSION = "2.3.0"
6
6
  LIBRDKAFKA_SOURCE_SHA256 = "2d49c35c77eeb3d42fa61c43757fcbb6a206daa560247154e60642bcdcc14d12"
7
7
  end
@@ -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.1
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-02 00:00:00.000000000 Z
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