kura 0.2.17 → 0.2.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +11 -0
- data/kura.gemspec +1 -1
- data/lib/kura/client.rb +4 -3
- data/lib/kura/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4cf6a3d18c63557a9aa7527c586ba3eead6a31b
|
4
|
+
data.tar.gz: 843aacb78c56a3f4a85b28baeedb8935ed8186ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e285cc35b795d85cd83897ee50a0a137fd2615f07377fa3e1f485b633170b1ec6d0a8b57134ec995f1718423001438ec5a29aa12c219b9cb4a1c46aaaab3a3c
|
7
|
+
data.tar.gz: ae4f02b64eec12c67db794c7c664a357f08fd54f38e35850f530200f24bb3becd119cd57c6a4466ce1fd280a4fdc3c34124a5e1be6ed1c4c373288ae5a690a50
|
data/ChangeLog.md
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
# 0.2.18
|
2
|
+
|
3
|
+
## Fixes
|
4
|
+
|
5
|
+
* Handler error media load job in batch mode.
|
6
|
+
|
7
|
+
## Enhancements
|
8
|
+
|
9
|
+
* Add keyworkd argument `use_legacy_sql` to Kura::Client#insert_table to
|
10
|
+
support create View with Standard SQL.
|
11
|
+
|
1
12
|
# 0.2.17
|
2
13
|
|
3
14
|
## Incompatible Changes
|
data/kura.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
|
23
23
|
spec.required_ruby_version = '>= 2.1'
|
24
24
|
|
25
|
-
spec.add_runtime_dependency "google-api-client", "~> 0.9.
|
25
|
+
spec.add_runtime_dependency "google-api-client", "~> 0.9.9"
|
26
26
|
|
27
27
|
spec.add_development_dependency "bundler", "~> 1.10"
|
28
28
|
spec.add_development_dependency "rake", "~> 10.0"
|
data/lib/kura/client.rb
CHANGED
@@ -47,7 +47,7 @@ module Kura
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def process_error(err)
|
50
|
-
if err.respond_to?(:body)
|
50
|
+
if err.respond_to?(:body) and err.body
|
51
51
|
begin
|
52
52
|
jobj = JSON.parse(err.body)
|
53
53
|
error = jobj["error"]
|
@@ -180,12 +180,13 @@ module Kura
|
|
180
180
|
|
181
181
|
def insert_table(dataset_id, table_id, project_id: @default_project_id, expiration_time: nil,
|
182
182
|
friendly_name: nil, schema: nil, description: nil,
|
183
|
-
query: nil, external_data_configuration: nil,
|
183
|
+
query: nil, external_data_configuration: nil,
|
184
|
+
use_legacy_sql: true, &blk)
|
184
185
|
if expiration_time
|
185
186
|
expiration_time = (expiration_time.to_f * 1000.0).to_i
|
186
187
|
end
|
187
188
|
if query
|
188
|
-
view = { query: query }
|
189
|
+
view = { query: query, use_legacy_sql: !!use_legacy_sql }
|
189
190
|
elsif external_data_configuration
|
190
191
|
elsif schema
|
191
192
|
schema = { fields: normalize_schema(schema) }
|
data/lib/kura/version.rb
CHANGED
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.2.
|
4
|
+
version: 0.2.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chikanaga Tomoyuki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-api-client
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.9.
|
19
|
+
version: 0.9.9
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.9.
|
26
|
+
version: 0.9.9
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|