Skip to content

Commit

Permalink
Merge pull request #1855 from dentarg/revert-rack3
Browse files Browse the repository at this point in the history
Revert "Allow running with Rack 3. (#1811)"
  • Loading branch information
jkowens committed Dec 28, 2022
2 parents 3977c07 + f9fa73d commit 9b6ba81
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 12 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:

jobs:
test:
name: ${{ matrix.ruby }} (Rack ${{ matrix.rack }}, Puma ${{ matrix.puma }}) ${{ matrix.gemfile }}
name: ${{ matrix.ruby }} (Rack ${{ matrix.rack }}, Puma ${{ matrix.puma }})
permissions:
contents: read # to fetch code (actions/checkout)
actions: read # to list jobs for workflow run (8398a7/action-slack)
Expand All @@ -29,14 +29,11 @@ jobs:
include:
- { ruby: 2.6, rack: '~> 2', puma: '~> 5' }
- { ruby: 3.2, rack: '~> 2', puma: '~> 5' }
- { ruby: 3.1, rack: stable, puma: stable, gemfile: gems/rack-v3.rb, allow-failure: true }
- { ruby: 3.1, rack: latest, puma: latest, gemfile: gems/rack-v3.rb, allow-failure: true }
- { ruby: jruby-head, rack: stable, puma: stable, gemfile: gems/rack-v3.rb, allow-failure: true }
- { ruby: 3.2, rack: '~> 2', puma: latest }
- { ruby: jruby-head, rack: '~> 2', puma: stable, allow-failure: true }
env:
rack: ${{ matrix.rack }}
puma: ${{ matrix.puma }}
BUNDLE_GEMFILE: ${{ matrix.gemfile }}

steps:
- name: Install dependencies
run: |
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ puma_version = { github: 'puma/puma' } if puma_version == 'latest'
gem 'puma', puma_version

gem 'minitest', '~> 5.0'
gem 'rack-test', github: 'rack/rack-test'
gem 'rubocop', '~> 1.32.0', require: false
gem 'yard'

Expand Down
4 changes: 0 additions & 4 deletions gems/rack-v3.rb

This file was deleted.

2 changes: 2 additions & 0 deletions rack-protection/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ gem 'rack', rack_version
gem 'sinatra', path: '..'

gemspec

gem 'rack-test', github: 'rack/rack-test'
2 changes: 2 additions & 0 deletions sinatra-contrib/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ gemspec
gem 'rack-protection', path: '../rack-protection'
gem 'sinatra', path: '..'

gem 'rack-test', github: 'rack/rack-test'

group :development, :test do
platform :jruby do
gem 'json'
Expand Down
2 changes: 1 addition & 1 deletion sinatra.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ RubyGems 2.0 or newer is required to protect against public gem pushes. You can
s.required_ruby_version = '>= 2.6.0'

s.add_dependency 'mustermann', '~> 3.0'
s.add_dependency 'rack', '>= 2.2.4', '< 4'
s.add_dependency 'rack', '~> 2.2', '>= 2.2.4'
s.add_dependency 'rack-protection', version
s.add_dependency 'tilt', '~> 2.0'

Expand Down
2 changes: 1 addition & 1 deletion test/server_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def stop
end
end

register :mock, Mock
register 'mock', 'Rack::Handler::Mock'
end

class ServerTest < Minitest::Test
Expand Down

0 comments on commit 9b6ba81

Please sign in to comment.