google-cloud-location 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ad1ecacee48e1a9588bf6fe72b46d21c1097fafa9c64f276d1a6a2c5bc92f22
4
- data.tar.gz: 66f2eb303b3d44967dc90d7b6e055e4da5132f21c85c69474dbe99331c71c62a
3
+ metadata.gz: 263e927c45db3f3a53ff18879b05fc118ef31d050749cc64d75c081712456562
4
+ data.tar.gz: 20263758aa15afb8299bfd2fda154584a4bd7f0d07e004147bc4b8b2c13956ff
5
5
  SHA512:
6
- metadata.gz: b39ea0831662917ac289045cd61175fb846216c07fbea1d03aead976a46e6eba3c91c961a72898a22ac05a49a958e74c70feb0f0b91051bf3c8803da20070065
7
- data.tar.gz: 23a129d8954e6a5bfe1b1e9b71f4da78881b06b9e0e4df614fbacc68ed294f27bd1225dc0c7f2152bd427d7db933a7c00d33403131310e092c0139ce59d14564
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 == Client.configure.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
- config_attr :endpoint, "cloud.googleapis.com", ::String
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 == Client.configure.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
- config_attr :endpoint, "cloud.googleapis.com", ::String
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("=", 2) }
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("=", 2) }
103
+ query_string_params.to_h { |p| p.split "=", 2 }
104
104
  else
105
105
  {}
106
106
  end
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Location
23
- VERSION = "0.5.0"
23
+ VERSION = "0.5.1"
24
24
  end
25
25
  end
26
26
  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.0
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-05-31 00:00:00.000000000 Z
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.0
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.0
29
+ version: 0.19.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a