bigquery 0.6.1 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 824bbc3887e97db55942156f7296c826cdf02f3a
4
- data.tar.gz: 7733ee438821ee73f1cafb422a37e0605180b5cd
3
+ metadata.gz: 72abb6272b9cd6cd208c7c2da3aa18482722377f
4
+ data.tar.gz: 64cb7f2129a24290541a2a10894ce3f9df310438
5
5
  SHA512:
6
- metadata.gz: fe97999070282dec6e2dc8354f8279be62bd353d88672b681615344010fdf5346dce5a317ba91d764ed4bfbc9db91a155a3a02da33f19239ac0e354337e1d394
7
- data.tar.gz: 006759a05d2704e5331630d3abecf323b4d47d0f3507403f72e4ae235abd4a06f727461451185fff56ecd9a5f1192c9961ee1a4fcf05cdc867f57eda5806d9b1
6
+ metadata.gz: df3dd14bfefe8ec762d4577e57f2757429a251c68834193c0672544d42c9908f9c5c038ebbf55b6cbbeab8c357be47caabcda269d8ff1bbef8b938f1a2de1c12
7
+ data.tar.gz: 57073c1b5fb9e1f65481847c6ddcb9177410bb5f56c0771a32265465a14ef54816ec41d02b54af725974e4af33a36807d534e7e9c5046c7047690831c7a985b2
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- * 0.6.1
1
+ # 0.7.0
2
+ * Adds support for passing string as key #18
3
+ * Switch to Signet::OAuth2::Client for authorization #17
4
+
5
+ # 0.6.1
2
6
  * Include insert module #16
3
7
 
4
8
  # 0.4.0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bigquery (0.6.1)
4
+ bigquery (0.7.0)
5
5
  google-api-client (~> 0.8.2)
6
6
 
7
7
  GEM
@@ -21,16 +21,14 @@ module BigQuery
21
21
  faraday_option: opts['faraday_option']
22
22
  )
23
23
 
24
- key = Google::APIClient::PKCS12.load_key(File.open(
25
- opts['key'], mode: 'rb'),
26
- "notasecret"
27
- )
24
+ key = Google::APIClient::PKCS12.load_key(opts['key'], 'notasecret')
28
25
 
29
- @asserter = Google::APIClient::JWTAsserter.new(
30
- opts['service_email'],
31
- "https://www.googleapis.com/auth/bigquery",
32
- key
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 = @asserter.authorize
42
+ @client.authorization.fetch_access_token!
45
43
  end
46
44
 
47
45
  private
@@ -1,3 +1,3 @@
1
1
  module BigQuery
2
- VERSION = '0.6.1'
2
+ VERSION = '0.7.0'
3
3
  end
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.6.1
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-10 00:00:00.000000000 Z
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