Commit Graph

10 Commits

Author SHA1 Message Date
Robert Haines f033ae760d Use named parameters for `File::new`.
This is a breaking change, but now is the time to do this as we've
already done the same for `Entry::new`.
2021-06-27 10:20:11 +01:00
Jan-Joost Spanjers 4a01537f32 Fix restore permissons test on Windows 2021-06-06 16:17:22 +01:00
Jan-Joost Spanjers 52bcfc72f9 Revert "REVERT ME: This disables a test fixed by #486"
This reverts commit 6ac2cb207d.
2021-06-06 16:17:22 +01:00
Robert Haines 3260e4e666 Add some tests to ensure the default behaviour sticks. 2021-06-06 16:17:22 +01:00
Jan-Joost Spanjers 6ac2cb207d REVERT ME: This disables a test fixed by #486 2021-06-06 14:44:20 +01:00
Robert Haines e10badf68e Fix Style/FrozenStringLiteralComment cop. 2021-05-25 21:24:50 +01:00
Robert Haines fae95e3c29 Fix Style/NumericLiteralPrefix cop. 2020-02-15 16:26:32 +00:00
Robert Haines cef3bc0784 A test to ensure find/get entry calls agree. 2019-10-31 17:27:19 +00:00
Robert Haines 1a21f39e82 Add a test for restoring file permissions on extract. 2019-10-20 19:30:34 +01:00
Robert Haines 8c694d38ee Add functionality to restore file timestamps.
There has been an option in `Zip::File` (`:restore_times`) for a long
time, but it seems it has never worked. Firstly the actual timestamp of
an added file wasn't being saved, and secondly an extracted file wasn't
having its timestamp set correctly.

This commit fixes both of those issues, and adds tests to make sure.
2019-10-20 19:30:27 +01:00