grpc 1.40.0.pre1-universal-darwin → 1.42.0.pre1-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/etc/roots.pem +335 -326
- data/src/ruby/ext/grpc/extconf.rb +12 -9
- data/src/ruby/ext/grpc/rb_byte_buffer.c +2 -1
- data/src/ruby/ext/grpc/rb_call.c +5 -5
- data/src/ruby/ext/grpc/rb_call_credentials.c +5 -5
- data/src/ruby/ext/grpc/rb_channel.c +10 -8
- data/src/ruby/ext/grpc/rb_channel_args.c +2 -2
- data/src/ruby/ext/grpc/rb_channel_credentials.c +4 -4
- data/src/ruby/ext/grpc/rb_channel_credentials.h +1 -0
- data/src/ruby/ext/grpc/rb_completion_queue.c +3 -2
- data/src/ruby/ext/grpc/rb_compression_options.c +5 -4
- data/src/ruby/ext/grpc/rb_event_thread.c +4 -4
- data/src/ruby/ext/grpc/rb_grpc.c +5 -4
- data/src/ruby/ext/grpc/rb_grpc.h +1 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +4 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +6 -0
- data/src/ruby/ext/grpc/rb_server.c +6 -5
- data/src/ruby/ext/grpc/rb_server_credentials.c +3 -3
- data/src/ruby/ext/grpc/rb_server_credentials.h +1 -0
- data/src/ruby/ext/grpc/rb_xds_channel_credentials.c +8 -5
- data/src/ruby/ext/grpc/rb_xds_channel_credentials.h +3 -1
- data/src/ruby/ext/grpc/rb_xds_server_credentials.c +6 -5
- data/src/ruby/ext/grpc/rb_xds_server_credentials.h +3 -1
- data/src/ruby/lib/grpc/2.4/grpc_c.bundle +0 -0
- data/src/ruby/lib/grpc/2.5/grpc_c.bundle +0 -0
- data/src/ruby/lib/grpc/2.6/grpc_c.bundle +0 -0
- data/src/ruby/lib/grpc/2.7/grpc_c.bundle +0 -0
- data/src/ruby/lib/grpc/3.0/grpc_c.bundle +0 -0
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/src/ruby/pb/src/proto/grpc/testing/test_pb.rb +2 -2
- data/src/ruby/spec/client_server_spec.rb +1 -1
- metadata +7 -7
@@ -17,6 +17,9 @@ require 'mkmf'
|
|
17
17
|
|
18
18
|
windows = RUBY_PLATFORM =~ /mingw|mswin/
|
19
19
|
bsd = RUBY_PLATFORM =~ /bsd/
|
20
|
+
darwin = RUBY_PLATFORM =~ /darwin/
|
21
|
+
linux = RUBY_PLATFORM =~ /linux/
|
22
|
+
cross_compiling = ENV['RCD_HOST_RUBY_VERSION'] # set by rake-compiler-dock in build containers
|
20
23
|
|
21
24
|
grpc_root = File.expand_path(File.join(File.dirname(__FILE__), '../../../..'))
|
22
25
|
|
@@ -37,17 +40,17 @@ if ENV['LD'].nil? || ENV['LD'].size == 0
|
|
37
40
|
ENV['LD'] = ENV['CC']
|
38
41
|
end
|
39
42
|
|
40
|
-
if
|
43
|
+
if darwin && !cross_compiling
|
41
44
|
ENV['AR'] = 'libtool'
|
42
45
|
ENV['ARFLAGS'] = '-o'
|
43
|
-
|
46
|
+
end
|
44
47
|
|
45
48
|
ENV['EMBED_OPENSSL'] = 'true'
|
46
49
|
ENV['EMBED_ZLIB'] = 'true'
|
47
50
|
ENV['EMBED_CARES'] = 'true'
|
48
51
|
|
49
52
|
ENV['ARCH_FLAGS'] = RbConfig::CONFIG['ARCH_FLAG']
|
50
|
-
if
|
53
|
+
if darwin && !cross_compiling
|
51
54
|
if RUBY_PLATFORM =~ /arm64/
|
52
55
|
ENV['ARCH_FLAGS'] = '-arch arm64'
|
53
56
|
else
|
@@ -57,7 +60,7 @@ end
|
|
57
60
|
|
58
61
|
ENV['CPPFLAGS'] = '-DGPR_BACKWARDS_COMPATIBILITY_MODE'
|
59
62
|
ENV['CPPFLAGS'] += ' -DGRPC_XDS_USER_AGENT_NAME_SUFFIX="\"RUBY\"" '
|
60
|
-
ENV['CPPFLAGS'] += ' -DGRPC_XDS_USER_AGENT_VERSION_SUFFIX="\"1.
|
63
|
+
ENV['CPPFLAGS'] += ' -DGRPC_XDS_USER_AGENT_VERSION_SUFFIX="\"1.42.0.pre1\"" '
|
61
64
|
|
62
65
|
output_dir = File.expand_path(RbConfig::CONFIG['topdir'])
|
63
66
|
grpc_lib_dir = File.join(output_dir, 'libs', grpc_config)
|
@@ -75,8 +78,8 @@ end
|
|
75
78
|
$CFLAGS << ' -I' + File.join(grpc_root, 'include')
|
76
79
|
|
77
80
|
ext_export_file = File.join(grpc_root, 'src', 'ruby', 'ext', 'grpc', 'ext-export')
|
78
|
-
$LDFLAGS << ' -Wl,--version-script="' + ext_export_file + '.gcc"' if
|
79
|
-
$LDFLAGS << ' -Wl,-exported_symbols_list,"' + ext_export_file + '.clang"' if
|
81
|
+
$LDFLAGS << ' -Wl,--version-script="' + ext_export_file + '.gcc"' if linux
|
82
|
+
$LDFLAGS << ' -Wl,-exported_symbols_list,"' + ext_export_file + '.clang"' if darwin
|
80
83
|
|
81
84
|
$LDFLAGS << ' ' + File.join(grpc_lib_dir, 'libgrpc.a') unless windows
|
82
85
|
if grpc_config == 'gcov'
|
@@ -88,8 +91,8 @@ if grpc_config == 'dbg'
|
|
88
91
|
$CFLAGS << ' -O0 -ggdb3'
|
89
92
|
end
|
90
93
|
|
91
|
-
$LDFLAGS << ' -Wl,-wrap,memcpy' if
|
92
|
-
$LDFLAGS << ' -static-libgcc -static-libstdc++' if
|
94
|
+
$LDFLAGS << ' -Wl,-wrap,memcpy' if linux
|
95
|
+
$LDFLAGS << ' -static-libgcc -static-libstdc++' if linux
|
93
96
|
$LDFLAGS << ' -static' if windows
|
94
97
|
|
95
98
|
$CFLAGS << ' -std=c99 '
|
@@ -102,7 +105,7 @@ puts 'Generating Makefile for ' + output
|
|
102
105
|
create_makefile(output)
|
103
106
|
|
104
107
|
strip_tool = RbConfig::CONFIG['STRIP']
|
105
|
-
strip_tool
|
108
|
+
strip_tool += ' -x' if darwin
|
106
109
|
|
107
110
|
if grpc_config == 'opt'
|
108
111
|
File.open('Makefile.new', 'w') do |o|
|
@@ -19,12 +19,13 @@
|
|
19
19
|
#include <ruby/ruby.h>
|
20
20
|
|
21
21
|
#include "rb_byte_buffer.h"
|
22
|
+
|
23
|
+
#include "rb_grpc.h"
|
22
24
|
#include "rb_grpc_imports.generated.h"
|
23
25
|
|
24
26
|
#include <grpc/byte_buffer_reader.h>
|
25
27
|
#include <grpc/grpc.h>
|
26
28
|
#include <grpc/slice.h>
|
27
|
-
#include "rb_grpc.h"
|
28
29
|
|
29
30
|
grpc_byte_buffer* grpc_rb_s_to_byte_buffer(char* string, size_t length) {
|
30
31
|
grpc_slice slice = grpc_slice_from_copied_buffer(string, length);
|
data/src/ruby/ext/grpc/rb_call.c
CHANGED
@@ -19,6 +19,11 @@
|
|
19
19
|
#include <ruby/ruby.h>
|
20
20
|
|
21
21
|
#include "rb_call.h"
|
22
|
+
|
23
|
+
#include "rb_byte_buffer.h"
|
24
|
+
#include "rb_call_credentials.h"
|
25
|
+
#include "rb_completion_queue.h"
|
26
|
+
#include "rb_grpc.h"
|
22
27
|
#include "rb_grpc_imports.generated.h"
|
23
28
|
|
24
29
|
#include <grpc/grpc.h>
|
@@ -26,11 +31,6 @@
|
|
26
31
|
#include <grpc/support/alloc.h>
|
27
32
|
#include <grpc/support/log.h>
|
28
33
|
|
29
|
-
#include "rb_byte_buffer.h"
|
30
|
-
#include "rb_call_credentials.h"
|
31
|
-
#include "rb_completion_queue.h"
|
32
|
-
#include "rb_grpc.h"
|
33
|
-
|
34
34
|
/* grpc_rb_cCall is the Call class whose instances proxy grpc_call. */
|
35
35
|
static VALUE grpc_rb_cCall;
|
36
36
|
|
@@ -19,19 +19,19 @@
|
|
19
19
|
#include <ruby/ruby.h>
|
20
20
|
|
21
21
|
#include "rb_call_credentials.h"
|
22
|
-
#include "rb_grpc_imports.generated.h"
|
23
22
|
|
24
23
|
#include <ruby/thread.h>
|
25
24
|
|
25
|
+
#include "rb_call.h"
|
26
|
+
#include "rb_event_thread.h"
|
27
|
+
#include "rb_grpc.h"
|
28
|
+
#include "rb_grpc_imports.generated.h"
|
29
|
+
|
26
30
|
#include <grpc/grpc.h>
|
27
31
|
#include <grpc/grpc_security.h>
|
28
32
|
#include <grpc/support/alloc.h>
|
29
33
|
#include <grpc/support/log.h>
|
30
34
|
|
31
|
-
#include "rb_call.h"
|
32
|
-
#include "rb_event_thread.h"
|
33
|
-
#include "rb_grpc.h"
|
34
|
-
|
35
35
|
/* grpc_rb_cCallCredentials is the ruby class that proxies
|
36
36
|
* grpc_call_credentials */
|
37
37
|
static VALUE grpc_rb_cCallCredentials = Qnil;
|
@@ -17,25 +17,27 @@
|
|
17
17
|
*/
|
18
18
|
|
19
19
|
#include <ruby/ruby.h>
|
20
|
-
#include <ruby/thread.h>
|
21
20
|
|
22
|
-
#include "rb_byte_buffer.h"
|
23
21
|
#include "rb_channel.h"
|
24
|
-
#include "rb_grpc_imports.generated.h"
|
25
22
|
|
26
|
-
#include <
|
27
|
-
|
28
|
-
#include
|
29
|
-
#include <grpc/support/log.h>
|
30
|
-
#include <grpc/support/time.h>
|
23
|
+
#include <ruby/thread.h>
|
24
|
+
|
25
|
+
#include "rb_byte_buffer.h"
|
31
26
|
#include "rb_call.h"
|
32
27
|
#include "rb_channel_args.h"
|
33
28
|
#include "rb_channel_credentials.h"
|
34
29
|
#include "rb_completion_queue.h"
|
35
30
|
#include "rb_grpc.h"
|
31
|
+
#include "rb_grpc_imports.generated.h"
|
36
32
|
#include "rb_server.h"
|
37
33
|
#include "rb_xds_channel_credentials.h"
|
38
34
|
|
35
|
+
#include <grpc/grpc.h>
|
36
|
+
#include <grpc/grpc_security.h>
|
37
|
+
#include <grpc/support/alloc.h>
|
38
|
+
#include <grpc/support/log.h>
|
39
|
+
#include <grpc/support/time.h>
|
40
|
+
|
39
41
|
/* id_channel is the name of the hidden ivar that preserves a reference to the
|
40
42
|
* channel on a call, so that calls are not GCed before their channel. */
|
41
43
|
static ID id_channel;
|
@@ -19,12 +19,12 @@
|
|
19
19
|
#include <ruby/ruby.h>
|
20
20
|
|
21
21
|
#include "rb_channel_args.h"
|
22
|
+
|
23
|
+
#include "rb_grpc.h"
|
22
24
|
#include "rb_grpc_imports.generated.h"
|
23
25
|
|
24
26
|
#include <grpc/grpc.h>
|
25
27
|
|
26
|
-
#include "rb_grpc.h"
|
27
|
-
|
28
28
|
static rb_data_type_t grpc_rb_channel_args_data_type = {
|
29
29
|
"grpc_channel_args",
|
30
30
|
{GRPC_RB_GC_NOT_MARKED,
|
@@ -18,9 +18,12 @@
|
|
18
18
|
|
19
19
|
#include <ruby/ruby.h>
|
20
20
|
|
21
|
+
#include "rb_channel_credentials.h"
|
22
|
+
|
21
23
|
#include <string.h>
|
22
24
|
|
23
|
-
#include "
|
25
|
+
#include "rb_call_credentials.h"
|
26
|
+
#include "rb_grpc.h"
|
24
27
|
#include "rb_grpc_imports.generated.h"
|
25
28
|
|
26
29
|
#include <grpc/grpc.h>
|
@@ -28,9 +31,6 @@
|
|
28
31
|
#include <grpc/support/alloc.h>
|
29
32
|
#include <grpc/support/log.h>
|
30
33
|
|
31
|
-
#include "rb_call_credentials.h"
|
32
|
-
#include "rb_grpc.h"
|
33
|
-
|
34
34
|
/* grpc_rb_cChannelCredentials is the ruby class that proxies
|
35
35
|
grpc_channel_credentials. */
|
36
36
|
static VALUE grpc_rb_cChannelCredentials = Qnil;
|
@@ -19,14 +19,15 @@
|
|
19
19
|
#include <ruby/ruby.h>
|
20
20
|
|
21
21
|
#include "rb_completion_queue.h"
|
22
|
-
#include "rb_grpc_imports.generated.h"
|
23
22
|
|
24
23
|
#include <ruby/thread.h>
|
25
24
|
|
25
|
+
#include "rb_grpc.h"
|
26
|
+
#include "rb_grpc_imports.generated.h"
|
27
|
+
|
26
28
|
#include <grpc/grpc.h>
|
27
29
|
#include <grpc/support/log.h>
|
28
30
|
#include <grpc/support/time.h>
|
29
|
-
#include "rb_grpc.h"
|
30
31
|
|
31
32
|
/* Used to allow grpc_completion_queue_next call to release the GIL */
|
32
33
|
typedef struct next_call_stack {
|
@@ -18,8 +18,12 @@
|
|
18
18
|
|
19
19
|
#include <ruby/ruby.h>
|
20
20
|
|
21
|
-
#include "rb_byte_buffer.h"
|
22
21
|
#include "rb_compression_options.h"
|
22
|
+
|
23
|
+
#include <string.h>
|
24
|
+
|
25
|
+
#include "rb_byte_buffer.h"
|
26
|
+
#include "rb_grpc.h"
|
23
27
|
#include "rb_grpc_imports.generated.h"
|
24
28
|
|
25
29
|
#include <grpc/compression.h>
|
@@ -29,9 +33,6 @@
|
|
29
33
|
#include <grpc/support/alloc.h>
|
30
34
|
#include <grpc/support/log.h>
|
31
35
|
#include <grpc/support/string_util.h>
|
32
|
-
#include <string.h>
|
33
|
-
|
34
|
-
#include "rb_grpc.h"
|
35
36
|
|
36
37
|
static VALUE grpc_rb_cCompressionOptions = Qnil;
|
37
38
|
|
@@ -19,17 +19,17 @@
|
|
19
19
|
#include <ruby/ruby.h>
|
20
20
|
|
21
21
|
#include "rb_event_thread.h"
|
22
|
-
#include "rb_grpc_imports.generated.h"
|
23
22
|
|
23
|
+
#include <ruby/thread.h>
|
24
24
|
#include <stdbool.h>
|
25
25
|
|
26
|
+
#include "rb_grpc.h"
|
27
|
+
#include "rb_grpc_imports.generated.h"
|
28
|
+
|
26
29
|
#include <grpc/support/alloc.h>
|
27
30
|
#include <grpc/support/log.h>
|
28
31
|
#include <grpc/support/sync.h>
|
29
32
|
#include <grpc/support/time.h>
|
30
|
-
#include <ruby/thread.h>
|
31
|
-
|
32
|
-
#include "rb_grpc.h"
|
33
33
|
|
34
34
|
typedef struct grpc_rb_event {
|
35
35
|
// callback will be called with argument while holding the GVL
|
data/src/ruby/ext/grpc/rb_grpc.c
CHANGED
@@ -19,7 +19,6 @@
|
|
19
19
|
#include <ruby/ruby.h>
|
20
20
|
|
21
21
|
#include "rb_grpc.h"
|
22
|
-
#include "rb_grpc_imports.generated.h"
|
23
22
|
|
24
23
|
#include <math.h>
|
25
24
|
#include <ruby/vm.h>
|
@@ -28,21 +27,23 @@
|
|
28
27
|
#include <sys/types.h>
|
29
28
|
#include <unistd.h>
|
30
29
|
|
31
|
-
#include <grpc/grpc.h>
|
32
|
-
#include <grpc/support/log.h>
|
33
|
-
#include <grpc/support/time.h>
|
34
30
|
#include "rb_call.h"
|
35
31
|
#include "rb_call_credentials.h"
|
36
32
|
#include "rb_channel.h"
|
37
33
|
#include "rb_channel_credentials.h"
|
38
34
|
#include "rb_compression_options.h"
|
39
35
|
#include "rb_event_thread.h"
|
36
|
+
#include "rb_grpc_imports.generated.h"
|
40
37
|
#include "rb_loader.h"
|
41
38
|
#include "rb_server.h"
|
42
39
|
#include "rb_server_credentials.h"
|
43
40
|
#include "rb_xds_channel_credentials.h"
|
44
41
|
#include "rb_xds_server_credentials.h"
|
45
42
|
|
43
|
+
#include <grpc/grpc.h>
|
44
|
+
#include <grpc/support/log.h>
|
45
|
+
#include <grpc/support/time.h>
|
46
|
+
|
46
47
|
static VALUE grpc_rb_cTimeVal = Qnil;
|
47
48
|
|
48
49
|
static rb_data_type_t grpc_rb_timespec_data_type = {
|
data/src/ruby/ext/grpc/rb_grpc.h
CHANGED
@@ -73,6 +73,7 @@ grpc_lame_client_channel_create_type grpc_lame_client_channel_create_import;
|
|
73
73
|
grpc_channel_destroy_type grpc_channel_destroy_import;
|
74
74
|
grpc_call_cancel_type grpc_call_cancel_import;
|
75
75
|
grpc_call_cancel_with_status_type grpc_call_cancel_with_status_import;
|
76
|
+
grpc_call_failed_before_recv_message_type grpc_call_failed_before_recv_message_import;
|
76
77
|
grpc_call_ref_type grpc_call_ref_import;
|
77
78
|
grpc_call_unref_type grpc_call_unref_import;
|
78
79
|
grpc_server_request_call_type grpc_server_request_call_import;
|
@@ -184,6 +185,7 @@ grpc_tls_server_authorization_check_config_release_type grpc_tls_server_authoriz
|
|
184
185
|
grpc_xds_credentials_create_type grpc_xds_credentials_create_import;
|
185
186
|
grpc_xds_server_credentials_create_type grpc_xds_server_credentials_create_import;
|
186
187
|
grpc_authorization_policy_provider_static_data_create_type grpc_authorization_policy_provider_static_data_create_import;
|
188
|
+
grpc_authorization_policy_provider_file_watcher_create_type grpc_authorization_policy_provider_file_watcher_create_import;
|
187
189
|
grpc_authorization_policy_provider_release_type grpc_authorization_policy_provider_release_import;
|
188
190
|
grpc_raw_byte_buffer_create_type grpc_raw_byte_buffer_create_import;
|
189
191
|
grpc_raw_compressed_byte_buffer_create_type grpc_raw_compressed_byte_buffer_create_import;
|
@@ -361,6 +363,7 @@ void grpc_rb_load_imports(HMODULE library) {
|
|
361
363
|
grpc_channel_destroy_import = (grpc_channel_destroy_type) GetProcAddress(library, "grpc_channel_destroy");
|
362
364
|
grpc_call_cancel_import = (grpc_call_cancel_type) GetProcAddress(library, "grpc_call_cancel");
|
363
365
|
grpc_call_cancel_with_status_import = (grpc_call_cancel_with_status_type) GetProcAddress(library, "grpc_call_cancel_with_status");
|
366
|
+
grpc_call_failed_before_recv_message_import = (grpc_call_failed_before_recv_message_type) GetProcAddress(library, "grpc_call_failed_before_recv_message");
|
364
367
|
grpc_call_ref_import = (grpc_call_ref_type) GetProcAddress(library, "grpc_call_ref");
|
365
368
|
grpc_call_unref_import = (grpc_call_unref_type) GetProcAddress(library, "grpc_call_unref");
|
366
369
|
grpc_server_request_call_import = (grpc_server_request_call_type) GetProcAddress(library, "grpc_server_request_call");
|
@@ -472,6 +475,7 @@ void grpc_rb_load_imports(HMODULE library) {
|
|
472
475
|
grpc_xds_credentials_create_import = (grpc_xds_credentials_create_type) GetProcAddress(library, "grpc_xds_credentials_create");
|
473
476
|
grpc_xds_server_credentials_create_import = (grpc_xds_server_credentials_create_type) GetProcAddress(library, "grpc_xds_server_credentials_create");
|
474
477
|
grpc_authorization_policy_provider_static_data_create_import = (grpc_authorization_policy_provider_static_data_create_type) GetProcAddress(library, "grpc_authorization_policy_provider_static_data_create");
|
478
|
+
grpc_authorization_policy_provider_file_watcher_create_import = (grpc_authorization_policy_provider_file_watcher_create_type) GetProcAddress(library, "grpc_authorization_policy_provider_file_watcher_create");
|
475
479
|
grpc_authorization_policy_provider_release_import = (grpc_authorization_policy_provider_release_type) GetProcAddress(library, "grpc_authorization_policy_provider_release");
|
476
480
|
grpc_raw_byte_buffer_create_import = (grpc_raw_byte_buffer_create_type) GetProcAddress(library, "grpc_raw_byte_buffer_create");
|
477
481
|
grpc_raw_compressed_byte_buffer_create_import = (grpc_raw_compressed_byte_buffer_create_type) GetProcAddress(library, "grpc_raw_compressed_byte_buffer_create");
|
@@ -194,6 +194,9 @@ extern grpc_call_cancel_type grpc_call_cancel_import;
|
|
194
194
|
typedef grpc_call_error(*grpc_call_cancel_with_status_type)(grpc_call* call, grpc_status_code status, const char* description, void* reserved);
|
195
195
|
extern grpc_call_cancel_with_status_type grpc_call_cancel_with_status_import;
|
196
196
|
#define grpc_call_cancel_with_status grpc_call_cancel_with_status_import
|
197
|
+
typedef int(*grpc_call_failed_before_recv_message_type)(const grpc_call* c);
|
198
|
+
extern grpc_call_failed_before_recv_message_type grpc_call_failed_before_recv_message_import;
|
199
|
+
#define grpc_call_failed_before_recv_message grpc_call_failed_before_recv_message_import
|
197
200
|
typedef void(*grpc_call_ref_type)(grpc_call* call);
|
198
201
|
extern grpc_call_ref_type grpc_call_ref_import;
|
199
202
|
#define grpc_call_ref grpc_call_ref_import
|
@@ -527,6 +530,9 @@ extern grpc_xds_server_credentials_create_type grpc_xds_server_credentials_creat
|
|
527
530
|
typedef grpc_authorization_policy_provider*(*grpc_authorization_policy_provider_static_data_create_type)(const char* authz_policy, grpc_status_code* code, const char** error_details);
|
528
531
|
extern grpc_authorization_policy_provider_static_data_create_type grpc_authorization_policy_provider_static_data_create_import;
|
529
532
|
#define grpc_authorization_policy_provider_static_data_create grpc_authorization_policy_provider_static_data_create_import
|
533
|
+
typedef grpc_authorization_policy_provider*(*grpc_authorization_policy_provider_file_watcher_create_type)(const char* authz_policy_path, unsigned int refresh_interval_sec, grpc_status_code* code, const char** error_details);
|
534
|
+
extern grpc_authorization_policy_provider_file_watcher_create_type grpc_authorization_policy_provider_file_watcher_create_import;
|
535
|
+
#define grpc_authorization_policy_provider_file_watcher_create grpc_authorization_policy_provider_file_watcher_create_import
|
530
536
|
typedef void(*grpc_authorization_policy_provider_release_type)(grpc_authorization_policy_provider* provider);
|
531
537
|
extern grpc_authorization_policy_provider_release_type grpc_authorization_policy_provider_release_import;
|
532
538
|
#define grpc_authorization_policy_provider_release grpc_authorization_policy_provider_release_import
|
@@ -18,21 +18,22 @@
|
|
18
18
|
|
19
19
|
#include <ruby/ruby.h>
|
20
20
|
|
21
|
-
#include "rb_grpc_imports.generated.h"
|
22
21
|
#include "rb_server.h"
|
23
22
|
|
24
|
-
#include <grpc/grpc.h>
|
25
|
-
#include <grpc/grpc_security.h>
|
26
|
-
#include <grpc/support/atm.h>
|
27
|
-
#include <grpc/support/log.h>
|
28
23
|
#include "rb_byte_buffer.h"
|
29
24
|
#include "rb_call.h"
|
30
25
|
#include "rb_channel_args.h"
|
31
26
|
#include "rb_completion_queue.h"
|
32
27
|
#include "rb_grpc.h"
|
28
|
+
#include "rb_grpc_imports.generated.h"
|
33
29
|
#include "rb_server_credentials.h"
|
34
30
|
#include "rb_xds_server_credentials.h"
|
35
31
|
|
32
|
+
#include <grpc/grpc.h>
|
33
|
+
#include <grpc/grpc_security.h>
|
34
|
+
#include <grpc/support/atm.h>
|
35
|
+
#include <grpc/support/log.h>
|
36
|
+
|
36
37
|
/* grpc_rb_cServer is the ruby class that proxies grpc_server. */
|
37
38
|
static VALUE grpc_rb_cServer = Qnil;
|
38
39
|
|
@@ -18,15 +18,15 @@
|
|
18
18
|
|
19
19
|
#include <ruby/ruby.h>
|
20
20
|
|
21
|
-
#include "rb_grpc_imports.generated.h"
|
22
21
|
#include "rb_server_credentials.h"
|
23
22
|
|
23
|
+
#include "rb_grpc.h"
|
24
|
+
#include "rb_grpc_imports.generated.h"
|
25
|
+
|
24
26
|
#include <grpc/grpc.h>
|
25
27
|
#include <grpc/grpc_security.h>
|
26
28
|
#include <grpc/support/log.h>
|
27
29
|
|
28
|
-
#include "rb_grpc.h"
|
29
|
-
|
30
30
|
/* grpc_rb_cServerCredentials is the ruby class that proxies
|
31
31
|
grpc_server_credentials. */
|
32
32
|
static VALUE grpc_rb_cServerCredentials = Qnil;
|
@@ -16,18 +16,21 @@
|
|
16
16
|
*
|
17
17
|
*/
|
18
18
|
|
19
|
-
#include <grpc/grpc.h>
|
20
|
-
#include <grpc/grpc_security.h>
|
21
|
-
#include <grpc/support/alloc.h>
|
22
|
-
#include <grpc/support/log.h>
|
23
19
|
#include <ruby/ruby.h>
|
20
|
+
|
21
|
+
#include "rb_xds_channel_credentials.h"
|
22
|
+
|
24
23
|
#include <string.h>
|
25
24
|
|
26
25
|
#include "rb_call_credentials.h"
|
27
26
|
#include "rb_channel_credentials.h"
|
28
27
|
#include "rb_grpc.h"
|
29
28
|
#include "rb_grpc_imports.generated.h"
|
30
|
-
|
29
|
+
|
30
|
+
#include <grpc/grpc.h>
|
31
|
+
#include <grpc/grpc_security.h>
|
32
|
+
#include <grpc/support/alloc.h>
|
33
|
+
#include <grpc/support/log.h>
|
31
34
|
|
32
35
|
/* grpc_rb_cXdsChannelCredentials is the ruby class that proxies
|
33
36
|
grpc_channel_credentials. */
|
@@ -19,10 +19,12 @@
|
|
19
19
|
#ifndef GRPC_RB_XDS_CHANNEL_CREDENTIALS_H_
|
20
20
|
#define GRPC_RB_XDS_CHANNEL_CREDENTIALS_H_
|
21
21
|
|
22
|
-
#include <grpc/grpc_security.h>
|
23
22
|
#include <ruby/ruby.h>
|
23
|
+
|
24
24
|
#include <stdbool.h>
|
25
25
|
|
26
|
+
#include <grpc/grpc_security.h>
|
27
|
+
|
26
28
|
/* Initializes the ruby ChannelCredentials class. */
|
27
29
|
void Init_grpc_xds_channel_credentials();
|
28
30
|
|
@@ -16,17 +16,18 @@
|
|
16
16
|
*
|
17
17
|
*/
|
18
18
|
|
19
|
-
#include "rb_xds_server_credentials.h"
|
20
|
-
|
21
|
-
#include <grpc/grpc.h>
|
22
|
-
#include <grpc/grpc_security.h>
|
23
|
-
#include <grpc/support/log.h>
|
24
19
|
#include <ruby/ruby.h>
|
25
20
|
|
21
|
+
#include "rb_xds_server_credentials.h"
|
22
|
+
|
26
23
|
#include "rb_grpc.h"
|
27
24
|
#include "rb_grpc_imports.generated.h"
|
28
25
|
#include "rb_server_credentials.h"
|
29
26
|
|
27
|
+
#include <grpc/grpc.h>
|
28
|
+
#include <grpc/grpc_security.h>
|
29
|
+
#include <grpc/support/log.h>
|
30
|
+
|
30
31
|
/* grpc_rb_cXdsServerCredentials is the ruby class that proxies
|
31
32
|
grpc_server_credentials. */
|
32
33
|
static VALUE grpc_rb_cXdsServerCredentials = Qnil;
|
@@ -19,10 +19,12 @@
|
|
19
19
|
#ifndef GRPC_RB_XDS_SERVER_CREDENTIALS_H_
|
20
20
|
#define GRPC_RB_XDS_SERVER_CREDENTIALS_H_
|
21
21
|
|
22
|
-
#include <grpc/grpc_security.h>
|
23
22
|
#include <ruby/ruby.h>
|
23
|
+
|
24
24
|
#include <stdbool.h>
|
25
25
|
|
26
|
+
#include <grpc/grpc_security.h>
|
27
|
+
|
26
28
|
/* Initializes the ruby XdsServerCredentials class. */
|
27
29
|
void Init_grpc_xds_server_credentials();
|
28
30
|
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: src/proto/grpc/testing/test.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'src/proto/grpc/testing/empty_pb'
|
7
5
|
require 'src/proto/grpc/testing/messages_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("src/proto/grpc/testing/test.proto", :syntax => :proto3) do
|
10
10
|
end
|
@@ -311,7 +311,7 @@ shared_examples 'basic GRPC message delivery is OK' do
|
|
311
311
|
|
312
312
|
it 'clients can cancel a call on the server' do
|
313
313
|
expected_code = StatusCodes::CANCELLED
|
314
|
-
expected_details = '
|
314
|
+
expected_details = 'CANCELLED'
|
315
315
|
cancel_proc = proc { |call| call.cancel }
|
316
316
|
client_cancel_test(cancel_proc, expected_code, expected_details)
|
317
317
|
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: 1.
|
4
|
+
version: 1.42.0.pre1
|
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: 2021-
|
11
|
+
date: 2021-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '3.
|
19
|
+
version: '3.18'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '3.
|
26
|
+
version: '3.18'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: googleapis-common-protos-types
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '1.
|
131
|
+
version: '1.1'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '1.
|
138
|
+
version: '1.1'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rspec
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -354,7 +354,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
354
354
|
- !ruby/object:Gem::Version
|
355
355
|
version: 1.3.1
|
356
356
|
requirements: []
|
357
|
-
rubygems_version: 3.2.
|
357
|
+
rubygems_version: 3.2.30
|
358
358
|
signing_key:
|
359
359
|
specification_version: 4
|
360
360
|
summary: GRPC system in Ruby
|