diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | lib/rss/rexmlparser.rb | 5 |
2 files changed, 7 insertions, 5 deletions
@@ -1,3 +1,10 @@ +Fri Aug 9 23:47:15 2013 Kouhei Sutou <kou@cozmixng.org> + + * lib/rss/rexmlparser.rb: Remove needless REXML version check. + Both RSS Parser and REXML are bundled in Ruby. RSS Parser can + always use the latest REXML. [Bug #8754] [ruby-core:56454] + Patch by Steve Klabnik. Thanks!!! + Fri Aug 9 22:51:10 2013 Nobuyoshi Nakada <nobu@ruby-lang.org> * configure.in (XLDFLAGS, LIBRUBYARG_STATIC): CoreFoundation framework diff --git a/lib/rss/rexmlparser.rb b/lib/rss/rexmlparser.rb index 7112ac3669..a5a2a2edbe 100644 --- a/lib/rss/rexmlparser.rb +++ b/lib/rss/rexmlparser.rb @@ -1,11 +1,6 @@ require "rexml/document" require "rexml/streamlistener" -/\A(\d+)\.(\d+)(?:\.\d+)+\z/ =~ REXML::Version -if ([$1.to_i, $2.to_i] <=> [2, 5]) < 0 - raise LoadError, "needs REXML 2.5 or later (#{REXML::Version})" -end - module RSS class REXMLParser < BaseParser |