extface 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -59,6 +59,15 @@ module Extface
59
59
  job_thread.join
60
60
  assert @driver.errors.empty?
61
61
  end
62
+
63
+ test "build_sale_data encoding" do
64
+ sale_data = @driver.build_sale_data OpenStruct.new(text1: "012345678901234567890123АБВГДЕ", price: 1)
65
+ packet = @driver.build_packet 0x00, sale_data
66
+ assert_equal 39, packet[1].ord - 0x20
67
+ sale_data = @driver.build_sale_data OpenStruct.new(text1: "012345678901234567890123АБВГДЕЖЗИ", price: 1)
68
+ packet = @driver.build_packet 0x00, sale_data
69
+ assert_equal 39, packet[1].ord - 0x20
70
+ end
62
71
  end
63
72
  end
64
73
 
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.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Vangelov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-29 00:00:00.000000000 Z
11
+ date: 2017-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis
@@ -205,16 +205,23 @@ files:
205
205
  - test/dummy/log/development.log
206
206
  - test/dummy/log/extface/1033518405/aura80.log
207
207
  - test/dummy/log/extface/1033518405/aura80.log.20170327
208
+ - test/dummy/log/extface/1033518405/aura80.log.20170423
209
+ - test/dummy/log/extface/1033518405/aura80.log.20170530
208
210
  - test/dummy/log/extface/229906743/fp550.log
209
211
  - test/dummy/log/extface/229906743/fp550.log.20150519
210
212
  - test/dummy/log/extface/229906743/fp550.log.20150819
211
213
  - test/dummy/log/extface/229906743/fp550.log.20151218
212
214
  - test/dummy/log/extface/229906743/fp550.log.20160829
213
215
  - test/dummy/log/extface/229906743/fp550.log.20170327
216
+ - test/dummy/log/extface/229906743/fp550.log.20170423
217
+ - test/dummy/log/extface/229906743/fp550.log.20170530
218
+ - test/dummy/log/extface/372698694/dp25.log
219
+ - test/dummy/log/extface/372698694/dp25.log.20170530
214
220
  - test/dummy/log/extface/40760454/daisy_fx1200.log
215
221
  - test/dummy/log/extface/40760454/daisy_fx1200.log.20151219
216
222
  - test/dummy/log/extface/40760454/daisy_fx1200.log.20160829
217
223
  - test/dummy/log/extface/40760454/daisy_fx1200.log.20170327
224
+ - test/dummy/log/extface/40760454/daisy_fx1200.log.20170423
218
225
  - test/dummy/log/test.log
219
226
  - test/dummy/public/404.html
220
227
  - test/dummy/public/422.html
@@ -313,18 +320,25 @@ test_files:
313
320
  - test/dummy/tmp/cache/assets/test/sprockets/f511fb416ef5d95e616a40da2e91ec11
314
321
  - test/dummy/tmp/cache/assets/test/sprockets/e696ab595fbf956db2bdc4e9093d8f5f
315
322
  - test/dummy/config.ru
323
+ - test/dummy/log/extface/372698694/dp25.log.20170530
324
+ - test/dummy/log/extface/372698694/dp25.log
316
325
  - test/dummy/log/extface/40760454/daisy_fx1200.log
317
326
  - test/dummy/log/extface/40760454/daisy_fx1200.log.20151219
327
+ - test/dummy/log/extface/40760454/daisy_fx1200.log.20170423
318
328
  - test/dummy/log/extface/40760454/daisy_fx1200.log.20160829
319
329
  - test/dummy/log/extface/40760454/daisy_fx1200.log.20170327
330
+ - test/dummy/log/extface/1033518405/aura80.log.20170530
320
331
  - test/dummy/log/extface/1033518405/aura80.log
321
332
  - test/dummy/log/extface/1033518405/aura80.log.20170327
333
+ - test/dummy/log/extface/1033518405/aura80.log.20170423
322
334
  - test/dummy/log/extface/229906743/fp550.log.20150819
323
335
  - test/dummy/log/extface/229906743/fp550.log.20150519
324
336
  - test/dummy/log/extface/229906743/fp550.log
325
337
  - test/dummy/log/extface/229906743/fp550.log.20151218
338
+ - test/dummy/log/extface/229906743/fp550.log.20170530
326
339
  - test/dummy/log/extface/229906743/fp550.log.20160829
327
340
  - test/dummy/log/extface/229906743/fp550.log.20170327
341
+ - test/dummy/log/extface/229906743/fp550.log.20170423
328
342
  - test/dummy/log/development.log
329
343
  - test/dummy/log/test.log
330
344
  - test/dummy/db/development.sqlite3