grpc 0.13.1.pre1-universal-darwin → 0.13.1-universal-darwin
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 +4 -4
- data/src/ruby/ext/grpc/rb_byte_buffer.c +6 -9
- data/src/ruby/ext/grpc/rb_call.c +13 -1
- data/src/ruby/lib/grpc/2.0/grpc_c.bundle +0 -0
- data/src/ruby/lib/grpc/2.1/grpc_c.bundle +0 -0
- data/src/ruby/lib/grpc/2.2/grpc_c.bundle +0 -0
- data/src/ruby/lib/grpc/2.3/grpc_c.bundle +0 -0
- data/src/ruby/lib/grpc/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35b01bfaa5d6fea073e85fcb75e47da6af9ef5da
|
4
|
+
data.tar.gz: 74284dcf69f9fc5b96801d2a572b85ad89379f05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ecf081dabd714f145d311d3653b63f5b6f385000537a429590e226cca769103528aedcfac5f0cf9f4367e888726ba06b358d5bade0b1071b86ec3e948610691
|
7
|
+
data.tar.gz: cfb96eef436e3c3d098cf8a9e17dd17ee6cfe704823b6bdc2da48ee289ba477cadd6bc5cab9fe6c7fdd5d911fc06ac248a72ff82502311532efe886a83240acc
|
@@ -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
|
-
|
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
|
-
|
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
|
-
|
67
|
-
|
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
|
66
|
+
return rb_string;
|
70
67
|
}
|
data/src/ruby/ext/grpc/rb_call.c
CHANGED
@@ -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);
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
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
|
4
|
+
version: 0.13.1
|
5
5
|
platform: universal-darwin
|
6
6
|
authors:
|
7
7
|
- gRPC Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: src/ruby/bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -286,9 +286,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
286
286
|
version: 2.0.0
|
287
287
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
288
288
|
requirements:
|
289
|
-
- - "
|
289
|
+
- - ">="
|
290
290
|
- !ruby/object:Gem::Version
|
291
|
-
version:
|
291
|
+
version: '0'
|
292
292
|
requirements: []
|
293
293
|
rubyforge_project:
|
294
294
|
rubygems_version: 2.4.3
|