[前][次][番号順一覧][スレッド一覧]

ruby-changes:30395

From: kou <ko1@a...>
Date: Fri, 9 Aug 2013 23:50:20 +0900 (JST)
Subject: [ruby-changes:30395] kou:r42474 (trunk): * lib/rss/rexmlparser.rb: Remove needless REXML version check.

kou	2013-08-09 23:50:11 +0900 (Fri, 09 Aug 2013)

  New Revision: 42474

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42474

  Log:
    * 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!!!

  Modified files:
    trunk/ChangeLog
    trunk/lib/rss/rexmlparser.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42473)
+++ ChangeLog	(revision 42474)
@@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Aug  9 23:47:15 2013  Kouhei Sutou  <kou@c...>
+
+	* 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@r...>
 
 	* configure.in (XLDFLAGS, LIBRUBYARG_STATIC): CoreFoundation framework
Index: lib/rss/rexmlparser.rb
===================================================================
--- lib/rss/rexmlparser.rb	(revision 42473)
+++ lib/rss/rexmlparser.rb	(revision 42474)
@@ -1,11 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/lib/rss/rexmlparser.rb#L1
 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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]