veezo-location-api 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e6c2a57cf7fb9deb8c8c50c23b4219546769d718edb3d32f1b2a5b2294cba70
4
- data.tar.gz: e86895e59f0b30ead00f017d5596a0d04af3c16bc97d5230ffd5cb4e00311da7
3
+ metadata.gz: 8b4d61775a9ee82e26393f7a7e48141df2f30c06a37a18157ba257d5a98a43ee
4
+ data.tar.gz: f5f40ac508c7b215559aaa782590cb58d254c9db25339268c3b73c0ae011cad7
5
5
  SHA512:
6
- metadata.gz: 0ac21002913a5f2b533b01f99a46fc9854bec99814a5a03be90425c2521a3c3934ac1d2da072cf5c8a20dab1d0626e39675ee1646a54e6e832559818016fafed
7
- data.tar.gz: b59e266e4c24b309462192c8d4dab0aef8d232055e23db9fbebc4a175873069a138307458117c4acfdc5df5a0befa50f726b2b51e46ae97522bc4117a19e1e55
6
+ metadata.gz: 0ea76c00adff881819bc0114e76e757882fab76344f275621b0d129ee7e032d8afac5f7512d46ff953916fadd968a358a85069154583b3f49f1921875e086e63
7
+ data.tar.gz: 5cffb21e155d7bbb5fb4cae06d4c0cac5f5811e64c17d46e7504d0823380b31edbcf1eff45c4fc13df40d57de58cfefeb37bc0122610f1c0f23dc2428d921ebb
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- veezo-location-api (0.1.2)
4
+ veezo-location-api (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -49,12 +49,14 @@ module VeezoLocationApi
49
49
  code = response.code.to_i
50
50
  success = (code == 200)
51
51
 
52
- if success
52
+ if success && response.body.data.empty?
53
53
  data = JSON.parse(response.body.data)
54
54
  end
55
55
 
56
56
  Response.new(
57
- success: success, status_code: code, data: data
57
+ success: success,
58
+ status_code: code,
59
+ data: data
58
60
  )
59
61
  end
60
62
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VeezoLocationApi
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: veezo-location-api
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
  - Eduardo Barbiero