extface 0.5.2 → 0.5.3

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
  SHA1:
3
- metadata.gz: 0c17c0c8f5b110cb9a45c6ccf70d9e2c82910c60
4
- data.tar.gz: 04a9c601548072d327d8b50280e93d58575a9de0
3
+ metadata.gz: a84f0fb9b02a08d80e7102a5315656401af94393
4
+ data.tar.gz: ef16b508415145ab787f2e531f20402648a230c6
5
5
  SHA512:
6
- metadata.gz: cdb872cad8cdc14c2812d13bcc87f5d8763a275fadd1386e880d670aa4e5a7e62298109b7327d9f7d01120d26306bdcdbb1d01ff85213a3cfe16bd09b4e81f66
7
- data.tar.gz: 5516523f31d9da8b0cec1f8385073e9b9ba6b89604fd2d427e9948a2ae32989848129b32dd39f3813fe869c6ec653758b158aca867fdcfd07277be421751c9d4
6
+ metadata.gz: 7f45abce1e80900116df9e490e5de23ffc4940139c5848b53f7f44d52637e327f87789d24bf8a8c928f88b0fd4a744ca199eca2f940d72b02bfd800ce8275358
7
+ data.tar.gz: 5dfb5302f880695c84861c50c91e5359919cbe9ce8abacca1c184e2a04129a886e2e3d4fcdac91b8b633b9a6181cf300ec4fff20701973f8915a2e366a937b5b
@@ -253,12 +253,14 @@ module Extface
253
253
  def frecv(timeout) # return RespFrame or nil
254
254
  rframe = nil
255
255
  BAD_SEQ_MAX_COUNT.times do
256
+ errors.clear
256
257
  if frame_bytes = pull(timeout)
257
258
  rframe = RespFrame.new(frame_bytes.b)
258
259
  if rframe.seq.nil? || rframe.seq.ord == sequence_number(false) #accept only current sequence number as reply
259
260
  break
260
261
  else
261
262
  errors.add :base, "Sequence mismatch"
263
+ p "Invalid sequence (expected: #{sequence_number(false).to_s(16)}, got: #{rframe.seq.ord.to_s(16)})"
262
264
  rframe = nil #invalidate mismatch sequence frame for the last retry
263
265
  end
264
266
  else
@@ -220,6 +220,7 @@ module Extface
220
220
  def frecv(timeout) # return Frame or nil
221
221
  rframe = nil
222
222
  BAD_SEQ_MAX_COUNT.times do
223
+ errors.clear
223
224
  if frame_bytes = pull(timeout)
224
225
  rframe = Frame.new(frame_bytes.b)
225
226
  if rframe.seq.nil? || rframe.seq.ord == sequence_number(false) #accept only current sequence number as reply
@@ -1,3 +1,3 @@
1
1
  module Extface
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
Binary file
@@ -1,82 +1,9 @@
1
- # Logfile created on 2015-12-19 10:43:06 -0500 by logger.rb/44203
2
- D, [2015-12-19T10:43:06.412290 #16188] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
3
- D, [2015-12-19T10:49:20.486696 #16441] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
4
- D, [2015-12-19T10:53:22.107688 #16441] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
5
- D, [2015-12-19T10:53:32.108923 #16441] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
6
- D, [2015-12-19T11:05:14.662329 #16927] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
7
- D, [2015-12-19T11:05:15.663152 #16927] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
8
- D, [2015-12-19T11:11:26.059445 #17290] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
9
- D, [2015-12-19T11:11:27.063714 #17290] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
10
- D, [2015-12-19T11:13:29.073984 #17422] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
11
- D, [2015-12-19T11:13:30.084109 #17422] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
12
- D, [2015-12-19T11:14:51.386106 #17514] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
13
- D, [2015-12-19T11:14:52.391172 #17514] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
14
- D, [2015-12-19T11:47:46.827158 #18697] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
15
- D, [2015-12-19T11:47:47.825200 #18697] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
16
- D, [2015-12-19T11:51:19.618242 #18741] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
17
- D, [2015-12-19T11:52:36.035294 #18847] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
18
- D, [2015-12-19T11:52:37.037775 #18847] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
19
- D, [2015-12-19T11:52:38.058034 #18847] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
20
- D, [2015-12-19T11:52:48.058565 #18847] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
21
- D, [2015-12-19T11:54:08.979787 #18902] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
22
- D, [2015-12-19T11:54:09.984547 #18902] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
23
- D, [2015-12-19T11:54:11.000391 #18902] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
24
- D, [2015-12-19T11:54:21.002858 #18902] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
25
- D, [2015-12-19T11:57:12.164609 #19013] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
26
- D, [2015-12-19T11:57:13.172187 #19013] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
27
- D, [2015-12-19T11:57:14.198314 #19013] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
28
- D, [2015-12-19T11:57:24.201869 #19013] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
29
- D, [2015-12-19T11:58:07.241485 #19098] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
30
- D, [2015-12-19T11:58:08.249117 #19098] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
31
- D, [2015-12-19T11:58:09.269978 #19098] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
32
- D, [2015-12-19T11:58:19.271985 #19098] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
33
- D, [2015-12-19T11:58:35.683951 #19191] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
34
- D, [2015-12-19T11:58:36.692054 #19191] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
35
- D, [2015-12-19T11:58:37.710507 #19191] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
36
- D, [2015-12-19T11:58:47.712081 #19191] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
37
- D, [2015-12-19T12:01:07.939133 #19514] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
38
- D, [2015-12-19T12:01:08.948309 #19514] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
39
- D, [2015-12-19T12:01:09.963643 #19514] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
40
- D, [2015-12-19T12:01:19.966256 #19514] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
41
- D, [2015-12-19T12:02:42.010379 #19632] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
42
- D, [2015-12-19T12:02:43.017221 #19632] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
43
- D, [2015-12-19T12:02:44.041822 #19632] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
44
- D, [2015-12-19T12:02:54.044534 #19632] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
45
- D, [2015-12-19T12:04:16.486702 #19711] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
46
- D, [2015-12-19T12:04:17.493593 #19711] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
47
- D, [2015-12-19T12:04:18.519615 #19711] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
48
- D, [2015-12-19T12:04:28.520100 #19711] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
49
- D, [2015-12-19T12:05:54.520755 #19864] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
50
- D, [2015-12-19T12:05:55.516785 #19864] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
51
- D, [2015-12-19T12:05:56.539940 #19864] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
52
- D, [2015-12-19T12:06:06.543145 #19864] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
53
- D, [2015-12-19T12:10:19.198705 #19982] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
54
- D, [2015-12-19T12:10:20.208788 #19982] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
55
- D, [2015-12-19T12:10:21.228661 #19982] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
56
- D, [2015-12-19T12:10:31.231484 #19982] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
57
- D, [2015-12-19T12:12:31.004347 #20127] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
58
- D, [2015-12-19T12:12:32.003042 #20127] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
59
- D, [2015-12-19T12:12:33.025942 #20127] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
60
- D, [2015-12-19T12:12:43.028164 #20127] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
61
- D, [2015-12-19T12:14:43.876898 #20188] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
62
- D, [2015-12-19T12:14:44.893021 #20188] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
63
- D, [2015-12-19T12:14:45.912284 #20188] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
64
- D, [2015-12-19T12:14:55.912901 #20188] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
65
- D, [2015-12-19T12:15:54.129293 #20296] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
66
- D, [2015-12-19T12:15:55.126284 #20296] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
67
- D, [2015-12-19T12:18:40.993475 #20367] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
68
- D, [2015-12-19T12:18:42.001687 #20367] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
69
- D, [2015-12-19T12:20:41.813345 #20591] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
70
- D, [2015-12-19T12:20:42.814304 #20591] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
71
- D, [2015-12-19T12:22:58.381881 #20872] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
72
- D, [2015-12-19T12:22:59.387072 #20872] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
73
- D, [2015-12-19T12:32:47.923617 #21050] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
74
- D, [2015-12-19T12:32:48.929732 #21050] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
75
- D, [2015-12-19T12:38:58.518353 #21144] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
76
- D, [2015-12-19T12:38:59.531004 #21144] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
77
- D, [2015-12-19T12:45:43.380804 #21389] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
78
- D, [2015-12-19T12:45:44.399059 #21389] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
79
- D, [2015-12-19T12:47:16.693732 #21469] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
80
- D, [2015-12-19T12:47:17.696360 #21469] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
81
- D, [2015-12-19T12:56:08.518115 #21740] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
82
- D, [2015-12-19T12:56:09.528030 #21740] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
1
+ # Logfile created on 2015-12-20 10:02:45 -0500 by logger.rb/44203
2
+ D, [2015-12-20T10:02:45.346209 #2009] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
3
+ D, [2015-12-20T10:02:46.351845 #2009] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
4
+ D, [2015-12-20T10:03:56.218654 #2062] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
5
+ D, [2015-12-20T10:03:57.226445 #2062] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
6
+ D, [2015-12-20T10:06:43.216370 #2172] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
7
+ D, [2015-12-20T10:06:44.224208 #2172] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
8
+ D, [2015-12-20T10:06:45.366821 #2172] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
9
+ D, [2015-12-20T10:06:46.368808 #2172] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
@@ -0,0 +1,82 @@
1
+ # Logfile created on 2015-12-19 10:43:06 -0500 by logger.rb/44203
2
+ D, [2015-12-19T10:43:06.412290 #16188] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
3
+ D, [2015-12-19T10:49:20.486696 #16441] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
4
+ D, [2015-12-19T10:53:22.107688 #16441] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
5
+ D, [2015-12-19T10:53:32.108923 #16441] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
6
+ D, [2015-12-19T11:05:14.662329 #16927] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
7
+ D, [2015-12-19T11:05:15.663152 #16927] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
8
+ D, [2015-12-19T11:11:26.059445 #17290] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
9
+ D, [2015-12-19T11:11:27.063714 #17290] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
10
+ D, [2015-12-19T11:13:29.073984 #17422] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
11
+ D, [2015-12-19T11:13:30.084109 #17422] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
12
+ D, [2015-12-19T11:14:51.386106 #17514] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
13
+ D, [2015-12-19T11:14:52.391172 #17514] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
14
+ D, [2015-12-19T11:47:46.827158 #18697] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
15
+ D, [2015-12-19T11:47:47.825200 #18697] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
16
+ D, [2015-12-19T11:51:19.618242 #18741] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
17
+ D, [2015-12-19T11:52:36.035294 #18847] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
18
+ D, [2015-12-19T11:52:37.037775 #18847] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
19
+ D, [2015-12-19T11:52:38.058034 #18847] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
20
+ D, [2015-12-19T11:52:48.058565 #18847] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
21
+ D, [2015-12-19T11:54:08.979787 #18902] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
22
+ D, [2015-12-19T11:54:09.984547 #18902] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
23
+ D, [2015-12-19T11:54:11.000391 #18902] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
24
+ D, [2015-12-19T11:54:21.002858 #18902] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
25
+ D, [2015-12-19T11:57:12.164609 #19013] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
26
+ D, [2015-12-19T11:57:13.172187 #19013] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
27
+ D, [2015-12-19T11:57:14.198314 #19013] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
28
+ D, [2015-12-19T11:57:24.201869 #19013] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
29
+ D, [2015-12-19T11:58:07.241485 #19098] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
30
+ D, [2015-12-19T11:58:08.249117 #19098] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
31
+ D, [2015-12-19T11:58:09.269978 #19098] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
32
+ D, [2015-12-19T11:58:19.271985 #19098] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
33
+ D, [2015-12-19T11:58:35.683951 #19191] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
34
+ D, [2015-12-19T11:58:36.692054 #19191] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
35
+ D, [2015-12-19T11:58:37.710507 #19191] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
36
+ D, [2015-12-19T11:58:47.712081 #19191] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
37
+ D, [2015-12-19T12:01:07.939133 #19514] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
38
+ D, [2015-12-19T12:01:08.948309 #19514] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
39
+ D, [2015-12-19T12:01:09.963643 #19514] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
40
+ D, [2015-12-19T12:01:19.966256 #19514] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
41
+ D, [2015-12-19T12:02:42.010379 #19632] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
42
+ D, [2015-12-19T12:02:43.017221 #19632] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
43
+ D, [2015-12-19T12:02:44.041822 #19632] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
44
+ D, [2015-12-19T12:02:54.044534 #19632] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
45
+ D, [2015-12-19T12:04:16.486702 #19711] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
46
+ D, [2015-12-19T12:04:17.493593 #19711] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
47
+ D, [2015-12-19T12:04:18.519615 #19711] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
48
+ D, [2015-12-19T12:04:28.520100 #19711] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
49
+ D, [2015-12-19T12:05:54.520755 #19864] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
50
+ D, [2015-12-19T12:05:55.516785 #19864] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
51
+ D, [2015-12-19T12:05:56.539940 #19864] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
52
+ D, [2015-12-19T12:06:06.543145 #19864] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
53
+ D, [2015-12-19T12:10:19.198705 #19982] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
54
+ D, [2015-12-19T12:10:20.208788 #19982] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
55
+ D, [2015-12-19T12:10:21.228661 #19982] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
56
+ D, [2015-12-19T12:10:31.231484 #19982] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
57
+ D, [2015-12-19T12:12:31.004347 #20127] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
58
+ D, [2015-12-19T12:12:32.003042 #20127] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
59
+ D, [2015-12-19T12:12:33.025942 #20127] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
60
+ D, [2015-12-19T12:12:43.028164 #20127] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
61
+ D, [2015-12-19T12:14:43.876898 #20188] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
62
+ D, [2015-12-19T12:14:44.893021 #20188] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
63
+ D, [2015-12-19T12:14:45.912284 #20188] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
64
+ D, [2015-12-19T12:14:55.912901 #20188] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
65
+ D, [2015-12-19T12:15:54.129293 #20296] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
66
+ D, [2015-12-19T12:15:55.126284 #20296] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
67
+ D, [2015-12-19T12:18:40.993475 #20367] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
68
+ D, [2015-12-19T12:18:42.001687 #20367] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
69
+ D, [2015-12-19T12:20:41.813345 #20591] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
70
+ D, [2015-12-19T12:20:42.814304 #20591] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
71
+ D, [2015-12-19T12:22:58.381881 #20872] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
72
+ D, [2015-12-19T12:22:59.387072 #20872] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
73
+ D, [2015-12-19T12:32:47.923617 #21050] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
74
+ D, [2015-12-19T12:32:48.929732 #21050] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
75
+ D, [2015-12-19T12:38:58.518353 #21144] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
76
+ D, [2015-12-19T12:38:59.531004 #21144] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
77
+ D, [2015-12-19T12:45:43.380804 #21389] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
78
+ D, [2015-12-19T12:45:44.399059 #21389] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
79
+ D, [2015-12-19T12:47:16.693732 #21469] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
80
+ D, [2015-12-19T12:47:17.696360 #21469] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
81
+ D, [2015-12-19T12:56:08.518115 #21740] DEBUG -- : --> 01 24 20 4A 05 30 30 39 33 03
82
+ D, [2015-12-19T12:56:09.528030 #21740] DEBUG -- : --> 01 24 21 2C 05 30 30 37 36 03
@@ -7301,3 +7301,187 @@ Completed 302 Found in 5ms (ActiveRecord: 0.7ms)
7301
7301
  Shop Load (0.1ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1
7302
7302
   (0.1ms) rollback transaction
7303
7303
  Completed in 205ms
7304
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
7305
+  (108.0ms) DROP TABLE "extface_devices"
7306
+  (65.0ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driver_id" integer, "created_at" datetime, "updated_at" datetime) 
7307
+  (72.8ms) DROP TABLE "extface_drivers"
7308
+  (73.6ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime) 
7309
+  (64.4ms) DROP TABLE "extface_jobs"
7310
+  (70.4ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime) 
7311
+  (0.2ms) select sqlite_version(*)
7312
+  (91.8ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
7313
+  (89.3ms) DROP TABLE "extface_serial_configs"
7314
+  (70.4ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "driver_id" integer, "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime) 
7315
+  (64.5ms) DROP TABLE "shops"
7316
+  (65.5ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
7317
+  (0.3ms) SELECT version FROM "schema_migrations"
7318
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7319
+  (112.4ms) DROP TABLE "extface_devices"
7320
+  (65.2ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driver_id" integer, "created_at" datetime, "updated_at" datetime) 
7321
+  (72.4ms) DROP TABLE "extface_drivers"
7322
+  (65.2ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime) 
7323
+  (64.5ms) DROP TABLE "extface_jobs"
7324
+  (62.3ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime) 
7325
+  (0.2ms) select sqlite_version(*)
7326
+  (75.2ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
7327
+  (64.9ms) DROP TABLE "extface_serial_configs"
7328
+  (65.6ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "driver_id" integer, "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime) 
7329
+  (64.7ms) DROP TABLE "shops"
7330
+  (57.3ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
7331
+  (0.3ms) SELECT version FROM "schema_migrations"
7332
+  (0.1ms) begin transaction
7333
+ Fixture Delete (0.2ms) DELETE FROM "extface_serial_configs"
7334
+ Fixture Insert (0.3ms) INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id", "driver_id") VALUES (1, 1, 1, 1, 1, '2015-12-20 15:02:45', '2015-12-20 15:02:45', 980190962, 258259918)
7335
+ Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id", "driver_id") VALUES (1, 1, 1, 1, 1, '2015-12-20 15:02:45', '2015-12-20 15:02:45', 298486374, 599072141)
7336
+ Fixture Delete (0.1ms) DELETE FROM "extface_devices"
7337
+ Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID1', 'MyString1', '2015-12-20 15:02:45', '2015-12-20 15:02:45', 980190962, 'Shop', 980190962, 258259918)
7338
+ Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID2', 'MyString2', '2015-12-20 15:02:45', '2015-12-20 15:02:45', 298486374, 'Shop', 980190962, 599072141)
7339
+ Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datecs_fp550', 'Datect FP550', '2015-12-20 15:02:45', '2015-12-20 15:02:45', 229906743, 'Shop', 980190962, 229906743)
7340
+ Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('daisy_fx1200', 'Daisy Fx1200', '2015-12-20 15:02:45', '2015-12-20 15:02:45', 40760454, 'Shop', 980190962, 40760454)
7341
+ Fixture Delete (0.2ms) DELETE FROM "extface_drivers"
7342
+ Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::GenericPos', '2015-12-20 15:02:45', '2015-12-20 15:02:45', 258259918)
7343
+ Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2015-12-20 15:02:45', '2015-12-20 15:02:45', 412842077)
7344
+ Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2015-12-20 15:02:45', '2015-12-20 15:02:45', 599072141)
7345
+ Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2015-12-20 15:02:45', '2015-12-20 15:02:45', 229906743)
7346
+ Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::DaisyFx1200', '2015-12-20 15:02:45', '2015-12-20 15:02:45', 40760454)
7347
+ Fixture Delete (0.1ms) DELETE FROM "extface_jobs"
7348
+ Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-12-20 15:02:45', '2015-12-20 15:02:45', 980190962)
7349
+ Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-12-20 15:02:45', '2015-12-20 15:02:45', 298486374)
7350
+ Fixture Delete (0.1ms) DELETE FROM "shops"
7351
+ Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2015-12-20 15:02:45', '2015-12-20 15:02:45', 980190962)
7352
+ Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2015-12-20 15:02:45', '2015-12-20 15:02:45', 298486374)
7353
+  (65.0ms) commit transaction
7354
+  (0.2ms) begin transaction
7355
+ --------------------------------------------------------
7356
+ Extface::Driver::DaisyFx1200Test: test_sequence_mismatch
7357
+ --------------------------------------------------------
7358
+ Extface::Driver Load (0.5ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 40760454]]
7359
+ Extface::Device Load (0.4ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 40760454]]
7360
+ Extface::Job Load (0.3ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]
7361
+ Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 40760454]]
7362
+ Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 40760454]]
7363
+ Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 40760454]]
7364
+ Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 40760454]]
7365
+  (0.3ms) rollback transaction
7366
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7367
+  (91.9ms) DROP TABLE "extface_devices"
7368
+  (68.1ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driver_id" integer, "created_at" datetime, "updated_at" datetime) 
7369
+  (64.6ms) DROP TABLE "extface_drivers"
7370
+  (62.6ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime) 
7371
+  (59.3ms) DROP TABLE "extface_jobs"
7372
+  (70.4ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime) 
7373
+  (0.2ms) select sqlite_version(*)
7374
+  (64.4ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
7375
+  (59.3ms) DROP TABLE "extface_serial_configs"
7376
+  (62.0ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "driver_id" integer, "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime) 
7377
+  (57.0ms) DROP TABLE "shops"
7378
+  (57.3ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
7379
+  (0.2ms) SELECT version FROM "schema_migrations"
7380
+  (0.1ms) begin transaction
7381
+ Fixture Delete (0.2ms) DELETE FROM "extface_serial_configs"
7382
+ Fixture Insert (0.2ms) INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id", "driver_id") VALUES (1, 1, 1, 1, 1, '2015-12-20 15:03:56', '2015-12-20 15:03:56', 980190962, 258259918)
7383
+ Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id", "driver_id") VALUES (1, 1, 1, 1, 1, '2015-12-20 15:03:56', '2015-12-20 15:03:56', 298486374, 599072141)
7384
+ Fixture Delete (0.1ms) DELETE FROM "extface_devices"
7385
+ Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID1', 'MyString1', '2015-12-20 15:03:56', '2015-12-20 15:03:56', 980190962, 'Shop', 980190962, 258259918)
7386
+ Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID2', 'MyString2', '2015-12-20 15:03:56', '2015-12-20 15:03:56', 298486374, 'Shop', 980190962, 599072141)
7387
+ Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datecs_fp550', 'Datect FP550', '2015-12-20 15:03:56', '2015-12-20 15:03:56', 229906743, 'Shop', 980190962, 229906743)
7388
+ Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('daisy_fx1200', 'Daisy Fx1200', '2015-12-20 15:03:56', '2015-12-20 15:03:56', 40760454, 'Shop', 980190962, 40760454)
7389
+ Fixture Delete (0.2ms) DELETE FROM "extface_drivers"
7390
+ Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::GenericPos', '2015-12-20 15:03:56', '2015-12-20 15:03:56', 258259918)
7391
+ Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2015-12-20 15:03:56', '2015-12-20 15:03:56', 412842077)
7392
+ Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2015-12-20 15:03:56', '2015-12-20 15:03:56', 599072141)
7393
+ Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2015-12-20 15:03:56', '2015-12-20 15:03:56', 229906743)
7394
+ Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::DaisyFx1200', '2015-12-20 15:03:56', '2015-12-20 15:03:56', 40760454)
7395
+ Fixture Delete (0.1ms) DELETE FROM "extface_jobs"
7396
+ Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-12-20 15:03:56', '2015-12-20 15:03:56', 980190962)
7397
+ Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-12-20 15:03:56', '2015-12-20 15:03:56', 298486374)
7398
+ Fixture Delete (0.1ms) DELETE FROM "shops"
7399
+ Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2015-12-20 15:03:56', '2015-12-20 15:03:56', 980190962)
7400
+ Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2015-12-20 15:03:56', '2015-12-20 15:03:56', 298486374)
7401
+  (50.1ms) commit transaction
7402
+  (0.1ms) begin transaction
7403
+ --------------------------------------------------------
7404
+ Extface::Driver::DaisyFx1200Test: test_sequence_mismatch
7405
+ --------------------------------------------------------
7406
+ Extface::Driver Load (0.3ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 40760454]]
7407
+ Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 40760454]]
7408
+ Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]
7409
+ Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 40760454]]
7410
+ Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 40760454]]
7411
+ Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 40760454]]
7412
+ Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 40760454]]
7413
+  (0.2ms) rollback transaction
7414
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7415
+  (143.8ms) DROP TABLE "extface_devices"
7416
+  (57.1ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driver_id" integer, "created_at" datetime, "updated_at" datetime) 
7417
+  (56.5ms) DROP TABLE "extface_drivers"
7418
+  (56.9ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime) 
7419
+  (50.9ms) DROP TABLE "extface_jobs"
7420
+  (54.0ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime) 
7421
+  (0.2ms) select sqlite_version(*)
7422
+  (64.4ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
7423
+  (59.2ms) DROP TABLE "extface_serial_configs"
7424
+  (62.2ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "driver_id" integer, "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime) 
7425
+  (64.7ms) DROP TABLE "shops"
7426
+  (65.4ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
7427
+  (0.3ms) SELECT version FROM "schema_migrations"
7428
+  (0.1ms) begin transaction
7429
+ Fixture Delete (0.2ms) DELETE FROM "extface_serial_configs"
7430
+ Fixture Insert (0.2ms) INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id", "driver_id") VALUES (1, 1, 1, 1, 1, '2015-12-20 15:06:43', '2015-12-20 15:06:43', 980190962, 258259918)
7431
+ Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id", "driver_id") VALUES (1, 1, 1, 1, 1, '2015-12-20 15:06:43', '2015-12-20 15:06:43', 298486374, 599072141)
7432
+ Fixture Delete (0.1ms) DELETE FROM "extface_devices"
7433
+ Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID1', 'MyString1', '2015-12-20 15:06:43', '2015-12-20 15:06:43', 980190962, 'Shop', 980190962, 258259918)
7434
+ Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID2', 'MyString2', '2015-12-20 15:06:43', '2015-12-20 15:06:43', 298486374, 'Shop', 980190962, 599072141)
7435
+ Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('datecs_fp550', 'Datect FP550', '2015-12-20 15:06:43', '2015-12-20 15:06:43', 229906743, 'Shop', 980190962, 229906743)
7436
+ Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('daisy_fx1200', 'Daisy Fx1200', '2015-12-20 15:06:43', '2015-12-20 15:06:43', 40760454, 'Shop', 980190962, 40760454)
7437
+ Fixture Delete (0.2ms) DELETE FROM "extface_drivers"
7438
+ Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::GenericPos', '2015-12-20 15:06:43', '2015-12-20 15:06:43', 258259918)
7439
+ Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2015-12-20 15:06:43', '2015-12-20 15:06:43', 412842077)
7440
+ Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2015-12-20 15:06:43', '2015-12-20 15:06:43', 599072141)
7441
+ Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::Datecs::Fp550', '2015-12-20 15:06:43', '2015-12-20 15:06:43', 229906743)
7442
+ Fixture Insert (0.1ms) INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::DaisyFx1200', '2015-12-20 15:06:43', '2015-12-20 15:06:43', 40760454)
7443
+ Fixture Delete (0.1ms) DELETE FROM "extface_jobs"
7444
+ Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-12-20 15:06:43', '2015-12-20 15:06:43', 980190962)
7445
+ Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2015-12-20 15:06:43', '2015-12-20 15:06:43', 298486374)
7446
+ Fixture Delete (0.1ms) DELETE FROM "shops"
7447
+ Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2015-12-20 15:06:43', '2015-12-20 15:06:43', 980190962)
7448
+ Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2015-12-20 15:06:43', '2015-12-20 15:06:43', 298486374)
7449
+  (72.0ms) commit transaction
7450
+  (0.2ms) begin transaction
7451
+ --------------------------------------------
7452
+ Extface::Driver::DaisyFx1200Test: test_fsend
7453
+ --------------------------------------------
7454
+ Extface::Driver Load (0.4ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 40760454]]
7455
+ Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 40760454]]
7456
+ Extface::Job Load (0.3ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]
7457
+ Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 40760454]]
7458
+ Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 40760454]]
7459
+ Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 40760454]]
7460
+ Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 40760454]]
7461
+  (0.2ms) rollback transaction
7462
+  (0.2ms) begin transaction
7463
+ ---------------------------------------------
7464
+ Extface::Driver::DaisyFx1200Test: test_handle
7465
+ ---------------------------------------------
7466
+ Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 40760454]]
7467
+ Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 40760454]]
7468
+  (0.2ms) rollback transaction
7469
+  (0.1ms) begin transaction
7470
+ -----------------------------------------------------
7471
+ Extface::Driver::DaisyFx1200Test: test_response_frame
7472
+ -----------------------------------------------------
7473
+ Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 40760454]]
7474
+ Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 40760454]]
7475
+  (0.2ms) rollback transaction
7476
+  (0.1ms) begin transaction
7477
+ --------------------------------------------------------
7478
+ Extface::Driver::DaisyFx1200Test: test_sequence_mismatch
7479
+ --------------------------------------------------------
7480
+ Extface::Driver Load (0.2ms) SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? LIMIT 1 [["id", 40760454]]
7481
+ Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."driver_id" = ? LIMIT 1 [["driver_id", 40760454]]
7482
+ Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]
7483
+ Extface::Job Load (0.3ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 40760454]]
7484
+ Extface::Job Load (0.3ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 40760454]]
7485
+ Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 40760454]]
7486
+ Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NULL AND "extface_jobs"."failed_at" IS NULL) ORDER BY "extface_jobs"."id" ASC LIMIT 1 [["device_id", 40760454]]
7487
+  (0.2ms) rollback transaction
@@ -55,6 +55,22 @@ module Extface
55
55
  job_thread.join
56
56
  assert @driver.errors.empty?
57
57
  end
58
+
59
+ test "sequence mismatch" do
60
+ job = extface_jobs(:one)
61
+ job_thread = Thread.new do
62
+ @driver.set_job(job)
63
+ result = @driver.fsend(0x2C) # paper move command
64
+ end
65
+ simulate_device_pull(job)
66
+ @driver.handle("\x01\x31\x20\x4A\x88\x80\xC0\x80\x80\xB8\x04\x88\x80\xC0\x80\x80\xB8\x05\x30\x37\x3A\x34\x03")
67
+ simulate_device_pull(job)
68
+ @driver.handle("\x01\x31\x20\x4A\x88\x80\xC0\x80\x80\xB8\x04\x88\x80\xC0\x80\x80\xB8\x05\x30\x37\x3A\x34\x03")
69
+ simulate_device_pull(job)
70
+ @driver.handle("\x01\x38\x21\x30\x30\x30\x30\x30\x33\x37\x2C\x30\x30\x30\x30\x33\x36\x04\x80\x80\x88\x80\x80\xB8\x05\x30\x36\x35\x31\x03")
71
+ job_thread.join
72
+ assert @driver.errors.empty?
73
+ end
58
74
  end
59
75
  end
60
76
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: extface
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Vangelov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-19 00:00:00.000000000 Z
11
+ date: 2015-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis
@@ -192,6 +192,7 @@ files:
192
192
  - test/dummy/log/extface/229906743/fp550.log.20150819
193
193
  - test/dummy/log/extface/229906743/fp550.log.20151218
194
194
  - test/dummy/log/extface/40760454/daisy_fx1200.log
195
+ - test/dummy/log/extface/40760454/daisy_fx1200.log.20151219
195
196
  - test/dummy/log/test.log
196
197
  - test/dummy/public/404.html
197
198
  - test/dummy/public/422.html
@@ -289,6 +290,7 @@ test_files:
289
290
  - test/dummy/tmp/cache/assets/test/sprockets/e696ab595fbf956db2bdc4e9093d8f5f
290
291
  - test/dummy/config.ru
291
292
  - test/dummy/log/extface/40760454/daisy_fx1200.log
293
+ - test/dummy/log/extface/40760454/daisy_fx1200.log.20151219
292
294
  - test/dummy/log/extface/229906743/fp550.log.20150819
293
295
  - test/dummy/log/extface/229906743/fp550.log.20150519
294
296
  - test/dummy/log/extface/229906743/fp550.log