lib/imgkit/imgkit.rb in imgkit-1.6.2 vs lib/imgkit/imgkit.rb in imgkit-1.6.3
- old
+ new
@@ -40,10 +40,10 @@
@javascripts = []
@options = IMGKit.configuration.default_options.merge(options)
@options.merge! find_options_in_meta(url_file_or_html) unless source.url?
- raise NoExecutableError.new unless File.exists?(IMGKit.configuration.wkhtmltoimage)
+ raise NoExecutableError.new unless File.exist?(IMGKit.configuration.wkhtmltoimage)
end
def command(output_file = nil)
args = [executable]
args += normalize_options(@options).to_a.flatten.compact