kura 0.2.20 → 0.2.21

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: 892463d2aab5ec6b70bdbdc416ab63018050a2a2
4
- data.tar.gz: fa85f545be045222922195623bee3d5ca2778abb
3
+ metadata.gz: 883805f4195e97b3d189ab357549da64906ca8ab
4
+ data.tar.gz: ee0caed76b338063bee7726f81b518376b868b4b
5
5
  SHA512:
6
- metadata.gz: 3c95a5c441e2e1bab92c73fa812ed3541ff7cb8dc98434599061ba5abd100ac87ccb206724b2b64928450f9676b25de4b5bba4831b1afac3e88297eb0275a87f
7
- data.tar.gz: a874169935b5344438d87d5b05961d1082fa553124214bda2afbc13d79fcf8ce8481fa43fc5d39d3fbd2f2f1de97135804a86f13eb3fc0c8da4ec063da16162b
6
+ metadata.gz: 4132860ef1d14f891cc0e1a7061f3f00afd2c490b746b882edc25f1fefb1f4f7878fadb52911b946d0ee53b445ff2460952e468bc8e2ada86fb4d16ef6b6a842
7
+ data.tar.gz: eb344fd3a6a631a32e2b76a1911f7c0a4819a7cf31deeb62213d28e7d112b7b90e4b5eb7b46b29e70aa1447a64a872c014fd54af53180e22e39fee65d64d413c
data/ChangeLog.md CHANGED
@@ -1,3 +1,13 @@
1
+ # 0.2.21
2
+
3
+ ## Incompatible Changes
4
+
5
+ * update dependency to google-api-client.gem (>~ 0.9.11).
6
+
7
+ ## Enhancements
8
+
9
+ * Support `maximum_billing_tier` and `maximum_bytes_billed` keyword arguments for `query`.
10
+
1
11
  # 0.2.20
2
12
 
3
13
  ## 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.9"
25
+ spec.add_runtime_dependency "google-api-client", "~> 0.9.11"
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
@@ -337,6 +337,8 @@ module Kura
337
337
  use_query_cache: true,
338
338
  user_defined_function_resources: nil,
339
339
  use_legacy_sql: true,
340
+ maximum_billing_tier: nil,
341
+ maximum_bytes_billed: nil,
340
342
  project_id: @default_project_id,
341
343
  job_project_id: @default_project_id,
342
344
  job_id: nil,
@@ -359,6 +361,12 @@ module Kura
359
361
  configuration.dry_run = true
360
362
  wait = nil
361
363
  end
364
+ if maximum_billing_tier
365
+ configuration.query.maximum_billing_tier = maximum_billing_tier
366
+ end
367
+ if maximum_bytes_billed
368
+ configuration.query.maximum_bytes_billed = maximum_bytes_billed
369
+ end
362
370
  if dataset_id and table_id
363
371
  configuration.query.destination_table = Google::Apis::BigqueryV2::TableReference.new({ project_id: project_id, dataset_id: dataset_id, table_id: table_id })
364
372
  end
data/lib/kura/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kura
2
- VERSION = "0.2.20"
2
+ VERSION = "0.2.21"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kura
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.20
4
+ version: 0.2.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chikanaga Tomoyuki
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.9
19
+ version: 0.9.11
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.9
26
+ version: 0.9.11
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement