From 9b5ee28f04866485c5f5395944f3a5b3a105ce4d Mon Sep 17 00:00:00 2001 From: erwanlr Date: Mon, 11 Mar 2013 17:18:48 +0100 Subject: [PATCH] Missing file --- lib/common/hacks.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lib/common/hacks.rb diff --git a/lib/common/hacks.rb b/lib/common/hacks.rb new file mode 100644 index 00000000..cf7a80b7 --- /dev/null +++ b/lib/common/hacks.rb @@ -0,0 +1,10 @@ +# encoding: UTF-8 + +# Default option changed from DEFAULT_XML to NOBLANKS +module Nokogiri + class << self + def XML thing, url = nil, encoding = nil, options = XML::ParseOptions::NOBLANKS, &block + Nokogiri::XML::Document.parse(thing, url, encoding, options, &block) + end + end +end