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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 457ca88796684316cb1581238a9a03429f201d01
4
- data.tar.gz: 1e763de34120a52cfbfac0aece6c69491c94b0a7
3
+ metadata.gz: ffea5540827adfbf6487f13e58aa480e1e0a6caf
4
+ data.tar.gz: f784f7f867abc66f4a1395c1e1e78f4e4844845d
5
5
  SHA512:
6
- metadata.gz: c9ebe5e8b57b249d5cf38f7f923592f084a4511a3c8ee135e9a8c87b687df8e4cf5729508bf41481153708ff216f165c0c89d71cd893b4c8115a443d0d547686
7
- data.tar.gz: 71a40734df6b18dd2b1eef91af3c137543b8e4c5d7231b47fcf30445899d17be5581b440f264c3e5d9ec4c5f05b7c64d391494ea68113f3f72ed1cb8ac642c69
6
+ metadata.gz: 902c573e68f0eecdbdcef671342809e1c576d569570fede5f022d7fbc4253791d42a5bade083f44248e83f125625d2b7311825439354967efa91bd6084587213
7
+ data.tar.gz: 3466cbf9a1835157014cbcee4781a2791d57d4ef65d6cfbac596f51bf9845c02959dd41d0576c1cb0cd07a5f0c5d055c632945d1c6017758c3f7ee69baf52ffd
@@ -1,4 +1,12 @@
1
- # 0.5.1 (2017/05/20)
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
 
@@ -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
- gem.add_runtime_dependency 'google-api-client'
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
 
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  class GCE
2
2
  class Host
3
- VERSION = '0.5.1'
3
+ VERSION = '0.5.2'
4
4
  end
5
5
  end
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.1
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-14 00:00:00.000000000 Z
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: '0'
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: '0'
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.5.1
235
+ rubygems_version: 2.6.11
236
236
  signing_key:
237
237
  specification_version: 4
238
238
  summary: Search hosts on GCP GCE