aussiegeek/rubyzip — pull request #17 by alor (2011-11-17 12:37:21+00:00)
Title: unix permission management

this pull request will add:
- a new parameter to ZipFile.open() that can be used to specify the permission of the file:

Zip::ZipFile.open('test.zip', Zip::ZipFile::CREATE) do |z|
z.file.open('test', "w", 0755) { |f| f.write "modified by ruby zip" }
end

- the ability to use chmod and commit the changes (previously not working)

Zip::ZipFile.open('test.zip') do |z|
z.file.chmod(0755, 'test')
end

also included the test in the test suite.

any comments?

regards.