Merge pull request #210 from darinkes/patch-1

Readme: Print data instead of puts
This commit is contained in:
Alexander Simonov 2015-01-16 18:31:36 +02:00
commit 9d68b67341
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class ZipFileGenerator
subdir =Dir.entries(diskFilePath); subdir.delete("."); subdir.delete("..")
writeEntries(subdir, zipFilePath, io)
else
io.get_output_stream(zipFilePath) { |f| f.puts(File.open(diskFilePath, "rb").read())}
io.get_output_stream(zipFilePath) { |f| f.print(File.open(diskFilePath, "rb").read())}
end
}
end