Skip to content

Commit 348f9fc

Browse files
author
taca
committed
archivers/ruby-zip: update to 3.2.2
3.0.0 (2025-07-28) * 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: (Ommited) 3.0.1 (2025-08-08) * 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 3.0.2 (2025-08-21) * 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. 3.1.0 (2025-09-06) * Support AES decryption. #579 and #645 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. 3.1.1 (2025-09-26) * 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 3.2.0 (2025-10-14) * Add option to suppress extra fields. #653 (fixes #34, #398 and #648) 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. 3.2.1 (2025-10-24) * Fix Entry#gather_fileinfo_from_srcpath error messages. #654 Tooling/internal: * Add some simple benchmarks for reading the cdir. 3.2.2 (2025-11-02) * 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.
1 parent dea77d2 commit 348f9fc

3 files changed

Lines changed: 20 additions & 9 deletions

File tree

archivers/ruby-zip/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# $NetBSD: Makefile,v 1.23 2025/05/21 14:15:20 taca Exp $
1+
# $NetBSD: Makefile,v 1.24 2026/02/03 14:40:28 taca Exp $
22

3-
DISTNAME= rubyzip-2.3.2
3+
DISTNAME= rubyzip-3.2.2
44
PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:S/ruby//}
55
CATEGORIES= archivers
66

archivers/ruby-zip/PLIST

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,42 @@
1-
@comment $NetBSD: PLIST,v 1.15 2020/03/15 15:52:07 taca Exp $
1+
@comment $NetBSD: PLIST,v 1.16 2026/02/03 14:40:28 taca Exp $
22
${GEM_HOME}/cache/${GEM_NAME}.gem
3+
${GEM_LIBDIR}/Changelog.md
4+
${GEM_LIBDIR}/LICENSE.md
35
${GEM_LIBDIR}/README.md
46
${GEM_LIBDIR}/Rakefile
5-
${GEM_LIBDIR}/TODO
67
${GEM_LIBDIR}/lib/zip.rb
78
${GEM_LIBDIR}/lib/zip/central_directory.rb
89
${GEM_LIBDIR}/lib/zip/compressor.rb
910
${GEM_LIBDIR}/lib/zip/constants.rb
11+
${GEM_LIBDIR}/lib/zip/crypto/aes_encryption.rb
1012
${GEM_LIBDIR}/lib/zip/crypto/decrypted_io.rb
1113
${GEM_LIBDIR}/lib/zip/crypto/encryption.rb
1214
${GEM_LIBDIR}/lib/zip/crypto/null_encryption.rb
1315
${GEM_LIBDIR}/lib/zip/crypto/traditional_encryption.rb
1416
${GEM_LIBDIR}/lib/zip/decompressor.rb
1517
${GEM_LIBDIR}/lib/zip/deflater.rb
18+
${GEM_LIBDIR}/lib/zip/dirtyable.rb
1619
${GEM_LIBDIR}/lib/zip/dos_time.rb
1720
${GEM_LIBDIR}/lib/zip/entry.rb
1821
${GEM_LIBDIR}/lib/zip/entry_set.rb
1922
${GEM_LIBDIR}/lib/zip/errors.rb
2023
${GEM_LIBDIR}/lib/zip/extra_field.rb
24+
${GEM_LIBDIR}/lib/zip/extra_field/aes.rb
2125
${GEM_LIBDIR}/lib/zip/extra_field/generic.rb
2226
${GEM_LIBDIR}/lib/zip/extra_field/ntfs.rb
2327
${GEM_LIBDIR}/lib/zip/extra_field/old_unix.rb
2428
${GEM_LIBDIR}/lib/zip/extra_field/universal_time.rb
2529
${GEM_LIBDIR}/lib/zip/extra_field/unix.rb
30+
${GEM_LIBDIR}/lib/zip/extra_field/unknown.rb
2631
${GEM_LIBDIR}/lib/zip/extra_field/zip64.rb
27-
${GEM_LIBDIR}/lib/zip/extra_field/zip64_placeholder.rb
2832
${GEM_LIBDIR}/lib/zip/file.rb
33+
${GEM_LIBDIR}/lib/zip/file_split.rb
2934
${GEM_LIBDIR}/lib/zip/filesystem.rb
35+
${GEM_LIBDIR}/lib/zip/filesystem/dir.rb
36+
${GEM_LIBDIR}/lib/zip/filesystem/directory_iterator.rb
37+
${GEM_LIBDIR}/lib/zip/filesystem/file.rb
38+
${GEM_LIBDIR}/lib/zip/filesystem/file_stat.rb
39+
${GEM_LIBDIR}/lib/zip/filesystem/zip_file_name_mapper.rb
3040
${GEM_LIBDIR}/lib/zip/inflater.rb
3141
${GEM_LIBDIR}/lib/zip/input_stream.rb
3242
${GEM_LIBDIR}/lib/zip/ioextras.rb
@@ -41,6 +51,7 @@ ${GEM_LIBDIR}/lib/zip/pass_thru_decompressor.rb
4151
${GEM_LIBDIR}/lib/zip/streamable_directory.rb
4252
${GEM_LIBDIR}/lib/zip/streamable_stream.rb
4353
${GEM_LIBDIR}/lib/zip/version.rb
54+
${GEM_LIBDIR}/rubyzip.gemspec
4455
${GEM_LIBDIR}/samples/example.rb
4556
${GEM_LIBDIR}/samples/example_filesystem.rb
4657
${GEM_LIBDIR}/samples/example_recursive.rb

archivers/ruby-zip/distinfo

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
$NetBSD: distinfo,v 1.22 2021/10/26 09:57:17 nia Exp $
1+
$NetBSD: distinfo,v 1.23 2026/02/03 14:40:28 taca Exp $
22

3-
BLAKE2s (rubyzip-2.3.2.gem) = f6ee72b0776f8791604bcaf5a2094faa6779a1ce92db0af2c515a75aedf88e3a
4-
SHA512 (rubyzip-2.3.2.gem) = ded141768b205cca10da6eed62cb744111008703f0cd1377b2edba59f0fa66e3a209e43c10a86749088c9517238b4dcac6173b56ebca4e4b8340632d1794bcd2
5-
Size (rubyzip-2.3.2.gem) = 40448 bytes
3+
BLAKE2s (rubyzip-3.2.2.gem) = fe78530cbc5002f17dc320977d3ba59f21bd667351acde27e33d6af0b9f80789
4+
SHA512 (rubyzip-3.2.2.gem) = 80c373455fba0aca30e841ce4de546913530cca662acfe26d71c82e78201a0cf05c71ea107c7bba856f1ec140a1dba8c6f2c51bc8f066866279bf9bed1adde93
5+
Size (rubyzip-3.2.2.gem) = 56832 bytes

0 commit comments

Comments
 (0)