Official Rubyzip repository
This is a "dummy" release to warn about breaking changes coming in version 3.0.
restore_times
and restore_permissions
options to Zip::File.new
#413
false
to preserve the current behavior, for the time being. If you have explicitly set either to true
, it will now have an effect.mtime
, atime
, ctime
) fields. #421
Zip::File
did not pass the options to Zip::Entry
in some cases. #423
restore_times
in this release does nothing on Windows and only restores mtime
, not atime
or ctime
.Zip::File.open
to take an options hash like Zip::File.new
#418
warn
, instead of a mix of puts
and warn
#416
tmpdir
requirement #411
Tooling
Security
validate_entry_sizes
option to true
, so that callers can trust an entry's reported size when using extract
#403
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
Security
validate_entry_sizes
option so that callers can trust an entry's reported size when using extract
#403
false
for backward compatibility in this release, but you are strongly encouraged to set it to true
. It will default to true
in rubyzip 2.0.New Feature
add_stored
method to simplify adding entries without compression #366
Tooling / Documentation
pathname
explicitly #388 (fixes regression in 1.2.2 from #376)Tooling / Documentation:
Since the GitHub release information for 1.2.2 is missing, I will also include it here:
NB: This release drops support for extracting symlinks, because there was no clear way to support this securely. See https://github.com/rubyzip/rubyzip/pull/376#issue-210954555 for details.
close
on StringIO-backed zip file #353
Zip.force_entry_names_encoding
option #340
Tooling / Documentation: