protocol-http 0.15.0 → 0.15.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5af6588e75cd95086183ad1e1d27a4c70d2a59d284b7640cbe3d22b7630c3318
4
- data.tar.gz: a03a42a4d0bda22e902a66720d884a53351a298e8637744463e653415ca7e0b5
3
+ metadata.gz: 265e26f96b8e609fc948bc318a8179342c709d45e67190d14ea1e911794bac32
4
+ data.tar.gz: 5635c1b6fa13d10ca34cbe55175489bd289330e6483f50f743813d686d271593
5
5
  SHA512:
6
- metadata.gz: c8c7ecb9521a14e3f17e471fb3a805bb4b6b58ef29fcddce709e633ab2dd5a2ac3cc1c0673ac45947766ec888caae7c604dc510c920a187b23fe0a66d88d063c
7
- data.tar.gz: ee2cd54ee6b2f2a864ad193706c1f46ba116b755da6b31d118224b6c2ada54df331803e9bc36089667a3f105bce14810bb44ae6d2ce1246b5857163ee988f56a
6
+ metadata.gz: 062fc717d123926079da6260ab4fd6c55aebde335e66bbe2d4a600a2b131821533b1e0f9ef4d48f066fb902a114ae0914ff97d195c34fa5fde0939308309cb52
7
+ data.tar.gz: a711f3d315dfb3018ef298a1dd584dd2afc17c03b68edcb9ff3e995047f0b81450fffde999b0619a86dac82be1fc785d0b1695e6560bc7010d948eae13d1a682
@@ -28,11 +28,11 @@ module Protocol
28
28
  class Request
29
29
  prepend Body::Reader
30
30
 
31
- def initialize(scheme = nil, authority = nil, method = nil, target = nil, version = nil, headers = [], body = nil, protocol = nil)
31
+ def initialize(scheme = nil, authority = nil, method = nil, path = nil, version = nil, headers = [], body = nil, protocol = nil)
32
32
  @scheme = scheme
33
33
  @authority = authority
34
34
  @method = method
35
- @target = target
35
+ @path = path
36
36
  @version = version
37
37
  @headers = headers
38
38
  @body = body
@@ -42,7 +42,7 @@ module Protocol
42
42
  attr_accessor :scheme
43
43
  attr_accessor :authority
44
44
  attr_accessor :method
45
- attr_accessor :target
45
+ attr_accessor :path
46
46
  attr_accessor :version
47
47
  attr_accessor :headers
48
48
  attr_accessor :body
@@ -53,14 +53,6 @@ module Protocol
53
53
  connection.call(self)
54
54
  end
55
55
 
56
- def path
57
- @target
58
- end
59
-
60
- def path= value
61
- @target = value
62
- end
63
-
64
56
  def head?
65
57
  @method == Methods::HEAD
66
58
  end
@@ -80,7 +72,7 @@ module Protocol
80
72
  end
81
73
 
82
74
  def to_s
83
- "#{@scheme}://#{@authority}: #{@method} #{@target} #{@version}"
75
+ "#{@scheme}://#{@authority}: #{@method} #{@path} #{@version}"
84
76
  end
85
77
  end
86
78
  end
@@ -22,6 +22,6 @@
22
22
 
23
23
  module Protocol
24
24
  module HTTP
25
- VERSION = "0.15.0"
25
+ VERSION = "0.15.1"
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protocol-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams