Skip to content

Allow rubyzip 3 - #41

Merged
tf merged 1 commit into
codevise:masterfrom
tf:rubyzip-3
Nov 11, 2026
Merged

tf merged 1 commit into
codevise:masterfrom
tf:rubyzip-3

Conversation

@tf

@tf tf commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Version 3 interprets the first argument of Zip::Entry#extract as a path relative to a destination directory, so extracting to an absolute tempfile path no longer works. Copy entry contents to the tempfile via the input stream instead, which works across rubyzip versions.

The rubyzip requirement is loosened to >= 1.1, < 4 so the gem keeps working with released Pageflow versions that still pin rubyzip 1.x.

Adds specs for ZipEntryPaperclipIOAdapter, which previously had no coverage. Verified the suite passes with rubyzip 1.3.0 and 3.7.0.

Version 3 interprets the first argument of Zip::Entry#extract as a
path relative to a destination directory. Copy entry contents to the
tempfile via the input stream instead, which works across versions.
@tf tf added this to the v2.5 milestone Nov 11, 2026
@tf
tf merged commit 06f3245 into codevise:master Nov 11, 2026
2 checks passed
@tf
tf deleted the rubyzip-3 branch November 11, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant