Skip to content

Commit

Permalink
fix: Drop reel integration
Browse files Browse the repository at this point in the history
Reel has been unmaintained since 2016, and we can stop supporting it in the upcoming version of Sinatra.
  • Loading branch information
olleolleolle authored and jkowens committed Feb 2, 2022
1 parent ab29667 commit 5459750
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if RUBY_ENGINE == "ruby"
gem 'erubis'
gem 'haml', '>= 3.0'
gem 'sass'
gem 'reel-rack'
gem 'celluloid', '~> 0.16.0'
gem 'commonmarker', '~> 0.20.0'
gem 'pandoc-ruby', '~> 2.0.2'
Expand Down
1 change: 0 additions & 1 deletion lib/sinatra/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1832,7 +1832,6 @@ class << self

ruby_engine = defined?(RUBY_ENGINE) && RUBY_ENGINE

server.unshift 'reel'
server.unshift 'puma'
server.unshift 'mongrel' if ruby_engine.nil?
server.unshift 'thin' if ruby_engine != 'jruby'
Expand Down
4 changes: 0 additions & 4 deletions test/integration_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ def puma?
name.to_s == "puma"
end

def reel?
name.to_s == "reel"
end

def trinidad?
name.to_s == "trinidad"
end
Expand Down
6 changes: 3 additions & 3 deletions test/integration_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class IntegrationTest < Minitest::Test
random = "%064x" % Kernel.rand(2**256-1)
server.get "/ping?x=#{random}"
count = server.log.scan("GET /ping?x=#{random}").count
if server.net_http_server? || server.reel?
if server.net_http_server?
assert_equal 0, count
elsif server.webrick?
assert(count > 0)
Expand Down Expand Up @@ -47,13 +47,13 @@ class IntegrationTest < Minitest::Test
}ix

# because Net HTTP Server logs to $stderr by default
assert_match exp, server.log unless server.net_http_server? || server.reel? || server.rainbows?
assert_match exp, server.log unless server.net_http_server? || server.rainbows?
end

it 'does not generate warnings' do
assert_raises(OpenURI::HTTPError) { server.get '/' }
server.get '/app_file'
assert_equal [], server.warnings unless server.reel?
assert_equal [], server.warnings
end

it 'sets the Content-Length response header when sending files' do
Expand Down

0 comments on commit 5459750

Please sign in to comment.