ezclient 0.13.1 → 0.14.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: a19d6cd7219ac3006479a01ef7a954f22e9f9abd1226985ebca38e7a3ead6a89
4
- data.tar.gz: 244dc29f8383c7ed3f1e549fc83558fc6484b3ad106cc66a7ee46eac8ebac6a1
3
+ metadata.gz: dcf557ea3e57e7058976351ec931aaa365f47c962649c15b0371401ad212042d
4
+ data.tar.gz: c4a20588700dfff8c863ba469467eca6a5233cb5af01796f56402306cb6c974c
5
5
  SHA512:
6
- metadata.gz: 7c8d6f6ae94aadfd0c52dda863eb65812d948a6affd15e29ddfcd2a2b615ea5fa2bf76939a2625bc5ba6e9548d32df43de1abc2c4478296e2b39413e848d04c7
7
- data.tar.gz: b8332041082a5cd8c480c7dbfeaa56317136f878116604509b2b783b85797e2520b6ddb35bc66294cdabf280be770fedabd1a0b3e05e7d9857d8f10ddb143c30
6
+ metadata.gz: 736bb680cc5b2e28f9e8e6bc6ac098d9a09c6a2990b3679207f2edb3205ddf46e156652117de570f7cbdd1efa4fbaa39dbb42e40d8a94ddc55ddbb3cc96a9160
7
+ data.tar.gz: e60fd674b78b707c78479be4017ffeff62c7b596d6857ff5b1eb4c24b8fa894dd13f52860fb5937f62439d4f18e3b9c7a4f071d3e5410a6c5834bbb92ac2f475
@@ -4,6 +4,7 @@ class EzClient::Client
4
4
  REQUEST_OPTION_KEYS = %i[
5
5
  api_auth
6
6
  basic_auth
7
+ cookies
7
8
  headers
8
9
  keep_alive
9
10
  max_retries
@@ -87,6 +87,7 @@ class EzClient::Request
87
87
  http_client = client.dup
88
88
  http_client = set_timeout(http_client)
89
89
  http_client = http_client.basic_auth(basic_auth) if basic_auth
90
+ http_client = http_client.cookies(options[:cookies]) if options[:cookies]
90
91
  http_client
91
92
  end
92
93
  end
@@ -17,6 +17,10 @@ class EzClient::Response
17
17
  end
18
18
  alias status code
19
19
 
20
+ def cookies
21
+ http_response.cookies
22
+ end
23
+
20
24
  def ok?
21
25
  code.between?(200, 299)
22
26
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EzClient
4
- VERSION = "0.13.1"
4
+ VERSION = "0.14.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.13.1
4
+ version: 0.14.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-03-15 00:00:00.000000000 Z
11
+ date: 2018-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http