1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Update .run method options param

Rack has opted to use the double splat operator for options.

See: 871c82f0ff
This commit is contained in:
Jordan Owens 2020-03-18 14:19:34 -04:00
parent 21a33f73a9
commit 4e712091a6
3 changed files with 3 additions and 2 deletions

View file

@ -30,6 +30,7 @@
* Simplify `Configuration.random_token` and remove insecure fallback (#2102)
* Simplify `Runner#start_control` URL parsing (#2111)
* Removed the IOBuffer extension and replaced with Ruby (#1980)
* Update `Rack::Handler::Puma.run` to use `**options` (#2189)
## 4.3.3 and 3.12.4 / 2020-02-28

View file

@ -59,7 +59,7 @@ module Rack
conf
end
def self.run(app, options = {})
def self.run(app, **options)
conf = self.config(app, options)
events = options.delete(:Silent) ? ::Puma::Events.strings : ::Puma::Events.stdio

View file

@ -26,7 +26,7 @@ class TestPathHandler < Minitest::Test
@launcher = nil
thread = Thread.new do
Rack::Handler::Puma.run(app, options) do |s, p|
Rack::Handler::Puma.run(app, **options) do |s, p|
@launcher = s
end
end