hermann 0.23.0.244 → 0.23.0.246

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTJiMTVkMTU5ZTE5ZjM2OGIwNTYxYjlmNDY2ZTA2OWI3MGUwZmI1NQ==
4
+ OTY1ZDdmYzM4M2RlNzM2ZGIwOWM2MDE0NDU2NmM2NTc1NzZlMzM4Mg==
5
5
  data.tar.gz: !binary |-
6
- OWE3ZThmZTAyZDhlMDQwZjczZjY3ZjA1ZTJlM2E0NGI1MmQ2OWViMA==
6
+ NGVkYzk3YWU2NTc5NDA2YjNjYjNlOTcxMmQxMzFhODY3NDNiZDdjYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTllNjBkNTlmZmI0M2Q5YzE3YTNjOWU4OTBmZDAyNzAyNmRjOGRjYmIzYWQw
10
- ZWU4MmVhMDVhZjkzYzJiNzMyZDI0NDg5NjVlMDBlYWY0OTUxNTI1NWY2YjM2
11
- MGI3NDI1YTZhYjdkNzZlODYzM2RkNjYyYzJlNDFiODc3MmNlOGM=
9
+ ZWRkMjRjODQ1NWY5NThiNTgyNGRmYTE1MTE2MDkwODcxZjQ1ZmI2NzkzZTcx
10
+ NzUyMDEwOTA5MTA0MDJlN2QwNTExY2ZiODRmZmVkYTlhZGVlYzkyZjFhZjAy
11
+ OGM3NTMwMmIyYmM2OGY4MDY3ZGQ0ZTAwMTk3ZTViYmZiMmNmMWU=
12
12
  data.tar.gz: !binary |-
13
- NmQwZWNlOGJkY2UyMGRhYzUwM2UxODk3MzE0MTA2ZGIwNjVjMDY5ZjdmM2Qx
14
- YWE5NmFmYjM5ZGNkZDc4NjI5YjZiZDNmMTk2MDRlODAyZDY2OGIyNjM4ZDAx
15
- Y2VjOTAwNzJkNWE2ZTU3MDNhNjQ2MTQ0MmVhZWE2NzBhOGU1OWM=
13
+ MDVjZGIzODM0Y2ZhOWQwYTczNzAyNWU1ZWRhMjNlNDU5OTBjM2M1NzRlMzg1
14
+ MDU0ZGI0ZmEyMzViZGRkMjZkMjg1ZGViMjg3YTRlYjRkM2IyZjlmNWIxNTky
15
+ NDE3NjlkNmIwMzk1NWE5Y2VjZTc5YzcyMTkwMmQ3MGI0OTFiN2Q=
@@ -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')
@@ -337,7 +337,7 @@ void consumer_init_kafka(HermannInstanceConfig* config) {
337
337
 
338
338
  // Ruby gem extensions
339
339
 
340
- #if defined(RB_THREAD_BLOCKING_REGION) || defined(HAVE_RB_THREAD_CALL_WITHOUT_GVL)
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 RB_THREAD_BLOCKING_REGION
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);
@@ -36,6 +36,10 @@
36
36
  #include <ruby/thread.h>
37
37
  #endif
38
38
 
39
+ #ifdef HAVE_RUBY_INTERN_H
40
+ #include <ruby/intern.h>
41
+ #endif
42
+
39
43
  #include <ctype.h>
40
44
  #include <signal.h>
41
45
  #include <string.h>
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.244
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-29 00:00:00.000000000 Z
13
+ date: 2015-04-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: concurrent-ruby