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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/rdkafka/config.rb +12 -2
- data/lib/rdkafka/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: 35b0da819d785e6087c6dd43c762d815568a1bc69ab3b834d613f00ed7748e83
|
4
|
+
data.tar.gz: 4175fc335ebbbabfda1dd348c0c5c0f0f2a2cd4bcd848fd0adf5706acf550796
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0d65e75c55f217ceb232e1d0dd6dee5789e8a704d0ec5895d4c87450500d0d480ad9db18a532a67ffc5b970b8dd1e97c8a6be6494e3985a678e811a84036b3c
|
7
|
+
data.tar.gz: 8e11cd4865f058af95499a68d5d11c51218b1318f67136e036612e86dc06241279804ed341000940b6bd965adc6711a21f187c532f1381efe51fd18cca0b4205
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/rdkafka/config.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
276
|
+
kafka,
|
267
277
|
run_polling_thread: true,
|
268
278
|
opaque: opaque
|
269
279
|
)
|
data/lib/rdkafka/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: karafka-rdkafka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.0.
|
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-
|
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
|