dynamodb-streams-client 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dynamodb/streams/client.rb +6 -1
- data/lib/dynamodb/streams/client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7f611a8a685dfc1974b92e2a2bb10458858a609
|
4
|
+
data.tar.gz: 84da7c12fd34d9d907754f2c834bd641c5ff29f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19b1fcf3ec4d47ef2cbaa6b186c929a044486c65e3a756cc4af672670b323c12a06e8bfbb3bae28aee3b0cf810a06909c93680b665209c980dee683b5c4ffe48
|
7
|
+
data.tar.gz: d580a5092c5522ebef33a8e49bde4a78ea39911239ced5232565bd55bc2b732ec3d13db5afaab68484805b65f75b7555a3fa4c216cac86cf1541c99d0eb8227a
|
@@ -34,7 +34,12 @@ class DynamoDB::Streams::Client
|
|
34
34
|
@accessKeyId = options.fetch(:access_key_id)
|
35
35
|
@secretAccessKey = options.fetch(:secret_access_key)
|
36
36
|
@endpoint = URI.parse(options.fetch(:endpoint))
|
37
|
-
@region = options[:region]
|
37
|
+
@region = options[:region]
|
38
|
+
|
39
|
+
unless @region or @region = (/([^.]+)\.amazonaws\.com\z/.match(@endpoint.host) || [])[1]
|
40
|
+
@region = [@endpoint.host, @endpoint.port].join(':')
|
41
|
+
end
|
42
|
+
|
38
43
|
@timeout = DEFAULT_TIMEOUT
|
39
44
|
@debug = false
|
40
45
|
@retry_num = 3
|