ruby_astm 1.2.8 → 1.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby_astm/lab_interface.rb +8 -6
- 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: c73b81bdfca318caa0bb348e67c8fd87f01c3c1838a359ccde6c01fbb8d28ffa
|
4
|
+
data.tar.gz: 7f8a5e1e5aa5993a9d355e4dc10d6bf0c13ffee76c6cd1866ca2693ab6a26f7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acedba95a9ed8ee9da0ad7ae2a74b86148c3a274c6c91b1e32b514347d5071f2e52ef24e6b2bdf790e5bd13335639a40b335bf51b07740ea203842ccfcd65f26
|
7
|
+
data.tar.gz: ccd09a01fb4f99a7bbe974da0c989d0d99045c7695c69388e448821a8cee8f18fb3dce9f050a567fe87968318c20383f4cfe133ce51e4a05663a5bb9a9f344e7
|
@@ -189,9 +189,9 @@ module LabInterface
|
|
189
189
|
|
190
190
|
|
191
191
|
|
192
|
-
|
192
|
+
puts "concat is:"
|
193
193
|
|
194
|
-
|
194
|
+
puts concat.to_s
|
195
195
|
|
196
196
|
self.data_buffer << concat
|
197
197
|
|
@@ -201,7 +201,7 @@ module LabInterface
|
|
201
201
|
|
202
202
|
|
203
203
|
if data.bytes.to_a[-1] == 4
|
204
|
-
|
204
|
+
puts "GOT EOT --- PROCESSING BUFFER, AND CLEARING."
|
205
205
|
process_text(self.data_buffer)
|
206
206
|
#root_path = File.dirname __dir
|
207
207
|
#puts "root path #{root_path}"
|
@@ -217,10 +217,11 @@ module LabInterface
|
|
217
217
|
send_data(ENQ)
|
218
218
|
end
|
219
219
|
else
|
220
|
-
|
220
|
+
puts "sending catch all --------------- ACK --------------"
|
221
|
+
send_data(ACK)
|
221
222
|
end
|
222
223
|
elsif data.bytes.to_a[0] == 6
|
223
|
-
|
224
|
+
puts "GOT ACK --- GENERATING RESPONSE"
|
224
225
|
unless self.headers.blank?
|
225
226
|
header_responses = self.headers[-1].build_one_response({machine_name: self.headers[-1].machine_name})
|
226
227
|
## if no queries then, we have to send ack.
|
@@ -249,7 +250,7 @@ module LabInterface
|
|
249
250
|
#puts "NO HEADERS PRESENT --- "
|
250
251
|
end
|
251
252
|
elsif data.bytes.to_a[0] == 255
|
252
|
-
|
253
|
+
puts " ----------- got 255 data -----------, not sending anything back. "
|
253
254
|
else
|
254
255
|
#unless self.data_buffer.blank?
|
255
256
|
# puts self.data_buffer.gsub(/\r/,'\n').to_s
|
@@ -271,6 +272,7 @@ module LabInterface
|
|
271
272
|
end
|
272
273
|
|
273
274
|
rescue => e
|
275
|
+
|
274
276
|
#self.headers = []
|
275
277
|
AstmServer.log("data was: " + self.data_buffer + "error is:" + e.backtrace.to_s)
|
276
278
|
#send_data(EOT)
|