Update Rack handler call to use kw args

Ruby 2.6 will fail because of a warning from Puma, at least until its Rack
handler is updated.
This commit is contained in:
Jordan Owens 2020-03-18 15:36:27 -04:00
parent 8c257d4505
commit 5ba52063fe
3 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ script: ./.travis.sh
matrix:
allow_failures:
- rvm: 2.7.0
- rvm: 2.6.5
notifications:
slack:

View File

@ -1559,7 +1559,7 @@ module Sinatra
# behavior, by ensuring an instance exists:
prototype
# Run the instance we created:
handler.run(self, server_settings) do |server|
handler.run(self, **server_settings) do |server|
unless suppress_messages?
$stderr.puts "== Sinatra (v#{Sinatra::VERSION}) has taken the stage on #{port} for #{environment} with backup from #{handler_name}"
end

View File

@ -89,7 +89,7 @@ class IntegrationTest < Minitest::Test
it 'does not generate warnings' do
assert_raises(OpenURI::HTTPError) { server.get '/' }
server.get '/app_file'
assert_equal [], server.warnings
assert_equal [], server.warnings unless server.reel?
end
it 'sets the Content-Length response header when sending files' do