ezclient 0.15.3 → 0.16.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: a05bed023938e0c39e06e363ee1b4a33a66a1d56c9efa88284fdd8963c425bfe
4
- data.tar.gz: 938e5551993df9f31193966bcd05483f9e8b1ae2fc3dc99bd147ffad5729f373
3
+ metadata.gz: 6ef4b467ccd6d41d541c0f8bbd6d77b499f6ad5e359abf07b4b23eac8fea36cd
4
+ data.tar.gz: 6d68874b9456bbe13590ac9ee7621f5a597ea0fd60297dedd3ee15f69faef416
5
5
  SHA512:
6
- metadata.gz: 2721936c899dd3725f64259ced7cc69ded075efe457e4a9906fc01d958029b64dcd557d4b91082b32808a8aec48e8952aefc6f162cbdb75a7a5068e43a7f2423
7
- data.tar.gz: 351a2670b38657471d155d2bfeaee1076f1108e300678dbfb8a73347e2cc6f0686a9eca8e924eb4ed80b57c024737e8dc9118fddef00323b85379ea7cac1f679
6
+ metadata.gz: ef24a1d21ffd4d4a612d423ef2d1942b44153f2813a4ed77497ba2a56f9a00df45856d81b951d5b56a724f10483e17a8a03030301c68ae5ac8c123b8e98daa0f
7
+ data.tar.gz: c0bf6c2917abcc003703ac518838fe54adc3742a218a3547afa7e211407ea574c8f5f279e7e733b74ff8216191452a0845a0c8eac41b4b59249e1941c52fb01d
data/ezclient.gemspec CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^spec/}) }
18
18
  spec.require_paths = ["lib"]
19
19
 
20
- spec.add_runtime_dependency "http", ">= 3.2.1"
20
+ spec.add_runtime_dependency "http", ">= 3.3"
21
21
 
22
22
  spec.add_development_dependency "bundler"
23
23
  spec.add_development_dependency "coveralls"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EzClient
4
- VERSION = "0.15.3"
4
+ VERSION = "0.16.0"
5
5
  end
data/lib/ezclient.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "http"
4
- require "ezclient/http_patch"
5
4
  require "ezclient/version"
6
5
  require "ezclient/client"
7
6
  require "ezclient/request"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ezclient
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.3
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuri Smirnov
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 3.2.1
19
+ version: '3.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 3.2.1
26
+ version: '3.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -157,7 +157,6 @@ files:
157
157
  - lib/ezclient/check_options.rb
158
158
  - lib/ezclient/client.rb
159
159
  - lib/ezclient/errors.rb
160
- - lib/ezclient/http_patch.rb
161
160
  - lib/ezclient/request.rb
162
161
  - lib/ezclient/response.rb
163
162
  - lib/ezclient/version.rb
@@ -1,32 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- unless HTTP::Client.instance_methods.include?(:build_request)
4
- # Backport of https://github.com/httprb/http/pull/458 for HTTP v3
5
- class HTTP::Client
6
- def build_request(verb, uri, opts = {})
7
- opts = @default_options.merge(opts)
8
- uri = make_request_uri(uri, opts)
9
- headers = make_request_headers(opts)
10
- body = make_request_body(opts, headers)
11
- proxy = opts.proxy
12
-
13
- HTTP::Request.new(
14
- verb: verb,
15
- uri: uri,
16
- headers: headers,
17
- proxy: proxy,
18
- body: body,
19
- auto_deflate: opts.feature(:auto_deflate),
20
- )
21
- end
22
- end
23
- end
24
-
25
- unless HTTP::Request::Body.instance_methods.include?(:source)
26
- # Backport for HTTP v3
27
- class HTTP::Request::Body
28
- def source
29
- @body
30
- end
31
- end
32
- end