8000 Fix restore options consistency. by hainesr · Pull Request #486 · rubyzip/rubyzip · GitHub
[go: up one dir, main page]

Skip to content

Fix restore options consistency. #486

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 6, 2021

Conversation

hainesr
Copy link
Member
@hainesr hainesr commented May 31, 2021

This PR is, finally, to finish off the work to fix and make consistent the options to restore file timestamps and file permissions on extraction.

The default options are now specified at the top level so that both File and Entry get a consistent view of them. They can still be overridden per-File - and per-Entry if needs be.

Additionally this PR enables timestamps to be restored on Windows.

This PR closes #422 and fixes #336.

@coveralls
Copy link
coveralls commented May 31, 2021

Coverage Status

Coverage increased (+0.005%) to 96.76% when pulling ada3608 on hainesr:fix-restore-options into 098bce3 on rubyzip:master.

@hainesr hainesr requested a review from jdleesmiller May 31, 2021 17:16
@hainesr
Copy link
Member Author
hainesr commented May 31, 2021

I have submitted this as a PR, rather than just merging it, as it is a change in defaults, etc.

jspanjers added a commit to jspanjers/rubyzip that referenced this pull request Jun 5, 2021
jspanjers added a commit to jspanjers/rubyzip that referenced this pull request Jun 5, 2021
jspanjers added a commit to jspanjers/rubyzip that referenced this pull request Jun 5, 2021
jspanjers added a commit to jspanjers/rubyzip that referenced this pull request Jun 5, 2021
jspanjers added a commit to jspanjers/rubyzip that referenced this pull request Jun 5, 2021
jspanjers added a commit to jspanjers/rubyzip that referenced this pull request Jun 5, 2021
jspanjers added a commit to jspanjers/rubyzip that referenced this pull request Jun 5, 2021
jspanjers added a commit to jspanjers/rubyzip that referenced this pull request Jun 5, 2021
jspanjers added a commit to jspanjers/rubyzip that referenced this pull request Jun 5, 2021
jspanjers added a commit to jspanjers/rubyzip that referenced this pull request Jun 5, 2021
jspanjers added a commit to jspanjers/rubyzip that referenced this pull request Jun 5, 2021
jspanjers added a commit to jspanjers/rubyzip that referenced this pull request Jun 5, 2021
jspanjers added a commit to jspanjers/rubyzip that referenced this pull request Jun 5, 2021
jspanjers added a commit to jspanjers/rubyzip that referenced this pull request Jun 5, 2021
jspanjers added a commit to jspanjers/rubyzip that referenced this pull request Jun 6, 2021
jspanjers added a commit to jspanjers/rubyzip that referenced this pull request Jun 6, 2021
jspanjers added a commit to jspanjers/rubyzip that referenced this pull request Jun 6, 2021
jspanjers added a commit to jspanjers/rubyzip that referenced this pull request Jun 6, 2021
jspanjers added a commit to jspanjers/rubyzip that referenced this pull request Jun 6, 2021
jspanjers added a commit to jspanjers/rubyzip that referenced this pull request Jun 6, 2021
hainesr pushed a commit that referenced this pull request Jun 6, 2021
jspanjers added a commit to jspanjers/rubyzip that referenced this pull request Jun 6, 2021
jspanjers added a commit to jspanjers/rubyzip that referenced this pull request Jun 6, 2021
hainesr added 4 commits June 6, 2021 15:55
This will ensure consistency between `File` and `Entry`.
Was only being done on Unix-type filesystems for some reason. Moved code
so that it is run for all files, whatever the underlying platform.
@hainesr hainesr force-pushed the fix-restore-options branch from 6436bbe to 3ca6c7b Compare June 6, 2021 14:56
@jspanjers
Copy link
Contributor

@hainesr , could you pick the last to commits from #490 to fix the Windows tests?

@hainesr hainesr merged commit 4a01537 into rubyzip:master Jun 6, 2021
hainesr pushed a commit that referenced this pull request Jun 6, 2021
@hainesr hainesr deleted the fix-restore-options branch June 6, 2021 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants
0