diff --git a/ChangeLog b/ChangeLog index 2db04cbb67..99f7bf0746 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun Dec 23 19:33:42 2007 Eric Hodel + + * lib/open-uri.rb: Fix method redefined warning. [ruby-core:14304] + Sun Dec 23 18:31:49 2007 NARUSE, Yui * ext/nkf/nkf.c (rb_nkf_enc_get): use rb_define_dummy_encoding. diff --git a/lib/open-uri.rb b/lib/open-uri.rb index 4411344339..d6d4019e06 100644 --- a/lib/open-uri.rb +++ b/lib/open-uri.rb @@ -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,