File tree Expand file tree Collapse file tree 9 files changed +100
-6
lines changed Expand file tree Collapse file tree 9 files changed +100
-6
lines changed Original file line number Diff line number Diff line change 1414 name : ${{matrix.ruby}} on ${{matrix.os}}
1515 runs-on : ${{matrix.os}}-latest
1616 env :
17- BUNDLER_GEMFILE : ${{matrix.gemfile}}
17+ BUNDLE_GEMFILE : ${{matrix.gemfile}}
1818
1919 strategy :
2020 matrix :
Original file line number Diff line number Diff line change 1414 runs-on : ${{matrix.os}}-latest
1515 continue-on-error : ${{matrix.experimental}}
1616 env :
17- BUNDLER_GEMFILE : ${{matrix.gemfile}}
17+ BUNDLE_GEMFILE : ${{matrix.gemfile}}
1818
1919 strategy :
2020 matrix :
Original file line number Diff line number Diff line change 1+ source "https://rubygems.org"
2+
3+ gem "async-http"
4+ gem "bake-test"
5+ gem "bake-test-external"
6+ gem "sus"
7+ gem "sus-fixtures-async-http"
8+ gem "covered"
Original file line number Diff line number Diff line change 33# Released under the MIT License.
44# Copyright, 2022, by Samuel Williams.
55
6- eval_gemfile ( "../ gems.rb" )
6+ eval_gemfile ( "gems.rb" )
77
88gem "rack" , "~> 1.0"
Original file line number Diff line number Diff line change 1+ GEM
2+ remote: https://rubygems.org/
3+ specs:
4+ async (2.5.1)
5+ console (~> 1.10)
6+ io-event (~> 1.1)
7+ timers (~> 4.1)
8+ async-http (0.60.1)
9+ async (>= 1.25)
10+ async-io (>= 1.28)
11+ async-pool (>= 0.2)
12+ protocol-http (~> 0.24.0)
13+ protocol-http1 (~> 0.15.0)
14+ protocol-http2 (~> 0.15.0)
15+ traces (>= 0.8.0)
16+ async-io (1.34.3)
17+ async
18+ async-pool (0.4.0)
19+ async (>= 1.25)
20+ bake (0.18.2)
21+ samovar (~> 2.1)
22+ bake-test (0.2.0)
23+ bake
24+ bake-test-external (0.3.2)
25+ bake
26+ console (1.16.2)
27+ fiber-local
28+ covered (0.20.2)
29+ console (~> 1.0)
30+ msgpack (~> 1.0)
31+ fiber-local (1.0.0)
32+ io-event (1.2.2)
33+ mapping (1.1.1)
34+ msgpack (1.7.1)
35+ protocol-hpack (1.4.2)
36+ protocol-http (0.24.2)
37+ protocol-http1 (0.15.0)
38+ protocol-http (~> 0.22)
39+ protocol-http2 (0.15.1)
40+ protocol-hpack (~> 1.4)
41+ protocol-http (~> 0.18)
42+ rack (1.6.13)
43+ samovar (2.1.4)
44+ console (~> 1.0)
45+ mapping (~> 1.0)
46+ sus (0.20.3)
47+ sus-fixtures-async (0.1.1)
48+ async
49+ sus (~> 0.10)
50+ sus-fixtures-async-http (0.3.0)
51+ async-http (~> 0.54)
52+ async-io (~> 1.34)
53+ sus (~> 0.10)
54+ sus-fixtures-async (~> 0.1)
55+ timers (4.3.5)
56+ traces (0.9.1)
57+
58+ PLATFORMS
59+ arm64-darwin-22
60+
61+ DEPENDENCIES
62+ async-http
63+ bake-test
64+ bake-test-external
65+ covered
66+ rack (~> 1.0)
67+ sus
68+ sus-fixtures-async-http
69+
70+ BUNDLED WITH
71+ 2.4.7
Original file line number Diff line number Diff line change 33# Released under the MIT License.
44# Copyright, 2022, by Samuel Williams.
55
6- eval_gemfile ( "../ gems.rb" )
6+ eval_gemfile ( "gems.rb" )
77
88gem "rack" , "~> 2.0"
Original file line number Diff line number Diff line change 33# Released under the MIT License.
44# Copyright, 2022, by Samuel Williams.
55
6- eval_gemfile ( "../ gems.rb" )
6+ eval_gemfile ( "gems.rb" )
77
88gem "rack" , "~> 3.0"
Original file line number Diff line number Diff line change 1111module Protocol
1212 module Rack
1313 module Adapter
14- if ::Rack :: RELEASE >= "3"
14+ if ::Rack . release >= "3"
1515 IMPLEMENTATION = Rack3
1616 else
1717 IMPLEMENTATION = Rack2
Original file line number Diff line number Diff line change 7575 end
7676 end
7777
78+ with 'non-string header value' do
79+ let ( :app ) do
80+ lambda do |env |
81+ [ 200 , { 'x-custom' => 123 } , [ "Hello World!" ] ]
82+ end
83+ end
84+
85+ let ( :response ) { client . get ( "/" ) }
86+
87+ it "get valid response" do
88+ expect ( response . read ) . to be == "Hello World!"
89+ expect ( response . headers [ 'x-custom' ] ) . to be == [ '123' ]
90+ end
91+ end
92+
7893 with 'REQUEST_URI' , timeout : 1 do
7994 let ( :app ) do
8095 lambda do |env |
You can’t perform that action at this time.
0 commit comments