class Roadie::NetHttpProvider
def find_stylesheet!(url)
def find_stylesheet!(url) response = download(url) if response.kind_of? Net::HTTPSuccess Stylesheet.new(url, response_body(response)) else raise CssNotFound.new(url, "Server returned #{response.code}: #{truncate response.body}", self) end rescue Timeout::Error raise CssNotFound.new(url, "Timeout", self) end