grpc 0.13.1.pre1 → 0.13.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of grpc might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e25237527ee8bc0b3a18c8cdcd158440e686edeb
4
- data.tar.gz: 142c1b828c67887bb13afc0be029e69e0a60f85d
3
+ metadata.gz: 087ed900e34c402941807c96d9788ffb7f132f62
4
+ data.tar.gz: 4418107836023ce6aa4825b0b895841d3bb81328
5
5
  SHA512:
6
- metadata.gz: 5e4a50bd45a594ee677e74af5db9ee739877952924947f9ff8eee65933604c0131fed08c8794705d03e775b2400867b1fd569dd6b438e88aa497193d51c6c789
7
- data.tar.gz: 115c830ec2f4b2955ff15a2d331f1a008b5b01abcbdac25db5d6f72b2ce2dbfe6a2b30db4311b73d33bf4892a03d5911b1109e2249b301776e0017fb170a3ad1
6
+ metadata.gz: a6cd53649a6174f0a3afc71bfec57cc7ec296c23de63845b1be2c0e47eb0c64a721e7b89a1da69b7e6a482e8876d87fc6ecaf5288b56bb34213a4f2f8fe26156
7
+ data.tar.gz: ab670ce1f4cfa4c47a13ac1582322f521131c6e2cf0391e5888f369b4510bd1f417b3edde0c640a60b6853892960b1a355d8ed9ececfddeeb563f91d37cbe133
data/Makefile CHANGED
@@ -367,7 +367,7 @@ E = @echo
367
367
  Q = @
368
368
  endif
369
369
 
370
- VERSION = 0.13.1-pre1
370
+ VERSION = 0.13.1
371
371
 
372
372
  CPPFLAGS_NO_ARCH += $(addprefix -I, $(INCLUDES)) $(addprefix -D, $(DEFINES))
373
373
  CPPFLAGS += $(CPPFLAGS_NO_ARCH) $(ARCH_FLAGS)
@@ -36,4 +36,4 @@
36
36
 
37
37
  #include <grpc/grpc.h>
38
38
 
39
- const char *grpc_version_string(void) { return "0.13.1-pre1"; }
39
+ const char *grpc_version_string(void) { return "0.13.1"; }
@@ -50,21 +50,18 @@ grpc_byte_buffer* grpc_rb_s_to_byte_buffer(char *string, size_t length) {
50
50
  }
51
51
 
52
52
  VALUE grpc_rb_byte_buffer_to_s(grpc_byte_buffer *buffer) {
53
- size_t length = 0;
54
- char *string = NULL;
55
- size_t offset = 0;
53
+ VALUE rb_string;
56
54
  grpc_byte_buffer_reader reader;
57
55
  gpr_slice next;
58
56
  if (buffer == NULL) {
59
57
  return Qnil;
60
-
61
58
  }
62
- length = grpc_byte_buffer_length(buffer);
63
- string = xmalloc(length + 1);
59
+ rb_string = rb_str_buf_new(grpc_byte_buffer_length(buffer));
64
60
  grpc_byte_buffer_reader_init(&reader, buffer);
65
61
  while (grpc_byte_buffer_reader_next(&reader, &next) != 0) {
66
- memcpy(string + offset, GPR_SLICE_START_PTR(next), GPR_SLICE_LENGTH(next));
67
- offset += GPR_SLICE_LENGTH(next);
62
+ rb_str_cat(rb_string, (const char *) GPR_SLICE_START_PTR(next),
63
+ GPR_SLICE_LENGTH(next));
64
+ gpr_slice_unref(next);
68
65
  }
69
- return rb_str_new(string, length);
66
+ return rb_string;
70
67
  }
@@ -551,13 +551,26 @@ static void grpc_run_batch_stack_init(run_batch_stack *st,
551
551
  /* grpc_run_batch_stack_cleanup ensures the run_batch_stack is properly
552
552
  * cleaned up */
553
553
  static void grpc_run_batch_stack_cleanup(run_batch_stack *st) {
554
+ size_t i = 0;
555
+
554
556
  grpc_metadata_array_destroy(&st->send_metadata);
555
557
  grpc_metadata_array_destroy(&st->send_trailing_metadata);
556
558
  grpc_metadata_array_destroy(&st->recv_metadata);
557
559
  grpc_metadata_array_destroy(&st->recv_trailing_metadata);
560
+
558
561
  if (st->recv_status_details != NULL) {
559
562
  gpr_free(st->recv_status_details);
560
563
  }
564
+
565
+ if (st->recv_message != NULL) {
566
+ grpc_byte_buffer_destroy(st->recv_message);
567
+ }
568
+
569
+ for (i = 0; i < st->op_num; i++) {
570
+ if (st->ops[i].op == GRPC_OP_SEND_MESSAGE) {
571
+ grpc_byte_buffer_destroy(st->ops[i].data.send_message);
572
+ }
573
+ }
561
574
  }
562
575
 
563
576
  /* grpc_run_batch_stack_fill_ops fills the run_batch_stack ops array from
@@ -643,7 +656,6 @@ static VALUE grpc_run_batch_stack_build_result(run_batch_stack *st) {
643
656
  break;
644
657
  case GRPC_OP_SEND_MESSAGE:
645
658
  rb_struct_aset(result, sym_send_message, Qtrue);
646
- grpc_byte_buffer_destroy(st->ops[i].data.send_message);
647
659
  break;
648
660
  case GRPC_OP_SEND_CLOSE_FROM_CLIENT:
649
661
  rb_struct_aset(result, sym_send_close, Qtrue);
@@ -29,5 +29,5 @@
29
29
 
30
30
  # GRPC contains the General RPC module.
31
31
  module GRPC
32
- VERSION = '0.13.1.pre1'
32
+ VERSION = '0.13.1'
33
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1.pre1
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - gRPC Authors
8
8
  autorequire:
9
9
  bindir: src/ruby/bin
10
10
  cert_chain: []
11
- date: 2016-03-25 00:00:00.000000000 Z
11
+ date: 2016-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -1116,9 +1116,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
1116
1116
  version: 2.0.0
1117
1117
  required_rubygems_version: !ruby/object:Gem::Requirement
1118
1118
  requirements:
1119
- - - ">"
1119
+ - - ">="
1120
1120
  - !ruby/object:Gem::Version
1121
- version: 1.3.1
1121
+ version: '0'
1122
1122
  requirements: []
1123
1123
  rubyforge_project:
1124
1124
  rubygems_version: 2.5.1