Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Averting of compression method override #64

Merged
merged 1 commit into from Feb 7, 2013

Conversation

Projects
None yet
2 participants
Contributor

rap-kasta commented Sep 14, 2012

Example of code:

::Zip::ZipFile.open("path_to.zip", ::Zip::ZipFile::CREATE) { |zip_content|
        entry_path = "test.txt"
        zip_entry = ::Zip::ZipEntry.new("", entry_path, "", "", 0, 0,::Zip::ZipEntry::STORED)
        zip_content.add zip_entry, entry
      end
  }

Without this fix file "test.txt" will be always compressed (using DEFLATED compression method)

simonoff added a commit that referenced this pull request Feb 7, 2013

Merge pull request #64 from rap-kasta/master
Averting of compression method override

@simonoff simonoff merged commit fbafce3 into rubyzip:master Feb 7, 2013

1 check passed

default The Travis build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment