google-cloud-pubsub-v1 0.17.0 → 0.17.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: 6bced1f4bc0ef50d280341581d62ebb391a0b5b277554e23f9d23a06b65982e0
4
- data.tar.gz: d7b6f3f3601415d85a9b0611db7c0b3e441796b8dbe7b34a4baecc5a7f8532a3
3
+ metadata.gz: bd3c7b32618d3a23f51ee541e5649aff661ce345e36ec38fcb22a55a1cd34067
4
+ data.tar.gz: 5e939b24ae8fbf8594762c0759b314ee8e96318d831d007b3fa0bbedcdd59623
5
5
  SHA512:
6
- metadata.gz: 011b0497a357b60bebf0073c828163319c474ad1ad82f6fdf8be389b479478bc3bfbb6d2d21fe0782c493dbb837a8333ffcd01f14b78488ba68a875e4cb90267
7
- data.tar.gz: 87c8da9f77dac0c3d2f4b5295a9f97cd2e5095f54967456748d29115bf788b99277211f3f4393c0953ec907ef529ef54bc3ff448047b0be47d6563fb0ff23ae5
6
+ metadata.gz: 9167115411b9a99af65a9dd39c41290c0794bf4f901cee30b15ff12a4639408059b3e401295ee9b12efb275cc784b55d527c4c1b1068cfa5e924440873451918
7
+ data.tar.gz: 69b7f9fe37f66c148bb8ed5825b9df5f08533b273976b62b0e85530865c78f07f36b2ab67bf36d3759a4be98ac63116b3a6186f0fce618625ca30e4b80910244
@@ -170,7 +170,7 @@ module Google
170
170
  credentials = @config.credentials
171
171
  # Use self-signed JWT if the endpoint is unchanged from default,
172
172
  # but only if the default endpoint does not have a region prefix.
173
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
173
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
174
174
  !@config.endpoint.split(".").first.include?("-")
175
175
  credentials ||= Credentials.default scope: @config.scope,
176
176
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -1134,7 +1134,9 @@ module Google
1134
1134
  class Configuration
1135
1135
  extend ::Gapic::Config
1136
1136
 
1137
- config_attr :endpoint, "pubsub.googleapis.com", ::String
1137
+ DEFAULT_ENDPOINT = "pubsub.googleapis.com"
1138
+
1139
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1138
1140
  config_attr :credentials, nil do |value|
1139
1141
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1140
1142
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -174,7 +174,7 @@ module Google
174
174
  credentials = @config.credentials
175
175
  # Use self-signed JWT if the endpoint is unchanged from default,
176
176
  # but only if the default endpoint does not have a region prefix.
177
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
177
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
178
178
  !@config.endpoint.split(".").first.include?("-")
179
179
  credentials ||= Credentials.default scope: @config.scope,
180
180
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -1217,7 +1217,9 @@ module Google
1217
1217
  class Configuration
1218
1218
  extend ::Gapic::Config
1219
1219
 
1220
- config_attr :endpoint, "pubsub.googleapis.com", ::String
1220
+ DEFAULT_ENDPOINT = "pubsub.googleapis.com"
1221
+
1222
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1221
1223
  config_attr :credentials, nil do |value|
1222
1224
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1223
1225
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -206,7 +206,7 @@ module Google
206
206
  credentials = @config.credentials
207
207
  # Use self-signed JWT if the endpoint is unchanged from default,
208
208
  # but only if the default endpoint does not have a region prefix.
209
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
209
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
210
210
  !@config.endpoint.split(".").first.include?("-")
211
211
  credentials ||= Credentials.default scope: @config.scope,
212
212
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -1968,7 +1968,9 @@ module Google
1968
1968
  class Configuration
1969
1969
  extend ::Gapic::Config
1970
1970
 
1971
- config_attr :endpoint, "pubsub.googleapis.com", ::String
1971
+ DEFAULT_ENDPOINT = "pubsub.googleapis.com"
1972
+
1973
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1972
1974
  config_attr :credentials, nil do |value|
1973
1975
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1974
1976
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module PubSub
23
23
  module V1
24
- VERSION = "0.17.0"
24
+ VERSION = "0.17.1"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-pubsub-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.17.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