From 210a26aa3086a2e8eb91837f73553f3254cb5bd2 Mon Sep 17 00:00:00 2001 From: Takumasa Ochi Date: Fri, 14 Apr 2017 20:56:49 +0900 Subject: [PATCH] Save temporary files to a temporary directory --- lib/zip/streamable_stream.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zip/streamable_stream.rb b/lib/zip/streamable_stream.rb index fc1c9a2d..2a4bf507 100644 --- a/lib/zip/streamable_stream.rb +++ b/lib/zip/streamable_stream.rb @@ -5,7 +5,7 @@ def initialize(entry) dirname = if zipfile.is_a?(::String) ::File.dirname(zipfile) else - '.' + nil end @temp_file = Tempfile.new(::File.basename(name), dirname) @temp_file.binmode