sqewer 8.0.1 → 8.0.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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/sqewer/connection.rb +7 -2
- data/lib/sqewer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3bde02330a40856f767370e8098ec7e11216c1434977b8072cdd78af410d132
|
4
|
+
data.tar.gz: 79a8fae95732af97fee2faa101abe058015e542fafe00c6f193298a8d2a9db29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0ee92f90995e1ad4fc439da92550fb6e9a9a294941b444a41b761e5589d82fb4cc4e5d7252359bc5b22f5675d6dcfb7f4dfb1fcf81e7376e3939f6a7e6cccd2
|
7
|
+
data.tar.gz: f95b7659f1fa00b51a0f4882515b5f0c6d655148849de83b9da4bf104814ccfe0a192cf617c1a56a2c154c8f79331ee5e6acb6979f7d795fc68ee4fc3401f831
|
data/CHANGELOG.md
CHANGED
data/lib/sqewer/connection.rb
CHANGED
@@ -13,6 +13,11 @@ class Sqewer::Connection
|
|
13
13
|
|
14
14
|
NotOurFaultAwsError = Class.new(Sqewer::Error)
|
15
15
|
|
16
|
+
SQS_ERRORS_TO_RELEASE_CLIENT = [
|
17
|
+
Aws::Errors::MissingCredentialsError,
|
18
|
+
Aws::SQS::Errors::AccessDenied,
|
19
|
+
]
|
20
|
+
|
16
21
|
# A wrapper for most important properties of the received message
|
17
22
|
class Message < Struct.new(:receipt_handle, :body, :attributes)
|
18
23
|
def inspect
|
@@ -76,7 +81,7 @@ class Sqewer::Connection
|
|
76
81
|
)
|
77
82
|
response.messages.map {|message| Message.new(message.receipt_handle, message.body, message.attributes) }
|
78
83
|
end
|
79
|
-
rescue
|
84
|
+
rescue *SQS_ERRORS_TO_RELEASE_CLIENT
|
80
85
|
# We noticed cases where errors related to AWS credentials started to happen suddenly.
|
81
86
|
# We don't know the root cause yet, but what we can do is release the
|
82
87
|
# singleton @client instance because it contains a cache of credentials that in most
|
@@ -235,7 +240,7 @@ class Sqewer::Connection
|
|
235
240
|
raise NotOurFaultAwsError
|
236
241
|
end
|
237
242
|
end
|
238
|
-
rescue
|
243
|
+
rescue *SQS_ERRORS_TO_RELEASE_CLIENT
|
239
244
|
# We noticed cases where errors related to AWS credentials started to happen suddenly.
|
240
245
|
# We don't know the root cause yet, but what we can do is release the
|
241
246
|
# singleton @client instance because it contains a cache of credentials that in most
|
data/lib/sqewer/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sqewer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.0.
|
4
|
+
version: 8.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julik Tarkhanov
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-07-
|
12
|
+
date: 2021-07-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk-sqs
|