diff --git a/Gemfile b/Gemfile index fbfc8ebd..c89c3cde 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source 'https://rubygems.org' gemspec diff --git a/Rakefile b/Rakefile index e1d9a8a4..a347a441 100755 --- a/Rakefile +++ b/Rakefile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "bundler/gem_tasks" require "rspec/core/rake_task" diff --git a/examples/beer/config.ru b/examples/beer/config.ru index fdbd7230..03bff1d8 100755 --- a/examples/beer/config.ru +++ b/examples/beer/config.ru @@ -1,4 +1,5 @@ #!/usr/bin/env falcon --verbose serve -c +# frozen_string_literal: true require 'rack' require 'cgi' diff --git a/examples/beer/falcon.rb b/examples/beer/falcon.rb index 5d8d0b02..44ef200a 100755 --- a/examples/beer/falcon.rb +++ b/examples/beer/falcon.rb @@ -1,4 +1,5 @@ #!/usr/bin/env falcon-host +# frozen_string_literal: true load :rack, :self_signed_tls, :supervisor diff --git a/examples/benchmark/config.ru b/examples/benchmark/config.ru index 6b4249d5..585deecf 100644 --- a/examples/benchmark/config.ru +++ b/examples/benchmark/config.ru @@ -1,4 +1,5 @@ #!/usr/bin/env falcon --verbose serve -c +# frozen_string_literal: true class Benchmark def initialize(app) diff --git a/examples/benchmark/falcon.rb b/examples/benchmark/falcon.rb index d2afb8a8..cb0dfa10 100755 --- a/examples/benchmark/falcon.rb +++ b/examples/benchmark/falcon.rb @@ -1,4 +1,5 @@ #!/usr/bin/env -S ./bin/falcon virtual +# frozen_string_literal: true load :rack, :self_signed_tls, :supervisor diff --git a/examples/csv/config.ru b/examples/csv/config.ru index 96d03a13..e19a5dc6 100755 --- a/examples/csv/config.ru +++ b/examples/csv/config.ru @@ -1,4 +1,5 @@ #!/usr/bin/env falcon --verbose serve -c +# frozen_string_literal: true class MyApp def initialize(app) diff --git a/examples/google/falcon.rb b/examples/google/falcon.rb index c9513e42..ccdd0d34 100755 --- a/examples/google/falcon.rb +++ b/examples/google/falcon.rb @@ -1,4 +1,5 @@ #!/usr/bin/env falcon-host +# frozen_string_literal: true load :proxy, :self_signed_tls, :supervisor diff --git a/examples/hello/config.ru b/examples/hello/config.ru index 2ad645a0..7c41d79c 100755 --- a/examples/hello/config.ru +++ b/examples/hello/config.ru @@ -1,4 +1,5 @@ #!/usr/bin/env falcon --verbose serve -c +# frozen_string_literal: true require 'async' diff --git a/examples/hello/falcon.rb b/examples/hello/falcon.rb index ef6dac5a..3c7c987e 100755 --- a/examples/hello/falcon.rb +++ b/examples/hello/falcon.rb @@ -1,4 +1,5 @@ #!/usr/bin/env falcon-host +# frozen_string_literal: true load :rack, :self_signed_tls, :supervisor diff --git a/examples/hello/preload.rb b/examples/hello/preload.rb index 658f8174..afb48590 100644 --- a/examples/hello/preload.rb +++ b/examples/hello/preload.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true if GC.respond_to?(:compact) Async.logger.warn(self, "Compacting the mainframe...") diff --git a/examples/internet/config.ru b/examples/internet/config.ru index c21a7c90..8d9acfce 100644 --- a/examples/internet/config.ru +++ b/examples/internet/config.ru @@ -1,3 +1,4 @@ +# frozen_string_literal: true require 'async' require 'async/http/internet' diff --git a/examples/memory/allocations.rb b/examples/memory/allocations.rb index 9b6f008a..d06488b2 100644 --- a/examples/memory/allocations.rb +++ b/examples/memory/allocations.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true class Allocations def initialize(app) diff --git a/examples/memory/config.ru b/examples/memory/config.ru index 1e2984ec..ee7bd826 100644 --- a/examples/memory/config.ru +++ b/examples/memory/config.ru @@ -1,3 +1,4 @@ +# frozen_string_literal: true require_relative 'allocations' diff --git a/examples/push/client.rb b/examples/push/client.rb index 245303e9..76941365 100644 --- a/examples/push/client.rb +++ b/examples/push/client.rb @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true require 'async' require 'async/http/endpoint' diff --git a/examples/push/config.ru b/examples/push/config.ru index 0645c3ee..6163421d 100644 --- a/examples/push/config.ru +++ b/examples/push/config.ru @@ -1,4 +1,5 @@ #!/usr/bin/env falcon --verbose serve --concurrency 1 --config +# frozen_string_literal: true class EarlyHints def initialize(app) diff --git a/examples/redis/Gemfile b/examples/redis/Gemfile index c25f6251..60702338 100644 --- a/examples/redis/Gemfile +++ b/examples/redis/Gemfile @@ -1,3 +1,4 @@ +# frozen_string_literal: true # A sample Gemfile source "https://rubygems.org" diff --git a/examples/redis/config.ru b/examples/redis/config.ru index c9bb55ae..44be1904 100644 --- a/examples/redis/config.ru +++ b/examples/redis/config.ru @@ -1,3 +1,4 @@ +# frozen_string_literal: true require 'sinatra/base' require 'async/redis' diff --git a/examples/sinatra/Gemfile b/examples/sinatra/Gemfile index 2f37e41b..afbfe0de 100644 --- a/examples/sinatra/Gemfile +++ b/examples/sinatra/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # A sample Gemfile source "https://rubygems.org" diff --git a/examples/sinatra/config.ru b/examples/sinatra/config.ru index 7ac125aa..d6cfd130 100755 --- a/examples/sinatra/config.ru +++ b/examples/sinatra/config.ru @@ -1,4 +1,5 @@ #!/usr/bin/env falcon --verbose serve -c +# frozen_string_literal: true # Save this as `config.ru`, make it executable and then run it (or run falcon serve by hand) diff --git a/examples/trailers/config.ru b/examples/trailers/config.ru index 81f90b91..4987b109 100644 --- a/examples/trailers/config.ru +++ b/examples/trailers/config.ru @@ -1,4 +1,5 @@ #!/usr/bin/env falcon --verbose serve -c +# frozen_string_literal: true require 'async' diff --git a/examples/trailers/falcon.rb b/examples/trailers/falcon.rb index 7d5ca567..991d85ce 100644 --- a/examples/trailers/falcon.rb +++ b/examples/trailers/falcon.rb @@ -1,4 +1,5 @@ #!/usr/bin/env falcon-host +# frozen_string_literal: true load :rack, :self_signed_tls, :supervisor diff --git a/lib/falcon.rb b/lib/falcon.rb index 0a45caa5..9284774e 100644 --- a/lib/falcon.rb +++ b/lib/falcon.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2017, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/adapters/early_hints.rb b/lib/falcon/adapters/early_hints.rb index c31b1c66..223e12b5 100644 --- a/lib/falcon/adapters/early_hints.rb +++ b/lib/falcon/adapters/early_hints.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2019, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/adapters/input.rb b/lib/falcon/adapters/input.rb index 25e62555..db9fa5b5 100644 --- a/lib/falcon/adapters/input.rb +++ b/lib/falcon/adapters/input.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/adapters/output.rb b/lib/falcon/adapters/output.rb index cfc558eb..2fd5960b 100644 --- a/lib/falcon/adapters/output.rb +++ b/lib/falcon/adapters/output.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/adapters/rack.rb b/lib/falcon/adapters/rack.rb index f803808a..374d9c43 100644 --- a/lib/falcon/adapters/rack.rb +++ b/lib/falcon/adapters/rack.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2017, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/adapters/response.rb b/lib/falcon/adapters/response.rb index 768c4651..a2dfffb8 100644 --- a/lib/falcon/adapters/response.rb +++ b/lib/falcon/adapters/response.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/adapters/rewindable.rb b/lib/falcon/adapters/rewindable.rb index 4ab248a0..78859c88 100644 --- a/lib/falcon/adapters/rewindable.rb +++ b/lib/falcon/adapters/rewindable.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/command.rb b/lib/falcon/command.rb index 9e06e1b7..2eb5fcec 100644 --- a/lib/falcon/command.rb +++ b/lib/falcon/command.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2017, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/command/host.rb b/lib/falcon/command/host.rb index 70e5ca8d..92a59242 100644 --- a/lib/falcon/command/host.rb +++ b/lib/falcon/command/host.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/command/paths.rb b/lib/falcon/command/paths.rb index dc5cfad5..6799bc49 100644 --- a/lib/falcon/command/paths.rb +++ b/lib/falcon/command/paths.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2019, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/command/proxy.rb b/lib/falcon/command/proxy.rb index f7407b97..25d34d95 100644 --- a/lib/falcon/command/proxy.rb +++ b/lib/falcon/command/proxy.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/command/redirect.rb b/lib/falcon/command/redirect.rb index 3fbe68f4..ac94b1e7 100644 --- a/lib/falcon/command/redirect.rb +++ b/lib/falcon/command/redirect.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/command/serve.rb b/lib/falcon/command/serve.rb index 8216f679..6c6e40d5 100644 --- a/lib/falcon/command/serve.rb +++ b/lib/falcon/command/serve.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2017, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/command/supervisor.rb b/lib/falcon/command/supervisor.rb index 672804ca..41534a5a 100644 --- a/lib/falcon/command/supervisor.rb +++ b/lib/falcon/command/supervisor.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/command/top.rb b/lib/falcon/command/top.rb index 4fae106b..cb76a088 100644 --- a/lib/falcon/command/top.rb +++ b/lib/falcon/command/top.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2017, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/command/virtual.rb b/lib/falcon/command/virtual.rb index 9f4a7840..e6b27b83 100644 --- a/lib/falcon/command/virtual.rb +++ b/lib/falcon/command/virtual.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/configuration.rb b/lib/falcon/configuration.rb index 9e1892df..39f249bf 100644 --- a/lib/falcon/configuration.rb +++ b/lib/falcon/configuration.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/configuration/application.rb b/lib/falcon/configuration/application.rb index 58fffbf3..cb550321 100644 --- a/lib/falcon/configuration/application.rb +++ b/lib/falcon/configuration/application.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2019, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/configuration/lets_encrypt_tls.rb b/lib/falcon/configuration/lets_encrypt_tls.rb index ca7d7c73..c0402613 100644 --- a/lib/falcon/configuration/lets_encrypt_tls.rb +++ b/lib/falcon/configuration/lets_encrypt_tls.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2019, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/configuration/proxy.rb b/lib/falcon/configuration/proxy.rb index 049886fa..ef87c147 100644 --- a/lib/falcon/configuration/proxy.rb +++ b/lib/falcon/configuration/proxy.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2019, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/configuration/rack.rb b/lib/falcon/configuration/rack.rb index 072c1e55..4a728606 100644 --- a/lib/falcon/configuration/rack.rb +++ b/lib/falcon/configuration/rack.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2019, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/configuration/self_signed_tls.rb b/lib/falcon/configuration/self_signed_tls.rb index b8c3921e..27e23aaa 100644 --- a/lib/falcon/configuration/self_signed_tls.rb +++ b/lib/falcon/configuration/self_signed_tls.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2019, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/configuration/supervisor.rb b/lib/falcon/configuration/supervisor.rb index 615e9354..bcc80a39 100644 --- a/lib/falcon/configuration/supervisor.rb +++ b/lib/falcon/configuration/supervisor.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2019, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/configuration/tls.rb b/lib/falcon/configuration/tls.rb index 2a5ed9b7..95038665 100644 --- a/lib/falcon/configuration/tls.rb +++ b/lib/falcon/configuration/tls.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2019, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/controller/host.rb b/lib/falcon/controller/host.rb index c7f64c15..9c80978a 100644 --- a/lib/falcon/controller/host.rb +++ b/lib/falcon/controller/host.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2019, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/controller/proxy.rb b/lib/falcon/controller/proxy.rb index 26ad7e4f..8ded18b0 100644 --- a/lib/falcon/controller/proxy.rb +++ b/lib/falcon/controller/proxy.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/controller/redirect.rb b/lib/falcon/controller/redirect.rb index 1eab02a5..b4da9757 100644 --- a/lib/falcon/controller/redirect.rb +++ b/lib/falcon/controller/redirect.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/controller/serve.rb b/lib/falcon/controller/serve.rb index 380bec1f..4eddc565 100644 --- a/lib/falcon/controller/serve.rb +++ b/lib/falcon/controller/serve.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2019, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/controller/virtual.rb b/lib/falcon/controller/virtual.rb index c6d923a3..240c88a7 100644 --- a/lib/falcon/controller/virtual.rb +++ b/lib/falcon/controller/virtual.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/endpoint.rb b/lib/falcon/endpoint.rb index 8a9b5def..e3d9cac7 100644 --- a/lib/falcon/endpoint.rb +++ b/lib/falcon/endpoint.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/extensions/openssl.rb b/lib/falcon/extensions/openssl.rb index 5898de83..ae94a899 100644 --- a/lib/falcon/extensions/openssl.rb +++ b/lib/falcon/extensions/openssl.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/middleware/proxy.rb b/lib/falcon/middleware/proxy.rb index 9ab2983d..a1c2a2de 100644 --- a/lib/falcon/middleware/proxy.rb +++ b/lib/falcon/middleware/proxy.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/middleware/redirect.rb b/lib/falcon/middleware/redirect.rb index 8a99ee13..57af2db2 100644 --- a/lib/falcon/middleware/redirect.rb +++ b/lib/falcon/middleware/redirect.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/proxy_endpoint.rb b/lib/falcon/proxy_endpoint.rb index f6bf23db..fa56766f 100644 --- a/lib/falcon/proxy_endpoint.rb +++ b/lib/falcon/proxy_endpoint.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/server.rb b/lib/falcon/server.rb index 3c9f1f50..ec552338 100644 --- a/lib/falcon/server.rb +++ b/lib/falcon/server.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2017, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/service/application.rb b/lib/falcon/service/application.rb index fde7b7bf..d79c8008 100644 --- a/lib/falcon/service/application.rb +++ b/lib/falcon/service/application.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/service/generic.rb b/lib/falcon/service/generic.rb index 54800e1b..f6a67072 100644 --- a/lib/falcon/service/generic.rb +++ b/lib/falcon/service/generic.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 201, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/service/proxy.rb b/lib/falcon/service/proxy.rb index ee5fa6e6..2a7afb9f 100644 --- a/lib/falcon/service/proxy.rb +++ b/lib/falcon/service/proxy.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/service/supervisor.rb b/lib/falcon/service/supervisor.rb index f613be71..3fa78a3d 100644 --- a/lib/falcon/service/supervisor.rb +++ b/lib/falcon/service/supervisor.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/services.rb b/lib/falcon/services.rb index 6270536a..09058d41 100644 --- a/lib/falcon/services.rb +++ b/lib/falcon/services.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/tls.rb b/lib/falcon/tls.rb index a7bc8c4b..2afdffd9 100644 --- a/lib/falcon/tls.rb +++ b/lib/falcon/tls.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/verbose.rb b/lib/falcon/verbose.rb index 44015c05..03e62fbd 100644 --- a/lib/falcon/verbose.rb +++ b/lib/falcon/verbose.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/falcon/version.rb b/lib/falcon/version.rb index 4d17b5fa..40ccd321 100644 --- a/lib/falcon/version.rb +++ b/lib/falcon/version.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2017, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/lib/rack/handler/falcon.rb b/lib/rack/handler/falcon.rb index e864bd18..5a8eef27 100644 --- a/lib/rack/handler/falcon.rb +++ b/lib/rack/handler/falcon.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require 'rack/handler' diff --git a/recipes/falcon/supervisor.rb b/recipes/falcon/supervisor.rb index 16507dc8..ba4fa155 100644 --- a/recipes/falcon/supervisor.rb +++ b/recipes/falcon/supervisor.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true recipe :restart, description: 'Restart the application server via the supervisor.' do require_relative '../../lib/falcon/command/supervisor' diff --git a/server.rb b/server.rb index d5fb3e80..41714c6c 100755 --- a/server.rb +++ b/server.rb @@ -1,4 +1,5 @@ #!/usr/bin/env -S ./bin/falcon virtual --bind-insecure http://[::]:1080 --bind-secure https://[::]:1443 +# frozen_string_literal: true # You will want edit your `/etc/hosts`, adding the following: # 127.0.0.1 benchmark.localhost beer.localhost hello.localhost diff --git a/spec/falcon/adapters/early_hints_examples.rb b/spec/falcon/adapters/early_hints_examples.rb index 17613c71..14d05b8a 100644 --- a/spec/falcon/adapters/early_hints_examples.rb +++ b/spec/falcon/adapters/early_hints_examples.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2019, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/spec/falcon/adapters/input_spec.rb b/spec/falcon/adapters/input_spec.rb index e7ebe35e..8c54c1ac 100644 --- a/spec/falcon/adapters/input_spec.rb +++ b/spec/falcon/adapters/input_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/spec/falcon/adapters/output_spec.rb b/spec/falcon/adapters/output_spec.rb index 83cadad2..706b2aaa 100644 --- a/spec/falcon/adapters/output_spec.rb +++ b/spec/falcon/adapters/output_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/spec/falcon/adapters/rack_spec.rb b/spec/falcon/adapters/rack_spec.rb index f2a45e5f..228161c9 100644 --- a/spec/falcon/adapters/rack_spec.rb +++ b/spec/falcon/adapters/rack_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/spec/falcon/adapters/response_spec.rb b/spec/falcon/adapters/response_spec.rb index b21f8277..96d80237 100644 --- a/spec/falcon/adapters/response_spec.rb +++ b/spec/falcon/adapters/response_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/spec/falcon/command/config.ru b/spec/falcon/command/config.ru index 4f5d7d16..eba95254 100644 --- a/spec/falcon/command/config.ru +++ b/spec/falcon/command/config.ru @@ -1,3 +1,4 @@ +# frozen_string_literal: true # This echos the body back. run lambda { |env| [200, {}, env['rack.input'] || []] } diff --git a/spec/falcon/command/serve_spec.rb b/spec/falcon/command/serve_spec.rb index bafe2713..012cda1d 100644 --- a/spec/falcon/command/serve_spec.rb +++ b/spec/falcon/command/serve_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/spec/falcon/command/top_spec.rb b/spec/falcon/command/top_spec.rb index 4ce004da..ad731234 100644 --- a/spec/falcon/command/top_spec.rb +++ b/spec/falcon/command/top_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/spec/falcon/command/virtual_spec.rb b/spec/falcon/command/virtual_spec.rb index 339b3a58..10bebf87 100644 --- a/spec/falcon/command/virtual_spec.rb +++ b/spec/falcon/command/virtual_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/spec/falcon/configuration_spec.rb b/spec/falcon/configuration_spec.rb index 06a7a0e5..c2b5a866 100644 --- a/spec/falcon/configuration_spec.rb +++ b/spec/falcon/configuration_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2019, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/spec/falcon/configuration_spec/proxy.rb b/spec/falcon/configuration_spec/proxy.rb index 21976af0..4c07acf5 100644 --- a/spec/falcon/configuration_spec/proxy.rb +++ b/spec/falcon/configuration_spec/proxy.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true load :proxy diff --git a/spec/falcon/middleware/proxy_spec.rb b/spec/falcon/middleware/proxy_spec.rb index ba28ca3b..2498b3a2 100644 --- a/spec/falcon/middleware/proxy_spec.rb +++ b/spec/falcon/middleware/proxy_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2018, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/spec/falcon/server_context.rb b/spec/falcon/server_context.rb index 6c890375..c2723082 100644 --- a/spec/falcon/server_context.rb +++ b/spec/falcon/server_context.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require 'falcon/server' require 'async/http/client' diff --git a/spec/falcon/server_spec.rb b/spec/falcon/server_spec.rb index 08c4c821..bf574cb1 100644 --- a/spec/falcon/server_spec.rb +++ b/spec/falcon/server_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2017, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/spec/falcon/ssl_server_spec.rb b/spec/falcon/ssl_server_spec.rb index 69e3aedb..8d45bf68 100644 --- a/spec/falcon/ssl_server_spec.rb +++ b/spec/falcon/ssl_server_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2017, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/spec/rack/handler/config.ru b/spec/rack/handler/config.ru index 8b75e512..2f8e7d03 100644 --- a/spec/rack/handler/config.ru +++ b/spec/rack/handler/config.ru @@ -1,3 +1,4 @@ +# frozen_string_literal: true # This echos the body back. run lambda { |env| [200, {}, [env['rack.input'].read]] } diff --git a/spec/rack/handler/falcon_spec.rb b/spec/rack/handler/falcon_spec.rb index 2ea97d90..c014a88a 100644 --- a/spec/rack/handler/falcon_spec.rb +++ b/spec/rack/handler/falcon_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2017, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/spec/rack/handler/shared_examples.rb b/spec/rack/handler/shared_examples.rb index 1fc0af75..7ad28ea9 100644 --- a/spec/rack/handler/shared_examples.rb +++ b/spec/rack/handler/shared_examples.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright, 2019, by Samuel G. D. Williams. # # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 2daf5000..74d8bdbc 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "covered/rspec" diff --git a/tasks/benchmark.rake b/tasks/benchmark.rake index 2e7e3201..51f7c1c8 100644 --- a/tasks/benchmark.rake +++ b/tasks/benchmark.rake @@ -1,3 +1,4 @@ +# frozen_string_literal: true namespace :benchmark do task :hello do