aws_ro 1.2.1 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -59,6 +59,11 @@ module AwsRo
59
59
  condition = rule.conditions.find { |cond| cond.field == 'path-pattern' }
60
60
  condition.values.first if condition
61
61
  end
62
+
63
+ def host_header
64
+ condition = rule.conditions.find { |cond| cond.field == 'host-header' }
65
+ condition.values.first if condition
66
+ end
62
67
  end
63
68
 
64
69
  class TargetGroup
@@ -87,7 +92,7 @@ module AwsRo
87
92
  region: client.config.region,
88
93
  credentials: client.config.credentials
89
94
  )
90
- ec2_repository.instance_ids(health_descriptions.keys)
95
+ health_descriptions.empty? ? [] : ec2_repository.instance_ids(health_descriptions.keys)
91
96
  end
92
97
 
93
98
  private
@@ -1,3 +1,3 @@
1
1
  module AwsRo
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws_ro
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-12-05 00:00:00.000000000 Z
12
+ date: 2017-04-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  version: '0'
175
175
  segments:
176
176
  - 0
177
- hash: -3643572334067136665
177
+ hash: 3173493615337819720
178
178
  requirements: []
179
179
  rubyforge_project:
180
180
  rubygems_version: 1.8.23.2