summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2023-03-08 13:37:25 +0900
committerGitHub <noreply@github.com>2023-03-08 17:37:25 +1300
commitb6e34faae2f90a6f2fcd995d3ceb148ce0d433ab (patch)
treec152f0935ab8d562dce852b73d1d9d98af2a0596
parent8e8869d625e73e16b576b6d31b50208e9ec8002f (diff)
downloadrack-b6e34faae2f90a6f2fcd995d3ceb148ce0d433ab.tar.gz
Add frozen_string_literal magic comment to all .rb files (#2045)
-rw-r--r--lib/rack/bad_request.rb2
-rw-r--r--lib/rack/headers.rb2
-rw-r--r--test/psych_fix.rb2
3 files changed, 6 insertions, 0 deletions
diff --git a/lib/rack/bad_request.rb b/lib/rack/bad_request.rb
index 9c675126..8eaa94e6 100644
--- a/lib/rack/bad_request.rb
+++ b/lib/rack/bad_request.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Rack
# Represents a 400 Bad Request error when input data fails to meet the
# requirements.
diff --git a/lib/rack/headers.rb b/lib/rack/headers.rb
index ae1a89d1..cef1ae01 100644
--- a/lib/rack/headers.rb
+++ b/lib/rack/headers.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Rack
# Rack::Headers is a Hash subclass that downcases all keys. It's designed
# to be used by rack applications that don't implement the Rack 3 SPEC
diff --git a/test/psych_fix.rb b/test/psych_fix.rb
index ef8a5be3..aed11eeb 100644
--- a/test/psych_fix.rb
+++ b/test/psych_fix.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
# Work correctly with older versions of Psych, having
# unsafe_load call load (in older versions, load operates
# as unsafe_load in current version).