grpc 1.50.0-x64-mingw-ucrt → 1.51.0-x64-mingw-ucrt
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/grpc_c.64-ucrt.ruby +0 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +0 -2
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +0 -3
- data/src/ruby/lib/grpc/3.1/grpc_c.so +0 -0
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/src/ruby/spec/channel_spec.rb +0 -43
- data/src/ruby/spec/generic/active_call_spec.rb +12 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f380a5eca0f0655ea38c126533df569a304257270d03e8cc550239a5f6f78e91
|
4
|
+
data.tar.gz: 2b4a6b22215ee3f2c3f5f331077f7447d3391a414d13372843cbe1115e5e7606
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d0c46a469187cde74f0f024500e8b4234fdc6b402cbf42d0bcf9ecd7c684f7eff23fcf6922078e41dffa9a51349223919cc54393a0f8e3fea47e010805cec36
|
7
|
+
data.tar.gz: c0bda77a540915c169a6c4f9eb95bc7ef7073fc87cb86ac461d77f5d7510e7f43bee51a6275444fea8e2c726596705be593a72a7d412688ce82578e228ae8add
|
data/grpc_c.64-ucrt.ruby
CHANGED
Binary file
|
@@ -35,7 +35,6 @@ grpc_metadata_array_init_type grpc_metadata_array_init_import;
|
|
35
35
|
grpc_metadata_array_destroy_type grpc_metadata_array_destroy_import;
|
36
36
|
grpc_call_details_init_type grpc_call_details_init_import;
|
37
37
|
grpc_call_details_destroy_type grpc_call_details_destroy_import;
|
38
|
-
grpc_register_plugin_type grpc_register_plugin_import;
|
39
38
|
grpc_init_type grpc_init_import;
|
40
39
|
grpc_shutdown_type grpc_shutdown_import;
|
41
40
|
grpc_is_initialized_type grpc_is_initialized_import;
|
@@ -321,7 +320,6 @@ void grpc_rb_load_imports(HMODULE library) {
|
|
321
320
|
grpc_metadata_array_destroy_import = (grpc_metadata_array_destroy_type) GetProcAddress(library, "grpc_metadata_array_destroy");
|
322
321
|
grpc_call_details_init_import = (grpc_call_details_init_type) GetProcAddress(library, "grpc_call_details_init");
|
323
322
|
grpc_call_details_destroy_import = (grpc_call_details_destroy_type) GetProcAddress(library, "grpc_call_details_destroy");
|
324
|
-
grpc_register_plugin_import = (grpc_register_plugin_type) GetProcAddress(library, "grpc_register_plugin");
|
325
323
|
grpc_init_import = (grpc_init_type) GetProcAddress(library, "grpc_init");
|
326
324
|
grpc_shutdown_import = (grpc_shutdown_type) GetProcAddress(library, "grpc_shutdown");
|
327
325
|
grpc_is_initialized_import = (grpc_is_initialized_type) GetProcAddress(library, "grpc_is_initialized");
|
@@ -80,9 +80,6 @@ extern grpc_call_details_init_type grpc_call_details_init_import;
|
|
80
80
|
typedef void(*grpc_call_details_destroy_type)(grpc_call_details* details);
|
81
81
|
extern grpc_call_details_destroy_type grpc_call_details_destroy_import;
|
82
82
|
#define grpc_call_details_destroy grpc_call_details_destroy_import
|
83
|
-
typedef void(*grpc_register_plugin_type)(void (*init)(void), void (*destroy)(void));
|
84
|
-
extern grpc_register_plugin_type grpc_register_plugin_import;
|
85
|
-
#define grpc_register_plugin grpc_register_plugin_import
|
86
83
|
typedef void(*grpc_init_type)(void);
|
87
84
|
extern grpc_init_type grpc_init_import;
|
88
85
|
#define grpc_init grpc_init_import
|
Binary file
|
@@ -28,28 +28,6 @@ describe GRPC::Core::Channel do
|
|
28
28
|
GRPC::Core::ChannelCredentials.new(load_test_certs[0])
|
29
29
|
end
|
30
30
|
|
31
|
-
def fork_with_propagated_error_message
|
32
|
-
pipe_read, pipe_write = IO.pipe
|
33
|
-
pid = fork do
|
34
|
-
pipe_read.close
|
35
|
-
begin
|
36
|
-
yield
|
37
|
-
rescue => exc
|
38
|
-
pipe_write.syswrite(exc.message)
|
39
|
-
end
|
40
|
-
pipe_write.close
|
41
|
-
end
|
42
|
-
pipe_write.close
|
43
|
-
|
44
|
-
exc_message = pipe_read.read
|
45
|
-
Process.wait(pid)
|
46
|
-
|
47
|
-
unless $CHILD_STATUS.success?
|
48
|
-
raise "forked process failed with #{$CHILD_STATUS}"
|
49
|
-
end
|
50
|
-
raise exc_message unless exc_message.empty?
|
51
|
-
end
|
52
|
-
|
53
31
|
shared_examples '#new' do
|
54
32
|
it 'take a host name without channel args' do
|
55
33
|
blk = proc do
|
@@ -102,14 +80,6 @@ describe GRPC::Core::Channel do
|
|
102
80
|
blk = construct_with_args(args)
|
103
81
|
expect(&blk).to_not raise_error
|
104
82
|
end
|
105
|
-
|
106
|
-
it 'raises if grpc was initialized in another process' do
|
107
|
-
blk = construct_with_args({})
|
108
|
-
expect(&blk).not_to raise_error
|
109
|
-
expect do
|
110
|
-
fork_with_propagated_error_message(&blk)
|
111
|
-
end.to raise_error(RuntimeError, 'grpc cannot be used before and after forking')
|
112
|
-
end
|
113
83
|
end
|
114
84
|
|
115
85
|
describe '#new for secure channels' do
|
@@ -168,19 +138,6 @@ describe GRPC::Core::Channel do
|
|
168
138
|
expect(&blk).to raise_error(RuntimeError)
|
169
139
|
STDERR.puts "#{Time.now}: finished: raises an error if called on a closed channel"
|
170
140
|
end
|
171
|
-
|
172
|
-
it 'raises if grpc was initialized in another process' do
|
173
|
-
ch = GRPC::Core::Channel.new(fake_host, nil, :this_channel_is_insecure)
|
174
|
-
|
175
|
-
deadline = Time.now + 5
|
176
|
-
|
177
|
-
blk = proc do
|
178
|
-
fork_with_propagated_error_message do
|
179
|
-
ch.create_call(nil, nil, 'phony_method', nil, deadline)
|
180
|
-
end
|
181
|
-
end
|
182
|
-
expect(&blk).to raise_error(RuntimeError, 'grpc cannot be used before and after forking')
|
183
|
-
end
|
184
141
|
end
|
185
142
|
|
186
143
|
describe '#destroy' do
|
@@ -65,12 +65,21 @@ describe GRPC::ActiveCall do
|
|
65
65
|
|
66
66
|
describe 'restricted view methods' do
|
67
67
|
before(:each) do
|
68
|
-
call = make_test_call
|
69
|
-
ActiveCall.client_invoke(call)
|
70
|
-
@client_call = ActiveCall.new(call, @pass_through,
|
68
|
+
@call = make_test_call
|
69
|
+
ActiveCall.client_invoke(@call)
|
70
|
+
@client_call = ActiveCall.new(@call, @pass_through,
|
71
71
|
@pass_through, deadline)
|
72
72
|
end
|
73
73
|
|
74
|
+
after(:each) do
|
75
|
+
# terminate the RPC that was started in before(:each)
|
76
|
+
recvd_rpc = @received_rpcs_queue.pop
|
77
|
+
recvd_call = recvd_rpc.call
|
78
|
+
recvd_call.run_batch(CallOps::SEND_INITIAL_METADATA => nil)
|
79
|
+
@call.run_batch(CallOps::RECV_INITIAL_METADATA => nil)
|
80
|
+
send_and_receive_close_and_status(@call, recvd_call)
|
81
|
+
end
|
82
|
+
|
74
83
|
describe '#multi_req_view' do
|
75
84
|
it 'exposes a fixed subset of the ActiveCall.methods' do
|
76
85
|
want = %w(cancelled?, deadline, each_remote_read, metadata, \
|
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.51.0
|
5
5
|
platform: x64-mingw-ucrt
|
6
6
|
authors:
|
7
7
|
- gRPC Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: src/ruby/bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|