Commit Graph

14 Commits

Author SHA1 Message Date
Robert Haines e10badf68e Fix Style/FrozenStringLiteralComment cop. 2021-05-25 21:24:50 +01:00
Robert Haines 989a565340 Fix Style/TrailingCommaInHashLiteral cop. 2020-02-15 16:26:32 +00:00
Robert Haines 61c83b2a1a Configure Layout/HashAlignment cop. 2020-02-15 16:26:32 +00:00
Jan-Joost Spanjers 2b7268373a Define compression methods 2020-01-26 15:34:17 +01:00
Takumasa Ochi cf91112b57 Apply automatic correction by rubocop 2017-06-29 11:57:12 +09:00
Pavel.Lobashov 8d6f23ba9a fix rubocop Style/SpaceAroundOperators cop 2015-03-22 20:03:50 +03:00
Pavel.Lobashov 7dcba79bb5 fix rubocop Style/TrailingComma cop 2015-03-20 22:44:21 +03:00
Jeremy Stanley af165f5cbd Add read/write support for zip64 extensions
This commit adds the capability of creating archives larger than
4GB via zip64 extensions. It also fixes bugs reading archives of
this size (specifically, the 64-bit offset of the local file
header was not being read from the central directory entry).

To maximize compatibility, zip64 extensions are used only when
required. Unfortunately, at the time we write a local file header,
we don't know the size of the file and thus whether a Zip64
Extended Information Extra Field will be required. Therefore
this commit writes a 'placeholder' extra field to reserve space
for the zip64 entry, which will be written if necessary when
we update the local entry with the final sizes and CRC. I use
the signature "\x99\x99" for this field, following the example
of DotNetZip which does the same.

This commit also adds a rake task, zip64_full_test, which
fully tests zip64 by actually creating and verifying a 4GB zip
file. Please note, however, that this test requires UnZip
version 6.00 or newer, which may not be supplied by your OS.
This test doesn't run along with the main unit tests because
it takes a few minutes to complete.
2013-09-27 20:41:00 -06:00
Alexander Simonov 61ce5dbc5f Refactoring part #2
Rubyzip interface was changed!
2013-06-03 10:56:24 +03:00
Alexander Simonov 974f5675c2 Code refactoring start 2013-06-02 21:33:03 +03:00
Alexander Simonov daa21eb85e Version bump 2012-04-08 00:21:02 +03:00
Lucas Hills c68770f3a3 Added better support for ruby187 mingw developers 2012-02-06 11:59:11 +11:00
Alexander Simonov 9aa578e487 Fix constants 2011-11-17 22:27:26 +02:00
Xavier Shay ec04e20b21 Extract constants into a file to avoid redefinition (and associated warnings) 2011-11-14 18:48:34 +11:00