ezclient 0.16.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ezclient/request.rb +4 -0
- data/lib/ezclient/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 127a10e9346fcbb5498bf8a4d82781f95e1765d7c5208c4337881204f10dd290
|
4
|
+
data.tar.gz: 2a09e878beed9ed75c9aeaf78b07d1e3e6cd6d1e96456775ecc8062489ee01ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d562d84a39c415c90b417f5b49afc5330eef0f59112b282e34a69138124f1d4bc73f98ee806b400e92f30ede925f287a0ece9c12f2c136199848ef2a528f649
|
7
|
+
data.tar.gz: 9ef56bc7f181fcd779f0ef1767b94b7304c2e28e6be4b1e5994ceebcd00db62cfe30762a7d81069324c924bc6e6a01387e8bf339a101050ea739420f1f623c60
|
data/lib/ezclient/request.rb
CHANGED
@@ -57,6 +57,10 @@ class EzClient::Request
|
|
57
57
|
http_request.headers.to_h
|
58
58
|
end
|
59
59
|
|
60
|
+
def add_headers!(new_headers)
|
61
|
+
http_request.headers.merge!(new_headers)
|
62
|
+
end
|
63
|
+
|
60
64
|
def http_options
|
61
65
|
@http_options ||= http_client.default_options.merge(ssl_context: options[:ssl_context])
|
62
66
|
end
|
data/lib/ezclient/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ezclient
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuri Smirnov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
version: '0'
|
181
181
|
requirements: []
|
182
182
|
rubyforge_project:
|
183
|
-
rubygems_version: 2.7.
|
183
|
+
rubygems_version: 2.7.7
|
184
184
|
signing_key:
|
185
185
|
specification_version: 4
|
186
186
|
summary: An HTTP gem wrapper for easy persistent connections and more.
|