8000 StreamableStream now uses the OS temp directory. · rubyzip/rubyzip@506d557 · GitHub
[go: up one dir, main page]

Skip to content

Commit 506d557

Browse files
committed
StreamableStream now uses the OS temp directory.
Rather than using the local folder. Fixes #410
1 parent 2825898 commit 506d557

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/zip/streamable_stream.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@ module Zip
22
class StreamableStream < DelegateClass(Entry) # nodoc:all
33
def initialize(entry)
44
super(entry)
5-
dirname = if zipfile.is_a?(::String)
6-
::File.dirname(zipfile)
7-
else
8-
nil
9-
end
10-
@temp_file = Tempfile.new(::File.basename(name), dirname)
5+
@temp_file = Tempfile.new(::File.basename(name))
116
@temp_file.binmode
127
end
138

0 commit comments

Comments
 (0)
0