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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf19a9a4e4b87eed91a11c524f1463486755890074d59e957b75a01dc87aaca2
4
- data.tar.gz: 7df38b281850e3ef7be17755527fe73f2900bad23bb444c0548e6e60f066a948
3
+ metadata.gz: 1648aa911c5bb62d7da0d85545dbf1de8a6c2bb3deb7da34bdb1a1b2a7a62ebb
4
+ data.tar.gz: ed8606f2c1e33439481e1512328ea65f346e2bc18116251f545aadec76a3e422
5
5
  SHA512:
6
- metadata.gz: c81054a2cce04cc26e627c55352837265e98c261bad322fa3e58ae48f2ab6aace2bdfd9b04448919d6c813fc101bd60881b768900bd0e6c852588db5edceaa85
7
- data.tar.gz: cf1acd6845ec92f5ccb1b127f6d0806cb344e5a1e316fc2ed7998d67dedcca4bd4a916ca7948d9111f922e207425471381ee63577d3724630871bfe8eaed0b8a
6
+ metadata.gz: 7d235ba93875ef76ab55412a919e540b867b01f0793ddb17b159567ac608e42b72def6b52be7dab494802bb6ee8f4cf510a73a7a8a66287c0fefb8b973a15d42
7
+ data.tar.gz: 2a600cc9274d9d23452b785156aa753cbed209f241e225d6bcf2aba8ccd451a8c84636b77366d7aea52072fb724dbcddc22ce21a37fc28991593ef55e4a7a114
@@ -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
@@ -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
- values, @fields = @fields.partition do |field|
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
- values, @fields = @fields.partition do |field|
178
+ _, @fields = @fields.partition do |field|
179
179
  field.first.downcase == key
180
180
  end
181
181
 
@@ -178,7 +178,7 @@ module HTTP
178
178
  chunk = @stream.read(length)
179
179
 
180
180
  # Consume the trailing CRLF:
181
- crlf = @stream.read(2)
181
+ @stream.read(2)
182
182
 
183
183
  return chunk
184
184
  end
@@ -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 + '/' + path
119
+ path = expand_path(@path, path)
120
120
  else
121
121
  path = @path
122
122
  end
@@ -20,6 +20,6 @@
20
20
 
21
21
  module HTTP
22
22
  module Protocol
23
- VERSION = "0.12.1"
23
+ VERSION = "0.12.2"
24
24
  end
25
25
  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.1
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-01-25 00:00:00.000000000 Z
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.1
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.