Fix method redefined warning in open-uri.rb. [ruby-core:14304].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2007-12-23 10:35:58 +00:00
parent 03a1e25542
commit 5d592124f5
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Sun Dec 23 19:33:42 2007 Eric Hodel <drbrain@segment7.net>
* lib/open-uri.rb: Fix method redefined warning. [ruby-core:14304]
Sun Dec 23 18:31:49 2007 NARUSE, Yui <naruse@ruby-lang.org>
* ext/nkf/nkf.c (rb_nkf_enc_get): use rb_define_dummy_encoding.

View File

@ -5,6 +5,9 @@ require 'time'
module Kernel
private
alias open_uri_original_open open # :nodoc:
class << self
alias open_uri_original_open open # :nodoc:
end
# makes possible to open various resources including URIs.
# If the first argument respond to `open' method,