lib/pdfkit/source.rb in pdfkit-0.8.4.1 vs lib/pdfkit/source.rb in pdfkit-0.8.4.2

- old
+ new

@@ -11,10 +11,10 @@ def url? @is_url ||= @source.is_a?(String) && @source.match(/\Ahttp/) end def file? - @is_file ||= @source.kind_of?(File) + @is_file ||= @source.kind_of?(File) || @source.kind_of?(Tempfile) end def html? @is_html ||= !(url? || file?) end