embulk-output-bigobject 0.3.0 → 0.3.1

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: 43abe5dc1730fe8a446ddeed77a4de07f514c89c
4
- data.tar.gz: df2bee768096c9abdfe944e6137e934aa2b66e96
3
+ metadata.gz: c81e43cbcfc28f2cdc9d694f33d57053a792d078
4
+ data.tar.gz: 49fe6120e1221be7faedb5d281ae969fe9f416e4
5
5
  SHA512:
6
- metadata.gz: 4cfa4216e75df1bb68990700e529a3477d6a5f0c1eecdfbb91df1b70e9e4681c73525999019031269776b3c94679321ef0079952b879d27b2b0625d7dceefa5f
7
- data.tar.gz: 8aa257ce70a52b46b3cf3f4cb6e2cda9d734678cf7636e03582a84ad918e2bbe08f17438c4504f89983669aab47d794b87b2808a47430fd0e59a288f721edef3
6
+ metadata.gz: 30216e7a22db6754ba96481af984e03f240b28d8be931e86093cb1435a09e41fd889f2a6081ec5e58557118d5625d839348daf6c1e2acbfc84cc924e10159144
7
+ data.tar.gz: e6c10e5720c8bc6e6bd80786a6063570d7637c658b7fec97833fffbff7c537d59b5d34e7e4fb6c9091c47c1caae9b801962c49e7ffc99c239f95beca94648504
@@ -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.0"
4
+ spec.version = "0.3.1"
5
5
  spec.authors = ["cchuang"]
6
6
  spec.summary = "Bigobject output plugin for Embulk"
7
7
  spec.description = "Dumps records to Bigobject."
@@ -71,7 +71,7 @@ module Embulk
71
71
 
72
72
  def create_shared_io
73
73
  io = TCPSocket.new @task['host'], @task['ncport']
74
- #@@io = File.new "embulkout.dump", "w"
74
+ #io = File.new "out.dump", "w"
75
75
  io.write "csv\x01"
76
76
  io.puts @task['table']
77
77
  io
@@ -105,7 +105,7 @@ module Embulk
105
105
 
106
106
  page.each do |records|
107
107
  values = []
108
- records.each do |row| values << "#{row}".to_json end
108
+ records.each do |row| values << "\"#{row.to_s.gsub(/\"/,"\"\"")}\"" end
109
109
  #data.push("(#{values.join(",")})")
110
110
  safe_io_puts "#{values.join(",")}"
111
111
  count += 1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-output-bigobject
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - cchuang