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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88cfd94fed593b228e0538a28cc6242ef9f1c6fc
4
- data.tar.gz: 41df0f49aadb3fbfb3a9505169cd435236d9a849
3
+ metadata.gz: 892151231fd25dc5be9a81d5139631c0892908c1
4
+ data.tar.gz: bbf1219ce40ad25bed75ddf5bdf8615f24f11002
5
5
  SHA512:
6
- metadata.gz: f7be445ad514010bee82d6029d135c2122a40c6bff60ae9aec0da6ce9b57f34b83b1d4ccd6b6c2ef25ed738c7c2341c1bf3c8c7ca72fc7aaf65a4c2237db573e
7
- data.tar.gz: 2d8308a87e5013aa140c1f8b134b2194bb2b9c03bd09b53332e1741bbf244f0d6fed6d3e13cc3ed80e3452bf5c5dd168b07827ae14e09b04f81a737db80aec8c
6
+ metadata.gz: cc5ece8cccdbb13fdb6bdd0088ac77491ace420633fd55068d868ae1e3376d56be8d65641e555047d20800020a5aee671f7d516867f25b1e4ee6fc716978b131
7
+ data.tar.gz: 38d70024d73db513673c78c1e9df21b6b2126b895f67ed4373eb45126fbedf2729f65a7c7f08c53bbb4f61a250c49490827e6a24750b3f91177ff53760df0e95
@@ -44,6 +44,6 @@ require_relative 'aws-sdk-sqs/customizations'
44
44
  # @service
45
45
  module Aws::SQS
46
46
 
47
- GEM_VERSION = '1.23.0'
47
+ GEM_VERSION = '1.23.1'
48
48
 
49
49
  end
@@ -2220,7 +2220,7 @@ module Aws::SQS
2220
2220
  params: params,
2221
2221
  config: config)
2222
2222
  context[:gem_name] = 'aws-sdk-sqs'
2223
- context[:gem_version] = '1.23.0'
2223
+ context[:gem_version] = '1.23.1'
2224
2224
  Seahorse::Client::Request.new(handlers, context)
2225
2225
  end
2226
2226
 
@@ -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.to_s.split('.')[1]
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.0
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-10-23 00:00:00.000000000 Z
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