fluent-plugin-bigquery-custom 0.3.9 → 0.3.10

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: fe157a70c513478cfa4aaa3641ff335b245de00e
4
- data.tar.gz: 27b84dbdb8a897874fe1fe396e78ecaa4dadcfef
3
+ metadata.gz: 03441a200ff3f3e88b45e7533e30e96aa14fd8fe
4
+ data.tar.gz: b286e60634e89db214e2e4d68ef2c8b0fffd2ac9
5
5
  SHA512:
6
- metadata.gz: 7cf0470af4c5c6e4f73805d607be656c5272296623a327b7657eb70aac2a1b8110c726d24ab6421805a2131efb3243269ec07b7319d92fd96998630c297b10c3
7
- data.tar.gz: 204dbd6d54c5e119eb510ac870c9c1f863329220572830a8ad0450fe3406a3e55eaef2c68212c6f70f91646a9ba0a7473cf75b05dc18fa8a69d6b83ab09f4ad3
6
+ metadata.gz: d9916bfcf2c7b173eb1daad57f547748f8bd5033d7f42487f14ded5eebd4e705e0f0c81eb13d8acfd17ed6fb5e75e020af42845acb22c10f2f9fcda226bd079d
7
+ data.tar.gz: 75584a72cb01e65ff43157f4fd9bf5f66cea6dc2a36aee0187e0fe5660753b69caf27b6f2c8ec6701e21c21bb330f7e3764adf3ed9947fd5ba2f6f7fd6760209
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.add_runtime_dependency "google-api-client", "~> 0.9.3"
27
27
  spec.add_runtime_dependency "activesupport", ">= 3.2"
28
28
  spec.add_runtime_dependency "googleauth"
29
- spec.add_runtime_dependency "fluentd"
29
+ spec.add_runtime_dependency "fluentd", "~> 0.12.0"
30
30
  spec.add_runtime_dependency "fluent-mixin-plaintextformatter", '>= 0.2.1'
31
31
  spec.add_runtime_dependency "fluent-mixin-config-placeholders", ">= 0.3.0"
32
32
  spec.add_runtime_dependency "fluent-plugin-buffer-lightening", ">= 0.0.2"
@@ -1,6 +1,6 @@
1
1
  module Fluent
2
2
  module BigQueryPlugin
3
- VERSION = "0.3.9"
3
+ VERSION = "0.3.10"
4
4
  end
5
5
  end
6
6
 
@@ -29,6 +29,7 @@ require 'fluent/plugin/buf_file'
29
29
  require 'fluent/plugin/out_bigquery'
30
30
 
31
31
  require 'rr'
32
+ require 'test/unit/rr'
32
33
 
33
34
  class Test::Unit::TestCase
34
35
  end
@@ -853,8 +853,10 @@ class BigQueryOutputTest < Test::Unit::TestCase
853
853
  driver = create_driver(CONFIG)
854
854
  mock_client(driver) do |expect|
855
855
  expect.insert_all_table_data('yourproject_id', 'yourdataset_id', 'foo', {
856
- rows: entry
857
- }, {}) {
856
+ rows: entry,
857
+ ignore_unknown_values: false,
858
+ skip_invalid_rows: false,
859
+ }, {options: {timeout_sec: nil, open_timeout_sec: 60}}) {
858
860
  s = stub!
859
861
  s.insert_errors { nil }
860
862
  s
@@ -910,10 +912,12 @@ class BigQueryOutputTest < Test::Unit::TestCase
910
912
  fields: schema_fields,
911
913
  },
912
914
  write_disposition: "WRITE_APPEND",
913
- source_format: "NEWLINE_DELIMITED_JSON"
915
+ source_format: "NEWLINE_DELIMITED_JSON",
916
+ ignore_unknown_values: false,
917
+ max_bad_records: 0,
914
918
  }
915
919
  }
916
- }, {upload_source: io, content_type: "application/octet-stream"}) {
920
+ }, {upload_source: io, content_type: "application/octet-stream", options: {timeout_sec: nil, open_timeout_sec: 60}}) {
917
921
  Google::Apis::BigqueryV2::Job.new({
918
922
  job_reference: Google::Apis::BigqueryV2::JobReference.new({job_id: "job_id"})
919
923
  })
@@ -995,8 +999,10 @@ class BigQueryOutputTest < Test::Unit::TestCase
995
999
  CONFIG
996
1000
  mock_client(driver) do |expect|
997
1001
  expect.insert_all_table_data('yourproject_id', 'yourdataset_id', 'foo', {
998
- rows: [message]
999
- }, {}) {
1002
+ rows: [message],
1003
+ ignore_unknown_values: false,
1004
+ skip_invalid_rows: false,
1005
+ }, {options: {timeout_sec: nil, open_timeout_sec: 60}}) {
1000
1006
  raise Google::Apis::ServerError.new("Not found: Table yourproject_id:yourdataset_id.foo", status_code: 404, body: "Not found: Table yourproject_id:yourdataset_id.foo")
1001
1007
  }
1002
1008
  expect.insert_table('yourproject_id', 'yourdataset_id', {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-bigquery-custom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomohiro Hashidate
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-11 00:00:00.000000000 Z
11
+ date: 2016-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -112,16 +112,16 @@ dependencies:
112
112
  name: fluentd
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '0'
117
+ version: 0.12.0
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '0'
124
+ version: 0.12.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: fluent-mixin-plaintextformatter
127
127
  requirement: !ruby/object:Gem::Requirement