Skip to content

Commit

Permalink
fix: support rack 2 and 3
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Aug 6, 2024
1 parent d477e60 commit 7262ce7
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 41 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,19 @@ on: [push, pull_request]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
ruby_version: ["2.7", "3.0", "3.1", "3.2", "3.3"]
os: ["ubuntu-latest","windows-latest","macos-latest"]
rack_version: ["2", "3"]
runs-on: ${{ matrix.os }}
env:
RACK_VERSION: ${{ matrix.rack_version }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
- run: "bundle install"
- run: "bundle exec rake"
- run: "bundle exec rake"
2 changes: 1 addition & 1 deletion examples/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ source 'https://rubygems.org'

gem 'sinatra', '>= 4.0.0'
gem 'sinatra-contrib', '>= 4.0.0'
gem 'pact-provider-verifier', '>= 1.38.0'
gem 'pact-provider-verifier', '>= 1.38.0', path: '../../pact-provider-verifier'
93 changes: 56 additions & 37 deletions examples/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,23 +1,42 @@
PATH
remote: ..
specs:
pact-provider-verifier (1.38.0)
faraday (~> 2.5)
faraday-retry (~> 2.2)
json (> 1.8)
pact (~> 1.59)
pact-message (~> 0.5)
rack (>= 3.0, < 4.0)
rack-reverse-proxy
rackup (~> 2.0)
rspec (~> 3.5)
rspec_junit_formatter (~> 0.3)

GEM
remote: https://rubygems.org/
specs:
awesome_print (1.9.2)
base64 (0.2.0)
bigdecimal (3.1.8)
diff-lcs (1.5.1)
expgen (0.1.1)
parslet
faraday (2.8.1)
base64
faraday-net_http (>= 2.0, < 3.1)
ruby2_keywords (>= 0.0.4)
faraday-net_http (3.0.2)
faraday-retry (2.2.0)
faraday (2.10.1)
faraday-net_http (>= 2.0, < 3.2)
logger
faraday-net_http (3.1.1)
net-http
faraday-retry (2.2.1)
faraday (~> 2.0)
find_a_port (1.0.1)
json (2.7.2)
logger (1.6.0)
multi_json (1.15.0)
mustermann (3.0.0)
mustermann (3.0.1)
ruby2_keywords (~> 0.0.1)
net-http (0.4.1)
uri
pact (1.64.0)
pact-mock_service (~> 3.0, >= 3.3.1)
pact-support (~> 1.16, >= 1.16.9)
Expand All @@ -30,85 +49,85 @@ GEM
pact-mock_service (~> 3.1)
pact-support (~> 1.8)
thor (>= 0.20, < 2.0)
pact-mock_service (3.11.2)
pact-mock_service (3.12.2)
find_a_port (~> 1.0.1)
json
pact-support (~> 1.16, >= 1.16.4)
rack (~> 2.0)
rack (>= 3.0, < 4.0)
rackup (~> 2.0)
rspec (>= 2.14)
thor (>= 0.19, < 2.0)
webrick (~> 1.8)
pact-provider-verifier (1.38.0)
faraday (~> 2.5)
faraday-retry (~> 2.2)
json (> 1.8)
pact (~> 1.59)
pact-message (~> 0.5)
rack (~> 2.1)
rack-reverse-proxy
rspec (~> 3.5)
rspec_junit_formatter (~> 0.3)
pact-support (1.20.0)
awesome_print (~> 1.9)
diff-lcs (~> 1.5)
expgen (~> 0.1)
rainbow (~> 3.1.1)
parslet (2.0.0)
rack (2.2.9)
rack-protection (3.2.0)
rack (3.1.7)
rack-protection (4.0.0)
base64 (>= 0.1.0)
rack (~> 2.2, >= 2.2.4)
rack (>= 3.0.0, < 4)
rack-proxy (0.7.7)
rack
rack-reverse-proxy (0.12.0)
rack (>= 1.0.0)
rack-proxy (~> 0.6, >= 0.6.1)
rack-session (2.0.0)
rack (>= 3.0.0)
rack-test (2.1.0)
rack (>= 1.3)
rackup (2.1.0)
rack (>= 3)
webrick (~> 1.8)
rainbow (3.1.1)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.0)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.0)
rspec-expectations (3.13.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.0)
rspec-mocks (3.13.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.1)
rspec_junit_formatter (0.6.0)
rspec-core (>= 2, < 4, != 2.12.0)
ruby2_keywords (0.0.5)
sinatra (3.2.0)
sinatra (4.0.0)
mustermann (~> 3.0)
rack (~> 2.2, >= 2.2.4)
rack-protection (= 3.2.0)
rack (>= 3.0.0, < 4)
rack-protection (= 4.0.0)
rack-session (>= 2.0.0, < 3)
tilt (~> 2.0)
sinatra-contrib (3.2.0)
sinatra-contrib (4.0.0)
multi_json (>= 0.0.2)
mustermann (~> 3.0)
rack-protection (= 3.2.0)
sinatra (= 3.2.0)
rack-protection (= 4.0.0)
sinatra (= 4.0.0)
tilt (~> 2.0)
sync (0.5.0)
term-ansicolor (1.7.2)
term-ansicolor (1.11.2)
tins (~> 1.0)
thor (1.3.1)
tilt (2.3.0)
tins (1.32.1)
tilt (2.4.0)
tins (1.33.0)
bigdecimal
sync
uri (0.13.0)
webrick (1.8.1)

PLATFORMS
arm64-darwin-23
ruby

DEPENDENCIES
pact-provider-verifier (>= 1.38.0)
sinatra (>= 3.1.0)
sinatra-contrib (>= 3.1.0)
pact-provider-verifier (>= 1.38.0)!
sinatra (>= 4.0.0)
sinatra-contrib (>= 4.0.0)

BUNDLED WITH
2.4.10
2.5.14
4 changes: 3 additions & 1 deletion pact-provider-verifier.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ 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'
gem.add_runtime_dependency 'rack', '>= 3.0', '< 4.0'
gem.add_runtime_dependency 'rackup', '~> 2.0'

gem.add_runtime_dependency 'rack-reverse-proxy'
gem.add_runtime_dependency 'rspec_junit_formatter', '~> 0.3'

Expand Down

0 comments on commit 7262ce7

Please sign in to comment.