aws-sdk-sqs 1.23.0 → 1.23.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-sqs.rb +1 -1
- data/lib/aws-sdk-sqs/client.rb +1 -1
- data/lib/aws-sdk-sqs/plugins/queue_urls.rb +11 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 892151231fd25dc5be9a81d5139631c0892908c1
|
4
|
+
data.tar.gz: bbf1219ce40ad25bed75ddf5bdf8615f24f11002
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc5ece8cccdbb13fdb6bdd0088ac77491ace420633fd55068d868ae1e3376d56be8d65641e555047d20800020a5aee671f7d516867f25b1e4ee6fc716978b131
|
7
|
+
data.tar.gz: 38d70024d73db513673c78c1e9df21b6b2126b895f67ed4373eb45126fbedf2729f65a7c7f08c53bbb4f61a250c49490827e6a24750b3f91177ff53760df0e95
|
data/lib/aws-sdk-sqs.rb
CHANGED
data/lib/aws-sdk-sqs/client.rb
CHANGED
@@ -22,7 +22,7 @@ module Aws
|
|
22
22
|
# region, then we will modify the request to have
|
23
23
|
# a sigv4 signer for the proper region.
|
24
24
|
def update_region(context, queue_url)
|
25
|
-
if queue_region = queue_url
|
25
|
+
if queue_region = parse_region(queue_url)
|
26
26
|
if queue_region != context.config.region
|
27
27
|
config = context.config.dup
|
28
28
|
config.region = queue_region
|
@@ -33,6 +33,16 @@ module Aws
|
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
|
+
private
|
37
|
+
|
38
|
+
# take the first component after service delimiter
|
39
|
+
# https://sqs.us-east-1.amazonaws.com/1234567890/demo
|
40
|
+
# https://vpce-x-y.sqs.us-east-1.vpce.amazonaws.com/1234567890/demo
|
41
|
+
def parse_region(url)
|
42
|
+
parts = url.split('sqs.')
|
43
|
+
parts[1].split('.').first if parts.size > 1
|
44
|
+
end
|
45
|
+
|
36
46
|
end
|
37
47
|
|
38
48
|
handler(Handler)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-sqs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.23.
|
4
|
+
version: 1.23.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|