1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rss/rexmlparser.rb: REXML version may be 4 digits.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2004-02-17 02:33:34 +00:00
parent 3fac2b2519
commit 53f6129bbe
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,7 @@
Tue Feb 17 11:33:30 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/rss/rexmlparser.rb: REXML version may be 4 digits.
Tue Feb 17 10:45:59 2004 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/syck/rubyext.c (syck_emitter_end_object): takes only one arg.

View file

@ -1,9 +1,9 @@
require "rexml/document"
require "rexml/streamlistener"
/\A(\d+)\.(\d+).\d+\z/ =~ REXML::Version
if $1.to_i < 2 or ($1.to_i == 2 and $2.to_i < 5)
raise LoadError
/\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