gapic-generator-cloud 0.6.1 → 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/bin/protoc-gen-bazel_ruby_cloud +35 -0
- data/bin/protoc-gen-ruby_cloud +1 -0
- data/lib/gapic/generator/cloud/version.rb +1 -1
- data/templates/cloud/gem/authentication.erb +1 -1
- data/templates/cloud/gem/rakefile.erb +1 -1
- data/templates/cloud/gem/readme.erb +1 -1
- data/templates/cloud/wrapper_gem/gemfile.erb +0 -3
- metadata +7 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e359e61601902da9832af1c7ad6189098a9758d2030cbc000fedd1314022167
|
4
|
+
data.tar.gz: 2af72feba6c809ebf3ac4d6603a5e2443ab304747596373a2680b63d99718da4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a3550151980f55d5a31e17e67226e8e0767af2ae0c993f8225056bfb96b94979966c207be0977b9e97e1289bdfb5db8ed9c525e214d762a96bc17fec19f1ea9
|
7
|
+
data.tar.gz: f3914d12bf66c93bfdec7ebccb13fd55f1d366b76c7053bc3cb87bbb347964d60b9b1142c53dffd80706cc6664eb9859913a5daafbf0aca491d136e9c4f94301
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
# Release History for gapic-generator-cloud
|
2
2
|
|
3
|
+
### 0.6.6 / 2020-08-05
|
4
|
+
|
5
|
+
* Includes changes from gapic-generator 0.6.6.
|
6
|
+
|
7
|
+
### 0.6.5 / 2020-07-16
|
8
|
+
|
9
|
+
* Includes changes from gapic-generator 0.6.5.
|
10
|
+
|
11
|
+
### 0.6.4 / 2020-07-13
|
12
|
+
|
13
|
+
* Includes changes from gapic-generator 0.6.4.
|
14
|
+
|
15
|
+
### 0.6.3 / 2020-06-27
|
16
|
+
|
17
|
+
* Includes changes from gapic-generator 0.6.3.
|
18
|
+
|
19
|
+
### 0.6.2 / 2020-06-18
|
20
|
+
|
21
|
+
* Includes changes from gapic-generator 0.6.2.
|
22
|
+
|
3
23
|
### 0.6.1 / 2020-06-16
|
4
24
|
|
5
25
|
* Includes changes from gapic-generator 0.6.1.
|
@@ -0,0 +1,35 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
# Copyright 2020 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
|
18
|
+
$LOAD_PATH.unshift ::File.expand_path("../lib", __dir__)
|
19
|
+
$LOAD_PATH.unshift ::File.expand_path("../../gapic-generator/lib", __dir__)
|
20
|
+
|
21
|
+
require "gapic/runner"
|
22
|
+
require "google/protobuf/compiler/plugin.pb"
|
23
|
+
|
24
|
+
# Ensure that no encoding conversions are done on STDIN and STDOUT
|
25
|
+
# since we are passing binary data back and forth. Otherwise these
|
26
|
+
# streams will be mangled on Windows.
|
27
|
+
STDIN.binmode
|
28
|
+
STDOUT.binmode
|
29
|
+
|
30
|
+
request = Google::Protobuf::Compiler::CodeGeneratorRequest.decode STDIN.read
|
31
|
+
|
32
|
+
# Run the request, specifying the cloud generator
|
33
|
+
response = Gapic::Runner.run request, generator: :cloud
|
34
|
+
|
35
|
+
STDOUT.print response.serialize
|
data/bin/protoc-gen-ruby_cloud
CHANGED
@@ -15,6 +15,7 @@
|
|
15
15
|
# See the License for the specific language governing permissions and
|
16
16
|
# limitations under the License.
|
17
17
|
|
18
|
+
$LOAD_PATH.unshift ::File.expand_path("../lib", __dir__)
|
18
19
|
gem "gapic-generator"
|
19
20
|
require "gapic/runner"
|
20
21
|
require "google/protobuf/compiler/plugin.pb"
|
@@ -36,7 +36,7 @@ In order to use this library, you first need to go through the following steps:
|
|
36
36
|
<%- if gem.packages? -%>
|
37
37
|
```ruby
|
38
38
|
require "<%= gem.entrypoint_require %>"
|
39
|
-
<%- service = gem.
|
39
|
+
<%- service = gem.first_non_common_service -%>
|
40
40
|
<%- method = service&.methods.first -%>
|
41
41
|
<%- if service && method -%>
|
42
42
|
|
@@ -6,6 +6,3 @@ gemspec
|
|
6
6
|
<%- gem.versioned_gems.each do |name| -%>
|
7
7
|
gem "<%= name %>", path: "../<%= name %>"
|
8
8
|
<%- end -%>
|
9
|
-
|
10
|
-
# google-protobuf 3.12.0 requires Ruby 2.5 or later, so pin to 3.11 on older Rubies
|
11
|
-
gem "google-protobuf", (RUBY_VERSION < "2.5" ? "~> 3.11.4" : "~> 3.12")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gapic-generator-cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ernest Landrito
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-
|
13
|
+
date: 2020-08-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: actionpack
|
@@ -32,14 +32,14 @@ dependencies:
|
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.6.
|
35
|
+
version: 0.6.6
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - '='
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.6.
|
42
|
+
version: 0.6.6
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: google-style
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -68,34 +68,20 @@ dependencies:
|
|
68
68
|
- - "~>"
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '3.8'
|
71
|
-
- !ruby/object:Gem::Dependency
|
72
|
-
name: bundler
|
73
|
-
requirement: !ruby/object:Gem::Requirement
|
74
|
-
requirements:
|
75
|
-
- - "~>"
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '2.1'
|
78
|
-
type: :development
|
79
|
-
prerelease: false
|
80
|
-
version_requirements: !ruby/object:Gem::Requirement
|
81
|
-
requirements:
|
82
|
-
- - "~>"
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
version: '2.1'
|
85
71
|
- !ruby/object:Gem::Dependency
|
86
72
|
name: grpc-tools
|
87
73
|
requirement: !ruby/object:Gem::Requirement
|
88
74
|
requirements:
|
89
75
|
- - "~>"
|
90
76
|
- !ruby/object:Gem::Version
|
91
|
-
version:
|
77
|
+
version: 1.30.1
|
92
78
|
type: :development
|
93
79
|
prerelease: false
|
94
80
|
version_requirements: !ruby/object:Gem::Requirement
|
95
81
|
requirements:
|
96
82
|
- - "~>"
|
97
83
|
- !ruby/object:Gem::Version
|
98
|
-
version:
|
84
|
+
version: 1.30.1
|
99
85
|
- !ruby/object:Gem::Dependency
|
100
86
|
name: minitest
|
101
87
|
requirement: !ruby/object:Gem::Requirement
|
@@ -167,6 +153,7 @@ files:
|
|
167
153
|
- CONTRIBUTING.md
|
168
154
|
- LICENSE
|
169
155
|
- README.md
|
156
|
+
- bin/protoc-gen-bazel_ruby_cloud
|
170
157
|
- bin/protoc-gen-ruby_cloud
|
171
158
|
- bin/ruby-cloud-docker-entrypoint
|
172
159
|
- cloud-rubocop.yml
|