aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2010-02-12 15:21:29 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2010-02-12 15:21:29 +0000
commit9334feb1745ef58373be205cc91ebedba1eab57c (patch)
treeb5e76ae6a3e7400e2a49b7cb17ec8470cb6aac22
parentSplit the short and long forms of bugzilla requests, so that we can handle lo... (diff)
downloadrbot-bugzilla-9334feb1745ef58373be205cc91ebedba1eab57c.tar.gz
rbot-bugzilla-9334feb1745ef58373be205cc91ebedba1eab57c.tar.bz2
rbot-bugzilla-9334feb1745ef58373be205cc91ebedba1eab57c.zip
htmlentities/string module is gone, removed by upstream.
-rw-r--r--bugzilla.rb9
1 files changed, 3 insertions, 6 deletions
diff --git a/bugzilla.rb b/bugzilla.rb
index dbe21c8..8fb235c 100644
--- a/bugzilla.rb
+++ b/bugzilla.rb
@@ -22,17 +22,14 @@ require 'csv'
# if it's not available.
begin
require 'htmlentities'
- require 'htmlentities/string'
-rescue LoadError
# If we don't have htmlentities extension available, replace
# decode_entities with a dummy function.
class String
- def decode_entities
- return self
- end
+ def decode_entities
+ return HTMLEntities.decode(self)
+ end
end
-
end
# Valid statuses