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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d8b0903516cfa4fa8380df8b32e4dd8b7b99c48
4
- data.tar.gz: 8027a9f30397682700e08ba08697bf4c08fe9105
3
+ metadata.gz: 42cb4e7061b9a9e556d093a4c57b2b44e6a5ca24
4
+ data.tar.gz: 6c72d86a1f9c89b3c8f398b4f8ecbe7982120aee
5
5
  SHA512:
6
- metadata.gz: 6af5db30f5ca02f4defd81f2bce76f2664b6b2648d2583e15625ca1f3cec59f7edb55fb635199a69518b1bced687281ab90a81c32da5cfbc0d1f7d7b8cd4097e
7
- data.tar.gz: c241257559dd44332de8868db7f7c3fbbca5f02258de2bbb8c20075ab5967e775f5f732eed5becbe13dd97e19891de6d8a470c4cda6019d9b34c35cd4b8ae00b
6
+ metadata.gz: cdb874a7413840416fc536549bfb3263ff59dc39db3566a7639a5d0a403c3be0f7359d06abd30ee1c153db09d787df33ebf33f5640ce6bf2254ee4ce021247ed
7
+ data.tar.gz: 270f56c827118db43b591e8432b2e3bd053e826b3aa6cb0e58295150a987a7610e76ad68932b268c6d5494859bd0214decf250b30a78fc9b1a7c76c2cae8fb1e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v0.2.3, 31 July 2016
2
+
3
+ - Handle missing `messageContent` field (not present on TRACK messages)
4
+
1
5
  ## v0.2.2, 17 July 2016
2
6
 
3
7
  - Don't include password in querystring when it's blank
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')
@@ -1,3 +1,3 @@
1
1
  module SPOT
2
- VERSION = '0.2.2'.freeze
2
+ VERSION = '0.2.3'.freeze
3
3
  end
@@ -37,15 +37,14 @@
37
37
  "messengerId": "0-1234567",
38
38
  "messengerName": "My SPOT",
39
39
  "unixTime": 1468149143,
40
- "messageType": "OK",
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.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-17 00:00:00.000000000 Z
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