You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rubygem-em-http-request/SOURCES/rubygem-em-http-request-1.1...

20 lines
592 B

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)