gce-host 0.5.5 → 0.5.6

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
- SHA1:
3
- metadata.gz: a2c9b261e776c3e4c81245a82f27434ab8702e22
4
- data.tar.gz: 3ab8ea0475aab2d7076e76fd8d57f66dfd618c78
2
+ SHA256:
3
+ metadata.gz: 3c52da0f7a955416550c729c1c81a657c3e5003e55e59558f8410f44f583829f
4
+ data.tar.gz: 7fd2a1323e1f973a2c3a5117ca4a4feb798b091695d6664d9c0193a4cc0600fa
5
5
  SHA512:
6
- metadata.gz: ecec86530bcd14ef37c6b7aa57ca07f31f53a7a6f10e7889381f3d698a3e77664206f59ae90694e9af05ce6c1f37acc9641b084e60c139661cb39a674fe0611f
7
- data.tar.gz: a67c0f5b38fb0d79aceaea41d0ef47e7decc6fdd235ff0b976dda2b6da42c4d6ada40909213372f1faf69f906d35ebfae342bd44b15e9add76ceb0ae4bd859be
6
+ metadata.gz: 1d088f43f1bcec37f38a97558b749697f2aafa8e46b37c313cf2e878611cd15d08069707e4a372f9ef7e7fe5647dcc436f15beaa16370aed9f691e8dec8135b3
7
+ data.tar.gz: 48d4100af2b932d8a2835581eeef566d35eab3c755fd0fe852b2a0f8f626512967128d7afb3ceca873c0debc41e7ecb03c55229022be5436e9649986710fbe7b
@@ -1,3 +1,9 @@
1
+ # 0.5.6 (2017/01/22)
2
+
3
+ Fixes:
4
+
5
+ * Fix -j option was not working (not assign external ip case)
6
+
1
7
  # 0.5.5 (2017/09/20)
2
8
 
3
9
  Enhancements:
@@ -64,11 +64,14 @@ class GCE
64
64
  end
65
65
 
66
66
  def public_ip_address
67
- instance.network_interfaces.first.access_configs.first.nat_ip
67
+ access_configs = instance.network_interfaces.first.access_configs
68
+ access_configs ? access_configs.first.nat_ip : nil
68
69
  end
69
70
 
70
71
  def public_ip_addresses
71
- instance.network_interfaces.map {|i| i.access_configs.map(&:nat_ip) }.flatten(1)
72
+ instance.network_interfaces.map {|i|
73
+ i.access_configs ? i.access_configs.map(&:nat_ip) : nil
74
+ }.flatten(1).compact
72
75
  end
73
76
 
74
77
  def creation_timestamp
@@ -1,5 +1,5 @@
1
1
  class GCE
2
2
  class Host
3
- VERSION = '0.5.5'
3
+ VERSION = '0.5.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gce-host
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naotoshi Seo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-20 00:00:00.000000000 Z
11
+ date: 2019-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-api-client
@@ -231,8 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
231
231
  - !ruby/object:Gem::Version
232
232
  version: '0'
233
233
  requirements: []
234
- rubyforge_project:
235
- rubygems_version: 2.6.13
234
+ rubygems_version: 3.0.1
236
235
  signing_key:
237
236
  specification_version: 4
238
237
  summary: Search hosts on GCP GCE