veezo-location-api 0.1.0 → 0.1.5

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: 03f1c9bea906c3bd2e58f4a93054f6017efb4b57787f73dd1bf30fc11ce0dc52
4
- data.tar.gz: 755b0cd6c9c90742113b7f17697f864c2e8f70e433e0c57e8837ad00d7a29b40
3
+ metadata.gz: 929c8b6f8a61f83081b829269d43e551a08d7592558cb9c4e1e1237f83af600c
4
+ data.tar.gz: eed6dd3232f3e192a10e03102e915fd240389d4ff168a09a2d2c7c0d610f94a4
5
5
  SHA512:
6
- metadata.gz: df3a43d2e446b431c516f1e10d4aae6821c0272a76fd7c3611c9d7a65cb949e047e9ebec8df7dacc9b963388002a636167b0d2acfa800052a75d1b641327bc15
7
- data.tar.gz: c5144e4f8d982c53dd9ada6fbbe2d758b76a25ac96c08a4c6c5c75cd6e6d7ad49d89863a6343b0947ba41c6ff4d97ba40c8169f0712da8d77c64573ece499427
6
+ metadata.gz: f5de50282141e96f31425694a7038f720ed32c072e0099da072425a7c70837adbadb4047a18445acb495810678fd78bb62d63a7663c1378fba6a948b5384ea35
7
+ data.tar.gz: 9937b7c11f5e64381403b0919396b3bd28b4d376879f5597349a0654c2045c07eea8f093e0bf4ac563ae4cde2fdd0aa88e373f519939434f8078c434dceddab3
@@ -0,0 +1,19 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ veezo-location-api (0.1.5)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ rake (12.3.3)
10
+
11
+ PLATFORMS
12
+ ruby
13
+
14
+ DEPENDENCIES
15
+ rake (~> 12.0)
16
+ veezo-location-api!
17
+
18
+ BUNDLED WITH
19
+ 2.1.4
@@ -50,11 +50,14 @@ module VeezoLocationApi
50
50
  success = (code == 200)
51
51
 
52
52
  if success
53
- data = JSON.parse(response.body.data)
53
+ temp_data = JSON.parse(response.body)
54
+ data = temp_data.data if temp_data.data.any?
54
55
  end
55
56
 
56
57
  Response.new(
57
- success: success, status_code: code, data: data
58
+ success: success,
59
+ status_code: code,
60
+ data: data
58
61
  )
59
62
  end
60
63
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VeezoLocationApi
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.5'
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.0
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo Barbiero
@@ -20,6 +20,7 @@ files:
20
20
  - ".gitignore"
21
21
  - CODE_OF_CONDUCT.md
22
22
  - Gemfile
23
+ - Gemfile.lock
23
24
  - LICENSE.txt
24
25
  - README.md
25
26
  - Rakefile