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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0218155bce003ba4d2c5002c78398553b3ae4097954f07a9f78d9f615a87bd28'
4
- data.tar.gz: a3e75129937eadc69b9dd798b4726cc1735c777b11c838c250632a779f710005
3
+ metadata.gz: 364e89134c8a1b2d916bf1eed66ef13d5e1bb54bfe6bcbb5e031e3452ba0cb8c
4
+ data.tar.gz: 5e7c6c004ec2601a2c0ee1ff0a413d12d2e8de8561ede3c34bf34c660d8ca6f6
5
5
  SHA512:
6
- metadata.gz: 3f50a99a73be9d7608cd08d7b47ff8af15923a590967c1519d9f2df9ab0f03de1ba935cfc98bfeeede06cf963e0ec0eea2a24efc226750cfcfeb836682d26c56
7
- data.tar.gz: d993d191ecd78bc05fa66f2f77c0cff899cba18f1589f6ea31c22cab87f554ee743883249bd129675b77d49db6aa0ce8c92139fa3a8ec39a6794a3d4ec3dc043
6
+ metadata.gz: dbcae1b6a8470fe15f2312c118d08729fe121b7a681c5db2fa8b99bc2fca23cf008f2c133c35788829a87d6f54490dbbce940c0c8f79860cee56d998a518c46c
7
+ data.tar.gz: bae8bfc733d1e567175fb60203e9901d9d13ecc689a264fcdf1441bcdc2596d113b5a18f0d5c68e977aaab0089b15ea43afffffb8cf1f4d145621cd234e480c8
@@ -7,5 +7,9 @@ module EzClient
7
7
  def initialize(response)
8
8
  self.response = response
9
9
  end
10
+
11
+ def message
12
+ "Bad response code: #{response.code}"
13
+ end
10
14
  end
11
15
  end
@@ -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
- end
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EzClient
4
- VERSION = "0.6.0"
4
+ VERSION = "0.6.1"
5
5
  end
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.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuri Smirnov