lib/hwacha.rb in hwacha-0.3.0 vs lib/hwacha.rb in hwacha-1.0.0

- old
+ new

@@ -19,11 +19,11 @@ def check(urls) hydra = build_hydra Array(urls).each do |url| - request = Typhoeus::Request.new(url) + request = Typhoeus::Request.new(url, config.request_options) request.on_complete do |response| yield response.effective_url, response end hydra.queue request end @@ -40,8 +40,8 @@ # Hwacha!!! alias :fire :check alias :strike_true :find_existing def build_hydra - Typhoeus::Hydra.new(config.options) + Typhoeus::Hydra.new(config.hydra_options) end end