protocol-http2 0.9.5 → 0.9.6

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: 104ac87c873518de9695194a3d54e441197f8d5712764a3b6247426c4db26465
4
- data.tar.gz: ef13f991407b5da97335b7086dce14f0231088212d76afe2dd6ba38cd4260371
3
+ metadata.gz: 23781c139f7719fc005365aac0ee2ecd42d6c41bfdc6e767aa9e4186a19403f7
4
+ data.tar.gz: 58599d2e3582d74683978a4f2b9d247a0f98c42b157819f8458274cbf990cb12
5
5
  SHA512:
6
- metadata.gz: 4be1376da392184941246a2e2714e45bfa2a677055bd9902b3d352522446350cb751618a028490e7fdccc02f152bf94f28f07dc49d69b679311358721df3db6c
7
- data.tar.gz: efdd055aa0ac275acc07eb8e8eece5f2287cb7286cc572af72c867c825b53414cd35061cb5cf1a0f77a6fe7d24d1527cfd499caed3c2ba5e464ea61398100aa7
6
+ metadata.gz: fe138b271b02c48c379ffc486445671948991b31d0b29f60be6b22c043d7fe149759f7c520565182c6ffac36c74a3f3171d4304963fd1921dcfbb26663cdb8fb
7
+ data.tar.gz: 42eb638798538ca4193af2df8fa4998e3070684f0f8157222d273c48bf8c45d1276ac11b844940344d3c1c0ef6bc6aac306efc37bd7da939d4c3d11fe3f29a9f
data/README.md CHANGED
@@ -31,7 +31,7 @@ require 'async/http/endpoint'
31
31
  require 'protocol/http2/client'
32
32
  require 'pry'
33
33
 
34
- Async.run do
34
+ Async do
35
35
  endpoint = Async::HTTP::Endpoint.parse("https://www.google.com/search?q=kittens")
36
36
 
37
37
  peer = endpoint.connect
@@ -7,7 +7,7 @@ require 'async/http/endpoint'
7
7
  require 'protocol/http2/client'
8
8
  require 'pry'
9
9
 
10
- Async.run do
10
+ Async do
11
11
  endpoint = Async::HTTP::Endpoint.parse("https://www.google.com/search?q=kittens")
12
12
 
13
13
  peer = endpoint.connect
@@ -9,7 +9,7 @@ require 'pry'
9
9
 
10
10
  queries = ["apple", "orange", "teapot", "async"]
11
11
 
12
- Async.run do
12
+ Async do
13
13
  endpoint = Async::HTTP::Endpoint.parse("https://www.google.com")
14
14
 
15
15
  peer = endpoint.connect
@@ -45,7 +45,7 @@ module Protocol
45
45
  flag_set?(END_STREAM)
46
46
  end
47
47
 
48
- def pack(data, *)
48
+ def pack(data, *arguments, **options)
49
49
  if data
50
50
  super
51
51
  else
@@ -63,7 +63,7 @@ module Protocol
63
63
  return priority, data
64
64
  end
65
65
 
66
- def pack(priority, data, *args)
66
+ def pack(priority, data, *arguments, **options)
67
67
  buffer = String.new.b
68
68
 
69
69
  if priority
@@ -72,7 +72,7 @@ module Protocol
72
72
 
73
73
  buffer << data
74
74
 
75
- super(buffer, *args)
75
+ super(buffer, *arguments, **options)
76
76
  end
77
77
 
78
78
  def apply(connection)
@@ -50,8 +50,8 @@ module Protocol
50
50
  return stream_id, data.byteslice(4, data.bytesize - 4)
51
51
  end
52
52
 
53
- def pack(stream_id, data, *args)
54
- super([stream_id].pack(FORMAT) + data, *args)
53
+ def pack(stream_id, data, *arguments, **options)
54
+ super([stream_id].pack(FORMAT) + data, *arguments, **options)
55
55
  end
56
56
 
57
57
  def apply(connection)
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Protocol
22
22
  module HTTP2
23
- VERSION = "0.9.5"
23
+ VERSION = "0.9.6"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protocol-http2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-11 00:00:00.000000000 Z
11
+ date: 2019-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: protocol-hpack
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  - !ruby/object:Gem::Version
153
153
  version: '0'
154
154
  requirements: []
155
- rubygems_version: 3.0.3
155
+ rubygems_version: 3.0.4
156
156
  signing_key:
157
157
  specification_version: 4
158
158
  summary: A low level implementation of the HTTP/2 protocol.