Class: Zip::ZipCentralDirectory

Inherits:
Object
  • Object
show all
Defined in:
lib/buildr/packaging/zip.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#write_to_stream(io) ⇒ Object

Patch to add entries in alphabetical order.



37
38
39
40
41
# File 'lib/buildr/packaging/zip.rb', line 37

def write_to_stream(io)
  offset = io.tell
  @entrySet.sort { |a,b| a.name <=> b.name }.each { |entry| entry.write_c_dir_entry(io) }
  write_e_o_c_d(io, offset)
end