Silent nokorigi/libxml2 warnings

pull/142/head
Thibaut 10 years ago
parent f2abb3552f
commit 6769c90c8a

@ -68,7 +68,7 @@ module Docs
def parse_html(html) def parse_html(html)
warn "#{self.class.name} is re-parsing the document" unless ENV['RACK_ENV'] == 'test' warn "#{self.class.name} is re-parsing the document" unless ENV['RACK_ENV'] == 'test'
super quietly { super }
end end
end end
end end

@ -5,7 +5,7 @@ module Docs
end end
def html def html
@html ||= document? ? parse_as_document : parse_as_fragment @html ||= quietly { document? ? parse_as_document : parse_as_fragment }
end end
private private

Loading…
Cancel
Save