examples/nokogiri_html_parser.rb in httparty-0.13.3 vs examples/nokogiri_html_parser.rb in httparty-0.13.4

- old
+ new

@@ -1,15 +1,12 @@ require 'rubygems' require 'nokogiri' - dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')) require File.join(dir, 'httparty') require 'pp' class HtmlParserIncluded < HTTParty::Parser - SupportedFormats.merge!('text/html' => :html) - def html Nokogiri::HTML(body) end end