embulk-output-bigobject 0.3.2 → 0.3.3

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: 589f01425ae821d10c32d0c4eccbc87f74bed685
4
- data.tar.gz: 66e3a2dac27b9d00a37462bd223a488cedda806e
3
+ metadata.gz: 78b8d6dbc201c54d149ccddc35c5aadd4a2903bb
4
+ data.tar.gz: a9b8c9e531e0cc987cdf6cb88cef89f69f3adaac
5
5
  SHA512:
6
- metadata.gz: b2e32268ab187242cda5e2b69709904bed54fb7f810a9b444543187ef0198838f2341177f79a91f1fec8483daa09297e58b17ca461ab9bb7ef95d5dd75acecc9
7
- data.tar.gz: 3454e8932ec72e60abac4372c01590624ec57ae17dd0e2f8a78c302d12feaa69ecc97eb1224e1846727a06e4f3d342ec4c6dbd4af1496dabd11a61e750aa9d0e
6
+ metadata.gz: 30c0e5ac1d47da48c4ebb29d5cdd6300b2be7c550c3f6ab6bd8373a965f74d9cbda4711faeb91517aa33542962771925402b8e4261ab612c0c9d62a273d04170
7
+ data.tar.gz: 42882ce4db3b518a53932ce40406d32ee52d125c25031eff657da0c922c115cbb39db79c0a54b6bc65c228cb0b741927f9cfdefbd0039d88d4262dc3e20759f4
data/Gemfile CHANGED
File without changes
data/LICENSE.txt CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "embulk-output-bigobject"
4
- spec.version = "0.3.2"
4
+ spec.version = "0.3.3"
5
5
  spec.authors = ["Cheng-Ching Huang"]
6
6
  spec.summary = "Bigobject output plugin for Embulk"
7
7
  spec.description = "Dumps records to Bigobject."
@@ -66,7 +66,7 @@ module Embulk
66
66
  @@io ||= create_shared_io
67
67
  @@mutext ||= Mutex.new
68
68
  @@mutext.synchronize do
69
- @@io.puts buff
69
+ @@io.write buff
70
70
  end
71
71
  end
72
72
 
@@ -98,22 +98,18 @@ module Embulk
98
98
  end
99
99
 
100
100
  def add(page)
101
- # output code:
102
-
103
- #data = Array.new
104
- values = Array.new
105
- count = 0
101
+ data = Array.new
106
102
 
107
103
  page.each do |records|
108
104
  values = []
109
105
  records.each do |row| values << "\"#{row.to_s.gsub(/\"/,"\"\"")}\"" end
110
- #data.push("(#{values.join(",")})")
111
- safe_io_puts "#{values.join(",")}"
112
- count += 1
106
+ data.push "#{values.join(",")}"
113
107
  end
114
108
 
115
- @counter += count
116
- @task['ttl_counter'] += count
109
+ safe_io_puts "#{data.join("\n")}"
110
+
111
+ @counter += data.length
112
+ @task['ttl_counter'] += data.length
117
113
 
118
114
  end
119
115
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-output-bigobject
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cheng-Ching Huang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-14 00:00:00.000000000 Z
11
+ date: 2016-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client