Skip to content

Commit

Permalink
Rack::Handler -> Rackup::Handler
Browse files Browse the repository at this point in the history
  • Loading branch information
dentarg committed Jan 5, 2024
1 parent c129d58 commit 41d6063
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/sinatra/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# external dependencies
require 'rack'
require 'rackup'
require 'tilt'
require 'rack/protection'
require 'mustermann'
Expand Down Expand Up @@ -1599,7 +1600,7 @@ def run!(options = {}, &block)
return if running?

set options
handler = Rack::Handler.pick(server)
handler = Rackup::Handler.pick(server)
handler_name = handler.name.gsub(/.*::/, '')
server_settings = settings.respond_to?(:server_settings) ? settings.server_settings : {}
server_settings.merge!(Port: port, Host: bind)
Expand Down
2 changes: 1 addition & 1 deletion test/server_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative 'test_helper'
require 'stringio'

module Rack::Handler
module Rackup::Handler
class Mock
extend Minitest::Assertions
# Allow assertions in request context
Expand Down

0 comments on commit 41d6063

Please sign in to comment.