http-protocol 0.12.1 → 0.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -3
- data/Gemfile +0 -3
- data/http-protocol.gemspec +1 -0
- data/lib/http/protocol/headers.rb +2 -2
- data/lib/http/protocol/http1/connection.rb +1 -1
- data/lib/http/protocol/reference.rb +3 -3
- data/lib/http/protocol/version.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1648aa911c5bb62d7da0d85545dbf1de8a6c2bb3deb7da34bdb1a1b2a7a62ebb
|
4
|
+
data.tar.gz: ed8606f2c1e33439481e1512328ea65f346e2bc18116251f545aadec76a3e422
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d235ba93875ef76ab55412a919e540b867b01f0793ddb17b159567ac608e42b72def6b52be7dab494802bb6ee8f4cf510a73a7a8a66287c0fefb8b973a15d42
|
7
|
+
data.tar.gz: 2a600cc9274d9d23452b785156aa753cbed209f241e225d6bcf2aba8ccd451a8c84636b77366d7aea52072fb724dbcddc22ce21a37fc28991593ef55e4a7a114
|
data/.travis.yml
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
language: ruby
|
2
|
-
sudo: required
|
3
2
|
dist: xenial
|
4
3
|
cache: bundler
|
5
4
|
|
@@ -9,13 +8,13 @@ matrix:
|
|
9
8
|
- rvm: 2.4
|
10
9
|
- rvm: 2.5
|
11
10
|
- rvm: 2.6
|
11
|
+
- rvm: 2.6
|
12
|
+
env: COVERAGE=PartialSummary,Coveralls
|
12
13
|
- rvm: truffleruby
|
13
14
|
- rvm: jruby-head
|
14
15
|
env: JRUBY_OPTS="--debug -X+O"
|
15
16
|
- rvm: ruby-head
|
16
|
-
- rvm: rbx-3
|
17
17
|
allow_failures:
|
18
18
|
- rvm: truffleruby
|
19
19
|
- rvm: ruby-head
|
20
20
|
- rvm: jruby-head
|
21
|
-
- rvm: rbx-3
|
data/Gemfile
CHANGED
@@ -1,11 +1,8 @@
|
|
1
1
|
source "https://rubygems.org"
|
2
2
|
|
3
|
-
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
4
|
-
|
5
3
|
# Specify your gem's dependencies in http-protocol.gemspec
|
6
4
|
gemspec
|
7
5
|
|
8
6
|
group :test do
|
9
7
|
gem 'pry'
|
10
|
-
gem 'covered', require: 'covered/rspec' if RUBY_VERSION >= "2.6.0"
|
11
8
|
end
|
data/http-protocol.gemspec
CHANGED
@@ -18,6 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
|
19
19
|
spec.add_dependency "http-hpack", "~> 0.1.0"
|
20
20
|
|
21
|
+
spec.add_development_dependency "covered"
|
21
22
|
spec.add_development_dependency "bundler", ">= 1.16"
|
22
23
|
spec.add_development_dependency "rake", "~> 10.0"
|
23
24
|
spec.add_development_dependency "rspec", "~> 3.0"
|
@@ -105,7 +105,7 @@ module HTTP
|
|
105
105
|
end
|
106
106
|
|
107
107
|
def slice!(keys)
|
108
|
-
|
108
|
+
_, @fields = @fields.partition do |field|
|
109
109
|
keys.include?(field.first.downcase)
|
110
110
|
end
|
111
111
|
|
@@ -175,7 +175,7 @@ module HTTP
|
|
175
175
|
|
176
176
|
# Delete all headers with the given key, and return the merged value.
|
177
177
|
def delete(key)
|
178
|
-
|
178
|
+
_, @fields = @fields.partition do |field|
|
179
179
|
field.first.downcase == key
|
180
180
|
end
|
181
181
|
|
@@ -106,8 +106,8 @@ module HTTP
|
|
106
106
|
self.dup(nil, parameters)
|
107
107
|
end
|
108
108
|
|
109
|
-
def dup(path = nil, parameters = nil)
|
110
|
-
if @parameters
|
109
|
+
def dup(path = nil, parameters = nil, merge = true)
|
110
|
+
if @parameters and merge
|
111
111
|
if parameters
|
112
112
|
parameters = @parameters.merge(parameters)
|
113
113
|
else
|
@@ -116,7 +116,7 @@ module HTTP
|
|
116
116
|
end
|
117
117
|
|
118
118
|
if path
|
119
|
-
path = @path
|
119
|
+
path = expand_path(@path, path)
|
120
120
|
else
|
121
121
|
path = @path
|
122
122
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http-protocol
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.2
|
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-
|
11
|
+
date: 2019-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http-hpack
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.1.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: covered
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: bundler
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
142
|
- !ruby/object:Gem::Version
|
129
143
|
version: '0'
|
130
144
|
requirements: []
|
131
|
-
rubygems_version: 3.0.
|
145
|
+
rubygems_version: 3.0.2
|
132
146
|
signing_key:
|
133
147
|
specification_version: 4
|
134
148
|
summary: Provides abstractions to handle HTTP1 and HTTP2 protocols.
|