kura 0.2.27 → 0.2.28

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: bda4d9e854a55228e0f55b2dc76a552d331a263c
4
- data.tar.gz: ef75a46a4bd8b1e17f17e729ac8fea12bd247e44
3
+ metadata.gz: a240da9b6055e243acdf0e3a4b378a4f50d065f0
4
+ data.tar.gz: f7fb5960d60ed159be85f222e384a6b1d6a37fec
5
5
  SHA512:
6
- metadata.gz: cb9a1ea8bd15b3927a95fb486cbca66fe82a629e4299b131d386bf3c329c0c6df8276c3860fe82cd02bc3273caa18b8e02613361fe8405c029d5a46afec42ce5
7
- data.tar.gz: 74ac1b00126c71c12da8cd5c68214d6569b1081d1dc6e693cb78c94c5870048a0f5a5cd3316364dcba71055cde59fae41a790e1e829dc726d27da644f860dd82
6
+ metadata.gz: 9b24d4bf6845db149d227eb6ad6e8518407431f35b284afd180b82fbfb383fd90c5f1164a038938e3097e6b1a83e542c3b5707210e212884ce953b71bee6d904
7
+ data.tar.gz: 7e46e7ef094b5198afe03ed88c6add6c487320f5be98a4bf298268d1fb08a016dfd7f44f05b8cb784eb245441342afc2b8ed884c6f2e03ed7a4affa726dc720b
data/ChangeLog.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.2.28
2
+
3
+ ## Enhancements
4
+
5
+ * Support google-api-client.gem v0.11.x series.
6
+
1
7
  # 0.2.27
2
8
 
3
9
  ## Fixes
@@ -8,7 +14,7 @@
8
14
 
9
15
  ## Changes
10
16
 
11
- * Relax version dependency of google-api-client.gem. kura works find with 0.10.x seriese.
17
+ * Relax version dependency of google-api-client.gem. kura works fine with 0.10.x series.
12
18
 
13
19
  # 0.2.25
14
20
 
data/kura.gemspec CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
 
23
23
  spec.required_ruby_version = '>= 2.1'
24
24
 
25
- spec.add_runtime_dependency "google-api-client", [">= 0.9.11", "< 0.11.0"]
25
+ spec.add_runtime_dependency "google-api-client", [">= 0.9.11", "< 0.12.0"]
26
26
 
27
27
  spec.add_development_dependency "bundler", "~> 1.10"
28
28
  spec.add_development_dependency "rake", "~> 10.0"
data/lib/kura/client.rb CHANGED
@@ -28,7 +28,16 @@ module Kura
28
28
  auth.fetch_access_token!
29
29
  end
30
30
  Google::Apis::RequestOptions.default.retries = default_retries
31
- Google::Apis::RequestOptions.default.timeout_sec = http_options[:timeout]
31
+ # to support google-api-client.gem both 0.10.x and 0.11.x
32
+ # see https://github.com/google/google-api-ruby-client/blob/master/MIGRATING.md
33
+ if Google::Apis::ClientOptions.default.respond_to?(:open_timeout_sec)
34
+ Google::Apis::ClientOptions.default.open_timeout_sec = http_options[:timeout]
35
+ Google::Apis::ClientOptions.default.read_timeout_sec = http_options[:timeout]
36
+ Google::Apis::ClientOptions.default.send_timeout_sec = http_options[:timeout]
37
+ else
38
+ Google::Apis::RequestOptions.default.open_timeout_sec = http_options[:timeout]
39
+ Google::Apis::RequestOptions.default.timeout_sec = http_options[:timeout]
40
+ end
32
41
  @api = Google::Apis::BigqueryV2::BigqueryService.new
33
42
  @api.authorization = auth
34
43
 
data/lib/kura/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kura
2
- VERSION = "0.2.27"
2
+ VERSION = "0.2.28"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kura
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.27
4
+ version: 0.2.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chikanaga Tomoyuki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-09 00:00:00.000000000 Z
11
+ date: 2017-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-api-client
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 0.9.11
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: 0.11.0
22
+ version: 0.12.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 0.9.11
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: 0.11.0
32
+ version: 0.12.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: bundler
35
35
  requirement: !ruby/object:Gem::Requirement