http 4.2.0 → 4.3.0

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: ddb21214e710b5499c1d1074df10cb2467733d476996ff4b44ef476aad638d1a
4
- data.tar.gz: a7e2ef9bb78b1b1b0bc2e06d8421d3d14bc4c4fe9ec5cedcafdcf1d4951978ee
3
+ metadata.gz: 442e2d5e2fd1d2ba92254a616a5856d500aafbadd3c7d2f55f5b0d36528b10dd
4
+ data.tar.gz: 50191bc30051029cd1ece0a04322e8fd772176320377356a1e79404e2ceb90fd
5
5
  SHA512:
6
- metadata.gz: cba83eabbf6eed0eef8fcbd15da030a40d65c5ea8eceb1169cfdf2e114dbfb472762e673ddfd4552060b59b643d11bad4b70cbbda73dac9aceb05f15b772301c
7
- data.tar.gz: c041c6ced64a2bdd994444975f3877d615be07245d91fb6825f4f8c9302b2c15aa1b98205b3401f6ebd77689d9831fb8982df15ba45478fd91703531328ea2f3
6
+ metadata.gz: 40cb047577f2b50864039116e1fddd72b5290bdb494649498a4fbe6ec3a4d40c875ab42f4387692842aa820798fec200f8fb90a717fc58c9113929ce5780affc
7
+ data.tar.gz: dfc32cfa989b1007cb9085973ea61ab3b681d42dfa5c150662d80f97d972a0de583d0eb0d1673cfb9aee91743e97f619c63f75593b3c9288a5621742845b04fb
@@ -6,7 +6,7 @@ cache: bundler
6
6
  before_install:
7
7
  - gem update --system
8
8
  - gem --version
9
- - gem install bundler
9
+ - gem install bundler --no-document
10
10
  - bundle --version
11
11
 
12
12
  install: bundle install --without development doc
@@ -22,16 +22,18 @@ rvm:
22
22
  - 2.4
23
23
  - 2.5
24
24
  - 2.6
25
+ - 2.7
25
26
 
26
27
  matrix:
27
28
  fast_finish: true
28
29
  include:
29
30
  # Only run RuboCop and Yardstick metrics on the latest Ruby
30
- - rvm: 2.6
31
+ - rvm: 2.7
31
32
  env: SUITE="rubocop"
32
- - rvm: 2.6
33
+ - rvm: 2.7
33
34
  env: SUITE="yardstick"
34
35
 
35
36
  branches:
36
37
  only:
37
38
  - master
39
+ - 4-x-stable
data/CHANGES.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 4.3.0 (2020-01-09)
2
+
3
+ * Backport [#581](https://github.com/httprb/http/pull/581)
4
+ Add Ruby-2.7 compatibility.
5
+ ([@ixti], [@janko])
6
+
7
+
1
8
  ## 4.2.0 (2019-10-22)
2
9
 
3
10
  * Backport [#489](https://github.com/httprb/http/pull/489)
@@ -29,7 +29,7 @@ Gem::Specification.new do |gem|
29
29
 
30
30
  gem.add_runtime_dependency "addressable", "~> 2.3"
31
31
  gem.add_runtime_dependency "http-cookie", "~> 1.0"
32
- gem.add_runtime_dependency "http-form_data", "~> 2.0"
32
+ gem.add_runtime_dependency "http-form_data", "~> 2.2"
33
33
  gem.add_runtime_dependency "http-parser", "~> 1.2.0"
34
34
 
35
35
  gem.add_development_dependency "bundler", "~> 2.0"
@@ -93,7 +93,7 @@ module HTTP
93
93
  chunk = @parser.read(size)
94
94
  finish_response if finished
95
95
 
96
- chunk.to_s
96
+ chunk || "".b
97
97
  end
98
98
 
99
99
  # Reads data from socket up until headers are loaded
@@ -10,7 +10,7 @@ module HTTP
10
10
  class AutoDeflate < Feature
11
11
  attr_reader :method
12
12
 
13
- def initialize(*)
13
+ def initialize(**)
14
14
  super
15
15
 
16
16
  @method = @opts.key?(:method) ? @opts[:method].to_s : "gzip"
@@ -114,7 +114,7 @@ module HTTP
114
114
  unless (feature = self.class.available_features[name])
115
115
  argument_error! "Unsupported feature: #{name}"
116
116
  end
117
- feature.new(opts_or_feature)
117
+ feature.new(**opts_or_feature)
118
118
  end
119
119
  end
120
120
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HTTP
4
- VERSION = "4.2.0"
4
+ VERSION = "4.3.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
4
+ version: 4.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Arcieri
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2019-10-22 00:00:00.000000000 Z
14
+ date: 2020-01-09 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: addressable
@@ -47,14 +47,14 @@ dependencies:
47
47
  requirements:
48
48
  - - "~>"
49
49
  - !ruby/object:Gem::Version
50
- version: '2.0'
50
+ version: '2.2'
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
55
  - - "~>"
56
56
  - !ruby/object:Gem::Version
57
- version: '2.0'
57
+ version: '2.2'
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: http-parser
60
60
  requirement: !ruby/object:Gem::Requirement
@@ -186,7 +186,7 @@ metadata:
186
186
  source_code_uri: https://github.com/httprb/http
187
187
  wiki_uri: https://github.com/httprb/http/wiki
188
188
  bug_tracker_uri: https://github.com/httprb/http/issues
189
- changelog_uri: https://github.com/httprb/http/blob/v4.2.0/CHANGES.md
189
+ changelog_uri: https://github.com/httprb/http/blob/v4.3.0/CHANGES.md
190
190
  post_install_message:
191
191
  rdoc_options: []
192
192
  require_paths: