From 860c15fb58bf063f745cde1ccaf0d3d25a089cc2 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 30 Aug 2009 21:56:11 +0200 Subject: Revert "utils: try nokogiri/hpricot if hpricot is not available" This reverts commit 4ea25eba02d85b81dcee4302375d7d3e08cd52ac. Not only the patch was missing an essential part, but Nokogiri is not compatible enough with Hpricot anyway. Incompatibilities include doc/"style|script" raising an "Undefined namespace prefix" error and the non-existence of Hpricot::Elements. If we want to support Nokogiri we'll need to write code for it on purpose or redesign the Hpricot code so that it only uses the subset supported by Nokogiri. --- lib/rbot/core/utils/utils.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/rbot/core/utils/utils.rb b/lib/rbot/core/utils/utils.rb index 86254b14..fb9b1f65 100644 --- a/lib/rbot/core/utils/utils.rb +++ b/lib/rbot/core/utils/utils.rb @@ -102,12 +102,7 @@ rescue LoadError end begin - begin - require 'hpricot' - rescue LoadError - require 'nokogiri/hpricot' - ::Hpricot = Nokogiri::Hpricot - end + require 'hpricot' module ::Irc module Utils AFTER_PAR_PATH = /^(?:div|span)$/ -- cgit v1.2.3