spot-gps 0.2.0 → 0.2.1
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 +4 -4
- data/.travis.yml +2 -0
- data/CHANGELOG.md +4 -0
- data/README.md +6 -0
- data/lib/spot-gps/services/messages.rb +4 -1
- data/lib/spot-gps/version.rb +1 -1
- data/spec/{api_spec.rb → client_spec.rb} +0 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8313cb1f50ceb658a15e2b26ac1cd482866e371f
|
4
|
+
data.tar.gz: 07b18f7b8c85a96e352ae60b06d39459edab4068
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7016d42d4a25ac8d760ce84459526e13b58c570404b410d4b920aa931d3486770b42f77ced2ff3df70fb6db840456f5b056710a935696f89b02045d0f2ac7f02
|
7
|
+
data.tar.gz: 79bb4e3d101b91a5578c9981d4def1bddf78fd27a20df4cf67ae9e50abb9af9173d64248b21306fd36460c6505cb438ae8b0af8e27bf1c1d4f9b789abadb9367
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -13,6 +13,12 @@ Add this line to your application's Gemfile:
|
|
13
13
|
gem 'spot-gps'
|
14
14
|
```
|
15
15
|
|
16
|
+
You'll then need to require SPOT before using it:
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'spot'
|
20
|
+
```
|
21
|
+
|
16
22
|
## Configuration
|
17
23
|
|
18
24
|
Timeout options can be configured globally, or you can rely on the default
|
@@ -35,7 +35,10 @@ module SPOT
|
|
35
35
|
private
|
36
36
|
|
37
37
|
def unenvelope_body(body)
|
38
|
-
body
|
38
|
+
response = body["response"] || {}
|
39
|
+
feed_message_response = response["feedMessageResponse"] || {}
|
40
|
+
messages = feed_message_response["messages"] || {}
|
41
|
+
message = messages["message"]
|
39
42
|
end
|
40
43
|
|
41
44
|
def spot_formatted_time(time)
|
data/lib/spot-gps/version.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spot-gps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grey Baker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: webmock
|
@@ -97,7 +97,7 @@ files:
|
|
97
97
|
- lib/spot.rb
|
98
98
|
- spec/api_response_spec.rb
|
99
99
|
- spec/api_service_spec.rb
|
100
|
-
- spec/
|
100
|
+
- spec/client_spec.rb
|
101
101
|
- spec/fixtures/latest.json
|
102
102
|
- spec/fixtures/message.json
|
103
103
|
- spec/fixtures/no_messages.json
|
@@ -132,7 +132,7 @@ summary: A wrapper for the SPOT API
|
|
132
132
|
test_files:
|
133
133
|
- spec/api_response_spec.rb
|
134
134
|
- spec/api_service_spec.rb
|
135
|
-
- spec/
|
135
|
+
- spec/client_spec.rb
|
136
136
|
- spec/fixtures/latest.json
|
137
137
|
- spec/fixtures/message.json
|
138
138
|
- spec/fixtures/no_messages.json
|