embulk-output-bigquery 0.3.0.pre3 → 0.3.0.pre4

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: f1dbd4398ccaccaf5b4d2d812dcbf64d2610c41c
4
- data.tar.gz: 3b1ad06791c8b6b65139dfaf7d82e7e1f253c35d
3
+ metadata.gz: f6eb9f00dcee50fea8c8a549b9eb365b80dd03e0
4
+ data.tar.gz: 5e24073e995335ad82501f9d9f2c954133d33bdd
5
5
  SHA512:
6
- metadata.gz: 5307cce2d9983b7c2710180f28e0e19515d6895dcd3b5d6e0c48503c57b5e555332831ed328a21daf9743e7688d7d3a51e1f81e4436370311e8defdd1dbc6b22
7
- data.tar.gz: eeae7ee0e52c2e218478d5d58d3a2eeb76fedb02e5f6d1ba85a393069dbf1c455028658593b3dcedeff7f6dced4de9c31185e33d2fde824bfc9d4b3494acbc09
6
+ metadata.gz: 0d6650c1083201768da9867d35f3ce49c7143a0ada83573352ec5717d6c0d214304cd6a2564097c2a4a5b02774f439de5d56a03ef6534b2d93fbc6aa2f018226
7
+ data.tar.gz: 51c86baea6ec0742f2358bb5a7689d17745dd9f56384a4e06945dec5d2a0d937d0fc61136de184e5e9a2837c9f30912e1acd706f4db03a60af699494273a15bc
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "embulk-output-bigquery"
3
- spec.version = "0.3.0.pre3"
3
+ spec.version = "0.3.0.pre4"
4
4
  spec.authors = ["Satoshi Akama", "Naotoshi Seo"]
5
5
  spec.summary = "Google BigQuery output plugin for Embulk"
6
6
  spec.description = "Embulk plugin that insert records to Google BigQuery."
@@ -70,6 +70,10 @@ module Embulk
70
70
  else
71
71
  io = file_io
72
72
  end
73
+
74
+ ios = self.class.ios
75
+ ios.add(io)
76
+
73
77
  Thread.current[THREAD_LOCAL_IO_KEY] = io
74
78
  end
75
79
 
@@ -99,7 +103,6 @@ module Embulk
99
103
 
100
104
  def add(page)
101
105
  io = thread_io
102
- self.class.ios.add(io)
103
106
  # I once tried to split IO writing into another IO thread using SizedQueue
104
107
  # However, it resulted in worse performance, so I removed the codes.
105
108
  page.each do |record|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-output-bigquery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.pre3
4
+ version: 0.3.0.pre4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Satoshi Akama
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-03-23 00:00:00.000000000 Z
12
+ date: 2016-03-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-api-client