kura 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +12 -1
- data/lib/kura/client.rb +2 -2
- data/lib/kura/version.rb +1 -1
- data/lib/kura.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c8c4c2a36a6496e732ea16eb4f9ce00b0c684f5
|
4
|
+
data.tar.gz: 89cd59cba88c72171737ecddd586cec674c2f8e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7859fa4470015fbad77dc101066044e3cf0a08feb324c0f0f41d5efa9bd71d96db4ecdcf2d6d8028ee558c90e97be3827020256ade9b07de55318f4ad7c1dd2b
|
7
|
+
data.tar.gz: 962c374c8502f1a5bc1bce15b9d158083b18093a7b328f2a56980aa13520485ca4c538282f38f3bde048c778aecca23bfc8879eedeb3f8aa30f4f9411128132d
|
data/ChangeLog.md
CHANGED
@@ -1,4 +1,15 @@
|
|
1
|
-
# 0.
|
1
|
+
# 0.1.5
|
2
|
+
|
3
|
+
## Enhancements
|
4
|
+
|
5
|
+
* Support :http_options to pass Faraday connection.
|
6
|
+
And set :open_timeout to 60 as default settings.
|
7
|
+
|
8
|
+
## Fixes
|
9
|
+
|
10
|
+
* Get rid of hang up at HTTP connection by set :open_timeout.
|
11
|
+
|
12
|
+
# 0.1.4
|
2
13
|
|
3
14
|
## Enhancements
|
4
15
|
|
data/lib/kura/client.rb
CHANGED
@@ -5,7 +5,7 @@ require "kura/version"
|
|
5
5
|
|
6
6
|
module Kura
|
7
7
|
class Client
|
8
|
-
def initialize(default_project_id: nil, email_address: nil, private_key: nil)
|
8
|
+
def initialize(default_project_id: nil, email_address: nil, private_key: nil, http_options: {open_timeout: 60})
|
9
9
|
@default_project_id = default_project_id
|
10
10
|
@scope = "https://www.googleapis.com/auth/bigquery"
|
11
11
|
@email_address = email_address
|
@@ -20,7 +20,7 @@ module Kura
|
|
20
20
|
else
|
21
21
|
auth = Google::APIClient::ComputeServiceAccount.new
|
22
22
|
end
|
23
|
-
@api = Google::APIClient.new(application_name: "Kura", application_version: Kura::VERSION, authorization: auth)
|
23
|
+
@api = Google::APIClient.new(application_name: "Kura", application_version: Kura::VERSION, authorization: auth, faraday_option: http_options)
|
24
24
|
@api.authorization.fetch_access_token!
|
25
25
|
@bigquery_api = @api.discovered_api("bigquery", "v2")
|
26
26
|
|
data/lib/kura/version.rb
CHANGED
data/lib/kura.rb
CHANGED
@@ -34,10 +34,10 @@ module Kura
|
|
34
34
|
private_key
|
35
35
|
end
|
36
36
|
|
37
|
-
def self.client(project_id=nil, email_address=nil, private_key=nil)
|
37
|
+
def self.client(project_id=nil, email_address=nil, private_key=nil, http_options: {open_timeout: 60})
|
38
38
|
if private_key
|
39
39
|
private_key = get_private_key(private_key)
|
40
40
|
end
|
41
|
-
self::Client.new(default_project_id: project_id, email_address: email_address, private_key: private_key)
|
41
|
+
self::Client.new(default_project_id: project_id, email_address: email_address, private_key: private_key, http_options: http_options)
|
42
42
|
end
|
43
43
|
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.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chikanaga Tomoyuki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-api-client
|