Remove the `ZipXError` v1 legacy classes.
This commit is contained in:
parent
e000552deb
commit
49e313629e
|
@ -1,5 +1,6 @@
|
|||
# 3.0.0 (Next)
|
||||
|
||||
- Remove the `ZipXError` v1 legacy classes.
|
||||
- Raise an error on reading a split archive with `InputStream`. [#349](https://github.com/rubyzip/rubyzip/issues/349)
|
||||
- Ensure `InputStream` raises `GPFBit3Error` for OSX Archive files. [#493](https://github.com/rubyzip/rubyzip/issues/493)
|
||||
- Improve documentation and error messages for `InputStream`. [#196](https://github.com/rubyzip/rubyzip/issues/196)
|
||||
|
|
|
@ -11,12 +11,4 @@ module Zip
|
|||
class GPFBit3Error < Error; end
|
||||
class DecompressionError < Error; end
|
||||
class SplitArchiveError < Error; end
|
||||
|
||||
# Backwards compatibility with v1 (delete in v2)
|
||||
ZipError = Error
|
||||
ZipEntryExistsError = EntryExistsError
|
||||
ZipDestinationFileExistsError = DestinationFileExistsError
|
||||
ZipCompressionMethodError = CompressionMethodError
|
||||
ZipEntryNameError = EntryNameError
|
||||
ZipInternalError = InternalError
|
||||
end
|
||||
|
|
|
@ -1,35 +0,0 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'test_helper'
|
||||
|
||||
class ErrorsTest < MiniTest::Test
|
||||
def test_rescue_legacy_zip_error
|
||||
raise ::Zip::Error
|
||||
rescue ::Zip::ZipError
|
||||
end
|
||||
|
||||
def test_rescue_legacy_zip_entry_exists_error
|
||||
raise ::Zip::EntryExistsError
|
||||
rescue ::Zip::ZipEntryExistsError
|
||||
end
|
||||
|
||||
def test_rescue_legacy_zip_destination_file_exists_error
|
||||
raise ::Zip::DestinationFileExistsError
|
||||
rescue ::Zip::ZipDestinationFileExistsError
|
||||
end
|
||||
|
||||
def test_rescue_legacy_zip_compression_method_error
|
||||
raise ::Zip::CompressionMethodError
|
||||
rescue ::Zip::ZipCompressionMethodError
|
||||
end
|
||||
|
||||
def test_rescue_legacy_zip_entry_name_error
|
||||
raise ::Zip::EntryNameError
|
||||
rescue ::Zip::ZipEntryNameError
|
||||
end
|
||||
|
||||
def test_rescue_legacy_zip_internal_error
|
||||
raise ::Zip::InternalError
|
||||
rescue ::Zip::ZipInternalError
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue