You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a directory called test.
create four files inside that directory called: a, b, c, d
zip that directory with: zip -r test.zip test/
then execute this script:
Zip::File.open('test.zip', "wb") do |z|
z.each do |f|
puts f.name
z.rename f, "Z" + f.name
end
end
puts "OUTPUT:
Zip::File.open('test.zip', "wb") do |z|
z.each do |f|
puts f.name
end
end
…ypt-perf
* 'master' of https://github.com/rubyzip/rubyzip:
Explicitly add the released 2.1.0 Ruby version Remove branch restriction
Fix Rubinius by adding newly required gems, updating label in .travis.yml
Update README.md
Update README.md
Make File.open_buffer support Tempfiles
Version bump
Update Changelog with Ruby 1.9 requirement
Update README to reflect 1.9 requirement
Fixrubyzip#106 Set options about restoring ownerships, permissions and times. restore permissions enabled by default.
fix jRuby Building rubyzip#104Fixrubyzip#28 and rubyzip#103
disable jRuby for a while
Fixrubyzip#102 recover file permissions if zip file was exist
Add missing Zip::Entry arguments to Zip::File#get_output_stream. Fixesrubyzip#100
fix string encoding of zip64 header ids for ruby 2.0
Add read/write support for zip64 extensions
Conflicts:
lib/zip/extra_field.rb
Create a directory called test.
create four files inside that directory called: a, b, c, d
zip that directory with: zip -r test.zip test/
then execute this script:
the result is:
it seems that the entry are mangled while iterating over them with the z.each()
The text was updated successfully, but these errors were encountered: