ezclient 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ezclient/errors.rb +4 -0
- data/lib/ezclient/response.rb +2 -5
- data/lib/ezclient/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 364e89134c8a1b2d916bf1eed66ef13d5e1bb54bfe6bcbb5e031e3452ba0cb8c
|
4
|
+
data.tar.gz: 5e7c6c004ec2601a2c0ee1ff0a413d12d2e8de8561ede3c34bf34c660d8ca6f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbcae1b6a8470fe15f2312c118d08729fe121b7a681c5db2fa8b99bc2fca23cf008f2c133c35788829a87d6f54490dbbce940c0c8f79860cee56d998a518c46c
|
7
|
+
data.tar.gz: bae8bfc733d1e567175fb60203e9901d9d13ecc689a264fcdf1441bcdc2596d113b5a18f0d5c68e977aaab0089b15ea43afffffb8cf1f4d145621cd234e480c8
|
data/lib/ezclient/errors.rb
CHANGED
data/lib/ezclient/response.rb
CHANGED
@@ -1,14 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
class EzClient::Response
|
4
|
-
attr_accessor :http_response
|
4
|
+
attr_accessor :http_response, :body
|
5
5
|
|
6
6
|
def initialize(http_response)
|
7
7
|
self.http_response = http_response
|
8
|
-
|
9
|
-
|
10
|
-
def body
|
11
|
-
http_response.body.to_s
|
8
|
+
self.body = http_response.body.to_s # Make sure we read the body for persistent connection
|
12
9
|
end
|
13
10
|
|
14
11
|
def headers
|
data/lib/ezclient/version.rb
CHANGED