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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ef4b467ccd6d41d541c0f8bbd6d77b499f6ad5e359abf07b4b23eac8fea36cd
4
- data.tar.gz: 6d68874b9456bbe13590ac9ee7621f5a597ea0fd60297dedd3ee15f69faef416
3
+ metadata.gz: 127a10e9346fcbb5498bf8a4d82781f95e1765d7c5208c4337881204f10dd290
4
+ data.tar.gz: 2a09e878beed9ed75c9aeaf78b07d1e3e6cd6d1e96456775ecc8062489ee01ea
5
5
  SHA512:
6
- metadata.gz: ef24a1d21ffd4d4a612d423ef2d1942b44153f2813a4ed77497ba2a56f9a00df45856d81b951d5b56a724f10483e17a8a03030301c68ae5ac8c123b8e98daa0f
7
- data.tar.gz: c0bf6c2917abcc003703ac518838fe54adc3742a218a3547afa7e211407ea574c8f5f279e7e733b74ff8216191452a0845a0c8eac41b4b59249e1941c52fb01d
6
+ metadata.gz: 7d562d84a39c415c90b417f5b49afc5330eef0f59112b282e34a69138124f1d4bc73f98ee806b400e92f30ede925f287a0ece9c12f2c136199848ef2a528f649
7
+ data.tar.gz: 9ef56bc7f181fcd779f0ef1767b94b7304c2e28e6be4b1e5994ceebcd00db62cfe30762a7d81069324c924bc6e6a01387e8bf339a101050ea739420f1f623c60
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EzClient
4
- VERSION = "0.16.0"
4
+ VERSION = "1.0.0"
5
5
  end
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.16.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-04-25 00:00:00.000000000 Z
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.6
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.