hermann 0.23.0.244 → 0.23.0.246
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 +8 -8
- data/ext/hermann/extconf.rb +2 -0
- data/ext/hermann/hermann_lib.c +3 -3
- data/ext/hermann/hermann_lib.h +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTY1ZDdmYzM4M2RlNzM2ZGIwOWM2MDE0NDU2NmM2NTc1NzZlMzM4Mg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NGVkYzk3YWU2NTc5NDA2YjNjYjNlOTcxMmQxMzFhODY3NDNiZDdjYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWRkMjRjODQ1NWY5NThiNTgyNGRmYTE1MTE2MDkwODcxZjQ1ZmI2NzkzZTcx
|
10
|
+
NzUyMDEwOTA5MTA0MDJlN2QwNTExY2ZiODRmZmVkYTlhZGVlYzkyZjFhZjAy
|
11
|
+
OGM3NTMwMmIyYmM2OGY4MDY3ZGQ0ZTAwMTk3ZTViYmZiMmNmMWU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDVjZGIzODM0Y2ZhOWQwYTczNzAyNWU1ZWRhMjNlNDU5OTBjM2M1NzRlMzg1
|
14
|
+
MDU0ZGI0ZmEyMzViZGRkMjZkMjg1ZGViMjg3YTRlYjRkM2IyZjlmNWIxNTky
|
15
|
+
NDE3NjlkNmIwMzk1NWE5Y2VjZTc5YzcyMTkwMmQ3MGI0OTFiN2Q=
|
data/ext/hermann/extconf.rb
CHANGED
@@ -147,6 +147,8 @@ dir_config('rdkafka', HEADER_DIRS, LIB_DIRS)
|
|
147
147
|
$LOCAL_LIBS << File.join(librdkafka.path, 'lib', 'librdkafka.a')
|
148
148
|
|
149
149
|
have_header('ruby/thread.h')
|
150
|
+
have_header('ruby/intern.h')
|
151
|
+
have_func('rb_thread_blocking_region')
|
150
152
|
have_func('rb_thread_call_without_gvl')
|
151
153
|
|
152
154
|
create_makefile('hermann/hermann_lib')
|
data/ext/hermann/hermann_lib.c
CHANGED
@@ -337,7 +337,7 @@ void consumer_init_kafka(HermannInstanceConfig* config) {
|
|
337
337
|
|
338
338
|
// Ruby gem extensions
|
339
339
|
|
340
|
-
#if defined(
|
340
|
+
#if defined(HAVE_RB_THREAD_BLOCKING_REGION) || defined(HAVE_RB_THREAD_CALL_WITHOUT_GVL)
|
341
341
|
/* NOTE: We only need this method defined if RB_THREAD_BLOCKING_REGION is
|
342
342
|
* defined, otherwise it's unused
|
343
343
|
*/
|
@@ -396,8 +396,8 @@ static void consumer_consume_loop(HermannInstanceConfig* consumerConfig) {
|
|
396
396
|
TRACER("\n");
|
397
397
|
|
398
398
|
while (consumerConfig->run) {
|
399
|
-
#ifdef
|
400
|
-
msg = rb_thread_blocking_region(consumer_recv_msg,
|
399
|
+
#ifdef HAVE_RB_THREAD_BLOCKING_REGION
|
400
|
+
msg = (rd_kafka_message_t *) rb_thread_blocking_region((rb_blocking_function_t *) consumer_recv_msg,
|
401
401
|
consumerConfig,
|
402
402
|
consumer_consume_stop_callback,
|
403
403
|
consumerConfig);
|
data/ext/hermann/hermann_lib.h
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hermann
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.23.0.
|
4
|
+
version: 0.23.0.246
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- R. Tyler Croy
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-04-
|
13
|
+
date: 2015-04-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: concurrent-ruby
|