gpsd_client 0.0.3 → 0.0.4

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.
data/README.md CHANGED
@@ -2,16 +2,12 @@
2
2
 
3
3
  A simple GPSd client intended for use on the Raspberry Pi.
4
4
 
5
- Actually only implements new(options = {}), start(), stop(), and get_position() which are just a few but very simple methods.
5
+ Provides four simple methods to communicate with GPSd: `new(options = {})`, `start()`, `stop()`, and `get_position()`.
6
6
  (See Usage)
7
7
 
8
+ * Next version will implement fix_status().
9
+ * The Next-Next will add some documentation.
8
10
 
9
- * Next days will fix some non fatal bugs. (like actually closing the socket on stop())
10
- * Next version will implement fix_status(), time(), speed() and altitude().
11
- * Next Next will clean-up the code.
12
- * The Next after the Next-Next will add some documentation.
13
-
14
- Stay Tuned!
15
11
 
16
12
  ## Installation
17
13
 
@@ -23,7 +19,7 @@ gem 'gpsd_client'
23
19
 
24
20
  And then execute:
25
21
 
26
- $ bundle
22
+ $ bundle install
27
23
 
28
24
  Or install it yourself as:
29
25
 
data/bin/console CHANGED
File without changes
data/lib/gpsd_client.rb CHANGED
@@ -57,8 +57,8 @@ module GpsdClient
57
57
  line = ""
58
58
  begin
59
59
  @socket.puts '?WATCH={"enable":true};'
60
+ sleep 0.1
60
61
  @socket.puts "?POLL;"
61
- sleep 1
62
62
  line = @socket.gets
63
63
  rescue Exception => ex
64
64
  puts "Error while reading Socket: #{ex.message}"
@@ -82,7 +82,7 @@ module GpsdClient
82
82
  reads = reads + 1
83
83
 
84
84
  end
85
- puts "TPV not found polling on GPSd"
85
+ #puts "debug >> TPV not found polling on GPSd"
86
86
  return empty_hash
87
87
  end
88
88
 
@@ -1,3 +1,3 @@
1
1
  module GpsdClient
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gpsd_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -93,7 +93,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  segments:
95
95
  - 0
96
- hash: 223085853
96
+ hash: -491074447
97
97
  required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  none: false
99
99
  requirements:
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  segments:
104
104
  - 0
105
- hash: 223085853
105
+ hash: -491074447
106
106
  requirements: []
107
107
  rubyforge_project:
108
108
  rubygems_version: 1.8.23