Skip to content

Commit

Permalink
test: upgrade to rack 3.x and add workaround to rack 3.1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Jun 15, 2024
1 parent dbaecbc commit 2451dac
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
matrix:
ruby_version: ["2.7", "3.0", "3.1", "3.2", "3.3"]
os: ["ubuntu-latest","windows-latest","macos-latest"]
rack_version: ["2", "3"]
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ruby ">= 2.6"
gemspec

if ENV['X_PACT_DEVELOPMENT']
gem "pact", path: '../pact'
gem "pact", path: '../pact-ruby'
gem "pact-message", path: '../pact-message-ruby'
gem "pact-support", path: '../pact-support'
end
7 changes: 6 additions & 1 deletion pact-provider-verifier.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency 'faraday', '~> 2.5'
gem.add_runtime_dependency 'faraday-retry', '~> 2.2'
gem.add_runtime_dependency 'json', '>1.8'
gem.add_runtime_dependency 'rack', '~> 2.1'
if ENV['RACK_VERSION'] == '2'
gem.add_runtime_dependency 'rack', '>= 2.0', '< 3.0'
else
gem.add_runtime_dependency 'rack', '>= 2.0'
gem.add_runtime_dependency 'rackup', '~> 2.0'
end
gem.add_runtime_dependency 'rack-reverse-proxy'
gem.add_runtime_dependency 'rspec_junit_formatter', '~> 0.3'

Expand Down

0 comments on commit 2451dac

Please sign in to comment.