diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/rubygems/gem_open_uri.rb | 6 |
2 files changed, 7 insertions, 3 deletions
@@ -1,3 +1,7 @@ +Sun Dec 23 18:02:52 2007 Eric Hodel <drbrain@segment7.net> + + * lib/rubygems/gem_open_uri.rb: Fix version check. + Sun Dec 23 17:24:48 2007 Tanaka Akira <akr@fsij.org> * 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 |