google-cloud-pubsub 2.9.1 → 2.9.2

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: b184f3a91a168ccf824158c3b3d394c3bc92802f8086219c2f08b5f4c26217f7
4
- data.tar.gz: 06a0cbe8c150187217d4926f4c31c786359299b792bad5b8e00c5213231a3eaf
3
+ metadata.gz: 8394bc5fb6c16d7ce9e7cb3245014813255379c0e7ed8e43031e5426d0815b49
4
+ data.tar.gz: def32abf5611649a5bf1d6b4d5f2f5c13b498a79f286503bfc343d662ecf260b
5
5
  SHA512:
6
- metadata.gz: 86f12e34cb73f559ccd778ef42c5bc31b0e1609b3d8d40be473a2f2a389949978dba7051d77747623408fa84ce18d347ad0509725239e7f257e5a943312f6d05
7
- data.tar.gz: 982195c58d4909f682dbcff79529b33570f6808459f813ffa0fecedec9fb3e6c81f811f7ecc01ff986b934abf686646839db80aac1da2fb028e7224a17885453
6
+ metadata.gz: e385d303a2ebad9b7ffb0510452d146af19de56cafdf8ffda81a23952fce998a2f38be41b95781ea4cc12e55e6f85782afbbbb427d2b39f96ef21477e053bded
7
+ data.tar.gz: 3e758b507919e9a06d8760a4f422eb7b91ddfb832be1a708e98569604ff87688c44a8afb5c1cdbe088194fe9a32d4d2cd08a4c7bfec7a804fa3cf44f87ca359a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 2.9.2 (2022-04-28)
4
+
5
+ #### Bug Fixes
6
+
7
+ * ignore grpc errors on ack/modack
8
+
3
9
  ### 2.9.1 / 2022-01-11
4
10
 
5
11
  #### Documentation
@@ -255,7 +255,11 @@ module Google
255
255
  ##
256
256
  # Acknowledges receipt of a message.
257
257
  def acknowledge subscription, *ack_ids
258
- subscriber.acknowledge subscription: subscription_path(subscription), ack_ids: ack_ids
258
+ begin
259
+ subscriber.acknowledge subscription: subscription_path(subscription), ack_ids: ack_ids
260
+ rescue StandardError => e
261
+ raise e unless e.cause.is_a? GRPC::BadStatus
262
+ end
259
263
  end
260
264
 
261
265
  ##
@@ -275,9 +279,13 @@ module Google
275
279
  ##
276
280
  # Modifies the ack deadline for a specific message.
277
281
  def modify_ack_deadline subscription, ids, deadline
278
- subscriber.modify_ack_deadline subscription: subscription_path(subscription),
279
- ack_ids: Array(ids),
280
- ack_deadline_seconds: deadline
282
+ begin
283
+ subscriber.modify_ack_deadline subscription: subscription_path(subscription),
284
+ ack_ids: Array(ids),
285
+ ack_deadline_seconds: deadline
286
+ rescue StandardError => e
287
+ raise e unless e.cause.is_a? GRPC::BadStatus
288
+ end
281
289
  end
282
290
 
283
291
  ##
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module PubSub
19
- VERSION = "2.9.1".freeze
19
+ VERSION = "2.9.2".freeze
20
20
  end
21
21
 
22
22
  Pubsub = PubSub unless const_defined? :Pubsub
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.9.1
4
+ version: 2.9.2
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: 2022-01-11 00:00:00.000000000 Z
12
+ date: 2022-04-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: concurrent-ruby
@@ -276,7 +276,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
276
276
  - !ruby/object:Gem::Version
277
277
  version: '0'
278
278
  requirements: []
279
- rubygems_version: 3.3.4
279
+ rubygems_version: 3.3.5
280
280
  signing_key:
281
281
  specification_version: 4
282
282
  summary: API Client library for Google Cloud Pub/Sub