Merge pull request #6458 from nicolasnoble/ruby-fixes

Ruby fixes - for the release branch this time...
pull/6459/head^2
Nicolas Noble 9 years ago
commit 24ccbed700
  1. 2
      src/ruby/ext/grpc/extconf.rb
  2. 3
      src/ruby/ext/grpc/rb_byte_buffer.c
  3. 3
      src/ruby/ext/grpc/rb_call.c
  4. 6
      src/ruby/ext/grpc/rb_call_credentials.c
  5. 3
      src/ruby/ext/grpc/rb_channel.c
  6. 3
      src/ruby/ext/grpc/rb_channel_args.c
  7. 5
      src/ruby/ext/grpc/rb_channel_credentials.c
  8. 2
      src/ruby/ext/grpc/rb_completion_queue.c
  9. 2
      src/ruby/ext/grpc/rb_event_thread.c
  10. 2
      src/ruby/ext/grpc/rb_grpc.c
  11. 3
      src/ruby/ext/grpc/rb_server.c
  12. 3
      src/ruby/ext/grpc/rb_server_credentials.c

@ -78,9 +78,11 @@ output_dir = File.expand_path(RbConfig::CONFIG['topdir'])
grpc_lib_dir = File.join(output_dir, 'libs', grpc_config)
ENV['BUILDDIR'] = output_dir
unless windows
puts 'Building internal gRPC into ' + grpc_lib_dir
system("make -j -C #{grpc_root} #{grpc_lib_dir}/libgrpc.a CONFIG=#{grpc_config}")
exit 1 unless $? == 0
end
$CFLAGS << ' -I' + File.join(grpc_root, 'include')
$LDFLAGS << ' ' + File.join(grpc_lib_dir, 'libgrpc.a') unless windows

@ -32,11 +32,10 @@
*/
#include <ruby/ruby.h>
#include "rb_grpc_imports.generated.h"
#include "rb_byte_buffer.h"
#include <ruby/ruby.h>
#include <grpc/grpc.h>
#include <grpc/byte_buffer_reader.h>
#include <grpc/support/slice.h>

@ -32,11 +32,10 @@
*/
#include <ruby/ruby.h>
#include "rb_grpc_imports.generated.h"
#include "rb_call.h"
#include <ruby/ruby.h>
#include <grpc/grpc.h>
#include <grpc/support/alloc.h>

@ -32,10 +32,10 @@
*/
#include <ruby/ruby.h>
#include "rb_grpc_imports.generated.h"
#include "rb_call_credentials.h"
#include <ruby/ruby.h>
#include <ruby/thread.h>
#include <grpc/grpc.h>
@ -86,11 +86,11 @@ static VALUE grpc_rb_call_credentials_callback_rescue(VALUE args,
rb_funcall(exception_object, rb_intern("backtrace"), 0),
rb_intern("join"),
1, rb_str_new2("\n\tfrom "));
VALUE exception_info = rb_funcall(exception_object, rb_intern("to_s"), 0);
VALUE rb_exception_info = rb_funcall(exception_object, rb_intern("to_s"), 0);
const char *exception_classname = rb_obj_classname(exception_object);
(void)args;
gpr_log(GPR_INFO, "Call credentials callback failed: %s: %s\n%s",
exception_classname, StringValueCStr(exception_info),
exception_classname, StringValueCStr(rb_exception_info),
StringValueCStr(backtrace));
rb_hash_aset(result, rb_str_new2("metadata"), Qnil);
/* Currently only gives the exception class name. It should be possible get

@ -32,11 +32,10 @@
*/
#include <ruby/ruby.h>
#include "rb_grpc_imports.generated.h"
#include "rb_channel.h"
#include <ruby/ruby.h>
#include <grpc/grpc.h>
#include <grpc/grpc_security.h>
#include <grpc/support/alloc.h>

@ -32,11 +32,10 @@
*/
#include <ruby/ruby.h>
#include "rb_grpc_imports.generated.h"
#include "rb_channel_args.h"
#include <ruby/ruby.h>
#include <grpc/grpc.h>
#include "rb_grpc.h"

@ -31,14 +31,13 @@
*
*/
#include <ruby/ruby.h>
#include <string.h>
#include <ruby/ruby.h>
#include "rb_grpc_imports.generated.h"
#include "rb_channel_credentials.h"
#include <ruby/ruby.h>
#include <grpc/grpc.h>
#include <grpc/grpc_security.h>
#include <grpc/support/alloc.h>

@ -32,10 +32,10 @@
*/
#include <ruby/ruby.h>
#include "rb_grpc_imports.generated.h"
#include "rb_completion_queue.h"
#include <ruby/ruby.h>
#include <ruby/thread.h>
#include <grpc/grpc.h>

@ -32,12 +32,12 @@
*/
#include <ruby/ruby.h>
#include "rb_grpc_imports.generated.h"
#include "rb_event_thread.h"
#include <stdbool.h>
#include <ruby/ruby.h>
#include <ruby/thread.h>
#include <grpc/support/alloc.h>
#include <grpc/support/sync.h>

@ -32,11 +32,11 @@
*/
#include <ruby/ruby.h>
#include "rb_grpc_imports.generated.h"
#include "rb_grpc.h"
#include <math.h>
#include <ruby/ruby.h>
#include <ruby/vm.h>
#include <sys/time.h>

@ -32,11 +32,10 @@
*/
#include <ruby/ruby.h>
#include "rb_grpc_imports.generated.h"
#include "rb_server.h"
#include <ruby/ruby.h>
#include <grpc/grpc.h>
#include <grpc/grpc_security.h>
#include "rb_call.h"

@ -32,11 +32,10 @@
*/
#include <ruby/ruby.h>
#include "rb_grpc_imports.generated.h"
#include "rb_server_credentials.h"
#include <ruby/ruby.h>
#include <grpc/grpc.h>
#include <grpc/grpc_security.h>

Loading…
Cancel
Save