google-cloud-pubsub 0.33.1 → 2.15.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +41 -40
- data/CHANGELOG.md +610 -0
- data/CONTRIBUTING.md +328 -116
- data/EMULATOR.md +2 -2
- data/LOGGING.md +95 -3
- data/OVERVIEW.md +183 -90
- data/TROUBLESHOOTING.md +2 -8
- data/lib/google/cloud/pubsub/acknowledge_result.rb +79 -0
- data/lib/google/cloud/pubsub/async_publisher/batch.rb +306 -0
- data/lib/google/cloud/pubsub/async_publisher.rb +270 -161
- data/lib/google/cloud/pubsub/batch_publisher.rb +65 -33
- data/lib/google/cloud/pubsub/convert.rb +36 -8
- data/lib/google/cloud/pubsub/credentials.rb +7 -5
- data/lib/google/cloud/pubsub/errors.rb +93 -0
- data/lib/google/cloud/pubsub/flow_controller.rb +139 -0
- data/lib/google/cloud/pubsub/message.rb +52 -7
- data/lib/google/cloud/pubsub/policy.rb +15 -12
- data/lib/google/cloud/pubsub/project.rb +341 -75
- data/lib/google/cloud/pubsub/publish_result.rb +9 -2
- data/lib/google/cloud/pubsub/received_message.rb +182 -20
- data/lib/google/cloud/pubsub/retry_policy.rb +88 -0
- data/lib/google/cloud/pubsub/schema/list.rb +180 -0
- data/lib/google/cloud/pubsub/schema.rb +310 -0
- data/lib/google/cloud/pubsub/service.rb +285 -258
- data/lib/google/cloud/pubsub/snapshot/list.rb +14 -14
- data/lib/google/cloud/pubsub/snapshot.rb +17 -12
- data/lib/google/cloud/pubsub/subscriber/enumerator_queue.rb +4 -4
- data/lib/google/cloud/pubsub/subscriber/inventory.rb +74 -33
- data/lib/google/cloud/pubsub/subscriber/sequencer.rb +115 -0
- data/lib/google/cloud/pubsub/subscriber/stream.rb +138 -91
- data/lib/google/cloud/pubsub/subscriber/timed_unary_buffer.rb +397 -0
- data/lib/google/cloud/pubsub/subscriber.rb +213 -51
- data/lib/google/cloud/pubsub/subscription/list.rb +16 -16
- data/lib/google/cloud/pubsub/subscription/push_config.rb +268 -0
- data/lib/google/cloud/pubsub/subscription.rb +827 -137
- data/lib/google/cloud/pubsub/topic/list.rb +14 -14
- data/lib/google/cloud/pubsub/topic.rb +565 -93
- data/lib/google/cloud/pubsub/version.rb +4 -2
- data/lib/google/cloud/pubsub.rb +50 -41
- data/lib/google-cloud-pubsub.rb +26 -29
- metadata +59 -53
- data/lib/google/cloud/pubsub/subscriber/async_stream_pusher.rb +0 -222
- data/lib/google/cloud/pubsub/subscriber/async_unary_pusher.rb +0 -270
- data/lib/google/cloud/pubsub/v1/credentials.rb +0 -39
- data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/iam_policy.rb +0 -63
- data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/policy.rb +0 -128
- data/lib/google/cloud/pubsub/v1/doc/google/protobuf/duration.rb +0 -91
- data/lib/google/cloud/pubsub/v1/doc/google/protobuf/empty.rb +0 -29
- data/lib/google/cloud/pubsub/v1/doc/google/protobuf/field_mask.rb +0 -230
- data/lib/google/cloud/pubsub/v1/doc/google/protobuf/timestamp.rb +0 -109
- data/lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb +0 -628
- data/lib/google/cloud/pubsub/v1/publisher_client.rb +0 -734
- data/lib/google/cloud/pubsub/v1/publisher_client_config.json +0 -105
- data/lib/google/cloud/pubsub/v1/subscriber_client.rb +0 -1267
- data/lib/google/cloud/pubsub/v1/subscriber_client_config.json +0 -144
- data/lib/google/cloud/pubsub/v1.rb +0 -17
- data/lib/google/pubsub/v1/pubsub_pb.rb +0 -222
- data/lib/google/pubsub/v1/pubsub_services_pb.rb +0 -192
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,615 @@
|
|
1
1
|
# Release History
|
2
2
|
|
3
|
+
### 2.15.1 (2023-02-23)
|
4
|
+
|
5
|
+
#### Documentation
|
6
|
+
|
7
|
+
* Correct default value for streams ([#20485](https://github.com/googleapis/google-cloud-ruby/issues/20485))
|
8
|
+
|
9
|
+
### 2.15.0 (2023-01-22)
|
10
|
+
|
11
|
+
#### Features
|
12
|
+
|
13
|
+
* support publisher compression ([#19910](https://github.com/googleapis/google-cloud-ruby/issues/19910))
|
14
|
+
|
15
|
+
### 2.14.0 (2023-01-12)
|
16
|
+
|
17
|
+
#### Features
|
18
|
+
|
19
|
+
* Added support for schema evolution, including managing schema revisions, and schema commit and rollback ([#19981](https://github.com/googleapis/google-cloud-ruby/issues/19981))
|
20
|
+
|
21
|
+
### 2.13.0 (2022-10-18)
|
22
|
+
|
23
|
+
#### Features
|
24
|
+
|
25
|
+
* Added support for bigquery subscription ([#19221](https://github.com/googleapis/google-cloud-ruby/issues/19221))
|
26
|
+
|
27
|
+
### 2.12.1 (2022-08-21)
|
28
|
+
|
29
|
+
#### Bug Fixes
|
30
|
+
|
31
|
+
* update non EOS ack to return Success always ([#19023](https://github.com/googleapis/google-cloud-ruby/issues/19023))
|
32
|
+
|
33
|
+
### 2.12.0 (2022-08-09)
|
34
|
+
|
35
|
+
#### Features
|
36
|
+
|
37
|
+
* bump the minimum required version of pubsub v1 ([#18983](https://github.com/googleapis/google-cloud-ruby/issues/18983))
|
38
|
+
#### Bug Fixes
|
39
|
+
|
40
|
+
* honour async options of topic ([#18953](https://github.com/googleapis/google-cloud-ruby/issues/18953))
|
41
|
+
|
42
|
+
### 2.11.0 (2022-08-01)
|
43
|
+
|
44
|
+
#### Features
|
45
|
+
|
46
|
+
* create exactly once delivery enabled subscription ([#18824](https://github.com/googleapis/google-cloud-ruby/issues/18824))
|
47
|
+
* Let user register callback and get acknowledgement result ([#18702](https://github.com/googleapis/google-cloud-ruby/issues/18702))
|
48
|
+
* retry transient failures in ack/modack in timed unary buffer ([#18395](https://github.com/googleapis/google-cloud-ruby/issues/18395))
|
49
|
+
|
50
|
+
### 2.10.0 (2022-06-14)
|
51
|
+
|
52
|
+
#### Features
|
53
|
+
|
54
|
+
* introduce min_duration_per_lease_extension
|
55
|
+
|
56
|
+
### 2.9.2 (2022-04-28)
|
57
|
+
|
58
|
+
#### Bug Fixes
|
59
|
+
|
60
|
+
* ignore grpc errors on ack/modack
|
61
|
+
|
62
|
+
### 2.9.1 / 2022-01-11
|
63
|
+
|
64
|
+
#### Documentation
|
65
|
+
|
66
|
+
* Update contributing docs
|
67
|
+
* Add section on gRPC interceptors to the logging docs
|
68
|
+
|
69
|
+
### 2.9.0 / 2021-10-28
|
70
|
+
|
71
|
+
#### Features
|
72
|
+
|
73
|
+
* Expand timeout type from Integer to Numeric
|
74
|
+
* feat: Expand timeout type from Integer to Numeric. This is backwards-compatible.
|
75
|
+
* Change timeout from Integer to Numeric in Google::Cloud.pubsub
|
76
|
+
* Change timeout from Integer to Numeric in Google::Cloud#pubsub
|
77
|
+
* Change timeout from Integer to Numeric in Google::Cloud::PubSub.configure
|
78
|
+
* Change timeout from Integer to Numeric in Google::Cloud::PubSub.new
|
79
|
+
* fix: Propagate timeout to client RPC configs.
|
80
|
+
|
81
|
+
#### Documentation
|
82
|
+
|
83
|
+
* Add documentation for quota_project Configuration attribute
|
84
|
+
* Fix documentation for PubSub.configure
|
85
|
+
* Remove retries property that does not exist in code.
|
86
|
+
|
87
|
+
### 2.8.1 / 2021-09-22
|
88
|
+
|
89
|
+
#### Bug Fixes
|
90
|
+
|
91
|
+
* Change IAM and Schema client metadata hash keys to symbols
|
92
|
+
|
93
|
+
#### Documentation
|
94
|
+
|
95
|
+
* Fix typo in Emulator guide links
|
96
|
+
|
97
|
+
### 2.8.0 / 2021-08-30
|
98
|
+
|
99
|
+
#### Features
|
100
|
+
|
101
|
+
* Add Pub/Sub topic retention fields
|
102
|
+
* Add retention to Project#create_topic
|
103
|
+
* Add Topic#retention
|
104
|
+
* Add Topic#retention=
|
105
|
+
* Add Subscription#topic_retention
|
106
|
+
|
107
|
+
### 2.7.1 / 2021-07-08
|
108
|
+
|
109
|
+
#### Documentation
|
110
|
+
|
111
|
+
* Update AUTHENTICATION.md in handwritten packages
|
112
|
+
|
113
|
+
### 2.7.0 / 2021-06-15
|
114
|
+
|
115
|
+
#### Features
|
116
|
+
|
117
|
+
* Add Publisher Flow Control
|
118
|
+
* Add flow_control to async options in Project#create_topic and Project#topic
|
119
|
+
* Add FlowControlLimitError
|
120
|
+
|
121
|
+
#### Bug Fixes
|
122
|
+
|
123
|
+
* Fix Project#schema and #schemas to return full resource
|
124
|
+
* Include schema definition in default return values.
|
125
|
+
* Fix Schema#definition to return nil instead of empty string when not present.
|
126
|
+
|
127
|
+
### 2.6.1 / 2021-04-28
|
128
|
+
|
129
|
+
#### Bug Fixes
|
130
|
+
|
131
|
+
* Add final flush of pending requests to Subscriber#wait!
|
132
|
+
* fix(pubsub): Add final flush of pending requests to Subscriber#wait!
|
133
|
+
|
134
|
+
### 2.6.0 / 2021-04-19
|
135
|
+
|
136
|
+
#### Features
|
137
|
+
|
138
|
+
* Add ordering_key to Topic#publish
|
139
|
+
* Add ordering_key to BatchPublisher#publish
|
140
|
+
|
141
|
+
#### Documentation
|
142
|
+
|
143
|
+
* The immediate: false option is recommended to avoid adverse impacts on the performance of pull operations ([#11153](https://www.github.com/googleapis/google-cloud-ruby/issues/11153))
|
144
|
+
* Update Subscription#pull docs and samples to recommend immediate: false
|
145
|
+
|
146
|
+
### 2.5.0 / 2021-04-01
|
147
|
+
|
148
|
+
#### Features
|
149
|
+
|
150
|
+
* Add Schema support
|
151
|
+
* Add Schema
|
152
|
+
* Add Project#create_schema
|
153
|
+
* Add Project#schema
|
154
|
+
* Add Project#schemas (Schema::List)
|
155
|
+
* Add Project#valid_schema?
|
156
|
+
* Add schema options to Project#create_topic
|
157
|
+
* Add Topic#schema_name
|
158
|
+
* Add Topic#message_encoding
|
159
|
+
* Add Topic#message_encoding_binary?
|
160
|
+
* Add Topic#message_encoding_json?
|
161
|
+
|
162
|
+
### 2.4.0 / 2021-03-10
|
163
|
+
|
164
|
+
#### Features
|
165
|
+
|
166
|
+
* Drop support for Ruby 2.4 and add support for Ruby 3.0
|
167
|
+
|
168
|
+
### 2.3.2 / 2021-02-08
|
169
|
+
|
170
|
+
#### Bug Fixes
|
171
|
+
|
172
|
+
* Fix project option in Project#topic and Project#subscription
|
173
|
+
* Ensure that project option is used when skip_lookup is false.
|
174
|
+
* Improve documentation of topic_name, subscription_name and snapshot_name.
|
175
|
+
|
176
|
+
### 2.3.1 / 2021-01-13
|
177
|
+
|
178
|
+
#### Bug Fixes
|
179
|
+
|
180
|
+
* Update Subscription#retry_policy=
|
181
|
+
* Remove conditional RPC to fetch full resource before update.
|
182
|
+
|
183
|
+
### 2.3.0 / 2020-11-18
|
184
|
+
|
185
|
+
#### Features
|
186
|
+
|
187
|
+
* Add inventory.use_legacy_flow_control to listen options
|
188
|
+
* Add inventory.use_legacy_flow_control to Subscription#listen options
|
189
|
+
* Add Subscriber#use_legacy_flow_control?
|
190
|
+
|
191
|
+
#### Documentation
|
192
|
+
|
193
|
+
* Remove EXPERIMENTAL label from RetryPolicy docs
|
194
|
+
|
195
|
+
### 2.2.0 / 2020-11-11
|
196
|
+
|
197
|
+
#### Features
|
198
|
+
|
199
|
+
* Add Subscription#remove_dead_letter_policy
|
200
|
+
|
201
|
+
### 2.1.1 / 2020-10-26
|
202
|
+
|
203
|
+
#### Documentation
|
204
|
+
|
205
|
+
* Update deprecated attribute name limit to max_outstanding_messages
|
206
|
+
|
207
|
+
### 2.1.0 / 2020-09-17
|
208
|
+
|
209
|
+
#### Features
|
210
|
+
|
211
|
+
* quota_project can be set via library configuration ([#7630](https://www.github.com/googleapis/google-cloud-ruby/issues/7630))
|
212
|
+
* Add push_config (PushConfig) param to Topic#subscribe
|
213
|
+
* Make PushConfig constructor public.
|
214
|
+
|
215
|
+
#### Documentation
|
216
|
+
|
217
|
+
* Update sample code for on_error, at_exit, and concurrency tuning
|
218
|
+
|
219
|
+
### 2.0.0 / 2020-08-06
|
220
|
+
|
221
|
+
This is a major update that removes the "low-level" client interface code, and
|
222
|
+
instead adds the new `google-cloud-pubsub-v1` gem as a dependency.
|
223
|
+
The new dependency is a rewritten low-level client, produced by a next-
|
224
|
+
generation client code generator, with improved performance and stability.
|
225
|
+
|
226
|
+
This change should have no effect on the high-level interface that most users
|
227
|
+
will use. The one exception is that the (mostly undocumented) `client_config`
|
228
|
+
argument, for adjusting low-level parameters such as RPC retry settings on
|
229
|
+
client objects, has been removed. If you need to adjust these parameters, use
|
230
|
+
the configuration interface in `google-cloud-pubsub-v1`.
|
231
|
+
|
232
|
+
Substantial changes have been made in the low-level interfaces, however. If you
|
233
|
+
are using the low-level classes under the `Google::Cloud::PubSub::V1` module,
|
234
|
+
please review the docs for the new `google-cloud-pubsub-v1` gem. In
|
235
|
+
particular:
|
236
|
+
|
237
|
+
* Some classes have been renamed, notably the client classes themselves.
|
238
|
+
* The client constructor takes a configuration block instead of configuration
|
239
|
+
keyword arguments.
|
240
|
+
* All RPC method arguments are now keyword arguments.
|
241
|
+
|
242
|
+
### 1.10.0 / 2020-07-23
|
243
|
+
|
244
|
+
#### Features
|
245
|
+
|
246
|
+
* Add Subscription#detach and #detached?
|
247
|
+
|
248
|
+
### 1.9.0 / 2020-07-21
|
249
|
+
|
250
|
+
#### Features
|
251
|
+
|
252
|
+
* Add support for server-side flow control
|
253
|
+
|
254
|
+
### 1.8.0 / 2020-06-29
|
255
|
+
|
256
|
+
#### Features
|
257
|
+
|
258
|
+
* Add Subscription#filter
|
259
|
+
|
260
|
+
### 1.7.1 / 2020-05-28
|
261
|
+
|
262
|
+
#### Documentation
|
263
|
+
|
264
|
+
* Fix a few broken links
|
265
|
+
|
266
|
+
### 1.7.0 / 2020-05-21
|
267
|
+
|
268
|
+
#### Features
|
269
|
+
|
270
|
+
* Add Retry Policy support
|
271
|
+
* Add RetryPolicy
|
272
|
+
* Add retry_policy param to Topic#subscribe
|
273
|
+
* Add Subscription#retry_policy
|
274
|
+
* Add Subscription#retry_policy=
|
275
|
+
* Set client-scoped UUID in initial StreamingPullRequest#client_id
|
276
|
+
|
277
|
+
### 1.6.1 / 2020-05-06
|
278
|
+
|
279
|
+
#### Documentation
|
280
|
+
|
281
|
+
* Fix example in Emulator documentation
|
282
|
+
* Remove experimental notice from ReceivedMessage#delivery_attempt
|
283
|
+
* Wrap example URLs in backticks
|
284
|
+
|
285
|
+
### 1.6.0 / 2020-04-06
|
286
|
+
|
287
|
+
#### Features
|
288
|
+
|
289
|
+
* Add list_topic_snapshots and get_snapshot
|
290
|
+
* Add PublisherClient#list_topic_snapshots
|
291
|
+
* Add SubscriberClient#get_snapshot
|
292
|
+
|
293
|
+
#### Documentation
|
294
|
+
|
295
|
+
* Remove a spurious link in the low-level interface documentation.
|
296
|
+
|
297
|
+
### 1.5.0 / 2020-03-25
|
298
|
+
|
299
|
+
#### Features
|
300
|
+
|
301
|
+
* Add max_duration_per_lease_extension to Subscription#listen and Subscriber
|
302
|
+
|
303
|
+
### 1.4.0 / 2020-03-11
|
304
|
+
|
305
|
+
#### Features
|
306
|
+
|
307
|
+
* Rename Subscriber inventory methods and params
|
308
|
+
* Rename Subscriber#inventory_limit to #max_outstanding_messages
|
309
|
+
* Rename Subscriber#bytesize to #max_outstanding_bytes
|
310
|
+
* Rename Subscriber#extension to #max_total_lease_duration
|
311
|
+
* Add deprecated aliases for the original methods
|
312
|
+
* Support separate project setting for quota/billing
|
313
|
+
|
314
|
+
#### Documentation
|
315
|
+
|
316
|
+
* Update documentation in the lower-level client
|
317
|
+
|
318
|
+
### 1.3.1 / 2020-02-18
|
319
|
+
|
320
|
+
#### Bug Fixes
|
321
|
+
|
322
|
+
* Move Thread.new to end of AsyncPublisher#initialize
|
323
|
+
|
324
|
+
### 1.3.0 / 2020-02-10
|
325
|
+
|
326
|
+
#### Features
|
327
|
+
|
328
|
+
* Add support for Dead Letter Topics
|
329
|
+
* Add `dead_letter_topic` and `dead_letter_max_delivery_attempts` to `Topic#subscribe`
|
330
|
+
* Add `Subscription#dead_letter_topic` and `Subscription#dead_letter_topic=`
|
331
|
+
* Add `Subscription#dead_letter_max_delivery_attempts` and `Subscription#dead_letter_max_delivery_attempts=`
|
332
|
+
* Add `ReceivedMessage#delivery_attempt`
|
333
|
+
|
334
|
+
### 1.2.2 / 2020-02-04
|
335
|
+
|
336
|
+
#### Performance Improvements
|
337
|
+
|
338
|
+
* Add StreamingPullRequest#client_id to the lower-level API
|
339
|
+
|
340
|
+
### 1.2.1 / 2020-01-23
|
341
|
+
|
342
|
+
#### Documentation
|
343
|
+
|
344
|
+
* Update copyright year
|
345
|
+
|
346
|
+
### 1.2.0 / 2020-01-09
|
347
|
+
|
348
|
+
#### Features
|
349
|
+
|
350
|
+
* Add Subscriber inventory settings
|
351
|
+
* Add the following settings to Subscriber:
|
352
|
+
* Subscriber#inventory_limit
|
353
|
+
* Subscriber#inventory_bytesize
|
354
|
+
* Subscriber#extension
|
355
|
+
* Allow Subscription#listen inventory argument to be a hash.
|
356
|
+
* Update AsyncPublisher configuration defaults
|
357
|
+
* Update AsyncPublisher defaults to the following:
|
358
|
+
* max_bytes to 1MB, was 10MB.
|
359
|
+
* max_messages to 100, was 1,000.
|
360
|
+
* interval to 10 milliseconds, was 250 milliseconds.
|
361
|
+
* publish thread count to 2, was 4
|
362
|
+
* callback thread count to 4, was 8.
|
363
|
+
|
364
|
+
### 1.1.3 / 2019-12-18
|
365
|
+
|
366
|
+
#### Bug Fixes
|
367
|
+
|
368
|
+
* Fix MonitorMixin usage on Ruby 2.7
|
369
|
+
* Ruby 2.7 will error if new_cond is called before super().
|
370
|
+
* Make the call to super() be the first call in initialize
|
371
|
+
|
372
|
+
### 1.1.2 / 2019-11-19
|
373
|
+
|
374
|
+
#### Performance Improvements
|
375
|
+
|
376
|
+
* Update network configuration
|
377
|
+
|
378
|
+
### 1.1.1 / 2019-11-06
|
379
|
+
|
380
|
+
#### Bug Fixes
|
381
|
+
|
382
|
+
* Update minimum runtime dependencies
|
383
|
+
|
384
|
+
#### Documentation
|
385
|
+
|
386
|
+
* Update the list of GCP environments for automatic authentication
|
387
|
+
|
388
|
+
### 1.1.0 / 2019-10-23
|
389
|
+
|
390
|
+
#### Features
|
391
|
+
|
392
|
+
* Add support for Ordering Keys
|
393
|
+
* Google Cloud Pub/Sub ordering keys provide the ability to ensure related
|
394
|
+
messages are sent to subscribers in the order in which they were published.
|
395
|
+
The service guarantees that, for a given ordering key and publisher, messages
|
396
|
+
are sent to subscribers in the order in which they were published.
|
397
|
+
* Note: At the time of this release, ordering keys are not yet publicly enabled
|
398
|
+
and requires special project enablements.
|
399
|
+
* Add Google::Cloud::PubSub::Topic#enable_message_ordering! method.
|
400
|
+
* Add Google::Cloud::PubSub::Topic#message_ordering? method.
|
401
|
+
* Add ordering_key argument to Google::Cloud::PubSub::Topic#publish_async method.
|
402
|
+
* Add Google::Cloud::PubSub::Topic#resume_publish method.
|
403
|
+
* Add message_ordering argument to Google::Cloud::PubSub::Topic#subscribe method.
|
404
|
+
* Add Google::Cloud::PubSub::Subscription#message_ordering? method.
|
405
|
+
* Update Ruby dependency to minimum of 2.4.
|
406
|
+
|
407
|
+
### 1.0.2 / 2019-10-10
|
408
|
+
|
409
|
+
#### Bug Fixes
|
410
|
+
|
411
|
+
* Fix Subscriber state after releasing messages
|
412
|
+
* Correctly reset the Subscriber state when releasing messages
|
413
|
+
after the callback either raises an error, or the callback
|
414
|
+
fails to call acknowledge or modify_ack_deadline on the
|
415
|
+
message. If a Subscriber fills it's inventory, and stops
|
416
|
+
pulling additional messages before all the callbacks are
|
417
|
+
completed (moves to a paused state) then the Subscriber
|
418
|
+
could become stuck in a paused state.
|
419
|
+
* A paused Subscriber will now check whether to unpause after
|
420
|
+
the callback is completed, instead of when acknowledge or
|
421
|
+
modify_ack_deadline is called on the message.
|
422
|
+
|
423
|
+
### 1.0.1 / 2019-10-01
|
424
|
+
|
425
|
+
#### Bug Fixes
|
426
|
+
|
427
|
+
* Fix Subscriber lease issue
|
428
|
+
* Fix logic for renewing Subscriber lease for messages.
|
429
|
+
* Subscriptions with very low volume would only be renewed once.
|
430
|
+
* Now messages will be renewed as many times as it takes until
|
431
|
+
* Fix Subscriber lease timing
|
432
|
+
* Start the clock for the next lease renewal immediately.
|
433
|
+
* This help Subscriptions with a very short deadline not
|
434
|
+
|
435
|
+
### 1.0.0 / 2019-09-30
|
436
|
+
|
437
|
+
#### Features
|
438
|
+
|
439
|
+
* Allow wait to block for specified time
|
440
|
+
* Add timeout argument to Subscriber#wait! method.
|
441
|
+
* Document timeout argument on AsyncPublisher#wait! method.
|
442
|
+
* Add stop! convenience method, calling both stop and wait
|
443
|
+
* Add Subscriber#stop! method.
|
444
|
+
* Add AsyncPublisher#stop! method.
|
445
|
+
|
446
|
+
### 0.39.3 / 2019-09-27
|
447
|
+
|
448
|
+
#### Bug Fixes
|
449
|
+
|
450
|
+
* Fix Subscriber#wait! behavior
|
451
|
+
* Fix an issue where the Subscriber#wait! would block
|
452
|
+
for only 60 seconds, and not indefinitely.
|
453
|
+
* This was introduced in the previous release, 0.39.2.
|
454
|
+
|
455
|
+
#### Configuration Changes
|
456
|
+
|
457
|
+
* Update Subscriber acknowledge and modify_ack_deadline configuration
|
458
|
+
* The acknowledge and modify_ack_deadline RPCs have a lower size
|
459
|
+
limit than the other RPCs. Requests larger than 524288 bytes will
|
460
|
+
raise invalid argument errors.
|
461
|
+
* Update low-level client network configuration
|
462
|
+
|
463
|
+
### 0.39.2 / 2019-09-17
|
464
|
+
|
465
|
+
#### Bug Fixes
|
466
|
+
|
467
|
+
* Do not interrupt Subscriber callbacks when stopping
|
468
|
+
* Allow in-process callbacks to complete when a Subscriber is stopped.
|
469
|
+
|
470
|
+
#### Documentation
|
471
|
+
|
472
|
+
* Update Subscriber stop and wait documentation
|
473
|
+
* Update Subscriber#stop and Subscriber#wait! method
|
474
|
+
|
475
|
+
### 0.39.1 / 2019-09-04
|
476
|
+
|
477
|
+
#### Features
|
478
|
+
|
479
|
+
* Update Dead Letter Policy
|
480
|
+
* Add ReceivedMessage#delivery_attempt
|
481
|
+
* Experimental
|
482
|
+
|
483
|
+
### 0.39.0 / 2019-08-23
|
484
|
+
|
485
|
+
#### Features
|
486
|
+
|
487
|
+
* Add Dead Letter Policy to low-level API
|
488
|
+
* Add Google::Cloud::PubSub::V1::Subscription#dead_letter_policy
|
489
|
+
* Add Google::Cloud::PubSub::V1::DeadLetterPolicy class
|
490
|
+
|
491
|
+
#### Documentation
|
492
|
+
|
493
|
+
* Update documentation
|
494
|
+
|
495
|
+
### 0.38.1 / 2019-08-02
|
496
|
+
|
497
|
+
* Add endpoint argument to constructor
|
498
|
+
|
499
|
+
### 0.38.0 / 2019-07-31
|
500
|
+
|
501
|
+
* Allow persistence_regions to be set
|
502
|
+
* Support setting persistence_regions on topic creation
|
503
|
+
and topic update.
|
504
|
+
* Allow Service endpoint to be configured
|
505
|
+
* Google::Cloud::PubSub.configure.endpoint
|
506
|
+
* Fix max threads setting in thread pools
|
507
|
+
* Thread pools once again limit the number of threads allocated.
|
508
|
+
* Reduce thread usage at startup
|
509
|
+
* Allocate threads in pool as needed, not all up front
|
510
|
+
* Update documentation links
|
511
|
+
|
512
|
+
### 0.37.1 / 2019-07-09
|
513
|
+
|
514
|
+
* Add IAM GetPolicyOptions in the lower-level interface.
|
515
|
+
* Support overriding service host and port in the low-level interface.
|
516
|
+
* Fixed race in TimedUnaryBuffer.
|
517
|
+
|
518
|
+
### 0.37.0 / 2019-06-17
|
519
|
+
|
520
|
+
* Add Topic#persistence_regions
|
521
|
+
* Subscriber changes
|
522
|
+
* Fix potential inventory bug
|
523
|
+
* Messages are removed after callback
|
524
|
+
* This change prevents the Subscriber inventory from filling up
|
525
|
+
when messages are never acked or nacked in the user callback.
|
526
|
+
This might happen due to an error in the user callback code.
|
527
|
+
Removing a message from the inventory will cause the message to
|
528
|
+
be redelivered and reprocessed.
|
529
|
+
* Update concurrency implementation
|
530
|
+
* Use concurrent-ruby Promises framework.
|
531
|
+
* Update network configuration
|
532
|
+
* Enable grpc.service_config_disable_resolution
|
533
|
+
|
534
|
+
### 0.36.0 / 2019-05-21
|
535
|
+
|
536
|
+
* Add Topic#kms_key
|
537
|
+
* Add the Cloud KMS encryption key that will be used to
|
538
|
+
protect access to messages published on a topic.
|
539
|
+
* Updates to the low-level API:
|
540
|
+
* Add Topic#kms_key_name (experimental)
|
541
|
+
* Snapshots no longer marked beta.
|
542
|
+
* Update IAM documentation.
|
543
|
+
|
544
|
+
### 0.35.0 / 2019-04-25
|
545
|
+
|
546
|
+
* Add Subscription#push_config and Subscription::PushConfig
|
547
|
+
* Add Subscription#expires_in
|
548
|
+
* Add Topic#reload!
|
549
|
+
* Add Subscription#reload!
|
550
|
+
* Update low-level generated files
|
551
|
+
* Add PushConfig#oidc_token
|
552
|
+
* Add ordering_key to PubsubMessage.
|
553
|
+
* Add enable_message_ordering to Subscription.
|
554
|
+
* Extract gRPC header values from request.
|
555
|
+
* Update documentation.
|
556
|
+
|
557
|
+
### 0.34.1 / 2019-02-13
|
558
|
+
|
559
|
+
* Fix bug (typo) in retrieving default on_error proc.
|
560
|
+
* Update network configuration.
|
561
|
+
|
562
|
+
### 0.34.0 / 2019-02-01
|
563
|
+
|
564
|
+
* Switch to use Google::Cloud::PubSub namespace.
|
565
|
+
* Add PubSub on_error configuration.
|
566
|
+
* Major updates to Subscriber
|
567
|
+
* Add dependency on current-ruby.
|
568
|
+
* Updates are now made using unary API calls, not the gRPC stream.
|
569
|
+
* Update Subscriber inventory lease mechanics:
|
570
|
+
* This change will help avoid race conditions by ensuring that
|
571
|
+
inventory lease renewal actions don't override ack/nack/delay
|
572
|
+
actions made on a received message via the Subscriber callback.
|
573
|
+
* Changes to avoid potential race conditions in updates.
|
574
|
+
* Add reference?/resource? helper methods:
|
575
|
+
* Topic#reference?
|
576
|
+
* Topic#resource?
|
577
|
+
* Subscription#reference?
|
578
|
+
* Subscription#resource?
|
579
|
+
* Add documentation for methods that will make an API call
|
580
|
+
when called on a reference object.
|
581
|
+
* Topic#labels
|
582
|
+
* Subscription#topic
|
583
|
+
* Subscription#deadline
|
584
|
+
* Subscription#retain_acked
|
585
|
+
* Subscription#retention
|
586
|
+
* Subscription#endpoint
|
587
|
+
* Subscription#labels
|
588
|
+
* Subscription#exists?
|
589
|
+
* Subscription#listen (without deadline optional argument)
|
590
|
+
* Add example code for avoiding API calls to Overview guide.
|
591
|
+
* Remove the #delay alias for modify_ack_deadline.
|
592
|
+
* Users should use the modify_ack_deadline and modify_ack_deadline!
|
593
|
+
methods directly instead.
|
594
|
+
* Make use of Credentials#project_id
|
595
|
+
* Use Credentials#project_id
|
596
|
+
If a project_id is not provided, use the value on the Credentials object.
|
597
|
+
This value was added in googleauth 0.7.0.
|
598
|
+
* Loosen googleauth dependency
|
599
|
+
Allow for new releases up to 0.10.
|
600
|
+
The googleauth devs have committed to maintaining the current API
|
601
|
+
and will not make backwards compatible changes before 0.10.
|
602
|
+
* Update low level API
|
603
|
+
* Add expiration_policy field
|
604
|
+
* Numerous updates and fixes to the low-level documentation,
|
605
|
+
including fixes for some broken links.i
|
606
|
+
|
607
|
+
### 0.33.2 / 2018-10-29
|
608
|
+
|
609
|
+
* Rename delay methods to modify_ack_deadline
|
610
|
+
* Rename modify_ack_deadling aliases to delay
|
611
|
+
* This maintains backwards compatibility
|
612
|
+
|
3
613
|
### 0.33.1 / 2018-10-03
|
4
614
|
|
5
615
|
* Update connection configuration.
|