MovableInkAWS 2.1.1 → 2.1.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
  SHA256:
3
- metadata.gz: 294373b3abbbae4f5a9c8f941f08789d2b354bb131589333e5de8f383f1074c9
4
- data.tar.gz: 6db4060c7af410a792116a58f3879e55b41dfff181144f709a8d07e4aa2155ba
3
+ metadata.gz: 6de21c0fdb46ad5c3506f242a6a2732abe711831fbde4b70c72ad24147e37bce
4
+ data.tar.gz: 035f21cb39b733f31bc05b86e877cf81cc62b7c2e7a5a80832df2d2ce147053b
5
5
  SHA512:
6
- metadata.gz: 432218aca5f383aa189ccd023661a51afebc05e3300ebbc36149751aa155a679162b477436436f7fe8c0be47ad2a8f2c60c8b4ac5a127336b84c14dfafd84a21
7
- data.tar.gz: 7484927a2b2ea53f24a5768d5349646f913d14dcb2ca621426bf6816d89a87ef1db89ee4b8e05a40cff4ffc90b14e3da5278338d6fbe5937e972773165f61026
6
+ metadata.gz: 65af327d97a4fddc422eac4b212ff9444b4d70e82c045baf4c96627e37152415fa183417399a189aa6c47f26176fab07640662e7a092063f48665bf214b9f13c
7
+ data.tar.gz: b91d80649d4f32bd8b878125e1c2d4a9c7fd6825194b82d563c43017897a85b3e784ff2cc6e6c3cb28f714f17a49d0bec57da754b67eea67698a4663cdc9c4a8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- MovableInkAWS (2.1.1)
4
+ MovableInkAWS (2.1.2)
5
5
  aws-sdk-athena (~> 1)
6
6
  aws-sdk-autoscaling (~> 1)
7
7
  aws-sdk-cloudwatch (~> 1)
@@ -112,11 +112,6 @@ module MovableInk
112
112
  raise MovableInk::AWS::Errors::RoleNameRequiredError
113
113
  end
114
114
 
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!('_', '-')
119
-
120
115
  consul_service_options = {
121
116
  dc: datacenter(region: region),
122
117
  stale: true,
@@ -125,7 +120,10 @@ module MovableInk
125
120
  }
126
121
  consul_service_options[:node_meta] = "availability_zone:#{availability_zone}" unless availability_zone.nil?
127
122
 
128
- Diplomat::Health.service(role, consul_service_options).map { |endpoint|
123
+ # We replace underscores with dashes in the role name in order to comply with
124
+ # consul service naming conventions while still retaining the role name we use
125
+ # within MI configuration
126
+ Diplomat::Health.service(role.gsub('_', '-'), consul_service_options).map { |endpoint|
129
127
  OpenStruct.new (
130
128
  {
131
129
  private_ip_address: endpoint.Node['Address'],
@@ -1,5 +1,5 @@
1
1
  module MovableInk
2
2
  class AWS
3
- VERSION = '2.1.1'
3
+ VERSION = '2.1.2'
4
4
  end
5
5
  end
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.1
4
+ version: 2.1.2
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-02-01 00:00:00.000000000 Z
11
+ date: 2021-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core