Skip to content

Commit

Permalink
Merge pull request #325 from aeroastro/feature/tempfile-directory
Browse files Browse the repository at this point in the history
Save temporary files to a temporary directory
  • Loading branch information
simonoff committed Nov 8, 2017
2 parents 4ecb5b9 + 258ef02 commit 57c3772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zip/streamable_stream.rb
Expand Up @@ -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
Expand Down

0 comments on commit 57c3772

Please sign in to comment.