summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-07 03:58:39 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-07 03:58:39 +0000
commitf4af2e67fe9707e206bf6e9574cc6aeb51656a92 (patch)
treed571b615db01e45b6871e43f54a407e445319c21
parent55b5e19d5b6464a815879a935f8d64a9c4fcb3a8 (diff)
downloadruby-f4af2e67fe9707e206bf6e9574cc6aeb51656a92.tar.gz
ruby-f4af2e67fe9707e206bf6e9574cc6aeb51656a92.tar.xz
ruby-f4af2e67fe9707e206bf6e9574cc6aeb51656a92.zip
* lib/open-uri.rb: abolish mod === tempfile to avoid a problem
[ruby-dev:26967]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/open-uri.rb4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3e3d65b15..8cc9ae34b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Sep 7 12:55:08 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/open-uri.rb: abolish mod === tempfile to avoid a problem
+ [ruby-dev:26967].
+
Wed Sep 7 10:45:15 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (rb_thread_switch): convert all exceptions to
diff --git a/lib/open-uri.rb b/lib/open-uri.rb
index a5459c25c..ce6058935 100644
--- a/lib/open-uri.rb
+++ b/lib/open-uri.rb
@@ -314,14 +314,14 @@ module OpenURI
require 'tempfile'
io = Tempfile.new('open-uri')
io.binmode
- Meta.init io, @io if Meta === @io
+ Meta.init io, @io if @io.respond_to? :meta
io << @io.string
@io = io
end
end
def io
- Meta.init @io unless Meta === @io
+ Meta.init @io unless @io.respond_to? :meta
@io
end
end