bigquery 0.5.1 → 0.6.0

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: 8ca41e79cabe0a2838d316c8b221477ded480472
4
- data.tar.gz: d67c9a3ee863e6fa03d7fa6cf0343fd979c37172
3
+ metadata.gz: db0f8d742906e8501b59426a1888c6937073e429
4
+ data.tar.gz: 7348fd1368761c79247056d08e4b42b06703f03c
5
5
  SHA512:
6
- metadata.gz: 45a22307c7724b8d28f4360b39165b7159fbefc4577f0d9c71cf66e125b09a741a27ad21b1c1207817436335824942695961817ff471b057f82bdb443e196359
7
- data.tar.gz: a0aaa00b5c9be7d70c9b07639b8f3da809b94d6129f9f9921808bb03512971b0f8e4f9a5002fb36e72f36c7c754689e93d9f0619b9c7a01958ad6c5e719d838c
6
+ metadata.gz: 9572f8ec6fe5d2dc43af84deb5d9d37b3e080016fde0ecc75f0aa0d5b60a698f9c405b98870b6279adbd7e979dede26348126ee4fbed3251a9b92dfb11330f44
7
+ data.tar.gz: b3d829258e9a7b17dcde1bcd549b0812e5995f640d5fd4c225619cda907620306dd0e5ddf2095eac23cc76084e6b88ea04ada68f49801b1aeeaf4e93be852940
data/README.md CHANGED
@@ -130,6 +130,8 @@ service_email: '1234@developer.gserviceaccount.com'
130
130
  key: '/path/to/somekeyfile-privatekey.p12'
131
131
  project_id: '54321'
132
132
  dataset: 'yourdataset'
133
+ faraday_option:
134
+ timeout: 999
133
135
  ```
134
136
 
135
137
  Then run tests via rake.
@@ -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(
@@ -1,3 +1,3 @@
1
1
  module BigQuery
2
- VERSION = '0.5.1'
2
+ VERSION = '0.6.0'
3
3
  end
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.5.1
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-13 00:00:00.000000000 Z
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.2.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