Skip to content

Commit 4a46c21

Browse files
authored
fix: fix Ruby 2.7 kwargs warning (pact-foundation#122)
1 parent 6e3d6c0 commit 4a46c21

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/pact/consumer/server.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def responsive?
6767

6868
def run_default_server(app, port)
6969
require 'rack/handler/webrick'
70-
Rack::Handler::WEBrick.run(app, webrick_opts) do |server|
70+
Rack::Handler::WEBrick.run(app, **webrick_opts) do |server|
7171
@port = server[:Port]
7272
end
7373
end

lib/pact/mock_service/control_server/run.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def call
2424
# server, and can't shut it down. So, keep a manual reference to the Webrick server, and
2525
# shut it down directly rather than use Rack::Handler::WEBrick.shutdown
2626
# Ruby!
27-
Rack::Handler::WEBrick.run(control_server, webbrick_opts) do | server |
27+
Rack::Handler::WEBrick.run(control_server, **webbrick_opts) do | server |
2828
@webrick_server = server
2929
end
3030
end

lib/pact/mock_service/run.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def call
2525

2626
require_monkeypatch
2727

28-
Rack::Handler::WEBrick.run(mock_service, webbrick_opts)
28+
Rack::Handler::WEBrick.run(mock_service, **webbrick_opts)
2929
end
3030

3131
private

0 commit comments

Comments
 (0)