lib/wicked_pdf.rb in wicked_pdf-1.0.5 vs lib/wicked_pdf.rb in wicked_pdf-1.0.6
- old
+ new
@@ -2,11 +2,10 @@
# http://code.google.com/p/wkhtmltopdf/
require 'logger'
require 'digest/md5'
require 'rbconfig'
-require 'shellwords'
if (RbConfig::CONFIG['target_os'] =~ /mswin|mingw/) && (RUBY_VERSION < '1.9')
require 'win32/open3'
else
require 'open3'
@@ -160,15 +159,15 @@
def make_option(name, value, type = :string)
if value.is_a?(Array)
return value.collect { |v| make_option(name, v, type) }
end
if type == :name_value
- parts = value.to_s.split(' ').map { |part| part.shellescape }
+ parts = value.to_s.split(' ')
["--#{name.tr('_', '-')}", *parts]
elsif type == :boolean
["--#{name.tr('_', '-')}"]
else
- ["--#{name.tr('_', '-')}", value.to_s.shellescape]
+ ["--#{name.tr('_', '-')}", value.to_s]
end
end
def valid_option(name)
if binary_version < BINARY_VERSION_WITHOUT_DASHES