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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd30beee45ef852e2ef63c83c1671600b1aef085
4
- data.tar.gz: fe3e6c3dc00cd6f8ccf2fe00955c121be5919009
3
+ metadata.gz: 8313cb1f50ceb658a15e2b26ac1cd482866e371f
4
+ data.tar.gz: 07b18f7b8c85a96e352ae60b06d39459edab4068
5
5
  SHA512:
6
- metadata.gz: b9807c61a995b52a9b6ec8cf36ffd10d43b87b222a6b87096216ed0e7e3e90b0abf6e2564ac03c0cc28372b13bf34cbff12d8a894a270527a3220be426677f83
7
- data.tar.gz: 3794197c9ca65049abefb6483409f5b627fd83d697cb525d7c0a8728145778994794971347ffd6cce1ed8ba67f388e8f18cd6cc1c7b21c22b061bbf47f997fbe
6
+ metadata.gz: 7016d42d4a25ac8d760ce84459526e13b58c570404b410d4b920aa931d3486770b42f77ced2ff3df70fb6db840456f5b056710a935696f89b02045d0f2ac7f02
7
+ data.tar.gz: 79bb4e3d101b91a5578c9981d4def1bddf78fd27a20df4cf67ae9e50abb9af9173d64248b21306fd36460c6505cb438ae8b0af8e27bf1c1d4f9b789abadb9367
data/.travis.yml CHANGED
@@ -7,6 +7,8 @@ matrix:
7
7
 
8
8
  rvm:
9
9
  - '2.3.1'
10
+ - '2.2'
11
+ - '2.1'
10
12
  - jruby
11
13
  - rbx-2
12
14
 
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v0.2.1, 16 July 2016
2
+
3
+ - Add support for Ruby 2.2 and 2.1.
4
+
1
5
  ## v0.2.0, 11 July 2016
2
6
 
3
7
  - `#to_h` now returns a resources cleaned attributes, not its initial input
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.dig("response", "feedMessageResponse", "messages", "message")
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)
@@ -1,3 +1,3 @@
1
1
  module SPOT
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.2.1'.freeze
3
3
  end
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.0
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 00:00:00.000000000 Z
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/api_spec.rb
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/api_spec.rb
135
+ - spec/client_spec.rb
136
136
  - spec/fixtures/latest.json
137
137
  - spec/fixtures/message.json
138
138
  - spec/fixtures/no_messages.json