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 +4 -4
- data/ezclient.gemspec +1 -1
- data/lib/ezclient/version.rb +1 -1
- data/lib/ezclient.rb +0 -1
- metadata +3 -4
- data/lib/ezclient/http_patch.rb +0 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ef4b467ccd6d41d541c0f8bbd6d77b499f6ad5e359abf07b4b23eac8fea36cd
|
4
|
+
data.tar.gz: 6d68874b9456bbe13590ac9ee7621f5a597ea0fd60297dedd3ee15f69faef416
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
20
|
+
spec.add_runtime_dependency "http", ">= 3.3"
|
21
21
|
|
22
22
|
spec.add_development_dependency "bundler"
|
23
23
|
spec.add_development_dependency "coveralls"
|
data/lib/ezclient/version.rb
CHANGED
data/lib/ezclient.rb
CHANGED
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.
|
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.
|
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.
|
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
|
data/lib/ezclient/http_patch.rb
DELETED
@@ -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
|