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