rubyzip/lib/zip/ioextras
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
..
abstract_input_stream.rb Ensure compatibility with `--enable-frozen-string-literal` 2024-04-08 15:10:07 +01:00
abstract_output_stream.rb Fix Style/SpecialGlobalVars cop. 2020-02-15 16:26:32 +00:00