grpc 1.41.1-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f0664e784b7a836cf20216025b92c6604c444501b3c8c52ad6d511449293df1
4
- data.tar.gz: c2124197c874f76bbcdd522c0f4b0bf91c0c19836c55118e7cc3e6fc500b7560
3
+ metadata.gz: d70941708b2a4667a743f6c0a69c854db6205d4dffd3df1ccd10dd08f67fd725
4
+ data.tar.gz: 378171e2623308b75537485fa543e344ff814ef2b35f67c577b74ea34e5acca2
5
5
  SHA512:
6
- metadata.gz: 8ed32b434bfd48dd71645ab0b3aeb6f453ebc8d0e23b3839a1290c18fbddf76a0f9390dbd4faa35eb9915751d5b5d7be6e19a1de99afddfa2135305b47a5704c
7
- data.tar.gz: ee5f0abd238a9311ca30aadcb92fe9c36bde2086642ef4e556a514e5e7b6675f6fc27bd8f789c11576e57e63beacbc924805cb8e7666252d460b4ab3c3212d83
6
+ metadata.gz: f6905e5f1f678680381013c1b2d4d534d0b83bd6df3d4b733ccfd54b88d0520653c63d807c3463b8ea496679b23657041a0a887b7db48f45037fe5c409941fb9
7
+ data.tar.gz: f64f67a0002a00b8ecc554144df436de50dfbda8af6c06d4078b0526904a361da5212ba3f2b4598fa0f07960266de0189f74a5c9e414f293b9e7cd9f96779b61
@@ -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 RUBY_PLATFORM =~ /darwin/
43
+ if darwin && !cross_compiling
41
44
  ENV['AR'] = 'libtool'
42
45
  ENV['ARFLAGS'] = '-o'
43
- end
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 RUBY_PLATFORM =~ /darwin/
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.41.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 RUBY_PLATFORM =~ /linux/
79
- $LDFLAGS << ' -Wl,-exported_symbols_list,"' + ext_export_file + '.clang"' if RUBY_PLATFORM =~ /darwin/
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 RUBY_PLATFORM =~ /linux/
92
- $LDFLAGS << ' -static-libgcc -static-libstdc++' if RUBY_PLATFORM =~ /linux/
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 = 'strip -x' if RUBY_PLATFORM =~ /darwin/
108
+ strip_tool += ' -x' if darwin
106
109
 
107
110
  if grpc_config == 'opt'
108
111
  File.open('Makefile.new', 'w') do |o|
@@ -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
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -14,5 +14,5 @@
14
14
 
15
15
  # GRPC contains the General RPC module.
16
16
  module GRPC
17
- VERSION = '1.41.1'
17
+ VERSION = '1.42.0.pre1'
18
18
  end
@@ -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 = 'Cancelled'
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.41.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-10-19 00:00:00.000000000 Z
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.17'
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.17'
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.0'
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.0'
138
+ version: '1.1'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rspec
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -350,11 +350,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
350
350
  version: 3.1.dev
351
351
  required_rubygems_version: !ruby/object:Gem::Requirement
352
352
  requirements:
353
- - - ">="
353
+ - - ">"
354
354
  - !ruby/object:Gem::Version
355
- version: '0'
355
+ version: 1.3.1
356
356
  requirements: []
357
- rubygems_version: 3.2.29
357
+ rubygems_version: 3.2.30
358
358
  signing_key:
359
359
  specification_version: 4
360
360
  summary: GRPC system in Ruby