gapic-generator-cloud 0.6.9 → 0.6.10
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9adb0645be11ef3c975f469ae2be9befdfce7cfcbf86d557d538308d4d99766e
|
|
4
|
+
data.tar.gz: 12ba32f9420109e109d0f90cfb6d4660f2704012df6497a17496bf81fb68e01d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0a40867091f35b0cde5fdffb5e61a4a40908652183c5b551b2f3e8fcf30d3073ce774f274740ecf8a41db1a2e4f21d260cf18593c8feddacaf0e419821fa2704
|
|
7
|
+
data.tar.gz: 4664240334180131efa2d59b15114a83c2b4bb13b80ba7113fe2d3b522419f873b96e2e5b2f90e2d2acb73484c50fe4e964f1536caa29a41b82c2cd338edcf44
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Release History for gapic-generator-cloud
|
|
2
2
|
|
|
3
|
+
### 0.6.10 / 2021-01-13
|
|
4
|
+
|
|
5
|
+
* Includes changes from gapic-generator 0.6.10.
|
|
6
|
+
* A set of human-readable cloud-specific command-line parameters can now be specified for the gapic-generator-cloud, e.g. `ruby-cloud-gem-name`. These parameters strictly duplicate the existing behaviour of old command-line parameters, e.g. `:gem.:name`.
|
|
7
|
+
|
|
3
8
|
### 0.6.9 / 2020-12-07
|
|
4
9
|
|
|
5
10
|
* Includes changes from gapic-generator 0.6.9.
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
# limitations under the License.
|
|
16
16
|
|
|
17
17
|
require "gapic/generators/default_generator"
|
|
18
|
+
require "gapic/generators/cloud_generator_parameters"
|
|
18
19
|
require "gapic/presenters"
|
|
19
20
|
require "gapic/presenters/cloud_gem_presenter"
|
|
20
21
|
require "gapic/presenters/wrapper_gem_presenter"
|
|
@@ -101,6 +102,13 @@ module Gapic
|
|
|
101
102
|
|
|
102
103
|
# rubocop:enable all
|
|
103
104
|
|
|
105
|
+
# Schema of the parameters that the generator accepts
|
|
106
|
+
# @return [Gapic::Schema::ParameterSchema]
|
|
107
|
+
def self.parameter_schema
|
|
108
|
+
CloudGeneratorParameters.default_schema
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
|
|
104
112
|
private
|
|
105
113
|
|
|
106
114
|
##
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2020 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
require "gapic/generators/default_generator_parameters"
|
|
18
|
+
|
|
19
|
+
module Gapic
|
|
20
|
+
module Generators
|
|
21
|
+
# Contains the cloud generator's parameters
|
|
22
|
+
module CloudGeneratorParameters
|
|
23
|
+
BOOL_PARAMETERS_ALIASES = {
|
|
24
|
+
"ruby-cloud-free-tier" => ":gem.:free_tier",
|
|
25
|
+
"ruby-cloud-yard-strict" => ":gem.:yard_strict",
|
|
26
|
+
"ruby-cloud-generic-endpoint" => ":gem.:generic_endpoint"
|
|
27
|
+
}.freeze
|
|
28
|
+
|
|
29
|
+
STRING_PARAMETERS_ALIASES = {
|
|
30
|
+
"ruby-cloud-gem-name" => ":gem.:name",
|
|
31
|
+
"ruby-cloud-gem-namespace" => ":gem.:namespace",
|
|
32
|
+
"ruby-cloud-title" => ":gem.:title",
|
|
33
|
+
"ruby-cloud-description" => ":gem.:description",
|
|
34
|
+
"ruby-cloud-summary" => ":gem.:summary",
|
|
35
|
+
"ruby-cloud-homepage" => ":gem.:homepage",
|
|
36
|
+
"ruby-cloud-env-prefix" => ":gem.:env_prefix",
|
|
37
|
+
"ruby-cloud-wrapper-of" => ":gem.:version_dependencies",
|
|
38
|
+
"ruby-cloud-migration-version" => ":gem.:migration_version",
|
|
39
|
+
"ruby-cloud-product-url" => ":gem.:product_documentation_url",
|
|
40
|
+
"ruby-cloud-issues-url" => ":gem.:issue_tracker_url",
|
|
41
|
+
"ruby-cloud-api-id" => ":gem.:api_id",
|
|
42
|
+
"ruby-cloud-api-shortname" => ":gem.:api_shortname",
|
|
43
|
+
"ruby-cloud-factory-method-suffix" => ":gem.:factory_method_suffix",
|
|
44
|
+
"ruby-cloud-default-service-host" => ":defaults.:service.:default_host",
|
|
45
|
+
"ruby-cloud-grpc-service-config" => "grpc_service_config"
|
|
46
|
+
}.freeze
|
|
47
|
+
|
|
48
|
+
ARRAY_PARAMETERS_ALIASES = {
|
|
49
|
+
"ruby-cloud-default-oauth-scopes" => ":defaults.:service.:oauth_scopes"
|
|
50
|
+
}.freeze
|
|
51
|
+
|
|
52
|
+
MAP_PARAMETERS_ALIASES = {
|
|
53
|
+
"ruby-cloud-common-services" => ":common_services",
|
|
54
|
+
"ruby-cloud-path-override" => ":overrides.:file_path",
|
|
55
|
+
"ruby-cloud-namespace-override" => ":overrides.:namespace",
|
|
56
|
+
"ruby-cloud-service-override" => ":overrides.:service",
|
|
57
|
+
"ruby-cloud-extra-dependencies" => ":gem.:extra_dependencies"
|
|
58
|
+
}.freeze
|
|
59
|
+
|
|
60
|
+
def self.default_schema
|
|
61
|
+
Gapic::Generators::DefaultGeneratorParameters.default_schema.extend_with_aliases(
|
|
62
|
+
bool_aliases: BOOL_PARAMETERS_ALIASES,
|
|
63
|
+
string_aliases: STRING_PARAMETERS_ALIASES,
|
|
64
|
+
array_aliases: ARRAY_PARAMETERS_ALIASES,
|
|
65
|
+
map_aliases: MAP_PARAMETERS_ALIASES
|
|
66
|
+
)
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
@@ -76,8 +76,8 @@ end
|
|
|
76
76
|
# The library version as recorded in instrumentation and logging.
|
|
77
77
|
# * `interceptors` (*type:* `Array<GRPC::ClientInterceptor>`) -
|
|
78
78
|
# An array of interceptors that are run before calls are executed.
|
|
79
|
-
# * `timeout` (*type:* `
|
|
80
|
-
# Default timeout in
|
|
79
|
+
# * `timeout` (*type:* `Numeric`) -
|
|
80
|
+
# Default timeout in seconds.
|
|
81
81
|
# * `metadata` (*type:* `Hash{Symbol=>String}`) -
|
|
82
82
|
# Additional gRPC headers to be sent with the call.
|
|
83
83
|
# * `retry_policy` (*type:* `Hash`) -
|
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.10
|
|
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:
|
|
13
|
+
date: 2021-01-14 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.10
|
|
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.10
|
|
43
43
|
- !ruby/object:Gem::Dependency
|
|
44
44
|
name: google-style
|
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -159,6 +159,7 @@ files:
|
|
|
159
159
|
- cloud-rubocop.yml
|
|
160
160
|
- lib/gapic/generator/cloud/version.rb
|
|
161
161
|
- lib/gapic/generators/cloud_generator.rb
|
|
162
|
+
- lib/gapic/generators/cloud_generator_parameters.rb
|
|
162
163
|
- lib/gapic/presenters/cloud_gem_presenter.rb
|
|
163
164
|
- lib/gapic/presenters/wrapper_gem_presenter.rb
|
|
164
165
|
- lib/gapic/presenters/wrapper_service_presenter.rb
|
|
@@ -206,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
206
207
|
- !ruby/object:Gem::Version
|
|
207
208
|
version: '0'
|
|
208
209
|
requirements: []
|
|
209
|
-
rubygems_version: 3.
|
|
210
|
+
rubygems_version: 3.1.2
|
|
210
211
|
signing_key:
|
|
211
212
|
specification_version: 4
|
|
212
213
|
summary: An API Client Generator for Ruby in Ruby!
|