ruby-changes:3027
From: ko1@a...
Date: 23 Dec 2007 18:07:28 +0900
Subject: [ruby-changes:3027] drbrain - Ruby:r14519 (trunk): Fix version check
drbrain 2007-12-23 18:07:17 +0900 (Sun, 23 Dec 2007) New Revision: 14519 Modified files: trunk/ChangeLog trunk/lib/rubygems/gem_open_uri.rb Log: Fix version check http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14519&r2=14518 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/rubygems/gem_open_uri.rb?r1=14519&r2=14518 Index: ChangeLog =================================================================== --- ChangeLog (revision 14518) +++ ChangeLog (revision 14519) @@ -1,3 +1,7 @@ +Sun Dec 23 18:02:52 2007 Eric Hodel <drbrain@s...> + + * lib/rubygems/gem_open_uri.rb: Fix version check. + Sun Dec 23 17:24:48 2007 Tanaka Akira <akr@f...> * encoding.c (rb_enc_init): add eucJP as an alias of EUC-JP. Index: lib/rubygems/gem_open_uri.rb =================================================================== --- lib/rubygems/gem_open_uri.rb (revision 14518) +++ lib/rubygems/gem_open_uri.rb (revision 14519) @@ -1,7 +1,7 @@ #!/usr/bin/env ruby -if RUBY_VERSION < "1.9" +if RUBY_VERSION > '1.9' then + require 'open-uri' +else require 'rubygems/open-uri' -else - require 'open-uri' end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml