gce-host 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/gce-host.gemspec +3 -1
- data/lib/gce/host/gce_client.rb +2 -10
- data/lib/gce/host/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffea5540827adfbf6487f13e58aa480e1e0a6caf
|
4
|
+
data.tar.gz: f784f7f867abc66f4a1395c1e1e78f4e4844845d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 902c573e68f0eecdbdcef671342809e1c576d569570fede5f022d7fbc4253791d42a5bade083f44248e83f125625d2b7311825439354967efa91bd6084587213
|
7
|
+
data.tar.gz: 3466cbf9a1835157014cbcee4781a2791d57d4ef65d6cfbac596f51bf9845c02959dd41d0576c1cb0cd07a5f0c5d055c632945d1c6017758c3f7ee69baf52ffd
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,12 @@
|
|
1
|
-
# 0.5.
|
1
|
+
# 0.5.2 (2017/06/15)
|
2
|
+
|
3
|
+
Changes:
|
4
|
+
|
5
|
+
* The incompatiblity issues of google-api-ruby-client v0.12.0 was resolved (reverted) in v0.13.0.
|
6
|
+
* So, revert the support of google-api-ruby-client v0.12.0 to keep codes clean.
|
7
|
+
* And, drop support of google-api-ruby-client v0.12.0.
|
8
|
+
|
9
|
+
# 0.5.1 (2017/06/14)
|
2
10
|
|
3
11
|
Enhancements:
|
4
12
|
|
data/gce-host.gemspec
CHANGED
@@ -16,7 +16,9 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.executables = `git ls-files -- exe/*`.split("\n").map{ |f| File.basename(f) }
|
17
17
|
gem.require_paths = ["lib"]
|
18
18
|
|
19
|
-
|
19
|
+
# v0.12.0 has unintentional incompatibility issues, let us skip it
|
20
|
+
# https://github.com/google/google-api-ruby-client/issues/590
|
21
|
+
gem.add_runtime_dependency 'google-api-client', '!= 0.12.0'
|
20
22
|
gem.add_runtime_dependency 'dotenv'
|
21
23
|
gem.add_runtime_dependency 'inifile'
|
22
24
|
|
data/lib/gce/host/gce_client.rb
CHANGED
@@ -10,10 +10,10 @@ class GCE
|
|
10
10
|
def instances(condition = {})
|
11
11
|
filter = build_filter(condition)
|
12
12
|
instances = []
|
13
|
-
res = list_aggregated_instances(Config.project, filter: filter)
|
13
|
+
res = client.list_aggregated_instances(Config.project, filter: filter)
|
14
14
|
instances.concat(res.items.values.map(&:instances).compact.flatten(1))
|
15
15
|
while res.next_page_token
|
16
|
-
res = list_aggregated_instances(project, filter: filter, page_token: res.next_page_token)
|
16
|
+
res = client.list_aggregated_instances(Config.project, filter: filter, page_token: res.next_page_token)
|
17
17
|
instances.concat(res.items.values.map(&:instances).compact.flatten(1))
|
18
18
|
end
|
19
19
|
instances
|
@@ -21,14 +21,6 @@ class GCE
|
|
21
21
|
|
22
22
|
private
|
23
23
|
|
24
|
-
def list_aggregated_instances(project, **kwargs)
|
25
|
-
if client.respond_to?(:list_aggregated_instances) # < 0.12.0
|
26
|
-
client.list_aggregated_instances(Config.project, **kwargs)
|
27
|
-
else
|
28
|
-
client.aggregated_instance_list(Config.project, **kwargs)
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
24
|
def client
|
33
25
|
return @client if @client && @client_expiration > Time.now
|
34
26
|
|
data/lib/gce/host/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gce-host
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
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-06-
|
11
|
+
date: 2017-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-api-client
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "!="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.12.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "!="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.12.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: dotenv
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -232,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
232
232
|
version: '0'
|
233
233
|
requirements: []
|
234
234
|
rubyforge_project:
|
235
|
-
rubygems_version: 2.
|
235
|
+
rubygems_version: 2.6.11
|
236
236
|
signing_key:
|
237
237
|
specification_version: 4
|
238
238
|
summary: Search hosts on GCP GCE
|