From 84e58f8bf17cfa635c847ddb77b6551c54933268 Mon Sep 17 00:00:00 2001 From: alpaca-tc Date: Mon, 1 Apr 2024 17:23:41 +0900 Subject: [PATCH] Support rackup 1.0 --- exe/diver_down_web | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/exe/diver_down_web b/exe/diver_down_web index eeffa36..5a19ec8 100755 --- a/exe/diver_down_web +++ b/exe/diver_down_web @@ -3,7 +3,6 @@ require 'bundler/setup' require 'webrick' -require 'rackup' require 'diver_down' require 'diver_down-web' @@ -14,7 +13,7 @@ begin require 'rack' require 'rack/server' Rack::Server.new(app:).start -rescue NameError +rescue LoadError # Rack 3.0 require 'rackup' Rackup::Server.new(app:).start