Skip to content

Commit

Permalink
FIX: **options is needed for Ruby 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
delonnewman committed Apr 22, 2021
1 parent 3640bcd commit 762eae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/shotgun
Expand Up @@ -153,7 +153,7 @@ Shotgun.preload

base_url = "http://#{options[:Host]}:#{options[:Port]}#{mount_path}"
puts "== Shotgun/#{server.to_s.sub(/Rack::Handler::/, '')} on #{base_url}"
server.run app, options do |inst|
server.run app, **options do |inst| # TODO: **options is needed for Ruby 3.0 test with earlier versions
if browse
if ENV['BROWSER']
system "#{ENV['BROWSER']} '#{base_url}'"
Expand Down

0 comments on commit 762eae9

Please sign in to comment.