1
0
mirror of https://github.com/cmur2/openvpn-status-web.git synced 2024-11-17 06:56:13 +01:00

gems: update rack to version 3.0.0

This commit is contained in:
depfu[bot] 2022-09-07 17:46:37 +00:00 committed by Christian Nicolai
parent 1e0444a71d
commit 117f70e2e3
2 changed files with 6 additions and 4 deletions

View File

@ -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

View File

@ -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'