balboa_worldwide_app 2.0.5 → 2.0.6

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: d9bc9287c6234b41b96d8b5e30ef26ce5226e7377f8358822ebaf3ee49630258
4
- data.tar.gz: fec9af69f1b103002352ed18a72ce59d1a46ad93b7268165362f654eb5d0e175
3
+ metadata.gz: f98b3b4e56ddb3c9616fec737a7ae9df0af3cf6d0878b71fa290d72f8e12d8a6
4
+ data.tar.gz: c96c5fc591aeb27859b25107771bf05e2e03bb1a4492433bc8a47769930ea455
5
5
  SHA512:
6
- metadata.gz: 258986f1a4a395434bbebf0ee568516675fd98d05c7bf6ed2e5715c6ce6ec7cdda5bbe43c49f59a72eaea128f9d0e27fcb2606036f4c71065023f3b42d1318b4
7
- data.tar.gz: d3b3b6affea3961cc2b2b423b2b6e6b22db84842a9430ba306e27980e7c423993c707106aada7c6a7cda619e417c697472e816ffa3542b20ab377987641ac620
6
+ metadata.gz: dad20a7cf67d11e97f4fae5d1679fc8309e5e8d9974b03c05bc451d702496bdf3771d0a47e6316eedff63e27db8476820bb4624e60c3f9f6cbc95fabf85fa580
7
+ data.tar.gz: ec482f620eb4ae5ce138b12e8f03de615616d024394f24ceec4243ef301e0f194c3a0d684fb5db954fd18313a254536e9fd45a67a81eb25a72ef1b7987bdfff2
data/lib/bwa/client.rb CHANGED
@@ -64,9 +64,15 @@ module BWA
64
64
  @buffer = @buffer[bytes_read..-1] if bytes_read
65
65
  method = @io.respond_to?(:readpartial) ? :readpartial : :read
66
66
  unless message
67
+ # one EOF is just serial ports saying they have no data;
68
+ # several EOFs in a row is the file is dead and gone
69
+ eofs = 0
67
70
  begin
68
71
  @buffer.concat(@io.__send__(method, 64 * 1024))
69
72
  rescue EOFError
73
+ eofs += 1
74
+ raise if eofs == 5
75
+
70
76
  @io.wait_readable
71
77
  retry
72
78
  end
data/lib/bwa/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BWA
4
- VERSION = "2.0.5"
4
+ VERSION = "2.0.6"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: balboa_worldwide_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-13 00:00:00.000000000 Z
11
+ date: 2022-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ccutrer-serialport