fluent-plugin-bigquery-custom 0.3.9 → 0.3.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-bigquery-custom.gemspec +1 -1
- data/lib/fluent/plugin/bigquery/version.rb +1 -1
- data/test/helper.rb +1 -0
- data/test/plugin/test_out_bigquery.rb +12 -6
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03441a200ff3f3e88b45e7533e30e96aa14fd8fe
|
4
|
+
data.tar.gz: b286e60634e89db214e2e4d68ef2c8b0fffd2ac9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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"
|
data/test/helper.rb
CHANGED
@@ -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.
|
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
|
+
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:
|
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:
|
124
|
+
version: 0.12.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: fluent-mixin-plaintextformatter
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|