Bump rubyzip to support 3.x and widen addressable range#39
Merged
fbacall merged 1 commit intoResearchObject:masterfrom May 7, 2026
Merged
Bump rubyzip to support 3.x and widen addressable range#39fbacall merged 1 commit intoResearchObject:masterfrom
fbacall merged 1 commit intoResearchObject:masterfrom
Conversation
Widens dependency pins: - rubyzip: ~> 2.0.0 -> >= 2.3, < 4 (allows rubyzip 3.x) - addressable: >= 2.7, < 2.9 -> >= 2.7, < 3 rubyzip 3.0 deprecates the positional Zip::File::CREATE flag in favour of the create: true keyword argument. The keyword form is also supported by rubyzip >= 2.3, so writer.rb is updated to use it on both lines. rubyzip 3.0 requires Ruby >= 2.7, so Ruby 2.6 is removed from the CI matrix to reflect the new minimun supported Ruby version. Verified by running the full test suite (84 tests, 636 assertions, 100% pass) on: - Ruby 2.7.8 with rubyzip 2.4.1, addressable 2.9.0 - Ruby 3.4.4 with rubyzip 3.3.0, addressable 2.9.0 plus a write_zip / read_zip round-trip smoke test.
fbacall
approved these changes
May 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds support for rubyzip 3.x and updates dependency constraints accordingly.
rubyzipruntime dep from~> 2.0.0to>= 2.3, < 4.addressableruntime dep from>= 2.7, < 2.9to>= 2.7, < 3.Motivation
This PR enables compatibility with Rubyzip 3.x, which is required in newer Ruby/Rails environments. Current dependency constraints prevent upgrading without relaxing version bounds in downstream applications (e.g. when used alongside roo >= 2.4 and addressable 2.9.x).
Issue #30 tracks Rubyzip 3.0 support; this PR addresses that requirement.
Verification
Ruby compatibility
Rubyzip 3.x requires Ruby >= 2.7, therefore Ruby 2.6 is removed from the CI matrix.