Permalink
Switch branches/tags
Nothing to show
Commits on Feb 21, 2012
  1. Make ZipEntrySet return entries in sorted order.

    This ensures that the entries in the zip file's central directory are grouped
    together by folder, with each folder's directory entry coming before the
    folder's contents, rather than being in the random order dictated by Ruby's
    Hash implementation.
    
    Before:
    
      $ unzip -l before.zip
      Archive:  before.zip
        Length      Date    Time    Name
      ---------  ---------- -----   ----
              7  03-11-2011 14:14   fruit/apple
              8  03-11-2011 14:14   fruit/orange
              6  03-11-2011 14:14   fruit/kiwi
              0  03-11-2011 14:14   uuid/5D8976B4-C3B5-4FC6-A9BA-E307173F0064
              0  03-11-2011 14:14   uuid/
              0  03-11-2011 14:14   uuid/B1D55A18-860D-4BE1-BCB3-7DFBCD7C8BC4
              0  03-11-2011 14:14   uuid/E5E1F8F6-60A3-4733-9648-86711E7CD02A
              0  03-11-2011 14:14   fruit/
              8  03-11-2011 14:14   fruit/mango
              0  03-11-2011 14:14   Vegetable/
              0  03-11-2011 14:14   uuid/47FD714B-1A38-46AB-B9EF-0E8B2098D3A5
              0  03-11-2011 14:14   uuid/8B6FD77A-9A4C-4D74-B1E0-5B0EBBF0C3A9
              7  03-11-2011 14:14   Vegetable/celery
              8  03-11-2011 14:14   Vegetable/carrot
              6  03-11-2011 14:14   Vegetable/bean
      ---------                     -------
             50                     15 files
    
    After:
    
      $ unzip -l after.zip
      Archive:  after.zip
        Length      Date    Time    Name
      ---------  ---------- -----   ----
              0  03-11-2011 14:15   Vegetable/
              6  03-11-2011 14:15   Vegetable/bean
              8  03-11-2011 14:15   Vegetable/carrot
              7  03-11-2011 14:15   Vegetable/celery
              0  03-11-2011 14:15   fruit/
              7  03-11-2011 14:15   fruit/apple
              6  03-11-2011 14:15   fruit/kiwi
              8  03-11-2011 14:15   fruit/mango
              8  03-11-2011 14:15   fruit/orange
              0  03-11-2011 14:15   uuid/
              0  03-11-2011 14:15   uuid/47FD714B-1A38-46AB-B9EF-0E8B2098D3A5
              0  03-11-2011 14:15   uuid/5D8976B4-C3B5-4FC6-A9BA-E307173F0064
              0  03-11-2011 14:15   uuid/8B6FD77A-9A4C-4D74-B1E0-5B0EBBF0C3A9
              0  03-11-2011 14:15   uuid/B1D55A18-860D-4BE1-BCB3-7DFBCD7C8BC4
              0  03-11-2011 14:15   uuid/E5E1F8F6-60A3-4733-9648-86711E7CD02A
      ---------                     -------
             50                     15 files
    
    Similar functionality has been committed before (see commit 74e4512),
    but was reverted in commit 963f23c because it
    breaks things (like EPUB) that require entries to appear in a particular order.
    
    This re-enables sorting by default, but still allows custom ZipEntrySet
    implementations to be used when a custom sort order is required.
    Dwayne Litzenberger committed Feb 21, 2012
Commits on Feb 19, 2012
  1. Merge pull request #27 from skoji/master

    Do not sort entries on ZipOutputStream.close
    simonoff committed Feb 19, 2012
Commits on Feb 8, 2012
  1. version bump

    simonoff committed Feb 8, 2012
Commits on Feb 7, 2012
  1. Merge pull request #25 from 2potatocakes/master

    Added better support for windows mingw users
    Need more testing on windows.
    simonoff committed Feb 7, 2012
Commits on Feb 6, 2012
  1. tidied test

    2potatocakes committed Feb 6, 2012
  2. Fixed replace method

    2potatocakes committed Feb 6, 2012
Commits on Feb 1, 2012
  1. Merge pull request #22 from tigerlily/master

    Get rid of core extensions
    simonoff committed Feb 1, 2012
  2. Get rid of Time extensions

    byroot committed Feb 1, 2012
  3. Get rid of String#lchop

    byroot committed Feb 1, 2012
  4. Get rid of String#ensure_end

    byroot committed Feb 1, 2012
Commits on Jan 31, 2012
Commits on Jan 26, 2012
  1. Fix 1.8.7 EntrySet glob test

    simonoff committed Jan 26, 2012
  2. Merge pull request #21 from skoji/accept_io_inputstream

    added ZipInputStream::open_buffer
    simonoff committed Jan 26, 2012
  3. added ZipInputStream::open_buffer

    skoji committed Jan 26, 2012
Commits on Dec 9, 2011
  1. Merge pull request #19 from williamn/master

    Apply documentation fix
    simonoff committed Dec 9, 2011
Commits on Nov 26, 2011
  1. Release 0.9.5

    aussiegeek committed Nov 26, 2011
Commits on Nov 17, 2011
  1. Code cleanup

    simonoff committed Nov 17, 2011
  2. Fix for UTF-8 filenames

    simonoff committed Nov 17, 2011
  3. Fix constants

    simonoff committed Nov 17, 2011
  4. Gemfile.lock back

    simonoff committed Nov 17, 2011
  5. Merge pull request #17 from alor/master

    unix permission management
    simonoff committed Nov 17, 2011
  6. code cleanup

    alor committed Nov 17, 2011
  7. Merge branch 'perms'

    alor committed Nov 17, 2011
  8. correct test for chmod

    alor committed Nov 17, 2011
  9. original test file

    alor committed Nov 17, 2011
  10. don't make chown dirty (not my job)

    alor committed Nov 17, 2011
  11. test for chmod after commit

    alor committed Nov 17, 2011