Merge pull request #203 from barnash/patch-1

Fixed typo in README example
This commit is contained in:
Alexander Simonov 2014-12-25 17:42:45 +02:00
commit deeefa1b1a
1 changed files with 1 additions and 1 deletions

View File

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