google-cloud-location 0.5.0 → 0.5.1
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: 263e927c45db3f3a53ff18879b05fc118ef31d050749cc64d75c081712456562
|
4
|
+
data.tar.gz: 20263758aa15afb8299bfd2fda154584a4bd7f0d07e004147bc4b8b2c13956ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ace33f3a9838f36047a2d698ed64ed8042d90d9832e1da13ff01d81e3432d8db15ef4bc9a09da11c837f4e8bddc186fbb89730fc516e5827afd0b4013eb1880
|
7
|
+
data.tar.gz: 1014849345a7f13a0aea722065e01b09c3c9d45c00000317bbd8921b71d202a2fdb3299f9fe3342e76fc0d3e09a6e5acb67932666bd309a512ecfccdcc04dd04
|
@@ -122,7 +122,7 @@ module Google
|
|
122
122
|
credentials = @config.credentials
|
123
123
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
124
124
|
# but only if the default endpoint does not have a region prefix.
|
125
|
-
enable_self_signed_jwt = @config.endpoint ==
|
125
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
126
126
|
!@config.endpoint.split(".").first.include?("-")
|
127
127
|
credentials ||= Credentials.default scope: @config.scope,
|
128
128
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -406,7 +406,9 @@ module Google
|
|
406
406
|
class Configuration
|
407
407
|
extend ::Gapic::Config
|
408
408
|
|
409
|
-
|
409
|
+
DEFAULT_ENDPOINT = "cloud.googleapis.com"
|
410
|
+
|
411
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
410
412
|
config_attr :credentials, nil do |value|
|
411
413
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
412
414
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -118,7 +118,7 @@ module Google
|
|
118
118
|
credentials = @config.credentials
|
119
119
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
120
120
|
# but only if the default endpoint does not have a region prefix.
|
121
|
-
enable_self_signed_jwt = @config.endpoint ==
|
121
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
122
122
|
!@config.endpoint.split(".").first.include?("-")
|
123
123
|
credentials ||= Credentials.default scope: @config.scope,
|
124
124
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -342,7 +342,9 @@ module Google
|
|
342
342
|
class Configuration
|
343
343
|
extend ::Gapic::Config
|
344
344
|
|
345
|
-
|
345
|
+
DEFAULT_ENDPOINT = "cloud.googleapis.com"
|
346
|
+
|
347
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
346
348
|
config_attr :credentials, nil do |value|
|
347
349
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
348
350
|
allowed.any? { |klass| klass === value }
|
@@ -60,7 +60,7 @@ module Google
|
|
60
60
|
|
61
61
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_locations_request request_pb, bindings_override: bindings_override
|
62
62
|
query_string_params = if query_string_params.any?
|
63
|
-
query_string_params.to_h { |p| p.split
|
63
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
64
64
|
else
|
65
65
|
{}
|
66
66
|
end
|
@@ -100,7 +100,7 @@ module Google
|
|
100
100
|
|
101
101
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_location_request request_pb, bindings_override: bindings_override
|
102
102
|
query_string_params = if query_string_params.any?
|
103
|
-
query_string_params.to_h { |p| p.split
|
103
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
104
104
|
else
|
105
105
|
{}
|
106
106
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-location
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.19.
|
19
|
+
version: 0.19.1
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.19.
|
29
|
+
version: 0.19.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|