my_gpsd_client 0.02.05 → 0.02.09

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
  SHA256:
3
- metadata.gz: cca72cd805fe4666ec09ab123acc03c901c815c6d02b5d35be1a413baf5ba167
4
- data.tar.gz: 3e8c5649ed8a39cd03b2e0a2791159ce43f5f437fe089f7651f599e0edd6c606
3
+ metadata.gz: e66ae7bf6bd09eb05e520be8164ec0ae3de1355bd9a669ccbdb0061b82c48355
4
+ data.tar.gz: e4ce179d38060c3d95de7ff94eb35330d088084d4e7437d6ba105e8c48f575e2
5
5
  SHA512:
6
- metadata.gz: 12ea53ddd4aaa482822d587d4825dc7049e824aa9b50e2022b808634e73e419a3093677c7462a863dda5012c3a6d1fd5a30436bf6ba76867dd423d833c9027b8
7
- data.tar.gz: bbdaa19ca254d5d17368ab67d1d8b5d27337a115387410507a38096c89153e3a41dd954087608b12e1624698e9e58d75d714bdfc2c711bcd9623def20cc0e433
6
+ metadata.gz: 73fade347bd2b2529ae12180db62c2a3f5e723a9f2027fec72da6afef75e7379152e28a97a8fa8bf55b15e45e877ca81e12a2a3e3374638b174573a29dd78fa9
7
+ data.tar.gz: 247bb6e59725d2047e2664783fc420a2591427229012d8230dcd3a2dc8812e043dc81e2128a0eb70a5f874ee1e8de6662ffa4eb47ce4f9524d3579505395b2ee
@@ -1,3 +1,3 @@
1
1
  class MyGpsdClient_version
2
- VERSION = "0.02.05"
2
+ VERSION = "0.02.09"
3
3
  end
@@ -5,7 +5,7 @@ require 'date'
5
5
  require 'logger'
6
6
 
7
7
  class MyGpsdClient
8
- attr_accessor :host, :port, :command, :min_speed, :watchdog_max, :watchdog_force, :watchdog_euthanized
8
+ attr_accessor :host, :port, :command, :min_speed, :watchdog_max, :watchdog_force, :watchdog_euthanized,
9
9
  :log_progname, :log_level, :log_path, :log_format, :log_time_format
10
10
  attr_reader :version, :last_watch, :socket_ready, :socket, :msg_counts, :watchdog_fired_count,
11
11
  :readthread, :socket_init_thread, :watchdogthread, :watchdog_count
@@ -160,11 +160,16 @@ class MyGpsdClient
160
160
  else
161
161
  # it's ready, tell it to start watching and passing
162
162
  my_logger msg: "Send_cmmd: socket ready, send cmmd"
163
- str = "?#{@command[:class].upcase}=#{@command.to_json}"
163
+ if @command.size > 1
164
+ str = "?#{@command[:class].upcase}=#{@command.to_json}"
165
+ else
166
+ str = "?#{@command[:class].upcase};"
167
+ end
164
168
  my_logger level: 'info', msg: "Send_cmmd: sending: #{str}"
165
169
  @sent_raw_callback.call( str) if @sent_raw_callback
166
170
  @socket.puts str
167
171
  # If Enable was false in the last WATCH command, close the connecction
172
+ my_logger msg: "@last_watch.key?(:enable) #{@last_watch.key?(:enable)}, @last_watch[:enable] #{@last_watch[:enable]}"
168
173
  stop if @last_watch.key?(:enable) && !@last_watch[:enable]
169
174
  end
170
175
  my_logger msg: "Send_cmmd: Exiting send_cmmd"
@@ -271,9 +276,12 @@ class MyGpsdClient
271
276
  my_logger msg: "Entered Init_socket"
272
277
  begin
273
278
  close_socket if @socket && !@socket.closed?
279
+ mu_logger level: 'debug', msg: "Point 1: socket is closed?: #{@socket.closed?} "
274
280
 
275
281
  # Send the 'Hello' message (Content apparently irrelevant)
276
282
  @socket = TCPSocket.new(@host, @port)
283
+ mu_logger level: 'debug', msg: "Point 2: socket is open?: #{!@socket.closed?} "
284
+
277
285
  msg="This space for rent"
278
286
  my_logger level: 'info', msg: "Init_socket: Sending Cmmd: \"#{msg}\""
279
287
  @socket.puts(msg)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my_gpsd_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.02.05
4
+ version: 0.02.09
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Finnegan
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-31 00:00:00.000000000 Z
11
+ date: 2022-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,7 +38,7 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
- description:
41
+ description:
42
42
  email:
43
43
  - steven@rustyshamrock.com
44
44
  executables: []
@@ -63,7 +63,7 @@ metadata:
63
63
  allowed_push_host: https://rubygems.org
64
64
  homepage_uri: https://github.com/sjf-control/my_gpsd_client
65
65
  source_code_uri: https://github.com/sjf-control/my_gpsd_client
66
- post_install_message:
66
+ post_install_message:
67
67
  rdoc_options: []
68
68
  require_paths:
69
69
  - lib
@@ -78,8 +78,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  - !ruby/object:Gem::Version
79
79
  version: '0'
80
80
  requirements: []
81
- rubygems_version: 3.0.4
82
- signing_key:
81
+ rubygems_version: 3.2.22
82
+ signing_key:
83
83
  specification_version: 4
84
84
  summary: My version of gpsd2json gem
85
85
  test_files: []