aws_public_ips 1.0.6 → 1.0.7

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
- SHA256:
3
- metadata.gz: 23f1e5c0c295c8b310348a3de7dc27030b7bcb8a0fa56e3c4d9f561c9f1e075c
4
- data.tar.gz: 691834d4e4118eb747808edeee5c5cfa2570fb51db09f5c8386552c3a14629bd
2
+ SHA1:
3
+ metadata.gz: b608120656580ee5ca0e484ae61cb13b23de01a0
4
+ data.tar.gz: 37d6504528d19226f70b721cd0abf67dec0f7099
5
5
  SHA512:
6
- metadata.gz: ba824f19d840d704f1f4d9722cbe7ec18ad05dd35f6b369fd442e3a6f8697f8ebb123262a8d832d598f14015c7531c1ab7ab0c0f7b0ec426e79423f30d71e929
7
- data.tar.gz: b9f5e41bf14cc2a254f26237fbd670f87a662e823406dddb564b11cd102d8877753eaa830a3e8b75aab84b156888e2c7a0de2add3f24ca06c5297bd3dc8b6090
6
+ metadata.gz: '091a3520f52d956adfbf41682d0b00d3a69278337a285518837e8177752f21388d40142908a3813975f25e266e17cbb71e5e93ba79617baa0cec8c9b7c4f9b4e'
7
+ data.tar.gz: b4569e09c489fa9e61927c838e98369afc248f21a4c89ac85dc0a6e53d44c315d51d9d64a8402ceec1c447e2f069c1eda0360f4c4cd3be1a4fc631665667214c
@@ -20,7 +20,13 @@ module AwsPublicIps
20
20
  # EC2-Classic instances have a `public_ip_address` and no `network_interfaces`
21
21
  # EC2-VPC instances both set, so we uniq the ip addresses
22
22
  ip_addresses = [instance.public_ip_address].compact + instance.network_interfaces.flat_map do |interface|
23
- public_ip = interface.association ? [interface.association.public_ip].compact : []
23
+ public_ip = []
24
+
25
+ interface.private_ip_addresses.flat_map do |private_ip|
26
+ if private_ip.association && private_ip.association.public_ip
27
+ public_ip << private_ip.association.public_ip
28
+ end
29
+ end
24
30
  public_ip + interface.ipv_6_addresses.map(&:ipv_6_address)
25
31
  end
26
32
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AwsPublicIps
4
- VERSION = '1.0.6'.freeze
4
+ VERSION = '1.0.7'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws_public_ips
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arkadiy Tetelman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-27 00:00:00.000000000 Z
11
+ date: 2019-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-apigateway
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: 0.60.0
187
+ version: 0.65.0
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: 0.60.0
194
+ version: 0.65.0
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: webmock
197
197
  requirement: !ruby/object:Gem::Requirement
@@ -253,7 +253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
253
253
  version: '0'
254
254
  requirements: []
255
255
  rubyforge_project:
256
- rubygems_version: 2.7.7
256
+ rubygems_version: 2.6.14
257
257
  signing_key:
258
258
  specification_version: 4
259
259
  summary: A library/cli to fetch all public IP addresses associated with an AWS account