MovableInkAWS 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/movable_ink/aws/ec2.rb +4 -3
- data/lib/movable_ink/version.rb +1 -1
- data/spec/ec2_spec.rb +0 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 294373b3abbbae4f5a9c8f941f08789d2b354bb131589333e5de8f383f1074c9
|
4
|
+
data.tar.gz: 6db4060c7af410a792116a58f3879e55b41dfff181144f709a8d07e4aa2155ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 432218aca5f383aa189ccd023661a51afebc05e3300ebbc36149751aa155a679162b477436436f7fe8c0be47ad2a8f2c60c8b4ac5a127336b84c14dfafd84a21
|
7
|
+
data.tar.gz: 7484927a2b2ea53f24a5768d5349646f913d14dcb2ca621426bf6816d89a87ef1db89ee4b8e05a40cff4ffc90b14e3da5278338d6fbe5937e972773165f61026
|
data/Gemfile.lock
CHANGED
data/lib/movable_ink/aws/ec2.rb
CHANGED
@@ -112,9 +112,10 @@ module MovableInk
|
|
112
112
|
raise MovableInk::AWS::Errors::RoleNameRequiredError
|
113
113
|
end
|
114
114
|
|
115
|
-
|
116
|
-
|
117
|
-
|
115
|
+
# We replace underscores with dashes in the role name in order to comply with
|
116
|
+
# consul service naming conventions while still retaining the role name we use
|
117
|
+
# within MI configuration
|
118
|
+
role.gsub!('_', '-')
|
118
119
|
|
119
120
|
consul_service_options = {
|
120
121
|
dc: datacenter(region: region),
|
data/lib/movable_ink/version.rb
CHANGED
data/spec/ec2_spec.rb
CHANGED
@@ -397,10 +397,6 @@ describe MovableInk::AWS::EC2 do
|
|
397
397
|
expect{ aws.instances(role: nil, discovery_type: 'consul') }.to raise_error(MovableInk::AWS::Errors::RoleNameRequiredError)
|
398
398
|
end
|
399
399
|
|
400
|
-
it "returns an error if an invalid role is passed" do
|
401
|
-
expect{ aws.instances(role: 'asset_proxy', discovery_type: 'consul') }.to raise_error(MovableInk::AWS::Errors::RoleNameInvalidError)
|
402
|
-
end
|
403
|
-
|
404
400
|
it "returns all instances matching a consul service" do
|
405
401
|
miaws = double(MovableInk::AWS)
|
406
402
|
allow(miaws).to receive(:my_region).and_return('us-east-1')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: MovableInkAWS
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Chesler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01
|
11
|
+
date: 2021-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|