cortex-client 0.2.3 → 0.2.4
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: fb83225cad244a44c14e2f7eac793daff803a9bc
|
4
|
+
data.tar.gz: bbe736c07d50f35902b9879c879a016a94d1b49c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fa0e7bc0e48dcad5a5d0b3aeb4c09f548d8218d7cf42285db201881cf0016ba8237935d9be6f2e8ca25a12a3dd90c591ad42e6fccdcf65a6aaeb29330c65a2a
|
7
|
+
data.tar.gz: bacb0814c8fdb71d874c618bf9ca8a82d9d96537a66eb08b5026a5e4bbab32433bcee7ec7e8378a06809458166a443e1733f90eed1804fa5f7c04397bf084ff1
|
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| ['content-range',
|
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