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 +4 -4
- data/lib/bwa/client.rb +6 -0
- data/lib/bwa/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f98b3b4e56ddb3c9616fec737a7ae9df0af3cf6d0878b71fa290d72f8e12d8a6
|
4
|
+
data.tar.gz: c96c5fc591aeb27859b25107771bf05e2e03bb1a4492433bc8a47769930ea455
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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.
|
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:
|
11
|
+
date: 2022-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ccutrer-serialport
|