summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-08-30 21:56:11 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-08-30 21:56:11 +0200
commit860c15fb58bf063f745cde1ccaf0d3d25a089cc2 (patch)
tree082dd4848ca41583fb02c9b237c9d774fa95e926 /lib/rbot
parent269e7f8e7168808c784bf4128be721798e567ab4 (diff)
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.
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/core/utils/utils.rb7
1 files changed, 1 insertions, 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)$/