grpc 1.30.0-x64-mingw32 → 1.30.1-x64-mingw32

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
  SHA256:
3
- metadata.gz: 754a53a7e009839e75aefb663287461da7c06eecf48952483ab66e617470f4e3
4
- data.tar.gz: debd514d89efac1ea3fd122e0773dcc246842cb47f92a5966737941e2974cbb5
3
+ metadata.gz: 642c6616455013275005f619a09ff045ee7b7c6366cd550ab1dbd0e1be8c084b
4
+ data.tar.gz: 5f7362bfea74a552eeb4b1bb07025efc29af39e36b26e595ced36236e59d741a
5
5
  SHA512:
6
- metadata.gz: 55813470e26f3d9c2f1520d27a07234e3ecc6db59082061d7032ec946afe4b02bc66afd924f102a3ce06db9f3ebcb59470a695ef8caa6a4a986313001f977ef9
7
- data.tar.gz: f0a32b5962795b4b7a53ecfe96ebb0489c22ff0587392cfa789c1a8eda6da48438df43d31fe0c87d8cf2514ca6a4827640cb5ccddb09c76c3a3be59e14962c9f
6
+ metadata.gz: 0b2c84631050a181a5679bfaec5eb8abda70bba96aa325ff7e26f8f2f79ccc7eac0f8f0b902523b8271d746da4ea176351570a841b1980a43cfa792560e9b386
7
+ data.tar.gz: '094d8b7e2fb81ab2c500d173d0fd6036541115336f57f53d13d743d1f600c1d85e7ece342356fbc28d1af53ede849cd917bbbb5a1daf8c51f3e76eed2d7f538b'
Binary file
Binary file
@@ -109,6 +109,7 @@ static void grpc_rb_call_credentials_callback_with_gil(void* param) {
109
109
  params->callback(params->user_data, md_ary.metadata, md_ary.count, status,
110
110
  error_details);
111
111
  grpc_rb_metadata_array_destroy_including_entries(&md_ary);
112
+ grpc_auth_metadata_context_reset(&params->context);
112
113
  gpr_free(params);
113
114
  }
114
115
 
@@ -118,9 +119,9 @@ static int grpc_rb_call_credentials_plugin_get_metadata(
118
119
  grpc_metadata creds_md[GRPC_METADATA_CREDENTIALS_PLUGIN_SYNC_MAX],
119
120
  size_t* num_creds_md, grpc_status_code* status,
120
121
  const char** error_details) {
121
- callback_params* params = gpr_malloc(sizeof(callback_params));
122
+ callback_params* params = gpr_zalloc(sizeof(callback_params));
122
123
  params->get_metadata = (VALUE)state;
123
- params->context = context;
124
+ grpc_auth_metadata_context_copy(&context, &params->context);
124
125
  params->user_data = user_data;
125
126
  params->callback = cb;
126
127
 
@@ -135,6 +135,8 @@ grpc_google_refresh_token_credentials_create_type grpc_google_refresh_token_cred
135
135
  grpc_access_token_credentials_create_type grpc_access_token_credentials_create_import;
136
136
  grpc_google_iam_credentials_create_type grpc_google_iam_credentials_create_import;
137
137
  grpc_sts_credentials_create_type grpc_sts_credentials_create_import;
138
+ grpc_auth_metadata_context_copy_type grpc_auth_metadata_context_copy_import;
139
+ grpc_auth_metadata_context_reset_type grpc_auth_metadata_context_reset_import;
138
140
  grpc_metadata_credentials_create_from_plugin_type grpc_metadata_credentials_create_from_plugin_import;
139
141
  grpc_secure_channel_create_type grpc_secure_channel_create_import;
140
142
  grpc_server_credentials_release_type grpc_server_credentials_release_import;
@@ -407,6 +409,8 @@ void grpc_rb_load_imports(HMODULE library) {
407
409
  grpc_access_token_credentials_create_import = (grpc_access_token_credentials_create_type) GetProcAddress(library, "grpc_access_token_credentials_create");
408
410
  grpc_google_iam_credentials_create_import = (grpc_google_iam_credentials_create_type) GetProcAddress(library, "grpc_google_iam_credentials_create");
409
411
  grpc_sts_credentials_create_import = (grpc_sts_credentials_create_type) GetProcAddress(library, "grpc_sts_credentials_create");
412
+ grpc_auth_metadata_context_copy_import = (grpc_auth_metadata_context_copy_type) GetProcAddress(library, "grpc_auth_metadata_context_copy");
413
+ grpc_auth_metadata_context_reset_import = (grpc_auth_metadata_context_reset_type) GetProcAddress(library, "grpc_auth_metadata_context_reset");
410
414
  grpc_metadata_credentials_create_from_plugin_import = (grpc_metadata_credentials_create_from_plugin_type) GetProcAddress(library, "grpc_metadata_credentials_create_from_plugin");
411
415
  grpc_secure_channel_create_import = (grpc_secure_channel_create_type) GetProcAddress(library, "grpc_secure_channel_create");
412
416
  grpc_server_credentials_release_import = (grpc_server_credentials_release_type) GetProcAddress(library, "grpc_server_credentials_release");
@@ -380,6 +380,12 @@ extern grpc_google_iam_credentials_create_type grpc_google_iam_credentials_creat
380
380
  typedef grpc_call_credentials*(*grpc_sts_credentials_create_type)(const grpc_sts_credentials_options* options, void* reserved);
381
381
  extern grpc_sts_credentials_create_type grpc_sts_credentials_create_import;
382
382
  #define grpc_sts_credentials_create grpc_sts_credentials_create_import
383
+ typedef void(*grpc_auth_metadata_context_copy_type)(grpc_auth_metadata_context* from, grpc_auth_metadata_context* to);
384
+ extern grpc_auth_metadata_context_copy_type grpc_auth_metadata_context_copy_import;
385
+ #define grpc_auth_metadata_context_copy grpc_auth_metadata_context_copy_import
386
+ typedef void(*grpc_auth_metadata_context_reset_type)(grpc_auth_metadata_context* context);
387
+ extern grpc_auth_metadata_context_reset_type grpc_auth_metadata_context_reset_import;
388
+ #define grpc_auth_metadata_context_reset grpc_auth_metadata_context_reset_import
383
389
  typedef grpc_call_credentials*(*grpc_metadata_credentials_create_from_plugin_type)(grpc_metadata_credentials_plugin plugin, grpc_security_level min_security_level, void* reserved);
384
390
  extern grpc_metadata_credentials_create_from_plugin_type grpc_metadata_credentials_create_from_plugin_import;
385
391
  #define grpc_metadata_credentials_create_from_plugin grpc_metadata_credentials_create_from_plugin_import
@@ -14,5 +14,5 @@
14
14
 
15
15
  # GRPC contains the General RPC module.
16
16
  module GRPC
17
- VERSION = '1.30.0'
17
+ VERSION = '1.30.1'
18
18
  end
@@ -17,12 +17,18 @@ require 'spec_helper'
17
17
 
18
18
  # A test message
19
19
  class EchoMsg
20
- def self.marshal(_o)
21
- ''
20
+ attr_reader :msg
21
+
22
+ def initialize(msg: '')
23
+ @msg = msg
22
24
  end
23
25
 
24
- def self.unmarshal(_o)
25
- EchoMsg.new
26
+ def self.marshal(o)
27
+ o.msg
28
+ end
29
+
30
+ def self.unmarshal(msg)
31
+ EchoMsg.new(msg: msg)
26
32
  end
27
33
  end
28
34
 
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.30.0
4
+ version: 1.30.1
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - gRPC Authors
8
8
  autorequire:
9
9
  bindir: src/ruby/bin
10
10
  cert_chain: []
11
- date: 2020-06-22 00:00:00.000000000 Z
11
+ date: 2020-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -352,41 +352,41 @@ specification_version: 4
352
352
  summary: GRPC system in Ruby
353
353
  test_files:
354
354
  - src/ruby/spec/spec_helper.rb
355
- - src/ruby/spec/client_auth_spec.rb
356
- - src/ruby/spec/server_spec.rb
357
- - src/ruby/spec/errors_spec.rb
358
- - src/ruby/spec/generic/client_stub_spec.rb
359
- - src/ruby/spec/generic/interceptor_registry_spec.rb
360
- - src/ruby/spec/generic/rpc_server_pool_spec.rb
361
- - src/ruby/spec/generic/rpc_server_spec.rb
362
- - src/ruby/spec/generic/rpc_desc_spec.rb
363
- - src/ruby/spec/generic/active_call_spec.rb
364
- - src/ruby/spec/generic/server_interceptors_spec.rb
365
- - src/ruby/spec/generic/service_spec.rb
366
- - src/ruby/spec/generic/client_interceptors_spec.rb
367
- - src/ruby/spec/channel_credentials_spec.rb
368
- - src/ruby/spec/time_consts_spec.rb
369
- - src/ruby/spec/pb/codegen/grpc/testing/package_options_import.proto
370
- - src/ruby/spec/pb/codegen/grpc/testing/package_options_ruby_style.proto
371
- - src/ruby/spec/pb/codegen/grpc/testing/package_options.proto
372
- - src/ruby/spec/pb/codegen/package_option_spec.rb
373
355
  - src/ruby/spec/pb/health/checker_spec.rb
374
356
  - src/ruby/spec/pb/duplicate/codegen_spec.rb
357
+ - src/ruby/spec/pb/codegen/package_option_spec.rb
358
+ - src/ruby/spec/pb/codegen/grpc/testing/package_options_import.proto
359
+ - src/ruby/spec/pb/codegen/grpc/testing/package_options.proto
360
+ - src/ruby/spec/pb/codegen/grpc/testing/package_options_ruby_style.proto
361
+ - src/ruby/spec/errors_spec.rb
375
362
  - src/ruby/spec/call_spec.rb
363
+ - src/ruby/spec/compression_options_spec.rb
364
+ - src/ruby/spec/server_credentials_spec.rb
376
365
  - src/ruby/spec/call_credentials_spec.rb
377
366
  - src/ruby/spec/client_server_spec.rb
378
- - src/ruby/spec/compression_options_spec.rb
367
+ - src/ruby/spec/error_sanity_spec.rb
379
368
  - src/ruby/spec/channel_spec.rb
380
- - src/ruby/spec/server_credentials_spec.rb
381
- - src/ruby/spec/debug_message_spec.rb
382
- - src/ruby/spec/channel_connection_spec.rb
383
- - src/ruby/spec/support/services.rb
384
- - src/ruby/spec/support/helpers.rb
385
- - src/ruby/spec/google_rpc_status_utils_spec.rb
369
+ - src/ruby/spec/server_spec.rb
370
+ - src/ruby/spec/generic/client_stub_spec.rb
371
+ - src/ruby/spec/generic/rpc_server_spec.rb
372
+ - src/ruby/spec/generic/active_call_spec.rb
373
+ - src/ruby/spec/generic/rpc_server_pool_spec.rb
374
+ - src/ruby/spec/generic/client_interceptors_spec.rb
375
+ - src/ruby/spec/generic/rpc_desc_spec.rb
376
+ - src/ruby/spec/generic/interceptor_registry_spec.rb
377
+ - src/ruby/spec/generic/service_spec.rb
378
+ - src/ruby/spec/generic/server_interceptors_spec.rb
386
379
  - src/ruby/spec/testdata/client.key
380
+ - src/ruby/spec/testdata/client.pem
387
381
  - src/ruby/spec/testdata/ca.pem
388
382
  - src/ruby/spec/testdata/server1.key
389
383
  - src/ruby/spec/testdata/server1.pem
390
- - src/ruby/spec/testdata/client.pem
391
384
  - src/ruby/spec/testdata/README
392
- - src/ruby/spec/error_sanity_spec.rb
385
+ - src/ruby/spec/support/helpers.rb
386
+ - src/ruby/spec/support/services.rb
387
+ - src/ruby/spec/debug_message_spec.rb
388
+ - src/ruby/spec/google_rpc_status_utils_spec.rb
389
+ - src/ruby/spec/time_consts_spec.rb
390
+ - src/ruby/spec/channel_credentials_spec.rb
391
+ - src/ruby/spec/channel_connection_spec.rb
392
+ - src/ruby/spec/client_auth_spec.rb