grpc 1.42.0.pre1-arm64-darwin → 1.60.0.pre1-arm64-darwin

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/grpc_c.64-ucrt.ruby +0 -0
  3. data/src/ruby/bin/math_pb.rb +24 -18
  4. data/src/ruby/ext/grpc/ext-export-truffleruby-with-ruby-abi-version.clang +2 -0
  5. data/src/ruby/ext/grpc/ext-export-truffleruby-with-ruby-abi-version.gcc +7 -0
  6. data/src/ruby/ext/grpc/ext-export-with-ruby-abi-version.clang +2 -0
  7. data/src/ruby/ext/grpc/ext-export-with-ruby-abi-version.gcc +7 -0
  8. data/src/ruby/ext/grpc/ext-export.gcc +1 -1
  9. data/src/ruby/ext/grpc/extconf.rb +174 -27
  10. data/src/ruby/ext/grpc/rb_call.c +63 -39
  11. data/src/ruby/ext/grpc/rb_call_credentials.c +0 -1
  12. data/src/ruby/ext/grpc/rb_channel.c +113 -84
  13. data/src/ruby/ext/grpc/rb_channel.h +1 -0
  14. data/src/ruby/ext/grpc/rb_channel_args.c +19 -2
  15. data/src/ruby/ext/grpc/rb_channel_args.h +4 -0
  16. data/src/ruby/ext/grpc/rb_channel_credentials.c +0 -1
  17. data/src/ruby/ext/grpc/rb_compression_options.c +1 -2
  18. data/src/ruby/ext/grpc/rb_event_thread.c +22 -6
  19. data/src/ruby/ext/grpc/rb_event_thread.h +1 -0
  20. data/src/ruby/ext/grpc/rb_grpc.c +193 -30
  21. data/src/ruby/ext/grpc/rb_grpc.h +8 -2
  22. data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +70 -72
  23. data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +108 -111
  24. data/src/ruby/ext/grpc/rb_loader.c +6 -2
  25. data/src/ruby/ext/grpc/rb_server.c +69 -49
  26. data/src/ruby/ext/grpc/rb_server_credentials.c +0 -1
  27. data/src/ruby/ext/grpc/rb_xds_channel_credentials.c +0 -1
  28. data/src/ruby/ext/grpc/rb_xds_server_credentials.c +0 -1
  29. data/src/ruby/lib/grpc/2.7/grpc_c.bundle +0 -0
  30. data/src/ruby/lib/grpc/3.0/grpc_c.bundle +0 -0
  31. data/src/ruby/lib/grpc/3.1/grpc_c.bundle +0 -0
  32. data/src/ruby/lib/grpc/3.2/grpc_c.bundle +0 -0
  33. data/src/ruby/lib/grpc/errors.rb +1 -1
  34. data/src/ruby/lib/grpc/generic/active_call.rb +16 -15
  35. data/src/ruby/lib/grpc/generic/bidi_call.rb +4 -0
  36. data/src/ruby/lib/grpc/grpc.rb +1 -1
  37. data/src/ruby/lib/grpc/version.rb +1 -1
  38. data/src/ruby/pb/generate_proto_ruby.sh +1 -6
  39. data/src/ruby/pb/grpc/health/v1/health_pb.rb +24 -13
  40. data/src/ruby/pb/src/proto/grpc/testing/empty_pb.rb +24 -3
  41. data/src/ruby/pb/src/proto/grpc/testing/messages_pb.rb +34 -108
  42. data/src/ruby/pb/src/proto/grpc/testing/test_pb.rb +27 -3
  43. data/src/ruby/pb/src/proto/grpc/testing/test_services_pb.rb +22 -0
  44. data/src/ruby/pb/test/client.rb +16 -0
  45. data/src/ruby/spec/channel_spec.rb +5 -43
  46. data/src/ruby/spec/client_server_spec.rb +20 -8
  47. data/src/ruby/spec/generic/active_call_spec.rb +12 -3
  48. data/src/ruby/spec/generic/client_stub_spec.rb +23 -23
  49. data/src/ruby/spec/generic/rpc_server_spec.rb +3 -3
  50. data/src/ruby/spec/generic/server_interceptors_spec.rb +1 -1
  51. data/src/ruby/spec/user_agent_spec.rb +1 -1
  52. metadata +59 -58
  53. data/src/ruby/lib/grpc/2.4/grpc_c.bundle +0 -0
  54. data/src/ruby/lib/grpc/2.5/grpc_c.bundle +0 -0
  55. data/src/ruby/lib/grpc/2.6/grpc_c.bundle +0 -0
  56. /data/{grpc_c.32.ruby → grpc_c.32-msvcrt.ruby} +0 -0
  57. /data/{grpc_c.64.ruby → grpc_c.64-msvcrt.ruby} +0 -0
@@ -498,31 +498,10 @@ describe 'ClientStub' do # rubocop:disable Metrics/BlockLength
498
498
  /Header values must be of type string or array/)
499
499
  end
500
500
 
501
- def run_server_streamer_against_client_with_unmarshal_error(
502
- expected_input, replys)
503
- wakey_thread do |notifier|
504
- c = expect_server_to_be_invoked(notifier)
505
- expect(c.remote_read).to eq(expected_input)
506
- begin
507
- replys.each { |r| c.remote_send(r) }
508
- rescue GRPC::Core::CallError
509
- # An attempt to write to the client might fail. This is ok
510
- # because the client call is expected to fail when
511
- # unmarshalling the first response, and to cancel the call,
512
- # and there is a race as for when the server-side call will
513
- # start to fail.
514
- p 'remote_send failed (allowed because call expected to cancel)'
515
- ensure
516
- c.send_status(OK, 'OK', true)
517
- close_active_server_call(c)
518
- end
519
- end
520
- end
521
-
522
501
  it 'the call terminates when there is an unmarshalling error' do
523
502
  server_port = create_test_server
524
503
  host = "localhost:#{server_port}"
525
- th = run_server_streamer_against_client_with_unmarshal_error(
504
+ th = run_server_streamer_handle_client_cancellation(
526
505
  @sent_msg, @replys)
527
506
  stub = GRPC::ClientStub.new(host, :this_channel_is_insecure)
528
507
 
@@ -597,7 +576,8 @@ describe 'ClientStub' do # rubocop:disable Metrics/BlockLength
597
576
  it 'raises GRPC::Cancelled after the call has been cancelled' do
598
577
  server_port = create_test_server
599
578
  host = "localhost:#{server_port}"
600
- th = run_server_streamer(@sent_msg, @replys, @pass)
579
+ th = run_server_streamer_handle_client_cancellation(
580
+ @sent_msg, @replys)
601
581
  stub = GRPC::ClientStub.new(host, :this_channel_is_insecure)
602
582
  resp = get_responses(stub, run_start_call_first: false)
603
583
  expect(resp.next).to eq('reply_1')
@@ -1037,6 +1017,26 @@ describe 'ClientStub' do # rubocop:disable Metrics/BlockLength
1037
1017
  end
1038
1018
  end
1039
1019
 
1020
+ def run_server_streamer_handle_client_cancellation(
1021
+ expected_input, replys)
1022
+ wakey_thread do |notifier|
1023
+ c = expect_server_to_be_invoked(notifier)
1024
+ expect(c.remote_read).to eq(expected_input)
1025
+ begin
1026
+ replys.each { |r| c.remote_send(r) }
1027
+ rescue GRPC::Core::CallError
1028
+ # An attempt to write to the client might fail. This is ok
1029
+ # because the client call is expected to cancel the call,
1030
+ # and there is a race as for when the server-side call will
1031
+ # start to fail.
1032
+ p 'remote_send failed (allowed because call expected to cancel)'
1033
+ ensure
1034
+ c.send_status(OK, 'OK', true)
1035
+ close_active_server_call(c)
1036
+ end
1037
+ end
1038
+ end
1039
+
1040
1040
  def run_request_response(expected_input, resp, status,
1041
1041
  expected_metadata: {},
1042
1042
  server_initial_md: {},
@@ -668,9 +668,9 @@ describe GRPC::RpcServer do
668
668
  def check_multi_req_view_of_finished_call(call)
669
669
  common_check_of_finished_server_call(call)
670
670
 
671
- expect do
672
- call.each_remote_read.each { |r| p r }
673
- end.to raise_error(GRPC::Core::CallError)
671
+ l = []
672
+ call.each_remote_read.each { |r| l << r }
673
+ expect(l.size).to eq(0)
674
674
  end
675
675
 
676
676
  def common_check_of_finished_server_call(call)
@@ -17,7 +17,7 @@ describe 'Server Interceptors' do
17
17
  let(:interceptor) { TestServerInterceptor.new }
18
18
  let(:request) { EchoMsg.new }
19
19
  let(:trailing_metadata) { {} }
20
- let(:service) { EchoService.new(trailing_metadata) }
20
+ let(:service) { EchoService.new(**trailing_metadata) }
21
21
  let(:interceptors) { [] }
22
22
 
23
23
  before(:each) do
@@ -49,7 +49,7 @@ describe 'user agent' do
49
49
  it 'client sends expected user agent' do
50
50
  stub = UserAgentEchoServiceStub.new("localhost:#{@port}",
51
51
  :this_channel_is_insecure,
52
- {})
52
+ channel_args: {})
53
53
  response = stub.an_rpc(EchoMsg.new)
54
54
  expected_user_agent_prefix = "grpc-ruby/#{GRPC::VERSION}"
55
55
  expect(response.msg.start_with?(expected_user_agent_prefix)).to be true
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.42.0.pre1
4
+ version: 1.60.0.pre1
5
5
  platform: arm64-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-05 00:00:00.000000000 Z
11
+ date: 2023-11-13 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.18'
19
+ version: '3.25'
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.18'
26
+ version: '3.25'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: googleapis-common-protos-types
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.14.1
89
+ version: '0.22'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.14.1
96
+ version: '0.22'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -114,28 +114,28 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '1.1'
117
+ version: 1.2.1
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '1.1'
124
+ version: 1.2.1
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rake-compiler-dock
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '1.1'
131
+ version: '1.3'
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.1'
138
+ version: '1.3'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rspec
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -156,14 +156,14 @@ dependencies:
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 0.49.1
159
+ version: 1.41.0
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 0.49.1
166
+ version: 1.41.0
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: signet
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -182,22 +182,16 @@ dependencies:
182
182
  name: googleauth
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - ">="
186
- - !ruby/object:Gem::Version
187
- version: 0.5.1
188
- - - "<"
185
+ - - "~>"
189
186
  - !ruby/object:Gem::Version
190
- version: '0.10'
187
+ version: '1.0'
191
188
  type: :development
192
189
  prerelease: false
193
190
  version_requirements: !ruby/object:Gem::Requirement
194
191
  requirements:
195
- - - ">="
196
- - !ruby/object:Gem::Version
197
- version: 0.5.1
198
- - - "<"
192
+ - - "~>"
199
193
  - !ruby/object:Gem::Version
200
- version: '0.10'
194
+ version: '1.0'
201
195
  description: Send RPCs from Ruby using GRPC
202
196
  email: grpc-io@googlegroups.com
203
197
  executables: []
@@ -205,14 +199,19 @@ extensions: []
205
199
  extra_rdoc_files: []
206
200
  files:
207
201
  - etc/roots.pem
208
- - grpc_c.32.ruby
209
- - grpc_c.64.ruby
202
+ - grpc_c.32-msvcrt.ruby
203
+ - grpc_c.64-msvcrt.ruby
204
+ - grpc_c.64-ucrt.ruby
210
205
  - src/ruby/bin/math_client.rb
211
206
  - src/ruby/bin/math_pb.rb
212
207
  - src/ruby/bin/math_server.rb
213
208
  - src/ruby/bin/math_services_pb.rb
214
209
  - src/ruby/bin/noproto_client.rb
215
210
  - src/ruby/bin/noproto_server.rb
211
+ - src/ruby/ext/grpc/ext-export-truffleruby-with-ruby-abi-version.clang
212
+ - src/ruby/ext/grpc/ext-export-truffleruby-with-ruby-abi-version.gcc
213
+ - src/ruby/ext/grpc/ext-export-with-ruby-abi-version.clang
214
+ - src/ruby/ext/grpc/ext-export-with-ruby-abi-version.gcc
216
215
  - src/ruby/ext/grpc/ext-export.clang
217
216
  - src/ruby/ext/grpc/ext-export.gcc
218
217
  - src/ruby/ext/grpc/extconf.rb
@@ -250,11 +249,10 @@ files:
250
249
  - src/ruby/ext/grpc/rb_xds_server_credentials.c
251
250
  - src/ruby/ext/grpc/rb_xds_server_credentials.h
252
251
  - src/ruby/lib/grpc.rb
253
- - src/ruby/lib/grpc/2.4/grpc_c.bundle
254
- - src/ruby/lib/grpc/2.5/grpc_c.bundle
255
- - src/ruby/lib/grpc/2.6/grpc_c.bundle
256
252
  - src/ruby/lib/grpc/2.7/grpc_c.bundle
257
253
  - src/ruby/lib/grpc/3.0/grpc_c.bundle
254
+ - src/ruby/lib/grpc/3.1/grpc_c.bundle
255
+ - src/ruby/lib/grpc/3.2/grpc_c.bundle
258
256
  - src/ruby/lib/grpc/core/status_codes.rb
259
257
  - src/ruby/lib/grpc/core/time_consts.rb
260
258
  - src/ruby/lib/grpc/errors.rb
@@ -344,61 +342,64 @@ required_ruby_version: !ruby/object:Gem::Requirement
344
342
  requirements:
345
343
  - - ">="
346
344
  - !ruby/object:Gem::Version
347
- version: '2.4'
345
+ version: '2.7'
348
346
  - - "<"
349
347
  - !ruby/object:Gem::Version
350
- version: 3.1.dev
348
+ version: 3.3.dev
351
349
  required_rubygems_version: !ruby/object:Gem::Requirement
352
350
  requirements:
353
351
  - - ">"
354
352
  - !ruby/object:Gem::Version
355
353
  version: 1.3.1
356
354
  requirements: []
357
- rubygems_version: 3.2.30
355
+ rubygems_version: 3.4.22
358
356
  signing_key:
359
357
  specification_version: 4
360
358
  summary: GRPC system in Ruby
361
359
  test_files:
362
360
  - src/ruby/spec/call_credentials_spec.rb
361
+ - src/ruby/spec/call_spec.rb
362
+ - src/ruby/spec/channel_connection_spec.rb
363
+ - src/ruby/spec/channel_credentials_spec.rb
364
+ - src/ruby/spec/channel_spec.rb
365
+ - src/ruby/spec/client_auth_spec.rb
366
+ - src/ruby/spec/client_server_spec.rb
367
+ - src/ruby/spec/compression_options_spec.rb
368
+ - src/ruby/spec/debug_message_spec.rb
369
+ - src/ruby/spec/error_sanity_spec.rb
370
+ - src/ruby/spec/errors_spec.rb
363
371
  - src/ruby/spec/generic/active_call_spec.rb
364
372
  - src/ruby/spec/generic/client_interceptors_spec.rb
365
- - src/ruby/spec/generic/rpc_server_pool_spec.rb
366
- - src/ruby/spec/generic/rpc_server_spec.rb
367
373
  - src/ruby/spec/generic/client_stub_spec.rb
374
+ - src/ruby/spec/generic/interceptor_registry_spec.rb
368
375
  - src/ruby/spec/generic/rpc_desc_spec.rb
376
+ - src/ruby/spec/generic/rpc_server_pool_spec.rb
377
+ - src/ruby/spec/generic/rpc_server_spec.rb
369
378
  - src/ruby/spec/generic/server_interceptors_spec.rb
370
379
  - src/ruby/spec/generic/service_spec.rb
371
- - src/ruby/spec/generic/interceptor_registry_spec.rb
372
- - src/ruby/spec/call_spec.rb
373
- - src/ruby/spec/spec_helper.rb
374
- - src/ruby/spec/testdata/ca.pem
375
- - src/ruby/spec/testdata/client.key
376
- - src/ruby/spec/testdata/server1.pem
377
- - src/ruby/spec/testdata/client.pem
378
- - src/ruby/spec/testdata/README
379
- - src/ruby/spec/testdata/server1.key
380
- - src/ruby/spec/debug_message_spec.rb
381
- - src/ruby/spec/pb/codegen/package_option_spec.rb
382
- - src/ruby/spec/pb/codegen/grpc/testing/same_package_service_name.proto
383
- - src/ruby/spec/pb/codegen/grpc/testing/same_ruby_package_service_name.proto
380
+ - src/ruby/spec/google_rpc_status_utils_spec.rb
384
381
  - src/ruby/spec/pb/codegen/grpc/testing/package_options.proto
382
+ - src/ruby/spec/pb/codegen/grpc/testing/package_options_import.proto
385
383
  - src/ruby/spec/pb/codegen/grpc/testing/package_options_import2.proto
386
384
  - src/ruby/spec/pb/codegen/grpc/testing/package_options_ruby_style.proto
387
- - src/ruby/spec/pb/codegen/grpc/testing/package_options_import.proto
385
+ - src/ruby/spec/pb/codegen/grpc/testing/same_package_service_name.proto
386
+ - src/ruby/spec/pb/codegen/grpc/testing/same_ruby_package_service_name.proto
387
+ - src/ruby/spec/pb/codegen/package_option_spec.rb
388
388
  - src/ruby/spec/pb/duplicate/codegen_spec.rb
389
389
  - src/ruby/spec/pb/health/checker_spec.rb
390
- - src/ruby/spec/time_consts_spec.rb
391
- - src/ruby/spec/client_auth_spec.rb
392
- - src/ruby/spec/channel_spec.rb
393
- - src/ruby/spec/errors_spec.rb
394
- - src/ruby/spec/user_agent_spec.rb
395
- - src/ruby/spec/google_rpc_status_utils_spec.rb
396
- - src/ruby/spec/error_sanity_spec.rb
397
- - src/ruby/spec/client_server_spec.rb
398
- - src/ruby/spec/compression_options_spec.rb
399
- - src/ruby/spec/channel_connection_spec.rb
400
390
  - src/ruby/spec/server_credentials_spec.rb
391
+ - src/ruby/spec/server_spec.rb
392
+ - src/ruby/spec/spec_helper.rb
401
393
  - src/ruby/spec/support/helpers.rb
402
394
  - src/ruby/spec/support/services.rb
403
- - src/ruby/spec/server_spec.rb
404
- - src/ruby/spec/channel_credentials_spec.rb
395
+ - src/ruby/spec/testdata/README
396
+ - src/ruby/spec/testdata/ca.pem
397
+ - src/ruby/spec/testdata/client.key
398
+ - src/ruby/spec/testdata/client.pem
399
+ - src/ruby/spec/testdata/server1.key
400
+ - src/ruby/spec/testdata/server1.pem
401
+ - src/ruby/spec/time_consts_spec.rb
402
+ - src/ruby/spec/user_agent_spec.rb
403
+ - src/ruby/pb/test/client.rb
404
+ - src/ruby/pb/test/server.rb
405
+ - src/ruby/pb/test/xds_client.rb
Binary file
Binary file
Binary file
File without changes
File without changes