rubyzip/test
Jean Boussier 385ebd054a Ensure compatibility with `--enable-frozen-string-literal`
Ref: https://bugs.ruby-lang.org/issues/20205

In Ruby 3.4 string literals will be "chilled" by default. Meaning
they are still mutable, but will pretend to be frozen.

In most case it has no impact, just emit a few warnings there and
there, but there is one thing it impacts is the `StringIO.new('')`
pattern. `StringIO` checks if the given string is frozen, and if
it is will act as a read only IO.

This breaks rubyzip 2.x.

This commit make the 2.x branch compatible with frozen string literals.
2024-04-08 15:10:07 +01:00
..
crypto Fix warnings: `Use assert_nil if expecting nil` 2017-01-08 15:31:51 +09:00
data Add test for unsupported decompression, e.g bzip2 2020-01-26 15:34:17 +01:00
filesystem Fix Naming/VariableName cop in the tests. 2020-02-29 18:11:52 +00:00
ioextras Ensure compatibility with `--enable-frozen-string-literal` 2024-04-08 15:10:07 +01:00
samples fix rubocop cop Style/SingleSpaceBeforeFirstArg 2015-06-08 10:27:21 +03:00
basic_zip_file_test.rb Fix Naming/VariableName cop in the tests. 2020-02-29 18:11:52 +00:00
bzip2_support_test.rb Add test for unsupported decompression, e.g bzip2 2020-01-26 15:34:17 +01:00
case_sensitivity_test.rb Fix Naming/VariableName cop in the tests. 2020-02-29 18:11:52 +00:00
central_directory_entry_test.rb Fix Style/SignalException cop. 2020-02-15 16:26:32 +00:00
central_directory_test.rb Fix Naming/VariableName cop in the tests. 2020-02-29 18:11:52 +00:00
constants_test.rb Define compression methods 2020-01-26 15:34:17 +01:00
decompressor_test.rb Support Decompressor plugins 2020-01-26 15:34:17 +01:00
deflater_test.rb Fix Naming/VariableName cop in the tests. 2020-02-29 18:11:52 +00:00
encryption_test.rb Ensure compatibility with `--enable-frozen-string-literal` 2024-04-08 15:10:07 +01:00
entry_set_test.rb Fix Naming/VariableName cop in the tests. 2020-02-29 18:11:52 +00:00
entry_test.rb Add Entry#incomplete? 2020-01-26 15:34:17 +01:00
errors_test.rb Fix Style/Encoding cop. 2020-02-15 16:26:32 +00:00
extra_field_test.rb fix rubocop Style/NumericLiterals cop 2015-03-23 19:23:04 +03:00
extra_field_ut_test.rb Fix Layout/EmptyLinesAroundClassBody cop. 2020-02-15 16:26:32 +00:00
file_extract_directory_test.rb Fix Naming/VariableName cop in the tests. 2020-02-29 18:11:52 +00:00
file_extract_test.rb Fix Naming/VariableName cop in the tests. 2020-02-29 18:11:52 +00:00
file_options_test.rb Fix Style/NumericLiteralPrefix cop. 2020-02-15 16:26:32 +00:00
file_permissions_test.rb Fix Naming/AccessorMethodName in the tests. 2020-02-29 18:11:52 +00:00
file_split_test.rb Fix Style/SymbolProc cop. 2020-02-15 16:26:32 +00:00
file_test.rb Ensure compatibility with `--enable-frozen-string-literal` 2024-04-08 15:10:07 +01:00
gentestfiles.rb Fix Naming/VariableName cop in the tests. 2020-02-29 18:11:52 +00:00
inflater_test.rb fix rubocop Style/StringLiterals cop 2015-03-21 11:27:44 +03:00
input_stream_test.rb Ensure compatibility with `--enable-frozen-string-literal` 2024-04-08 15:10:07 +01:00
local_entry_test.rb Fix Naming/VariableName cop in the tests. 2020-02-29 18:11:52 +00:00
output_stream_test.rb Ensure compatibility with `--enable-frozen-string-literal` 2024-04-08 15:10:07 +01:00
pass_thru_compressor_test.rb fix rubocop Style/StringLiterals cop 2015-03-21 11:27:44 +03:00
pass_thru_decompressor_test.rb fix rubocop Style/TrailingBlankLines cop 2015-03-20 22:45:50 +03:00
path_traversal_test.rb Configure Layout/HashAlignment cop. 2020-02-15 16:26:32 +00:00
settings_test.rb Fix Naming/VariableName cop in the tests. 2020-02-29 18:11:52 +00:00
stored_support_test.rb Fix Style/NumericLiterals cop. 2020-02-15 16:26:32 +00:00
test_helper.rb Ensure compatibility with `--enable-frozen-string-literal` 2024-04-08 15:10:07 +01:00
unicode_file_names_and_comments_test.rb Fix Style/Encoding cop. 2020-02-15 16:26:32 +00:00
version_3_api_test.rb Ensure compatibility with `--enable-frozen-string-literal` 2024-04-08 15:10:07 +01:00
zip64_full_test.rb Turn off all terminal output in all tests. 2018-04-04 19:45:54 +01:00
zip64_support_test.rb fix rubocop Style/EmptyLinesAroundClassBody cop 2015-03-21 11:21:26 +03:00