karafka-rdkafka 0.15.0.beta1 → 0.15.0.beta2

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: bc8e5edfc4eccc512562aa6937a6b3c7d6ad417b83fa136b9090af3f7bfe7bc3
4
- data.tar.gz: f1b4645880ffe22d1512acee977d045d3390d3dc1f8573ca41a8db22d6c1e3d1
3
+ metadata.gz: 35b0da819d785e6087c6dd43c762d815568a1bc69ab3b834d613f00ed7748e83
4
+ data.tar.gz: 4175fc335ebbbabfda1dd348c0c5c0f0f2a2cd4bcd848fd0adf5706acf550796
5
5
  SHA512:
6
- metadata.gz: aeba97f575ceea5a67dcf6fe3e31fc9ec98ba6049ece2b23daa7af8d959e8074be5f20eca71134e32ec86076a75bb44dfc3ee9b0aa4eb85f27af6933b922138a
7
- data.tar.gz: 2089b7f52c3a8a7fa58e682cc73f6c5a8d363affd419a9f4d7c96228fbdc3b96129a4e2b3739fba4ef82cf44c6fe2d00551aedfa33fa3b5d5d2a7ad80f91a18f
6
+ metadata.gz: e0d65e75c55f217ceb232e1d0dd6dee5789e8a704d0ec5895d4c87450500d0d480ad9db18a532a67ffc5b970b8dd1e97c8a6be6494e3985a678e811a84036b3c
7
+ data.tar.gz: 8e11cd4865f058af95499a68d5d11c51218b1318f67136e036612e86dc06241279804ed341000940b6bd965adc6711a21f187c532f1381efe51fd18cca0b4205
checksums.yaml.gz.sig CHANGED
Binary file
@@ -214,6 +214,8 @@ module Rdkafka
214
214
  # Redirect the main queue to the consumer queue
215
215
  Rdkafka::Bindings.rd_kafka_poll_set_consumer(kafka) if @consumer_poll_set
216
216
 
217
+ yield(kafka, Rdkafka::Bindings.rd_kafka_name(kafka)) if block_given?
218
+
217
219
  # Return consumer with Kafka client
218
220
  Rdkafka::Consumer.new(
219
221
  Rdkafka::NativeKafka.new(
@@ -239,9 +241,13 @@ module Rdkafka
239
241
  Rdkafka::Bindings.rd_kafka_conf_set_dr_msg_cb(config, Rdkafka::Callbacks::DeliveryCallbackFunction)
240
242
  # Return producer with Kafka client
241
243
  partitioner_name = self[:partitioner] || self["partitioner"]
244
+
245
+ kafka = native_kafka(config, :rd_kafka_producer)
246
+ yield(kafka, Rdkafka::Bindings.rd_kafka_name(kafka)) if block_given?
247
+
242
248
  Rdkafka::Producer.new(
243
249
  Rdkafka::NativeKafka.new(
244
- native_kafka(config, :rd_kafka_producer),
250
+ kafka,
245
251
  run_polling_thread: true,
246
252
  opaque: opaque
247
253
  ),
@@ -261,9 +267,13 @@ module Rdkafka
261
267
  opaque = Opaque.new
262
268
  config = native_config(opaque)
263
269
  Rdkafka::Bindings.rd_kafka_conf_set_background_event_cb(config, Rdkafka::Callbacks::BackgroundEventCallbackFunction)
270
+
271
+ kafka = native_kafka(config, :rd_kafka_producer)
272
+ yield(kafka, Rdkafka::Bindings.rd_kafka_name(kafka)) if block_given?
273
+
264
274
  Rdkafka::Admin.new(
265
275
  Rdkafka::NativeKafka.new(
266
- native_kafka(config, :rd_kafka_producer),
276
+ kafka,
267
277
  run_polling_thread: true,
268
278
  opaque: opaque
269
279
  )
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rdkafka
4
- VERSION = "0.15.0.beta1"
4
+ VERSION = "0.15.0.beta2"
5
5
  LIBRDKAFKA_VERSION = "2.3.0"
6
6
  LIBRDKAFKA_SOURCE_SHA256 = "2d49c35c77eeb3d42fa61c43757fcbb6a206daa560247154e60642bcdcc14d12"
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: karafka-rdkafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0.beta1
4
+ version: 0.15.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thijs Cadier
@@ -36,7 +36,7 @@ cert_chain:
36
36
  AnG1dJU+yL2BK7vaVytLTstJME5mepSZ46qqIJXMuWob/YPDmVaBF39TDSG9e34s
37
37
  msG3BiCqgOgHAnL23+CN3Rt8MsuRfEtoTKpJVcCfoEoNHOkc
38
38
  -----END CERTIFICATE-----
39
- date: 2024-03-22 00:00:00.000000000 Z
39
+ date: 2024-03-23 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: ffi
metadata.gz.sig CHANGED
Binary file