rubyzip/lib/zip/extra_field
Tsutomu Katsube 56954b0b59 Suppress "literal string will be frozen in the future" warning
Ref: https://bugs.ruby-lang.org/issues/20205

This patch will suppress the "literal string will be frozen in the
future" warning on the 2.4 branch.

Steps to reproduce
---

Run the following commands with ruby 3.4.0preview1:

```console
$ cd /tmp
$ git clone git@github.com:rubyzip/rubyzip.git
$ cd rubyzip
$ git switch 2.4
$ bundle install
$ ruby -I lib -W:deprecated -e '
require "zip"

Zip::File.open("test/data/ntfs.zip") do |zip_file|
  zip_file.each do |entry|
    puts entry.get_input_stream.read
  end
end
'
```

Expected result
---

```console
ntfs test
```

Actual result
---

```console
/private/tmp/rubyzip/lib/zip/extra_field/ntfs.rb:54: warning: literal string will be frozen in the future
ntfs test
```

Environment
---

```console
$ ruby -v
ruby 3.4.0preview1 (2024-05-16 master 9d69619623) [x86_64-darwin23]
```
2024-09-21 09:06:36 +09:00
..
generic.rb Fix Style/UnpackFirst cop. 2020-02-15 16:26:32 +00:00
ntfs.rb Suppress "literal string will be frozen in the future" warning 2024-09-21 09:06:36 +09:00
old_unix.rb Configure Naming/MemoizedInstanceVariableName in source. 2020-02-29 18:11:52 +00:00
universal_time.rb Fix Layout/EmptyLineAfterGuardClause cop. 2020-02-15 16:26:32 +00:00
unix.rb Configure Naming/MemoizedInstanceVariableName in source. 2020-02-29 18:11:52 +00:00
zip64.rb Ensure compatibility with `--enable-frozen-string-literal` 2024-04-08 15:10:07 +01:00
zip64_placeholder.rb Apply automatic correction by rubocop 2017-06-29 11:57:12 +09:00