lib/grover/processor.rb in grover-0.14.1 vs lib/grover/processor.rb in grover-0.14.2
- old
+ new
@@ -17,9 +17,10 @@
def convert(method, url_or_html, options)
spawn_process
ensure_packages_are_initiated
result = call_js_method method, url_or_html, options
return unless result
+ return result if result.is_a?(String)
result['data'].pack('C*')
ensure
cleanup_process if stdin
end