bigquery 0.5.1 → 0.6.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 +4 -4
- data/README.md +2 -0
- data/lib/big_query/client.rb +2 -1
- data/lib/big_query/version.rb +1 -1
- data/test/bigquery.rb +10 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: db0f8d742906e8501b59426a1888c6937073e429
|
|
4
|
+
data.tar.gz: 7348fd1368761c79247056d08e4b42b06703f03c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9572f8ec6fe5d2dc43af84deb5d9d37b3e080016fde0ecc75f0aa0d5b60a698f9c405b98870b6279adbd7e979dede26348126ee4fbed3251a9b92dfb11330f44
|
|
7
|
+
data.tar.gz: b3d829258e9a7b17dcde1bcd549b0812e5995f640d5fd4c225619cda907620306dd0e5ddf2095eac23cc76084e6b88ea04ada68f49801b1aeeaf4e93be852940
|
data/README.md
CHANGED
data/lib/big_query/client.rb
CHANGED
|
@@ -15,7 +15,8 @@ module BigQuery
|
|
|
15
15
|
def initialize(opts = {})
|
|
16
16
|
@client = Google::APIClient.new(
|
|
17
17
|
application_name: 'BigQuery ruby app',
|
|
18
|
-
application_version: BigQuery::VERSION
|
|
18
|
+
application_version: BigQuery::VERSION,
|
|
19
|
+
faraday_option: opts['faraday_option']
|
|
19
20
|
)
|
|
20
21
|
|
|
21
22
|
key = Google::APIClient::PKCS12.load_key(File.open(
|
data/lib/big_query/version.rb
CHANGED
data/test/bigquery.rb
CHANGED
|
@@ -4,6 +4,12 @@ require 'yaml'
|
|
|
4
4
|
require 'big_query'
|
|
5
5
|
require 'pry-byebug'
|
|
6
6
|
|
|
7
|
+
module BigQuery
|
|
8
|
+
class Client
|
|
9
|
+
attr_accessor :client
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
|
|
7
13
|
class BigQueryTest < MiniTest::Unit::TestCase
|
|
8
14
|
def setup
|
|
9
15
|
@bq = BigQuery::Client.new(config)
|
|
@@ -19,6 +25,10 @@ class BigQueryTest < MiniTest::Unit::TestCase
|
|
|
19
25
|
@config = YAML.load_file(config_data)
|
|
20
26
|
end
|
|
21
27
|
|
|
28
|
+
def test_faraday_option_config
|
|
29
|
+
assert_equal @bq.client.connection.options.timeout, 999
|
|
30
|
+
end
|
|
31
|
+
|
|
22
32
|
def test_for_tables
|
|
23
33
|
table = @bq.tables.select{|t| t['id'] == "#{config['project_id']}:#{config['dataset']}.test"}.first
|
|
24
34
|
|
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.6.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-01-
|
|
12
|
+
date: 2015-01-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: google-api-client
|
|
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
127
127
|
version: '0'
|
|
128
128
|
requirements: []
|
|
129
129
|
rubyforge_project:
|
|
130
|
-
rubygems_version: 2.
|
|
130
|
+
rubygems_version: 2.4.5
|
|
131
131
|
signing_key:
|
|
132
132
|
specification_version: 4
|
|
133
133
|
summary: A nice wrapper for Google Big Query
|