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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4ba88619d64539697aa11e51f60ecbf292729ae2d6d8c2ae3291caea28b40dc2
4
- data.tar.gz: dcdcd9f0bb7482b30d0d388ea6cda59fad862267341e6b28e8e10bd558a0e3c2
3
+ metadata.gz: 51c3d13971d2263b0c97cf0e6f51d28ca72a870a67a660a6f63807e10f3caaad
4
+ data.tar.gz: 3628e33de56b321182bd41a05ce771515395d76a3c2e8baf3da8828354c3d516
5
5
  SHA512:
6
- metadata.gz: 65e48135e27d24539322178ed7f7f27c437e7a54a2f22cf004780f9babad45b2baa96972f75f4c88e433e05f20be390453a1a6fdeb7b752da42d9e2b4929cb16
7
- data.tar.gz: a3d951c2872d596ce2867b905df9d2e513d1c776ca89011c6b1b624a006dd590b66d370e413bc7213828fa317a0291d872f0a6767dec23a2621f61087c0fb12e
6
+ metadata.gz: 1cbb274d9b3223729e6dcd67ddbb8017b7ab53f5fcce2404a7255fab2ed5bf9945968169865bd9d1e987f285ae78102721868957d7e992a37f35e2849051489e
7
+ data.tar.gz: 59678c99464e688a1d00d85bbe3a47abf7c1a035cf1348adccba684b321e6feddcd16bcb7e478dcac67d9e6e89c3706dbae5313b277ea0373ebd93c8eb5086ba
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dblista (0.1.2)
4
+ dblista (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module DBLista
4
4
  # Wrapper version
5
- VERSION = '0.1.2'
5
+ VERSION = '0.1.3'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dblista
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - deepivin