extface 0.4.3g → 0.4.4a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/extface/driver/datecs/commands_v1.rb +2 -1
- data/app/models/extface/driver/datecs/fp550.rb +43 -3
- data/lib/extface/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/extface/229906743/fp550.log +12 -0
- data/test/dummy/log/extface/229906743/fp550.log.20150519 +35 -0
- data/test/dummy/log/test.log +2031 -0
- data/test/fixtures/extface/devices.yml +1 -1
- data/test/models/extface/driver/datecs/fp550_test.rb +9 -0
- metadata +10 -2
@@ -45,5 +45,14 @@ module Extface
|
|
45
45
|
assert_equal false, frame.valid?
|
46
46
|
assert frame.errors.messages[:len]
|
47
47
|
end
|
48
|
+
|
49
|
+
test "fsend" do
|
50
|
+
job_thread = Thread.new do
|
51
|
+
@driver.set_job(extface_jobs(:one))
|
52
|
+
result = @driver.fsend(0x2C) # paper move command
|
53
|
+
end
|
54
|
+
@driver.handle("\x01\x2C\x2F\x2D\x50\x04\x88\x80\xC0\x80\x80\xB0\x05\x30\x34\x35\x39\x03".b)
|
55
|
+
job_thread.join
|
56
|
+
end
|
48
57
|
end
|
49
58
|
end
|
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.4.
|
4
|
+
version: 0.4.4a
|
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-
|
11
|
+
date: 2015-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -198,6 +198,10 @@ files:
|
|
198
198
|
- test/dummy/config/routes.rb
|
199
199
|
- test/dummy/db/migrate/20140221203517_create_shops.rb
|
200
200
|
- test/dummy/db/schema.rb
|
201
|
+
- test/dummy/db/test.sqlite3
|
202
|
+
- test/dummy/log/extface/229906743/fp550.log
|
203
|
+
- test/dummy/log/extface/229906743/fp550.log.20150519
|
204
|
+
- test/dummy/log/test.log
|
201
205
|
- test/dummy/public/404.html
|
202
206
|
- test/dummy/public/422.html
|
203
207
|
- test/dummy/public/500.html
|
@@ -256,7 +260,11 @@ test_files:
|
|
256
260
|
- test/controllers/extface/devices_controller_test.rb
|
257
261
|
- test/controllers/extface/jobs_controller_test.rb
|
258
262
|
- test/dummy/config.ru
|
263
|
+
- test/dummy/log/extface/229906743/fp550.log.20150519
|
264
|
+
- test/dummy/log/extface/229906743/fp550.log
|
265
|
+
- test/dummy/log/test.log
|
259
266
|
- test/dummy/db/migrate/20140221203517_create_shops.rb
|
267
|
+
- test/dummy/db/test.sqlite3
|
260
268
|
- test/dummy/db/schema.rb
|
261
269
|
- test/dummy/README.rdoc
|
262
270
|
- test/dummy/app/views/layouts/application.html.erb
|