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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24efc38cdd56ee46ac5e48dcbf52f7ddb73a38c73872c8b05be3d8b26aea5105
4
- data.tar.gz: f0d0e70ef0dfc20587711637856f8a7ffe7a310d437d3e53401e81f8ef014391
3
+ metadata.gz: 62514e8d943c7f5b5c21f863faabb9e45ec813225f6b5f0b60f2afb5c784c1ce
4
+ data.tar.gz: 9767186d0fbef80e454f7e5a5fb3183cf36637160bb73c969bf9ce20075764d0
5
5
  SHA512:
6
- metadata.gz: 2c3001f6c1f679690c63bcfe45baa1d85fedf764850c6fa2ca44debe71e89c286ca066715592632b8d19b03a1957f98f2a362aace2e8e171533e3595580a3b8a
7
- data.tar.gz: 84a1b0ee18b7eaad1a7f8336ffe912038bd18c8a229c119dac83b7cb9539daee79ab25ea13286db2706e707955b23f6a7801b96c2acf09dbbdc889fc38ddc4a3
6
+ metadata.gz: 3127dc1a2ac8bd3b7c46c7cb6bab33f62a3f74aee3a9a645a1e3afe08705ceee7c35365f7e3d4374c08f80c473fc6dd712ff4cdc0713d1cc9e0da17605294a19
7
+ data.tar.gz: 2af8f94e69c662da0b69a39fa8c41adcc506352a9db81bc4c469283f457fd724a5d56cd966916648a44d3a12bd8f392f9fb816010d28c141b0a7d611d7070ba7
@@ -22,17 +22,24 @@ RSpec.describe Server do
22
22
  "#{JUNIT_REPORT_DIR}/h2spec.xml"
23
23
  end
24
24
 
25
- let(:client) do
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
- after do
32
- @tcpserver.close
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(client)
42
+ system(h2spec)
43
+ system(curl)
37
44
  end
38
45
  end
@@ -70,7 +70,8 @@ module Biryani
70
70
  #
71
71
  # @return [HTTPRequest]
72
72
  def build(s)
73
- h = @h.transform_values(&:dup)
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
 
@@ -1,3 +1,3 @@
1
1
  module Biryani
2
- VERSION = '0.0.7'.freeze
2
+ VERSION = '0.0.8'.freeze
3
3
  end
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 be true
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 be true
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.7
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.3
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: