1
0
mirror of https://github.com/cmur2/dyndnsd.git synced 2024-07-24 15:02:19 +02:00

gems: update rack to version 3.0.0

This commit is contained in:
depfu[bot] 2022-09-07 17:46:35 +00:00 committed by cn
parent 1ffd1de964
commit e22035919b
2 changed files with 6 additions and 4 deletions

View File

@ -33,7 +33,8 @@ Gem::Specification.new do |s|
s.add_runtime_dependency 'opentelemetry-exporter-jaeger', '~> 0.21.0'
s.add_runtime_dependency 'opentelemetry-instrumentation-rack', '~> 0.20.0'
s.add_runtime_dependency 'opentelemetry-sdk', '~> 1.0.0.rc2'
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 'bundler'

View File

@ -7,6 +7,7 @@ require 'ipaddr'
require 'json'
require 'yaml'
require 'rack'
require 'rackup'
require 'metriks'
require 'opentelemetry/instrumentation/rack'
require 'opentelemetry/sdk'
@ -259,10 +260,10 @@ module Dyndnsd
# @return [void]
private_class_method def self.setup_traps
Signal.trap('INT') do
Rack::Handler::WEBrick.shutdown
Rackup::Handler::WEBrick.shutdown
end
Signal.trap('TERM') do
Rack::Handler::WEBrick.shutdown
Rackup::Handler::WEBrick.shutdown
end
end
@ -350,7 +351,7 @@ module Dyndnsd
app = OpenTelemetry::Instrumentation::Rack::Middlewares::TracerMiddleware.new(app)
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