Merge pull request #83 from insales/rename_iostream_tempfile

Переименовываем временные файлы, чтобы проверить, кто их создаёт
This commit is contained in:
Nastia
2022-12-05 19:13:33 +03:00
committed by GitHub

View File

@@ -5,7 +5,7 @@ module IOStream
def to_tempfile(object)
return object.to_tempfile if object.respond_to?(:to_tempfile)
name = object.respond_to?(:original_filename) ? object.original_filename : (object.respond_to?(:path) ? object.path : "stream")
tempfile = Tempfile.new(["stream", File.extname(name)])
tempfile = Tempfile.new(["ppc-iostream", File.extname(name)])
tempfile.binmode
stream_to(object, tempfile)
end