lib/sitediff/fetch.rb in sitediff-1.1.1 vs lib/sitediff/fetch.rb in sitediff-1.2.0

- old
+ new

@@ -13,11 +13,11 @@ def initialize(cache, paths, interval, concurrency = 3, curl_opts = nil, - debug = true, + debug: true, **tags) @cache = cache @interval = interval @paths = paths @tags = tags @@ -49,10 +49,10 @@ elsif !base # We only have the cache, but this item isn't cached! results[tag] = UriWrapper::ReadResult.error('Not cached') process_results(path, results) else - uri = UriWrapper.new(base + path, @curl_opts, @debug) + uri = UriWrapper.new(base + path, @curl_opts, debug: @debug) uri.queue(@hydra) do |resl| # Insert delay to limit fetching rate if @interval != 0 SiteDiff.log("Waiting #{@interval} milliseconds.", :info) sleep(@interval / 1000.0)