biryani 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/conformance/server_spec.rb +11 -4
- data/lib/biryani/http_request.rb +2 -1
- data/lib/biryani/version.rb +1 -1
- data/spec/utils_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 62514e8d943c7f5b5c21f863faabb9e45ec813225f6b5f0b60f2afb5c784c1ce
|
|
4
|
+
data.tar.gz: 9767186d0fbef80e454f7e5a5fb3183cf36637160bb73c969bf9ce20075764d0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3127dc1a2ac8bd3b7c46c7cb6bab33f62a3f74aee3a9a645a1e3afe08705ceee7c35365f7e3d4374c08f80c473fc6dd712ff4cdc0713d1cc9e0da17605294a19
|
|
7
|
+
data.tar.gz: 2af8f94e69c662da0b69a39fa8c41adcc506352a9db81bc4c469283f457fd724a5d56cd966916648a44d3a12bd8f392f9fb816010d28c141b0a7d611d7070ba7
|
data/conformance/server_spec.rb
CHANGED
|
@@ -22,17 +22,24 @@ RSpec.describe Server do
|
|
|
22
22
|
"#{JUNIT_REPORT_DIR}/h2spec.xml"
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
after do
|
|
26
|
+
@tcpserver.close
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
let(:h2spec) do
|
|
26
30
|
which('h2spec')
|
|
27
31
|
|
|
28
32
|
"h2spec --port #{PORT} --verbose --junit-report #{junit_report_file_path}"
|
|
29
33
|
end
|
|
30
34
|
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
let(:curl) do
|
|
36
|
+
which('curl')
|
|
37
|
+
|
|
38
|
+
"curl --http2-prior-knowledge --silent --parallel http://localhost:#{PORT}/ --output /dev/null http://localhost:#{PORT}/ --output /dev/null"
|
|
33
39
|
end
|
|
34
40
|
|
|
35
41
|
it 'should run' do
|
|
36
|
-
system(
|
|
42
|
+
system(h2spec)
|
|
43
|
+
system(curl)
|
|
37
44
|
end
|
|
38
45
|
end
|
data/lib/biryani/http_request.rb
CHANGED
|
@@ -70,7 +70,8 @@ module Biryani
|
|
|
70
70
|
#
|
|
71
71
|
# @return [HTTPRequest]
|
|
72
72
|
def build(s)
|
|
73
|
-
|
|
73
|
+
# `Ractor.send(req, move: true)` moves entries in HPACK::DynamicTable; therefore, a `dup` call is required.
|
|
74
|
+
h = @h.transform_values { |x| x.map(&:dup) }
|
|
74
75
|
self.class.http_request(h, s)
|
|
75
76
|
end
|
|
76
77
|
|
data/lib/biryani/version.rb
CHANGED
data/spec/utils_spec.rb
CHANGED
|
@@ -17,11 +17,11 @@ RSpec.describe Biryani do
|
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
it 'should be error' do
|
|
20
|
-
expect(Biryani.err?(connection_error)).to
|
|
20
|
+
expect(Biryani.err?(connection_error)).to eq true
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
it 'should be error' do
|
|
24
|
-
expect(Biryani.err?(stream_error)).to
|
|
24
|
+
expect(Biryani.err?(stream_error)).to eq true
|
|
25
25
|
end
|
|
26
26
|
end
|
|
27
27
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: biryani
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- thekuwayama
|
|
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
135
135
|
- !ruby/object:Gem::Version
|
|
136
136
|
version: '0'
|
|
137
137
|
requirements: []
|
|
138
|
-
rubygems_version: 4.0.
|
|
138
|
+
rubygems_version: 4.0.6
|
|
139
139
|
specification_version: 4
|
|
140
140
|
summary: An HTTP/2 server implemented using Ruby Ractor
|
|
141
141
|
test_files:
|