aussiegeek/rubyzip — Issue #16: cannot set the file permission 
Author: alor
Created: 2011-11-16 14:43:58+00:00
State: open

the file permissions are always set to 0644 disregarding the value assigned to a file.
example:

filename = 'test'
zipfile = 'test.zip'

Zip::ZipFile.open(zipfile, Zip::ZipFile::CREATE) do |z|
z.file.open(filename, "w") { |f| f.write "created by rubyzip" }
z.file.chmod(0755, filename)
end

Zip::ZipFile.open(zipfile) do |z|
puts "perms: %o" % z.file.stat(filename).mode
end

# => perms: 100644
instead of 755

any suggestion?

thank you