lib/crags/fetcher.rb in crags-2.1.2 vs lib/crags/fetcher.rb in crags-2.2.0
- old
+ new
@@ -1,11 +1,11 @@
module Crags
module Fetcher
def fetch_doc(url)
- Hpricot.parse(fetch_html(url))
+ Nokogiri::XML.parse(fetch_xml(url))
end
- def fetch_html(url)
+ def fetch_xml(url)
req = fetch_request(url)
req.body_str
end
def fetch_request(url)
\ No newline at end of file