From 117f70e2e3b1bd388efe79db8b4a67192d010c35 Mon Sep 17 00:00:00 2001 From: "depfu[bot]" <23717796+depfu[bot]@users.noreply.github.com> Date: Wed, 7 Sep 2022 17:46:37 +0000 Subject: [PATCH] gems: update rack to version 3.0.0 --- lib/openvpn-status-web.rb | 7 ++++--- openvpn-status-web.gemspec | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/openvpn-status-web.rb b/lib/openvpn-status-web.rb index 0bd7fcc..304b9d2 100755 --- a/lib/openvpn-status-web.rb +++ b/lib/openvpn-status-web.rb @@ -7,6 +7,7 @@ require 'logger' require 'ipaddr' require 'yaml' require 'rack' +require 'rackup' require 'erb' require 'metriks' require 'better_errors' if ENV.fetch('RACK_ENV', nil) == 'development' @@ -135,14 +136,14 @@ module OpenVPNStatusWeb Signal.trap('INT') do OpenVPNStatusWeb.logger.info 'Quitting...' - Rack::Handler::WEBrick.shutdown + Rackup::Handler::WEBrick.shutdown end Signal.trap('TERM') do OpenVPNStatusWeb.logger.info 'Quitting...' - Rack::Handler::WEBrick.shutdown + Rackup::Handler::WEBrick.shutdown end - Rack::Handler::WEBrick.run app, Host: config['host'], Port: config['port'] + Rackup::Handler::WEBrick.run app, Host: config['host'], Port: config['port'] end end end diff --git a/openvpn-status-web.gemspec b/openvpn-status-web.gemspec index 7345371..bdc52d7 100644 --- a/openvpn-status-web.gemspec +++ b/openvpn-status-web.gemspec @@ -27,7 +27,8 @@ Gem::Specification.new do |s| s.required_ruby_version = '>= 2.7' s.add_runtime_dependency 'metriks' - s.add_runtime_dependency 'rack', '~> 2.0' + s.add_runtime_dependency 'rack', '~> 3.0' + s.add_runtime_dependency 'rackup' s.add_runtime_dependency 'webrick', '>= 1.6.1' s.add_development_dependency 'better_errors'