dblista 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/dblista.rb +3 -1
- data/lib/dblista/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: 51c3d13971d2263b0c97cf0e6f51d28ca72a870a67a660a6f63807e10f3caaad
|
4
|
+
data.tar.gz: 3628e33de56b321182bd41a05ce771515395d76a3c2e8baf3da8828354c3d516
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cbb274d9b3223729e6dcd67ddbb8017b7ab53f5fcce2404a7255fab2ed5bf9945968169865bd9d1e987f285ae78102721868957d7e992a37f35e2849051489e
|
7
|
+
data.tar.gz: 59678c99464e688a1d00d85bbe3a47abf7c1a035cf1348adccba684b321e6feddcd16bcb7e478dcac67d9e6e89c3706dbae5313b277ea0373ebd93c8eb5086ba
|
data/Gemfile.lock
CHANGED
data/lib/dblista.rb
CHANGED
@@ -34,7 +34,9 @@ module DBLista
|
|
34
34
|
req['Content-Type'] = 'application/json'
|
35
35
|
req['Authorization'] = token if token
|
36
36
|
response = _https(uri).request(req)
|
37
|
-
JSON.parse response.body
|
37
|
+
result = JSON.parse response.body
|
38
|
+
raise DBLista::Error, result['error'].capitalize unless result['status'] == 'success'
|
39
|
+
result
|
38
40
|
end
|
39
41
|
|
40
42
|
# @!visibility private
|
data/lib/dblista/version.rb
CHANGED