bigquery 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/Gemfile.lock +1 -1
- data/lib/big_query/client.rb +8 -10
- data/lib/big_query/version.rb +1 -1
- 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: 72abb6272b9cd6cd208c7c2da3aa18482722377f
|
4
|
+
data.tar.gz: 64cb7f2129a24290541a2a10894ce3f9df310438
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df3dd14bfefe8ec762d4577e57f2757429a251c68834193c0672544d42c9908f9c5c038ebbf55b6cbbeab8c357be47caabcda269d8ff1bbef8b938f1a2de1c12
|
7
|
+
data.tar.gz: 57073c1b5fb9e1f65481847c6ddcb9177410bb5f56c0771a32265465a14ef54816ec41d02b54af725974e4af33a36807d534e7e9c5046c7047690831c7a985b2
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/big_query/client.rb
CHANGED
@@ -21,16 +21,14 @@ module BigQuery
|
|
21
21
|
faraday_option: opts['faraday_option']
|
22
22
|
)
|
23
23
|
|
24
|
-
key = Google::APIClient::PKCS12.load_key(
|
25
|
-
opts['key'], mode: 'rb'),
|
26
|
-
"notasecret"
|
27
|
-
)
|
24
|
+
key = Google::APIClient::PKCS12.load_key(opts['key'], 'notasecret')
|
28
25
|
|
29
|
-
@
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
26
|
+
@client.authorization = Signet::OAuth2::Client.new(
|
27
|
+
token_credential_uri: 'https://accounts.google.com/o/oauth2/token',
|
28
|
+
audience: 'https://accounts.google.com/o/oauth2/token',
|
29
|
+
scope: 'https://www.googleapis.com/auth/bigquery',
|
30
|
+
issuer: opts['service_email'],
|
31
|
+
signing_key: key)
|
34
32
|
|
35
33
|
refresh_auth
|
36
34
|
|
@@ -41,7 +39,7 @@ module BigQuery
|
|
41
39
|
end
|
42
40
|
|
43
41
|
def refresh_auth
|
44
|
-
@client.authorization
|
42
|
+
@client.authorization.fetch_access_token!
|
45
43
|
end
|
46
44
|
|
47
45
|
private
|
data/lib/big_query/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bigquery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Bronte
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-02-
|
12
|
+
date: 2015-02-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-api-client
|