зеркало из https://github.com/github/ruby.git
* lib/open-uri.rb: abolish mod === tempfile to avoid a problem
[ruby-dev:26967]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
17a4e4b1ad
Коммит
5197f6773a
|
@ -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>
|
Wed Sep 7 10:45:15 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* eval.c (rb_thread_switch): convert all exceptions to
|
* eval.c (rb_thread_switch): convert all exceptions to
|
||||||
|
|
|
@ -314,14 +314,14 @@ module OpenURI
|
||||||
require 'tempfile'
|
require 'tempfile'
|
||||||
io = Tempfile.new('open-uri')
|
io = Tempfile.new('open-uri')
|
||||||
io.binmode
|
io.binmode
|
||||||
Meta.init io, @io if Meta === @io
|
Meta.init io, @io if @io.respond_to? :meta
|
||||||
io << @io.string
|
io << @io.string
|
||||||
@io = io
|
@io = io
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def io
|
def io
|
||||||
Meta.init @io unless Meta === @io
|
Meta.init @io unless @io.respond_to? :meta
|
||||||
@io
|
@io
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Загрузка…
Ссылка в новой задаче