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 +4 -4
- data/lib/spurious/ruby/awssdk/helper.rb +7 -11
- data/lib/spurious/ruby/awssdk/helper/version.rb +1 -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: 9e24ae16b954218e13e12a3f110e485ebb67f992
|
4
|
+
data.tar.gz: b6cd86162057773ccf37344e29ec741075faf79c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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" =>
|
28
|
-
"HostPort" =>
|
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" =>
|
34
|
-
"HostPort" =>
|
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" =>
|
40
|
-
"HostPort" =>
|
35
|
+
"Host" => ENV['SPURIOUS.S3.LOCAL_NAME'].split('/').last,
|
36
|
+
"HostPort" => URI(ENV['SPURIOUS.SQS.LOCAL_PORT']).port
|
41
37
|
}
|
42
38
|
]
|
43
39
|
}
|
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.
|
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-
|
11
|
+
date: 2014-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|