Skip to content

chore(deps): update dependency rubyzip to v3 - #2147

Open
gdrenovate wants to merge 1 commit into
masterfrom
renovate/rubyzip-3.x
Open

gdrenovate wants to merge 1 commit into
masterfrom
renovate/rubyzip-3.x

Conversation

@gdrenovate

Copy link
Copy Markdown
Collaborator

This PR contains the following updates:

Package Change Age Confidence
rubyzip (changelog) '~> 1.2', '>= 1.2.1' → '~> 3.0', '>= 3.7.1' age confidence

Release Notes

rubyzip/rubyzip (rubyzip)

v3.7.1

Compare Source

  • Bound the total local header data read when loading the central directory.
  • Tighten AES entry handling in InputStream and DecryptedIo.
  • Bound Inflater memory use on highly compressible entries. #​681

Tooling/internal:

  • Refine AGENTS.md.

v3.7.0

Compare Source

  • Add AES Encryption. #​678
  • Add methods to Zip::File for bulk adding and extraction of entries. #​679
  • Support setting the encoding of an InputStream. #​668

Tooling/internal:

  • Add an AGENTS.md for those using such.
  • Attempt to fix transient failures in encryption tests.

v3.6.0

Compare Source

  • Forward options from OutputStream.open without a block. #​674
  • Clamp DOS date and time to the range the fields can hold. #​671

Tooling/internal:

  • Unix owner ids no longer default to 0 (root).
  • Legacy Unix owner ids no longer default to 0 (root).
  • Handle short reads in copy_stream_n. #​675
  • Retain required Zip64 offset fields. #​676
  • Load openssl only when AES encryption is used. #​672

v3.5.0

Compare Source

  • Fix the link to Ruby doc in README to the latest version. #​670
  • Support passing decrypter to encrypted entry via get_input_stream. #​667

v3.4.1

Compare Source

  • Fixed DecryptedIo to only perform integrity once. #​665

v3.4.0

Compare Source

  • Prevent entries from being extracted outside specified directory. #​664. Thanks to @​connorshea for additional reporting on this.
  • Use SecureRandom in place of insecure Random.
  • Stop reading the central directory on first error.
  • Add a check on number of declared entries in a zip file. Thanks to @​connorshea for reporting this.
  • Add note to README re reporting security issues privately.
  • Add lib/rubyzip.rb for Bundler auto-require. #​660

Tooling/internal:

  • Replace the test Excel spreadsheet fixture.
  • Use assert_silent shorthand when expecting no output from a test.
  • Clean up CentralDirectory instance variables.
  • Add Ruby 4.0 to the Windows CI and update CI matrix in the README.
  • List ZIP docs that we store here and link to online versions. #​657

v3.3.1

Compare Source

  • Reinstate default param for InputStream#sysread. #​663

v3.3.0

Compare Source

  • Refactor InputStream and AbstractInputStream.
    #​661

Tooling/internal:

  • Update Actions to use checkout@​v5.
  • Add Ruby4.0 to the CI matrix. #​659

v3.2.2

Compare Source

  • Fix reading EOCDs when header signatures are in an Entry payload. #​656

Tooling/internal:

  • Stop using macos-13 runners in GitHub Actions.
  • Update YJIT GitHub Actions runners.

v3.2.1

Compare Source

  • Fix Entry#gather_fileinfo_from_srcpath error messages. #​654

Tooling/internal:

  • Add some simple benchmarks for reading the cdir.

v3.2.0

Compare Source

Tooling/internal:

  • Entry: clean up reading and writing the Central Directory headers.
  • Improve Zip64 tests for OutputStream.
  • Extra fields: use symbols as indices as opposed to strings.
  • Ensure that Unknown extra field has a superclass.

v3.1.1

Compare Source

  • Improve the IO pipeline when decompressing. #​649 (which also fixes #​647)

Tooling/internal:

  • Improve the DecryptedIo class with various updates and optimizations.
  • Remove the NullDecrypter class.
  • Properly convert the test suite to use minitest.
  • Move all test helper code into separate files.
  • Updates to the Actions CI, including new OS versions.
  • Update rubocop versions and fix resultant cop failures. #​646

v3.1.0

Compare Source

Tooling/internal:

  • Add various useful zip specification documents to the repo for ease of finding them in the future. These are not included in the gem release.

v3.0.2

Compare Source

  • Fix InputStream#sysread to handle frozen string literals. #​643
  • Ensure that we don't flush too often when deflating. #​322
  • Stop print causing Zlib errors. #​642
  • Ensure that print and printf return nil.

v3.0.1

Compare Source

  • Restore Zip::File's Enumerable status. #​641
  • Escape filename pattern when matching in Entry#name_safe?. #​639
  • Eagerly require gem version. #​637
  • Fix direct require of Entry by requiring constants. #​636

v3.0.0

Compare Source

  • Fix de facto regression for input streams.
  • Fix File#write_buffer to always return the given io.
  • Add Entry#absolute_time? and DOSTime#absolute_time? methods.
  • Use explicit named parameters for File methods.
  • Ensure that entries can be extracted safely without path traversal. #​540
  • Enable Zip64 by default.
  • Rename GPFBit3Error to StreamingError.
  • Ensure that Entry.ftype is correct via InputStream. #​533
  • Add Entry#zip64? as a better way detect Zip64 entries.
  • Implement Zip::FileSystem::ZipFsFile#symlink?.
  • Remove File::add_buffer from the API.
  • Fix OutputStream#put_next_entry to preserve StreamableStreams. #​503
  • Ensure File.open_buffer doesn't rewrite unchanged data.
  • Add CentralDirectory#count_entries and File::count_entries.
  • Fix reading unknown extra fields. #​505
  • Fix reading zip files with max length file comment. #​508
  • Fix reading zip64 files with max length file comment. #​509
  • Don't silently alter zip files opened with Zip::sort_entries. #​329
  • Use named parameters for optional arguments in the public API.
  • Raise an error if entry names exceed 65,535 characters. #​247
  • Remove the ZipXError v1 legacy classes.
  • Raise an error on reading a split archive with InputStream. #​349
  • Ensure InputStream raises GPFBit3Error for OSX Archive files. #​493
  • Improve documentation and error messages for InputStream. #​196
  • Fix zip file-level comment is not read from zip64 files. #​492
  • Fix Zip::OutputStream.write_buffer doesn't work with Tempfiles. #​265
  • Reinstate normalising pathname separators to /. #​487
  • Fix restore options consistency. #​486
  • View and/or preserve original date created, date modified? (Windows). #​336
  • Fix frozen string literal error. #​475
  • Set the default Entry time to the file's mtime on Windows. #​465
  • Ensure that Entry#time= sets times as DOSTime objects. #​481
  • Replace and deprecate Zip::DOSTime#dos_equals. #​464
  • Fix loading extra fields. #​459
  • Set compression level on a per-zipfile basis. #​448
  • Fix input stream partial read error. #​462
  • Fix zlib deflate buffer growth. #​447

Tooling/internal:

  • No longer test setting $\ in tests.
  • Add a test to ensure correct version number format.
  • Update the README with new Ruby version compatability information.
  • Fix various issues with JRuby tests.
  • Update gem dependency versions.
  • Add Ruby 3.4 to the CI.
  • Fix mispelled variable names in the crypto classes.
  • Only use the Zip64 CDIR end locator if needed.
  • Prevent unnecessary Zip64 data being stored.
  • Abstract marking various things as 'dirty' into Dirtyable for reuse.
  • Properly test File#mkdir.
  • Remove unused private method File#directory?.
  • Expose the EntrySet more cleanly through CentralDirectory.
  • Zip::File no longer subclasses Zip::CentralDirectory.
  • Configure Coveralls to not report a failure on minor decreases of test coverage. #​491
  • Extract the file splitting code out into its own module.
  • Refactor, and tidy up, the Zip::Filesystem classes for improved maintainability.
  • Fix Windows tests. #​489
  • Refactor assert_forwarded so it does not need ObjectSpace._id2ref or eval. #​483
  • Add GitHub Actions CI infrastructure. #​469
  • Add Ruby 3.0 to CI. #​474
  • Fix the compression level tests to compare relative sizes. #​473
  • Simplify assertions in basic_zip_file_test. #​470
  • Remove compare_enumerables from test_helper.rb. #​468
  • Use correct SPDX license identifier. #​458
  • Enable truffle ruby in Travis CI. #​450
  • Update rubocop again and run it in CI. #​444
  • Fix a test that was incorrect on big-endian architectures. #​445

v2.4.1

Compare Source

This is a re-release of version 2.4 with a full version number string. We need to move to version 2.4.1 due to the canonical version number 2.4 now being taken in Rubygems.

Tooling:

  • Opt-in for MFA requirement explicitly on 2.4 branch.

v2.3.2

Compare Source

  • A "dummy" release to warn about breaking changes coming in version 3.0. This updated version uses the Gem post_install_message instead of printing to STDERR.

v2.3.1

Compare Source

  • A "dummy" release to warn about breaking changes coming in version 3.0.

v2.3.0

Compare Source

  • Fix frozen string literal error #​431
  • Set OutputStream.write_buffer's buffer to binmode #​439
  • Upgrade rubocop and fix various linting complaints #​437 #​440

Tooling:

  • Add a bin/console script for development #​420
  • Update rake requirement (development dependency only) to fix a security alert.

v2.2.0

Compare Source

  • Add support for decompression plugin gems #​427

v2.1.0

Compare Source

  • Fix (at least partially) the restore_times and restore_permissions options to Zip::File.new #​413
    • Previously, neither option did anything, regardless of what it was set to. We have therefore defaulted them to false to preserve the current behavior, for the time being. If you have explicitly set either to true, it will now have an effect.
    • Fix handling of UniversalTime (mtime, atime, ctime) fields. #​421
    • Previously, Zip::File did not pass the options to Zip::Entry in some cases. #​423
    • Note that restore_times in this release does nothing on Windows and only restores mtime, not atime or ctime.
  • Allow Zip::File.open to take an options hash like Zip::File.new #​418
  • Always print warnings with warn, instead of a mix of puts and warn #​416
  • Create temporary files in the system temporary directory instead of the directory of the zip file #​411
  • Drop unused tmpdir requirement #​411

Tooling

  • Move CI to xenial and include jruby on JDK11 #​419

v2.0.0

Compare Source

Security

  • Default the validate_entry_sizes option to true, so that callers can trust an entry's reported size when using extract #​403
    • This option defaulted to false in 1.3.0 for backward compatibility, but it now defaults to true. If you are using an older version of ruby and can't yet upgrade to 2.x, you can still use 1.3.0 and set the option to true.

Tooling / Documentation

  • Remove test files from the gem to avoid problems with antivirus detections on the test files #​405 / #​384
  • Drop support for unsupported ruby versions #​406

Configuration

📅 Schedule: (in timezone Europe/Prague)

  • Branch creation
    • Between 09:00 AM and 03:59 PM, only on Monday (* 9-15 * * 1)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

  • Run on-demand review

This review includes 1 billable file and costs up to $0.25.

Or wait 59 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 98b44ab6-2037-4aa1-bd44-129dbc238f67
Commits

Reviewing files that changed from the base of the PR and between 9ee53a1 and 53d0350.

Files selected for processing: 1

  • gooddata.gemspec
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant