diff options
| author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-09 03:16:01 +0000 |
|---|---|---|
| committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-09 03:16:01 +0000 |
| commit | e60935e2a94170a9864a5cdeaaa2e4c45c8da2c3 (patch) | |
| tree | 0bda271bd615d3fa3a7afcbf839329600121526e | |
| parent | 35814b3a3f161a96ada0db3675b41103eb61c510 (diff) | |
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
| -rw-r--r-- | ChangeLog | 1 | ||||
| -rw-r--r-- | lib/open-uri.rb | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -14,6 +14,7 @@ Sun Feb 8 21:39:06 2009 Akinori MUSHA <knu@iDaemons.org> (: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 <akr@fsij.org> 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 |
