pact-foundation / pact-mock_service

Provides a mock service for use with Pact
https://pact.io
MIT License
72 stars 68 forks source link

fix: rack 2.x dont load Rack::Handler::WEBrick class to avoid warnings #156

Open YOU54F opened 1 month ago

YOU54F commented 1 month ago

use webbrick.rb custom handler in cli's

related to #152

we get warnings when require'ing and using Rack::Handler::WEBrick. Removing this line removs teh warning, and tests all still pass

lib/rack/handler/webbrick.rb:5: warning: already initialized constant Rack::Handler::WEBrick
.rbenv/versions/3.3.3/lib/ruby/gems/3.3.0/gems/rack-2.2.9/lib/rack/handler/webrick.rb:25: warning: previous definition of WEBrick was here