diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 38cbac6..6446d48 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -99,6 +99,11 @@ jobs: gemfile: "gems/pitchfork-head-rack-v2.rb" server: "pitchfork -E none" endpoint: "http://localhost:8080" + - ruby: "3.3" + name: "Pitchfork-head-Rack-v3-http" + gemfile: "gems/pitchfork-head-rack-v3.rb" + server: "pitchfork -E none" + endpoint: "http://localhost:8080" steps: - uses: actions/checkout@v3 diff --git a/gems/pitchfork-head-rack-v3.rb b/gems/pitchfork-head-rack-v3.rb new file mode 100644 index 0000000..2b3580b --- /dev/null +++ b/gems/pitchfork-head-rack-v3.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +# Released under the MIT License. +# Copyright, 2024, by Samuel Williams. + +eval_gemfile '../gems.rb' + +gem "pitchfork", git: "https://github.com/Shopify/pitchfork.git" +gem "rack", "~> 3.0" + +# export RACK_CONFORM_SERVER="pitchfork -E none" +# export RACK_CONFORM_ENDPOINT="http://localhost:8080" diff --git a/lib/rack/conform/application.rb b/lib/rack/conform/application.rb index 715bc55..8e925f6 100644 --- a/lib/rack/conform/application.rb +++ b/lib/rack/conform/application.rb @@ -104,7 +104,7 @@ def test_websocket_echo(env) connection.write(message) end connection.close - end or Protocol::HTTP::Response[404, {}, []] + end or [404, {}, []] end def test_middleware_body_itself(env)