Skip to content

Commit 2c0412a

Browse files
committed
Add pitchfork on Rack 3.
1 parent daa4050 commit 2c0412a

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

.github/workflows/test.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ jobs:
9999
gemfile: "gems/pitchfork-head-rack-v2.rb"
100100
server: "pitchfork -E none"
101101
endpoint: "http://localhost:8080"
102+
- ruby: "3.3"
103+
name: "Pitchfork-head-Rack-v3-http"
104+
gemfile: "gems/pitchfork-head-rack-v3.rb"
105+
server: "pitchfork -E none"
106+
endpoint: "http://localhost:8080"
102107

103108
steps:
104109
- uses: actions/checkout@v3

gems/pitchfork-head-rack-v3.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# frozen_string_literal: true
2+
3+
# Released under the MIT License.
4+
# Copyright, 2024, by Samuel Williams.
5+
6+
eval_gemfile '../gems.rb'
7+
8+
gem "pitchfork", git: "https://github.com/Shopify/pitchfork.git"
9+
gem "rack", "~> 3.0"
10+
11+
# export RACK_CONFORM_SERVER="pitchfork -E none"
12+
# export RACK_CONFORM_ENDPOINT="http://localhost:8080"

lib/rack/conform/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def test_websocket_echo(env)
104104
connection.write(message)
105105
end
106106
connection.close
107-
end or Protocol::HTTP::Response[404, {}, []]
107+
end or [404, {}, []]
108108
end
109109

110110
def test_middleware_body_itself(env)

0 commit comments

Comments
 (0)