From 6c6f996d71d45a16adc50e768034dbb3971a2586 Mon Sep 17 00:00:00 2001 From: drbrain Date: Sun, 23 Dec 2007 09:07:17 +0000 Subject: [PATCH] Fix version check git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ lib/rubygems/gem_open_uri.rb | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 214520fefe..3e52e885cb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun Dec 23 18:02:52 2007 Eric Hodel + + * lib/rubygems/gem_open_uri.rb: Fix version check. + Sun Dec 23 17:24:48 2007 Tanaka Akira * encoding.c (rb_enc_init): add eucJP as an alias of EUC-JP. diff --git a/lib/rubygems/gem_open_uri.rb b/lib/rubygems/gem_open_uri.rb index 6e35413b37..597930dc50 100644 --- a/lib/rubygems/gem_open_uri.rb +++ b/lib/rubygems/gem_open_uri.rb @@ -1,7 +1,7 @@ #!/usr/bin/env ruby -if RUBY_VERSION < "1.9" - require 'rubygems/open-uri' -else +if RUBY_VERSION > '1.9' then require 'open-uri' +else + require 'rubygems/open-uri' end