google-cloud-pubsub 2.15.3 → 2.15.5
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/AUTHENTICATION.md +8 -26
- data/CHANGELOG.md +18 -0
- data/lib/google/cloud/pubsub/service.rb +2 -2
- data/lib/google/cloud/pubsub/subscriber/stream.rb +4 -3
- data/lib/google/cloud/pubsub/version.rb +1 -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: e2a4108df2f16d93f03bb560375274bb816a5958c8c0ad22ca061943ef40ee24
|
|
4
|
+
data.tar.gz: 8efa65c9aed030d0b1832aa8d0aec7ef4e9d8605a427bef6517cf77d9e363d5c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1599c8a8adac4fdde84b5782cfa4f4f8c236528452966496a9fce7343b05076772a6c071f99114d7bb93813d0707975e892c262a30616ed13232ce85dfe1b63d
|
|
7
|
+
data.tar.gz: 1c661569d004bfc3abd20e60938cad744faa5b474a8df6a67f0b6c36e6c428744e76703fc25e73d20298372894880a40a963a923e21059cd9f4f5454c4b65c01
|
data/AUTHENTICATION.md
CHANGED
|
@@ -125,15 +125,6 @@ To configure your system for this, simply:
|
|
|
125
125
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
|
126
126
|
*should* only be used during development.
|
|
127
127
|
|
|
128
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
|
129
|
-
[dev-console]: https://console.cloud.google.com/project
|
|
130
|
-
|
|
131
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
|
132
|
-
|
|
133
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
|
134
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
|
135
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
|
136
|
-
|
|
137
128
|
## Creating a Service Account
|
|
138
129
|
|
|
139
130
|
Google Cloud requires a **Project ID** and **Service Account Credentials** to
|
|
@@ -144,31 +135,22 @@ If you are not running this client within [Google Cloud Platform
|
|
|
144
135
|
environments](#google-cloud-platform-environments), you need a Google
|
|
145
136
|
Developers service account.
|
|
146
137
|
|
|
147
|
-
1. Visit the [Google
|
|
138
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
|
148
139
|
1. Create a new project or click on an existing project.
|
|
149
|
-
1. Activate the
|
|
140
|
+
1. Activate the menu in the upper left and select **APIs & Services**. From
|
|
150
141
|
here, you will enable the APIs that your application requires.
|
|
151
142
|
|
|
152
|
-
![Enable the APIs that your application requires][enable-apis]
|
|
153
|
-
|
|
154
143
|
*Note: You may need to enable billing in order to use these services.*
|
|
155
144
|
|
|
156
145
|
1. Select **Credentials** from the side navigation.
|
|
157
146
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
![Create a new service account][create-new-service-account]
|
|
161
|
-
|
|
162
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
|
163
|
-
|
|
164
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
|
165
|
-
guided through downloading a new JSON key file.
|
|
166
|
-
|
|
167
|
-
If you want to re-use an existing service account, you can easily generate a
|
|
168
|
-
new key file. Just select the account you wish to re-use, and click "Generate
|
|
169
|
-
new JSON key":
|
|
147
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
|
148
|
+
"Service account" to be guided through downloading a new JSON key file.
|
|
170
149
|
|
|
171
|
-
|
|
150
|
+
If you want to re-use an existing service account, you can easily generate
|
|
151
|
+
a new key file. Just select the account you wish to re-use click the pencil
|
|
152
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
|
153
|
+
and then select **Add Key**.
|
|
172
154
|
|
|
173
155
|
The key file you download will be used by this library to authenticate API
|
|
174
156
|
requests and should be stored in a secure location.
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
+
### 2.15.5 (2023-11-06)
|
|
4
|
+
|
|
5
|
+
#### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* set x-goog-request-params for streaming pull request ([#23508](https://github.com/googleapis/google-cloud-ruby/issues/23508))
|
|
8
|
+
|
|
9
|
+
### 2.15.4 (2023-05-19)
|
|
10
|
+
|
|
11
|
+
#### Documentation
|
|
12
|
+
|
|
13
|
+
* Fixed broken links in authentication documentation ([#21619](https://github.com/googleapis/google-cloud-ruby/issues/21619))
|
|
14
|
+
|
|
15
|
+
### 2.15.4 (2023-05-18)
|
|
16
|
+
|
|
17
|
+
#### Documentation
|
|
18
|
+
|
|
19
|
+
* Fixed broken links in authentication documentation ([#21619](https://github.com/googleapis/google-cloud-ruby/issues/21619))
|
|
20
|
+
|
|
3
21
|
### 2.15.3 (2023-04-19)
|
|
4
22
|
|
|
5
23
|
#### Bug Fixes
|
|
@@ -240,8 +240,8 @@ module Google
|
|
|
240
240
|
return_immediately: return_immediately
|
|
241
241
|
end
|
|
242
242
|
|
|
243
|
-
def streaming_pull request_enum
|
|
244
|
-
subscriber.streaming_pull request_enum
|
|
243
|
+
def streaming_pull request_enum, options = {}
|
|
244
|
+
subscriber.streaming_pull request_enum, options
|
|
245
245
|
end
|
|
246
246
|
|
|
247
247
|
##
|
|
@@ -231,7 +231,8 @@ module Google
|
|
|
231
231
|
end
|
|
232
232
|
|
|
233
233
|
# Call the StreamingPull API to get the response enumerator
|
|
234
|
-
|
|
234
|
+
options = { :"metadata" => { :"x-goog-request-params" => @subscriber.subscription_name } }
|
|
235
|
+
enum = @subscriber.service.streaming_pull @request_queue.each, options
|
|
235
236
|
|
|
236
237
|
loop do
|
|
237
238
|
synchronize do
|
|
@@ -253,7 +254,7 @@ module Google
|
|
|
253
254
|
# Use synchronize so changes happen atomically
|
|
254
255
|
synchronize do
|
|
255
256
|
update_min_duration_per_lease_extension new_exactly_once_delivery_enabled
|
|
256
|
-
@exactly_once_delivery_enabled = new_exactly_once_delivery_enabled unless new_exactly_once_delivery_enabled.nil?
|
|
257
|
+
@exactly_once_delivery_enabled = new_exactly_once_delivery_enabled unless new_exactly_once_delivery_enabled.nil?
|
|
257
258
|
@subscriber.exactly_once_delivery_enabled = @exactly_once_delivery_enabled
|
|
258
259
|
|
|
259
260
|
# Create receipt of received messages reception
|
|
@@ -271,7 +272,7 @@ module Google
|
|
|
271
272
|
# No need to synchronize the callback future
|
|
272
273
|
register_callback rec_msg
|
|
273
274
|
end if !@exactly_once_delivery_enabled # Exactly once delivery scenario is handled by callback
|
|
274
|
-
|
|
275
|
+
|
|
275
276
|
synchronize { pause_streaming! }
|
|
276
277
|
rescue StopIteration
|
|
277
278
|
break
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-pubsub
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.15.
|
|
4
|
+
version: 2.15.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mike Moore
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2023-
|
|
12
|
+
date: 2023-11-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: concurrent-ruby
|
|
@@ -291,7 +291,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
291
291
|
- !ruby/object:Gem::Version
|
|
292
292
|
version: '0'
|
|
293
293
|
requirements: []
|
|
294
|
-
rubygems_version: 3.4.
|
|
294
|
+
rubygems_version: 3.4.19
|
|
295
295
|
signing_key:
|
|
296
296
|
specification_version: 4
|
|
297
297
|
summary: API Client library for Google Cloud Pub/Sub
|