Repository navigation
[PIMCORE-6187] Support rubyzip 3 - #9
Open
erikkessler1 wants to merge 3 commits into
Open
erikkessler1 wants to merge 3 commits into
erikkessler1 wants to merge 3 commits into
Conversation
rubyzip 3 treats the path passed to Zip::Entry#extract as relative to a destination directory (the current directory by default), so extracting to roo's absolute tmpdir paths wrote under the wrong directory and every xlsx open failed with ENOENT. Pass the tmpdir as destination_directory instead. Require rubyzip >= 3.4.0, which fixes the Zip::Entry#extract path traversal in CVE-2026-85396. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Declare csv and matrix as dependencies. csv stopped being a default gem in Ruby 3.4 and matrix in Ruby 3.1, so requiring them fails under bundler without them. - Pass the options hash explicitly in the Roo::Spreadsheet.open spec so the mock matches the positional hash roo passes. - Replace File.exists?, removed in Ruby 3.2, and assert_equal nil, which Minitest 6 rejects, in the minitest suite. - Exclude .simplecov from RuboCop. rubocop 1.0's Layout/BlockAlignment crashes on a file that is a single top-level block. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only Roo::Base#to_matrix uses matrix, and it requires it lazily, so roo loads without it. Apps that call to_matrix need matrix in their own bundle. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
This PR requires rubyzip 3.4 so that we can move away from the vulnerable rubyzip 2.
prime: @fgarces
PIMCORE-6187