spot-gps 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/LICENSE.txt +21 -0
- data/lib/spot-gps/resources/message.rb +1 -1
- data/lib/spot-gps/version.rb +1 -1
- data/spec/fixtures/message.json +2 -3
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42cb4e7061b9a9e556d093a4c57b2b44e6a5ca24
|
4
|
+
data.tar.gz: 6c72d86a1f9c89b3c8f398b4f8ecbe7982120aee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdb874a7413840416fc536549bfb3263ff59dc39db3566a7639a5d0a403c3be0f7359d06abd30ee1c153db09d787df33ebf33f5640ce6bf2254ee4ce021247ed
|
7
|
+
data.tar.gz: 270f56c827118db43b591e8432b2e3bd053e826b3aa6cb0e58295150a987a7610e76ad68932b268c6d5494859bd0214decf250b30a78fc9b1a7c76c2cae8fb1e
|
data/CHANGELOG.md
CHANGED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2016 Grey Baker
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
@@ -25,7 +25,7 @@ module SPOT
|
|
25
25
|
@battery_state = object.fetch('batteryState')
|
26
26
|
@hidden = object.fetch('hidden') == 1
|
27
27
|
@show_custom_message = object.fetch('showCustomMsg') == "Y"
|
28
|
-
@content = object.fetch('messageContent')
|
28
|
+
@content = object.fetch('messageContent', nil)
|
29
29
|
@messenger_id = object.fetch('messengerId')
|
30
30
|
@messenger_name = object.fetch('messengerName')
|
31
31
|
@messenger_model = object.fetch('modelId')
|
data/lib/spot-gps/version.rb
CHANGED
data/spec/fixtures/message.json
CHANGED
@@ -37,15 +37,14 @@
|
|
37
37
|
"messengerId": "0-1234567",
|
38
38
|
"messengerName": "My SPOT",
|
39
39
|
"unixTime": 1468149143,
|
40
|
-
"messageType": "
|
40
|
+
"messageType": "TRACK",
|
41
41
|
"latitude": 61.54875,
|
42
42
|
"longitude": -3.0697,
|
43
43
|
"modelId": "SPOT3",
|
44
44
|
"showCustomMsg": "Y",
|
45
45
|
"dateTime": "2016-07-10T11:12:23+0000",
|
46
46
|
"batteryState": "GOOD",
|
47
|
-
"hidden": 0
|
48
|
-
"messageContent": "This is the default SPOT Check In/OK message. Please update."
|
47
|
+
"hidden": 0
|
49
48
|
}
|
50
49
|
]
|
51
50
|
}
|
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.3
|
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-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: webmock
|
@@ -83,6 +83,7 @@ files:
|
|
83
83
|
- ".travis.yml"
|
84
84
|
- CHANGELOG.md
|
85
85
|
- Gemfile
|
86
|
+
- LICENSE.txt
|
86
87
|
- README.md
|
87
88
|
- lib/spot-gps/api_response.rb
|
88
89
|
- lib/spot-gps/api_service.rb
|