lib/sitediff/fetch.rb in sitediff-0.0.6 vs lib/sitediff/fetch.rb in sitediff-1.0.0

- old
+ new

@@ -2,15 +2,22 @@ require 'sitediff/uriwrapper' require 'typhoeus' class SiteDiff + # SiteDiff Data Fetcher. + # TODO: Rename this to Fetcher. class Fetch # Cache is a cache object, see sitediff/cache # Paths is a list of sub-paths # Tags is a hash of tag names => base URLs. - def initialize(cache, paths, interval, concurrency = 3, curl_opts = nil, - debug = true, **tags) + def initialize(cache, + paths, + interval, + concurrency = 3, + curl_opts = nil, + debug = true, + **tags) @cache = cache @interval = interval @paths = paths @tags = tags @curl_opts = curl_opts || UriWrapper::DEFAULT_CURL_OPTS