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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf12982879cf6c6fbbd4a1027aa6de717c3084431339ad583cd4ae38d934bc91
4
- data.tar.gz: e1baa1af0dc4a999bcba1ee421edc4204465afaadbc72a3190e97c57a948c1de
3
+ metadata.gz: 294373b3abbbae4f5a9c8f941f08789d2b354bb131589333e5de8f383f1074c9
4
+ data.tar.gz: 6db4060c7af410a792116a58f3879e55b41dfff181144f709a8d07e4aa2155ba
5
5
  SHA512:
6
- metadata.gz: 567ef63e82f5d5bbf5b57b9b2aa5a853a63af0d572f710e813c322d135fef345456fc9cc3e3f103666f05065d244f67055ea78350f9b4ecec111b159663d2616
7
- data.tar.gz: 2712730cb9852affc31a1586d36eba62b76a621d8e82dad39d8439bb0f47db72e897147666e5ea01ca2f75c7c4aeb3f5363f60b531dabd07f90e96813a846cb1
6
+ metadata.gz: 432218aca5f383aa189ccd023661a51afebc05e3300ebbc36149751aa155a679162b477436436f7fe8c0be47ad2a8f2c60c8b4ac5a127336b84c14dfafd84a21
7
+ data.tar.gz: 7484927a2b2ea53f24a5768d5349646f913d14dcb2ca621426bf6816d89a87ef1db89ee4b8e05a40cff4ffc90b14e3da5278338d6fbe5937e972773165f61026
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- MovableInkAWS (2.1.0)
4
+ MovableInkAWS (2.1.1)
5
5
  aws-sdk-athena (~> 1)
6
6
  aws-sdk-autoscaling (~> 1)
7
7
  aws-sdk-cloudwatch (~> 1)
@@ -112,9 +112,10 @@ module MovableInk
112
112
  raise MovableInk::AWS::Errors::RoleNameRequiredError
113
113
  end
114
114
 
115
- if role.include?('_')
116
- raise MovableInk::AWS::Errors::RoleNameInvalidError
117
- end
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),
@@ -1,5 +1,5 @@
1
1
  module MovableInk
2
2
  class AWS
3
- VERSION = '2.1.0'
3
+ VERSION = '2.1.1'
4
4
  end
5
5
  end
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.0
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-13 00:00:00.000000000 Z
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