gapic-generator 0.6.10 → 0.6.11
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 +4 -0
- data/lib/gapic/generator/version.rb +1 -1
- data/templates/default/service/client/_client.erb +7 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4024fe917a8b42e26024bc568c5c4028092d854c333466bd2f04e418993bb2b0
|
|
4
|
+
data.tar.gz: 0c14f4d0ddc0125c463731ed7d5b3594d819eaa7a7eec90cca6f2f30dce76cca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ab2d9cfa5f7a83343a85c49db553331891dbe5c99eab8b7bdbf39dd26ce6b5a846a5aa4dac75e8e795b7eccedada2ffa3b503ce94757cbc1eef84f6f23838b92
|
|
7
|
+
data.tar.gz: '08f3b66fd2f52788e0151c982f1cd8c7049a308cd6d12aadaa188e01356facd3333cb151aab91b03a4bda29a6cb397cee7b480d6ad9ebbf94cb91a89637f4794'
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Release History for gapic-generator
|
|
2
2
|
|
|
3
|
+
### 0.6.11 / 2021-02-01
|
|
4
|
+
|
|
5
|
+
* Generated clients determine whether to use self-signed JWT credentials.
|
|
6
|
+
|
|
3
7
|
### 0.6.10 / 2021-01-13
|
|
4
8
|
|
|
5
9
|
* A set of human-readable command-line parameters can now be specified for the gapic-generator, e.g. `gem-name`. These parameters strictly duplicate the existing behaviour of old command-line parameters, e.g. `:gem.:name`.
|
|
@@ -97,7 +97,13 @@ class <%= service.client_name %>
|
|
|
97
97
|
# Create credentials
|
|
98
98
|
credentials = @config.credentials
|
|
99
99
|
<%- unless service.generic_endpoint? -%>
|
|
100
|
-
|
|
100
|
+
# Use self-signed JWT if the scope and endpoint are unchanged from default,
|
|
101
|
+
# but only if the default endpoint does not have a region prefix.
|
|
102
|
+
enable_self_signed_jwt = @config.scope == <%= service.client_name %>.configure.scope &&
|
|
103
|
+
@config.endpoint == <%= service.client_name %>.configure.endpoint &&
|
|
104
|
+
!@config.endpoint.split(".").first.include?("-")
|
|
105
|
+
credentials ||= Credentials.default scope: @config.scope,
|
|
106
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
|
101
107
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
102
108
|
credentials = Credentials.new credentials, scope: @config.scope
|
|
103
109
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gapic-generator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.11
|
|
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: 2021-01
|
|
13
|
+
date: 2021-02-01 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: actionpack
|
|
@@ -347,7 +347,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
347
347
|
- !ruby/object:Gem::Version
|
|
348
348
|
version: '0'
|
|
349
349
|
requirements: []
|
|
350
|
-
rubygems_version: 3.1.
|
|
350
|
+
rubygems_version: 3.1.4
|
|
351
351
|
signing_key:
|
|
352
352
|
specification_version: 4
|
|
353
353
|
summary: An API Client Generator for Ruby in Ruby!
|