spurious-ruby-awssdk-helper 0.2.0 → 0.2.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: 147465f284c6ac19ac5e5993e8af02dbc0b06799
4
- data.tar.gz: 8ec50a34e59fc6d204089f94564b75042db3d2db
3
+ metadata.gz: 9e24ae16b954218e13e12a3f110e485ebb67f992
4
+ data.tar.gz: b6cd86162057773ccf37344e29ec741075faf79c
5
5
  SHA512:
6
- metadata.gz: 801a3a11e9071d014862a9895f2cf797600832d5222010fdfe926a00ef86c23f000afae2f5a1517d72d217c6d0b63ed6553ab9c0c946b30914fd2599befbed96
7
- data.tar.gz: b8abcde6b2f33cc190b9ce901effd86efd4d3614d71005e5084906143054aef352edd85de4b4d65d84113565df858407d6ff194d1baedac9f9c05af46237d9a8
6
+ metadata.gz: 257275fdc87572f0fd35dcf4a4fc5ad014806339bdb56bf5a01573c467b4a21b73922db18077af0d62ab4e9e06b4a27dc2288f31d0ee5c13ae6b8ab41c33268c
7
+ data.tar.gz: 8f03eb37c0d0f8439077ba3dfb5bd0e9814e288e232c9aab21bead7ffeb03700bcb16fae2c5d93042e467bffa3ec5495845af15e36f9cb7ee6b3dace39c7e5f5
@@ -2,6 +2,7 @@ require "spurious/ruby/awssdk/helper/version"
2
2
  require 'spurious/ruby/awssdk/strategy'
3
3
  require "aws-sdk"
4
4
  require "json"
5
+ require "uri"
5
6
 
6
7
  module Spurious
7
8
  module Ruby
@@ -16,28 +17,23 @@ module Spurious
16
17
  end
17
18
 
18
19
  def self.docker_config
19
- regex = /\/(?<host>[0-9\.]+):(?<port>[0-9]+)/
20
- dynamo_db = regex.match(ENV['SPURIOUS_DYNAMODB_PORT'])
21
- s3 = regex.match(ENV['SPURIOUS_S3_PORT'])
22
- sqs = regex.match(ENV['SPURIOUS_SQS_PORT'])
23
-
24
20
  {
25
21
  "spurious-dynamo" => [
26
22
  {
27
- "Host" => dynamo_db[:host],
28
- "HostPort" => dynamo_db[:port]
23
+ "Host" => ENV['SPURIOUS.DYNAMODB.LOCAL_NAME'].split('/').last,
24
+ "HostPort" => URI(ENV['SPURIOUS.DYNAMODB.LOCAL_PORT']).port
29
25
  }
30
26
  ],
31
27
  "spurious-sqs" => [
32
28
  {
33
- "Host" => sqs[:host],
34
- "HostPort" => sqs[:port]
29
+ "Host" => ENV['SPURIOUS.S3.LOCAL_NAME'].split('/').last,
30
+ "HostPort" => URI(ENV['SPURIOUS.S3.LOCAL_PORT']).port
35
31
  }
36
32
  ],
37
33
  "spurious-s3" => [
38
34
  {
39
- "Host" => s3[:host],
40
- "HostPort" => s3[:port]
35
+ "Host" => ENV['SPURIOUS.S3.LOCAL_NAME'].split('/').last,
36
+ "HostPort" => URI(ENV['SPURIOUS.SQS.LOCAL_PORT']).port
41
37
  }
42
38
  ]
43
39
  }
@@ -2,7 +2,7 @@ module Spurious
2
2
  module Ruby
3
3
  module Awssdk
4
4
  module Helper
5
- VERSION = "0.2.0"
5
+ VERSION = "0.2.1"
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spurious-ruby-awssdk-helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Jack
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-07 00:00:00.000000000 Z
11
+ date: 2014-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler