Skip to content

Commit

Permalink
process quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
chengguangnan committed Jan 28, 2016
1 parent 3c5e395 commit ab126be
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 4 additions & 2 deletions bin/upload-to-refine
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ opts = Trollop::options do
opt :host, "Address of Google Refine", :default => '0.0.0.0:3333'
opt :project_name, 'Project name'
opt :header_lines, 'Header lines', :default => 1
opt :process_qoutes
opt :limit, 'limit', :default => 0
end


Signal.trap("INT") { puts "Terminating: #{$$}" }
Signal.trap("INT") {
puts "Terminating: #{$$}"
exit
}

host = opts[:host]

Expand Down
2 changes: 1 addition & 1 deletion google_refine.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require 'pathname'

Gem::Specification.new do |s|
s.name = 'google_refine'
s.version = '0.5'
s.version = '0.6'
s.summary = 'Upload to Google Refine.'
s.description = 'Ruby library and command line executables for uploading tab files into Google Refine (v2.0 and v2.5).'
s.authors = 'Cheng Guangnan'
Expand Down
4 changes: 1 addition & 3 deletions lib/google_refine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ def create_project(filename, param = {})
options[:headerLines] = param[:header_lines] || 1
options[:limit] = param[:limit]
options[:guessCellValueTypes] = param[:guess_value_type] || false
options[:processQuotes] = param[:process_quotes] || false

warn options
options[:processQuotes] = true

job = create_importing_job
job.load_raw_data(filename)
Expand Down

0 comments on commit ab126be

Please sign in to comment.