grpc 1.30.1-universal-darwin → 1.30.2-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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef417c3047f4282c81a354ecc4e22a7b43da953c270fa6a2d706643e91f177a4
|
4
|
+
data.tar.gz: dee5d662b7e4013f2f83f6e7b1bc6c644ae34d04d31e599c82a521f1d021588a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eba6ce54860884278b4dd4bb296c011834bad0693c562d9617c97cdd669c68a5c7682b6d47d11b202be294679188d2086f5d33647aa076b1dd3c8c31eb2127ba
|
7
|
+
data.tar.gz: dabe389c73995ae3c199f2310aceda8f99d4b8b34b781147c370579b8822104f98797cb5c174d127ce7c48f4f813bf8801b7bd10c1d499290979739bb04750fb
|
@@ -0,0 +1,23 @@
|
|
1
|
+
// Copyright 2020 gRPC authors.
|
2
|
+
//
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
// you may not use this file except in compliance with the License.
|
5
|
+
// You may obtain a copy of the License at
|
6
|
+
//
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
//
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
// See the License for the specific language governing permissions and
|
13
|
+
// limitations under the License.
|
14
|
+
|
15
|
+
syntax = "proto3";
|
16
|
+
|
17
|
+
package grpc.foo;
|
18
|
+
|
19
|
+
option ruby_package = "B::Other";
|
20
|
+
|
21
|
+
message Foo {
|
22
|
+
message Bar { }
|
23
|
+
}
|
@@ -17,6 +17,7 @@ syntax = "proto3";
|
|
17
17
|
package grpc.testing;
|
18
18
|
|
19
19
|
import "grpc/testing/package_options_import.proto";
|
20
|
+
import "grpc/testing/package_options_import2.proto";
|
20
21
|
|
21
22
|
// For sanity checking package definitions
|
22
23
|
option ruby_package = "RPC::Test::New::Package::Options";
|
@@ -34,6 +35,7 @@ message Bar {
|
|
34
35
|
service AnotherTestService {
|
35
36
|
rpc GetTest(AnotherTestRequest) returns (AnotherTestResponse) { }
|
36
37
|
rpc OtherTest(Thing) returns (Thing) { }
|
38
|
+
rpc PackageTest(grpc.testing.Thing) returns (grpc.foo.Foo.Bar) { }
|
37
39
|
rpc FooTest(Foo) returns (Foo) { }
|
38
40
|
rpc NestedMessageTest(Foo) returns (Bar.Baz) { }
|
39
41
|
}
|
@@ -27,7 +27,9 @@ describe 'Code Generation Options' do
|
|
27
27
|
end
|
28
28
|
|
29
29
|
it 'should generate and respect Ruby style package options' do
|
30
|
-
with_protos(
|
30
|
+
with_protos(['grpc/testing/package_options_ruby_style.proto',
|
31
|
+
'grpc/testing/package_options_import.proto',
|
32
|
+
'grpc/testing/package_options_import2.proto']) do
|
31
33
|
expect { RPC::Test::New::Package::Options::AnotherTestService::Service }.to raise_error(NameError)
|
32
34
|
expect(require('grpc/testing/package_options_ruby_style_services_pb')).to be_truthy
|
33
35
|
expect { RPC::Test::New::Package::Options::AnotherTestService::Service }.to_not raise_error
|
@@ -38,6 +40,8 @@ describe 'Code Generation Options' do
|
|
38
40
|
expect(services[:GetTest].output).to eq(RPC::Test::New::Package::Options::AnotherTestResponse)
|
39
41
|
expect(services[:OtherTest].input).to eq(A::Other::Thing)
|
40
42
|
expect(services[:OtherTest].output).to eq(A::Other::Thing)
|
43
|
+
expect(services[:PackageTest].input).to eq(A::Other::Thing)
|
44
|
+
expect(services[:PackageTest].output).to eq(B::Other::Foo::Bar)
|
41
45
|
expect(services[:FooTest].input).to eq(RPC::Test::New::Package::Options::Foo)
|
42
46
|
expect(services[:FooTest].output).to eq(RPC::Test::New::Package::Options::Foo)
|
43
47
|
expect(services[:NestedMessageTest].input).to eq(RPC::Test::New::Package::Options::Foo)
|
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.
|
4
|
+
version: 1.30.2
|
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: 2020-07-
|
11
|
+
date: 2020-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -306,6 +306,7 @@ files:
|
|
306
306
|
- src/ruby/spec/google_rpc_status_utils_spec.rb
|
307
307
|
- src/ruby/spec/pb/codegen/grpc/testing/package_options.proto
|
308
308
|
- src/ruby/spec/pb/codegen/grpc/testing/package_options_import.proto
|
309
|
+
- src/ruby/spec/pb/codegen/grpc/testing/package_options_import2.proto
|
309
310
|
- src/ruby/spec/pb/codegen/grpc/testing/package_options_ruby_style.proto
|
310
311
|
- src/ruby/spec/pb/codegen/package_option_spec.rb
|
311
312
|
- src/ruby/spec/pb/duplicate/codegen_spec.rb
|
@@ -361,6 +362,7 @@ test_files:
|
|
361
362
|
- src/ruby/spec/testdata/client.key
|
362
363
|
- src/ruby/spec/pb/health/checker_spec.rb
|
363
364
|
- src/ruby/spec/pb/codegen/grpc/testing/package_options.proto
|
365
|
+
- src/ruby/spec/pb/codegen/grpc/testing/package_options_import2.proto
|
364
366
|
- src/ruby/spec/pb/codegen/grpc/testing/package_options_import.proto
|
365
367
|
- src/ruby/spec/pb/codegen/grpc/testing/package_options_ruby_style.proto
|
366
368
|
- src/ruby/spec/pb/codegen/package_option_spec.rb
|