From e60935e2a94170a9864a5cdeaaa2e4c45c8da2c3 Mon Sep 17 00:00:00 2001 From: knu Date: Mon, 9 Feb 2009 03:16:01 +0000 Subject: r22144@crimson: knu | 2009-02-08 22:34:15 +0900 (OpenURI::Buffer): use Meta ===. [ruby-core:14295] (r14609) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@22155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 1 + lib/open-uri.rb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a24c27e69a..83220ad690 100644 --- a/ChangeLog +++ b/ChangeLog @@ -14,6 +14,7 @@ Sun Feb 8 21:39:06 2009 Akinori MUSHA (:redirect) new option to disable redirection. (r13788) (OpenURI::HTTPRedirect): new exception class for redirection. (r13788) + (OpenURI::Buffer): use Meta ===. [ruby-core:14295] (r14609) Mon Feb 9 01:21:16 2009 Tanaka Akira diff --git a/lib/open-uri.rb b/lib/open-uri.rb index 70b4e8826a..fa93ff140d 100644 --- a/lib/open-uri.rb +++ b/lib/open-uri.rb @@ -364,14 +364,14 @@ module OpenURI require 'tempfile' io = Tempfile.new('open-uri') io.binmode - Meta.init io, @io if @io.respond_to? :meta + Meta.init io, @io if Meta === @io io << @io.string @io = io end end def io - Meta.init @io unless @io.respond_to? :meta + Meta.init @io unless Meta === @io @io end end -- cgit v1.2.3