about summary refs log tree commit homepage
path: root/bin
diff options
context:
space:
mode:
authorEric Wong <bofh@yhbt.net>2024-02-08 12:16:31 +0000
committerEric Wong <bofh@yhbt.net>2024-03-31 22:50:00 +0000
commite9a73410630fbc46f547ab5c5d24efb2c569bb69 (patch)
treeaa8681dae4e4689490d7135cb923802063b27705 /bin
parentadc5c162613053d88c076e5d441b4368a97885f4 (diff)
downloadunicorn-e9a73410630fbc46f547ab5c5d24efb2c569bb69.tar.gz
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
Diffstat (limited to 'bin')
-rwxr-xr-xbin/unicorn1
-rwxr-xr-xbin/unicorn_rails1
2 files changed, 2 insertions, 0 deletions
diff --git a/bin/unicorn b/bin/unicorn
index 00c8464..af8353c 100755
--- a/bin/unicorn
+++ b/bin/unicorn
@@ -1,5 +1,6 @@
 #!/this/will/be/overwritten/or/wrapped/anyways/do/not/worry/ruby
 # -*- encoding: binary -*-
+# frozen_string_literal: false
 require 'unicorn/launcher'
 require 'optparse'
 
diff --git a/bin/unicorn_rails b/bin/unicorn_rails
index 354c1df..374fd8e 100755
--- a/bin/unicorn_rails
+++ b/bin/unicorn_rails
@@ -1,5 +1,6 @@
 #!/this/will/be/overwritten/or/wrapped/anyways/do/not/worry/ruby
 # -*- encoding: binary -*-
+# frozen_string_literal: false
 require 'unicorn/launcher'
 require 'optparse'
 require 'fileutils'