cortex-client 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cortex/request.rb +1 -1
- data/lib/cortex/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 070d6f90c4605cd13d62e028b976e0789a127c26
|
4
|
+
data.tar.gz: ff5af839f6373cf7a20b4b05426a04592b397ab5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 133ab3223abf0b2c33af3b03c1a5174098e1fc28696a54b425c5397688460bb6f17b5e1a1e406674d8c8228003ebbc1006d6ee9863d94b7fa126537ccc98f78d
|
7
|
+
data.tar.gz: 149630640159bd9a04092cb789e9302e9d6778130d9e0d35f4e3795e6428b32b33b3b17a8b7c67a1d13ad529fc56c231ee0a11601239953219c16c05c352d91b
|
data/lib/cortex/request.rb
CHANGED
@@ -50,7 +50,7 @@ module Cortex
|
|
50
50
|
|
51
51
|
def parse_response(response)
|
52
52
|
if response.status < 300 || (response.body.kind_of?(Hash) && response.body['error'])
|
53
|
-
OpenStruct.new({body: response.body, headers: response.headers.select { |k| [
|
53
|
+
OpenStruct.new({body: response.body, headers: response.headers.select { |k| [:'Content-Range', :'X-Total-Items'].include? k } })
|
54
54
|
else
|
55
55
|
OpenStruct.new({:error => response.body, :status => response.status, :original => response})
|
56
56
|
end
|
data/lib/cortex/version.rb
CHANGED