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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e95440be2067736e0cd514c71a361dd7094a3ad6
4
- data.tar.gz: ffdfa5b4af5bd7bc2a431b866bc619cc4c8e9de3
3
+ metadata.gz: d7f611a8a685dfc1974b92e2a2bb10458858a609
4
+ data.tar.gz: 84da7c12fd34d9d907754f2c834bd641c5ff29f5
5
5
  SHA512:
6
- metadata.gz: 3a7a38e41cd76c98d9af8cd2407438f226642d71ca30e293ca6fc0565c11abd726e92a6230dc6c3083c29137225ed78751d0902aecd7c21678fb81315962080e
7
- data.tar.gz: ecc5b28c94a364f96be2757cbde5d893b1d71237941c7c6c0c6ff8ffc3eb93fdf8d3ef251bcf9af3c619d44361f99fdb353270088b98b8efcd6af309f32fe45a
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] || /([^.]+)\.amazonaws\.com\z/.match(@endpoint.host)[1]
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
@@ -1,7 +1,7 @@
1
1
  module DynamoDB
2
2
  module Streams
3
3
  class Client
4
- VERSION = '0.0.1'
4
+ VERSION = '0.0.2'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynamodb-streams-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara