Skip to content

Commit

Permalink
fix: fix Ruby 2.7 kwargs warning (pact-foundation#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
barthez authored Apr 21, 2020
1 parent 6e3d6c0 commit 4a46c21
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/pact/consumer/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def responsive?

def run_default_server(app, port)
require 'rack/handler/webrick'
Rack::Handler::WEBrick.run(app, webrick_opts) do |server|
Rack::Handler::WEBrick.run(app, **webrick_opts) do |server|
@port = server[:Port]
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/pact/mock_service/control_server/run.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def call
# server, and can't shut it down. So, keep a manual reference to the Webrick server, and
# shut it down directly rather than use Rack::Handler::WEBrick.shutdown
# Ruby!
Rack::Handler::WEBrick.run(control_server, webbrick_opts) do | server |
Rack::Handler::WEBrick.run(control_server, **webbrick_opts) do | server |
@webrick_server = server
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/pact/mock_service/run.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def call

require_monkeypatch

Rack::Handler::WEBrick.run(mock_service, webbrick_opts)
Rack::Handler::WEBrick.run(mock_service, **webbrick_opts)
end

private
Expand Down

0 comments on commit 4a46c21

Please sign in to comment.