my_gpsd_client 0.02.00 → 0.02.01
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/lib/my_gpsd_client.rb +11 -10
- data/lib/my_gpsd_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0bf724ca9a22125086a4bca0663a86a0e8429ec8572eda9e90d237155d74ef4c
|
|
4
|
+
data.tar.gz: c8db37075c61c42f159caaf707ff5035f9f92cfd2ff3b561cbe504c70a0d380d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 05ff6625e0c4e0436a818e31c33ebe65a3b0d85e94d22675ff7de495d552bd11d18a0b24dbc52968e93bf8e9dacefd831ed04f3ece8250da92d2e15676a523ab
|
|
7
|
+
data.tar.gz: d62a9fabcb1f58880b71308a8a487fde582eebf374c1e63f2bdb95eb0602c2dd6026829f7c17fde929ddea64cbbd10af1bfc929d4a353dda1d7cad477c77f711
|
data/lib/my_gpsd_client.rb
CHANGED
|
@@ -92,6 +92,17 @@ class MyGpsdClient
|
|
|
92
92
|
my_logger level: level, msg: "~~~~~~~~~~~~~~~~~~~~~~~ #{msg} ~~~~~~~~~~~~~~~~~~~~~~~"
|
|
93
93
|
end
|
|
94
94
|
|
|
95
|
+
def on_raw_send(options:{}, &block)
|
|
96
|
+
@sent_raw_callback = block
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# @param [Object] options Possible options to pass (not used yet)
|
|
100
|
+
# @param [Block] block Block to call when new json object comes from gpsd
|
|
101
|
+
def on_raw_change(options:{}, &block)
|
|
102
|
+
@json_raw_callback = block
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
|
|
95
106
|
private
|
|
96
107
|
|
|
97
108
|
def send_cmmd
|
|
@@ -392,16 +403,6 @@ class MyGpsdClient
|
|
|
392
403
|
return "waiting for connection with gpsd" if @socket_ready == false
|
|
393
404
|
end
|
|
394
405
|
|
|
395
|
-
def on_raw_send(options:{}, &block)
|
|
396
|
-
@sent_raw_callback = block
|
|
397
|
-
end
|
|
398
|
-
|
|
399
|
-
# @param [Object] options Possible options to pass (not used yet)
|
|
400
|
-
# @param [Block] block Block to call when new json object comes from gpsd
|
|
401
|
-
def on_raw_change(options:{}, &block)
|
|
402
|
-
@json_raw_callback = block
|
|
403
|
-
end
|
|
404
|
-
|
|
405
406
|
# @param [Object] options Possible options to pass (not used yet)
|
|
406
407
|
# @param [Block] block Block to call when new gps position json object comes from gpsd
|
|
407
408
|
def on_position_change(options:{}, &block)
|