lib/acfs/adapter/typhoeus.rb in acfs-0.43.2 vs lib/acfs/adapter/typhoeus.rb in acfs-0.44.0

- old
+ new

@@ -3,10 +3,14 @@ module Acfs module Adapter # Adapter for Typhoeus. # class Typhoeus < Base + def initialize(**kwargs) + @options = kwargs + end + def start hydra.run rescue @hydra = nil raise @@ -23,10 +27,10 @@ end protected def hydra - @hydra ||= ::Typhoeus::Hydra.new + @hydra ||= ::Typhoeus::Hydra.new(**@options) end def convert_request(req) request = ::Typhoeus::Request.new req.url, method: req.method,