treewide: future-proof frozen_string_literal changes
commite9a73410630fbc46f547ab5c5d24efb2c569bb69
authorEric Wong <bofh@yhbt.net>
Thu, 8 Feb 2024 12:16:31 +0000 (8 12:16 +0000)
committerEric Wong <bofh@yhbt.net>
Sun, 31 Mar 2024 22:50:00 +0000 (31 22:50 +0000)
treeaa8681dae4e4689490d7135cb923802063b27705
parentadc5c162613053d88c076e5d441b4368a97885f4
treewide: future-proof frozen_string_literal changes

Once again Ruby seems ready to introduce more incompatibilities
and force busywork upon maintainers[1].  In order to avoid
incompatibilities in the future, I used a Perl script[2] to
prepend `frozen_string_literal: false' to every Ruby file.

Somebody interested will have to go through every Ruby source
file and enable frozen_string_literal once they've thoroughly
verified it's safe to do so.

[1] https://bugs.ruby-lang.org/issues/20205
[2] https://yhbt.net/add-fsl.git/74d7689/s/?b=add-fsl.perl
66 files changed:
Rakefile
bin/unicorn
bin/unicorn_rails
examples/big_app_gc.rb
examples/echo.ru
examples/logger_mp_safe.rb
examples/unicorn.conf.minimal.rb
examples/unicorn.conf.rb
ext/unicorn_http/extconf.rb
lib/unicorn.rb
lib/unicorn/app/old_rails.rb
lib/unicorn/app/old_rails/static.rb
lib/unicorn/cgi_wrapper.rb
lib/unicorn/configurator.rb
lib/unicorn/const.rb
lib/unicorn/http_request.rb
lib/unicorn/http_response.rb
lib/unicorn/http_server.rb
lib/unicorn/launcher.rb
lib/unicorn/oob_gc.rb
lib/unicorn/preread_input.rb
lib/unicorn/select_waiter.rb
lib/unicorn/socket_helper.rb
lib/unicorn/stream_input.rb
lib/unicorn/tee_input.rb
lib/unicorn/tmpio.rb
lib/unicorn/util.rb
lib/unicorn/worker.rb
setup.rb
t/broken-app.ru
t/client_body_buffer_size.ru
t/detach.ru
t/env.ru
t/fails-rack-lint.ru
t/heartbeat-timeout.ru
t/integration.ru
t/listener_names.ru
t/oob_gc.ru
t/oob_gc_path.ru
t/pid.ru
t/preread_input.ru
t/reopen-logs.ru
t/t0013.ru
t/t0014.ru
t/t0301.ru
test/aggregate.rb
test/benchmark/dd.ru
test/benchmark/ddstream.ru
test/benchmark/readinput.ru
test/benchmark/stack.ru
test/exec/test_exec.rb
test/test_helper.rb
test/unit/test_ccc.rb
test/unit/test_configurator.rb
test/unit/test_droplet.rb
test/unit/test_http_parser.rb
test/unit/test_http_parser_ng.rb
test/unit/test_request.rb
test/unit/test_server.rb
test/unit/test_signals.rb
test/unit/test_socket_helper.rb
test/unit/test_stream_input.rb
test/unit/test_tee_input.rb
test/unit/test_util.rb
test/unit/test_waiter.rb
unicorn.gemspec