parent
7ca0c087ed
commit
214e18222f
@ -0,0 +1,19 @@
|
|||||||
|
diff --git a/spec/stallion.rb b/spec/stallion.rb
|
||||||
|
index b7e1981..54d6c80 100644
|
||||||
|
--- a/spec/stallion.rb
|
||||||
|
+++ b/spec/stallion.rb
|
||||||
|
@@ -53,7 +53,13 @@ module Stallion
|
||||||
|
|
||||||
|
def self.run(options = {})
|
||||||
|
options = {:Host => "127.0.0.1", :Port => 8090}.merge(options)
|
||||||
|
- Rack::Handler::Mongrel.run(Rack::Lint.new(self), options)
|
||||||
|
+
|
||||||
|
+ ruby_version = RUBY_VERSION.split('.').map(&:to_i)
|
||||||
|
+ if ruby_version[0] >= 3
|
||||||
|
+ Rack::Handler::Mongrel.run(Rack::Lint.new(self), **options)
|
||||||
|
+ else
|
||||||
|
+ Rack::Handler::Mongrel.run(Rack::Lint.new(self), options)
|
||||||
|
+ end
|
||||||
|
end
|
||||||
|
|
||||||
|
def self.call(env)
|
Loading…
Reference in new issue