protocol-http 0.7.0 → 0.8.0

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: 5bc04ecccff6cd4f16fdc254fcc2b61052f3cd1922d1f2c6b131c2247f3ae725
4
- data.tar.gz: aeb44e87fa81e9f545a009de98b2d895d408cd6ce67056f857f1ab5d2f35843f
3
+ metadata.gz: f09f21ec0f58cdb5ea6f0135c686833d39c2260355a230cdf9bca63b84a1268e
4
+ data.tar.gz: b7faa73e9d9b69a99446b1d4dfc605d378c3117f7c3b0c53906ceb01fb612116
5
5
  SHA512:
6
- metadata.gz: 7de2d5a3d9b7b2548b4258bf549a913f682c0e199bd11d466b50e439a67ce2443138b2bbb27a6da97c57c9b3bd5fa69a70b792f79cddc38c469f832d4ab91e0b
7
- data.tar.gz: c54173c864bda0b4a9b6c5e8c282ec60790871a0a1bbbace5a1b53fe6c2a570d214d5f11d32723ee21ef1b5fe0e78ebf73d7dd223addbe424c3f664f805cf75c
6
+ metadata.gz: 657db7a829f855987fe16df6455452f26ed0919417538dde3c3e522799d11d549cb5886b9d9337c54e121ce3f1a7513c9538fed8cbb700e0b58883710886958a
7
+ data.tar.gz: fe70c838c983601b81ac968b43b95669f731d4ddcbeec2f4e02c4da7f605f0339739777a810478a3297da47c5099134546a81ac8897fc281759b67491a9a96fc
@@ -26,10 +26,9 @@ module Protocol
26
26
  class Response
27
27
  prepend Body::Reader
28
28
 
29
- def initialize(version = nil, status = 200, reason = nil, headers = [], body = nil, protocol = nil)
29
+ def initialize(version = nil, status = 200, headers = [], body = nil, protocol = nil)
30
30
  @version = version
31
31
  @status = status
32
- @reason = reason
33
32
  @headers = headers
34
33
  @body = body
35
34
  @protocol = protocol
@@ -80,7 +79,7 @@ module Protocol
80
79
  def self.[](status, headers = [], body = nil, protocol = nil)
81
80
  body = Body::Buffered.wrap(body)
82
81
 
83
- self.new(nil, status, nil, headers, body, protocol)
82
+ self.new(nil, status, headers, body, protocol)
84
83
  end
85
84
 
86
85
  def self.for_exception(exception)
@@ -88,7 +87,7 @@ module Protocol
88
87
  end
89
88
 
90
89
  def to_s
91
- "#{@status} #{@reason} #{@version}"
90
+ "#{@status} #{@version}"
92
91
  end
93
92
 
94
93
  def to_ary
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Protocol
22
22
  module HTTP
23
- VERSION = "0.7.0"
23
+ VERSION = "0.8.0"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protocol-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
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-05-31 00:00:00.000000000 Z
11
+ date: 2019-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: covered
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  requirements: []
126
- rubygems_version: 3.0.3
126
+ rubygems_version: 3.0.2
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: Provides abstractions to handle HTTP protocols.