extface 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +5 -13
  2. data/app/assets/javascripts/extface/devices.js +6 -1
  3. data/app/controllers/extface/handler_controller.rb +26 -20
  4. data/app/models/extface/driver/daisy/commands_fx1200.rb +94 -0
  5. data/app/models/extface/driver/daisy_fx1200.rb +52 -0
  6. data/app/views/extface/driver/daisy_fx1200/_settings.html.erb +1 -0
  7. data/app/views/extface/driver/epson_tm_u220/_settings.html.erb +1 -0
  8. data/lib/extface/extfaceable.rb +1 -1
  9. data/lib/extface/version.rb +1 -1
  10. data/test/dummy/db/development.sqlite3 +0 -0
  11. data/test/dummy/db/test.sqlite3 +0 -0
  12. data/test/dummy/log/development.log +164 -0
  13. data/test/dummy/log/test.log +5213 -0
  14. data/test/dummy/tmp/cache/assets/test/sprockets/0a8a23b1a73ebf217f4e2b765013ce7b +0 -0
  15. data/test/dummy/tmp/cache/assets/test/sprockets/21fb58a50e25d1170f2c7d5bd5d29c54 +0 -0
  16. data/test/dummy/tmp/cache/assets/test/sprockets/263375f2d55c31687ed052f99ddead55 +0 -0
  17. data/test/dummy/tmp/cache/assets/test/sprockets/3f4ff460a79b2e29781690193a3960f6 +0 -0
  18. data/test/dummy/tmp/cache/assets/test/sprockets/4ef10b222fde3c042209a46daf3d3e36 +0 -0
  19. data/test/dummy/tmp/cache/assets/test/sprockets/544650645bc510ef8fbee0043c41fdcf +0 -0
  20. data/test/dummy/tmp/cache/assets/test/sprockets/6dbf2b0443792e51055710be15c83197 +0 -0
  21. data/test/dummy/tmp/cache/assets/test/sprockets/717acb3e7c0df18696cf1bc56de6d3d5 +0 -0
  22. data/test/dummy/tmp/cache/assets/test/sprockets/9891cbb0808f38b2c42f42fd89e662a4 +0 -0
  23. data/test/dummy/tmp/cache/assets/test/sprockets/9b178820b9dc8c81c9784cf7ee3b7d35 +0 -0
  24. data/test/dummy/tmp/cache/assets/test/sprockets/a06a4a7f51754a6a2c0694eb39ff824b +0 -0
  25. data/test/dummy/tmp/cache/assets/test/sprockets/a8cc2e73253025d2518d2449e16e5266 +0 -0
  26. data/test/dummy/tmp/cache/assets/test/sprockets/b56dfad0b14283f2cc10c62f37d71cc7 +0 -0
  27. data/test/dummy/tmp/cache/assets/test/sprockets/e1197e0129ade843b08de0b45c47fc40 +0 -0
  28. data/test/dummy/tmp/cache/assets/test/sprockets/ece3270b150db7c668579bb91ac7e2e5 +0 -0
  29. data/test/dummy/tmp/cache/assets/test/sprockets/f018ab87f3490dbbcbc2e3c9f36aed3d +0 -0
  30. metadata +169 -125
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- OTEyMjE5ZWI1YzM1NzYzZDgxN2Y2NWFjNGI2YTA5MjA1OGY0NzI1Mw==
5
- data.tar.gz: !binary |-
6
- YTFiNGM0OGQzNGZkZjQwNzliNzJiYmNkOTg3YmUwZjY4NjhmYWExZQ==
2
+ SHA1:
3
+ metadata.gz: 246de0f5b3ea8497766df714b9b1905522043f35
4
+ data.tar.gz: b25336c13ec5ffa1736488ad0a2b9a4483edfc15
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NmM2ZjBiMWFmMTRjM2MxMDM0NDA5ZDNkYWU2OGUwN2Q3NzA4ODZkOTAwZWQx
10
- MmRkMjFmYmEyN2EwZmQ4MjY3NThmMGViNjFiMDU3OTNmZDU5N2Q3MjRkY2Vm
11
- NWNlMGM3YTI1YTZiZTA2ZGI4NmFhMWJkMjZlYzRhZWI2ZTZmYzc=
12
- data.tar.gz: !binary |-
13
- MTE1YmJhZGJlNDNkMDI3NDZhNmY3NDNmZmE2MzFmZDhhMDlkYjM1YzAyZTEy
14
- ZDM4MDExMTJhMDIyZGU1NmQzM2NiY2RmNjM3ZGE4MzIzZmNjOTk2ZTVkMzI1
15
- NGJlYTViYjNjN2QwMWQ4YjM1NDVjM2ZhYTA2N2M2MzdiMDlkYTA=
6
+ metadata.gz: 4dc649f4899f84e090fbfab9aad742ed4727a79399a36463922ddd905870763417d47b0aa6a4207154eb0078c8ce3291a49ba2145c06b7e0d39f404325fe5c78
7
+ data.tar.gz: 9eaae062faad55c1fb5ffc6b4106925791b2f1d9420ba52630d5a2fae2c4f77319128f3e1bcdc3feec9905c4f32ed41b48c479f00370890d4593ebbe5faba375
@@ -2,7 +2,12 @@
2
2
  // All this logic will automatically be available in application.js.
3
3
  $(document).ready(function() {
4
4
  $('#push').click(function(e) {
5
- $.post($(this).attr('href'), $('#data').val());
5
+ $.ajax({
6
+ type: "POST",
7
+ url: $(this).attr('href'),
8
+ data: $('#data').val(),
9
+ contentType: "application/octet-stream"
10
+ });
6
11
  e.preventDefault();
7
12
  });
8
13
  });
@@ -13,25 +13,7 @@ module Extface
13
13
  unless device.present?
14
14
  render nothing: true, status: :not_found
15
15
  else
16
- response.headers['Content-Type'] = 'text/event-stream'
17
- # find current job or get new one
18
- Extface.redis_block do |r|
19
- start = Time.now
20
- if job = device.jobs.active.find_by(id: cookies[:extface]) || device.jobs.active.try(:first)
21
- cookies.permanent[:extface] = job.id
22
- p "Processing job #{job.id}"
23
- list, data = r.blpop(job.id, timeout: 1)
24
- while data
25
- response.stream.write data
26
- r.publish(job.id, "OK")
27
- if (Time.now - start) > 3.seconds
28
- p "Will continue next time"
29
- #break
30
- end
31
- list, data = r.blpop(job.id, timeout: 1)
32
- end
33
- end
34
- end #redis block
16
+ stream_job
35
17
  end
36
18
  rescue => e
37
19
  p e.message
@@ -56,12 +38,14 @@ module Extface
56
38
  r.set device.uuid, r.get(device.uuid)[bytes_porcessed]
57
39
  end
58
40
  end
41
+ stream_job # stream right now :)
59
42
  status = :ok
60
43
  end
61
- render nothing: true, status: status
62
44
  rescue => e
63
45
  p e.message
64
46
  render nothing: true, status: :internal_server_error
47
+ ensure
48
+ response.stream.close
65
49
  end
66
50
 
67
51
  def settings
@@ -76,5 +60,27 @@ module Extface
76
60
  def require_device
77
61
  render status: :not_found if device.nil?
78
62
  end
63
+
64
+ def stream_job
65
+ response.headers['Content-Type'] = 'text/event-stream'
66
+ # find current job or get new one
67
+ Extface.redis_block do |r|
68
+ start = Time.now
69
+ if job = device.jobs.active.find_by(id: cookies[:extface]) || device.jobs.active.try(:first)
70
+ cookies.permanent[:extface] = job.id
71
+ p "Processing job #{job.id}"
72
+ list, data = r.blpop(job.id, timeout: 1)
73
+ while data
74
+ response.stream.write data
75
+ r.publish(job.id, "OK")
76
+ if (Time.now - start) > 3.seconds
77
+ p "Will continue next time"
78
+ #break
79
+ end
80
+ list, data = r.blpop(job.id, timeout: 1)
81
+ end
82
+ end
83
+ end #redis block
84
+ end
79
85
  end
80
86
  end
@@ -0,0 +1,94 @@
1
+ module Extface
2
+ module Driver::Daisy::CommandsFx1200
3
+ module Init
4
+ DATE_TIME 0x3d
5
+ PRINT_OPTIONS 0x2b
6
+ PRINT_LOGO 0x2b
7
+ PROG_TAX_RATES 0x60
8
+ OPERATOR_PASS 0x65
9
+ OPERATOR_NAME 0x66
10
+ PROG_SYSTEM_PARAMS 0x96
11
+ PROG_ITEM 0x6b
12
+ DEL_ITEM 0x6b
13
+ PROG_DEPARTAMENT 0x83
14
+ LOGO_LOAD 0x73
15
+ PROG_TEXT_FIELD 0x95
16
+ PROG_PAYMENT 0x97
17
+ SET_ID_AND_FP_NUM 0x5b
18
+ SET_EIK_BULSTAT 0x62
19
+ SET_FISCALIZATION 0x48
20
+ end
21
+
22
+ module Sales
23
+ START_NON_FISCAL_DOC 0x26
24
+ PRINT_NON_FISCAL_TEXT 0x2a
25
+ END_NON_FISCAL_DOC 0x27
26
+ START_FISCAL_DOC 0x30
27
+ SALE 0x31
28
+ SALE_AND_SHOW 0x34
29
+ SALE_ITEM 0x3a
30
+ SALE_DEPARTAMENT 0x8a
31
+ SUBTOTAL 0x33
32
+ TOTAL 0x35
33
+ PRINT_FISCAL_TEXT 0x36
34
+ CANCEL_DOC 0x82
35
+ PRINT_INFO_FOR_CLIENT 0x39
36
+ END_FISCAL_DOC 0x38
37
+ PRINT_DUPLICATE_DOC 0x6d
38
+ end
39
+
40
+ module Reports
41
+ REPORT_BY_ITEMS 0x6f
42
+ REPORT_BY_OPERATORS 0x69
43
+ GET_TAX_RATES 0x32
44
+ REPORT_FP_BY_NUMBER 0x49
45
+ COMPACT_REPORT_FP_BY_DATE 0x4f
46
+ REPORT_FP_BY_DATE 0x5e
47
+ COMPACT_REPORT_FP_BY_NUM 0x5f
48
+ REPORT_BY_DEPARTAMENTS 0xa5
49
+ REPORT_SYSTEM_PARAMS 0xa6
50
+ end
51
+
52
+ module Closure
53
+ DAY_FIN_REPORT 0x45
54
+ EXPANDED_DAY_FIN_REPORT 0x6c
55
+ PRINT_EKL 0x45
56
+ RESET_SALES_BY_OPERATOR 0x68
57
+ end
58
+
59
+ module Info
60
+ DATE_TIME 0x3e
61
+ STATUS 0x4a
62
+ CURRENT_NET_AMMOUNTS 0x41
63
+ LAST_FISCAL_RECORD 0x40
64
+ FREE_FISCAL_RECORDS 0x44
65
+ STATUS_FISCAL_DOC 0x4c
66
+ DIAGNOSTIC_INFO 0x5a
67
+ CURRENT_TAX_RATES 0x61
68
+ EIK_BULSTAT 0x63
69
+ ITEM 0x6b
70
+ DEPARTAMENT 0x83
71
+ DOC 0x67
72
+ DAY 0x6e
73
+ PRINT_OPTIONS 0x2b
74
+ OPERATOR 0x70
75
+ LAST_DOC_NUMBER 0x71
76
+ FP_BY_NUMBER 0x72
77
+ FP_BY_DATE 0x92
78
+ CONSTANTS 0x80
79
+ PRINT_DIAGNOSTIC 0x47
80
+ READ_EKL 0xb1
81
+ end
82
+
83
+ module Printer
84
+ CUT 0x2c
85
+ MOVE 0x2d
86
+ end
87
+
88
+ module Other
89
+ ADD_SUB_SUMS 0x46
90
+ OPEN_DRAWER 0x6a
91
+ SHOW_DATE_TIME 0x3f
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,52 @@
1
+ # SEND
2
+ # 1 2 3 4 5 6 7 8
3
+ #STX LEN SEQ CMD DATA PA1 BCC ETX
4
+ # 1 1 1 1 0–200 1 4 1
5
+ #01h 20h–FFh 20h–FFh 20h–FFh 20h–FFh 05h 30h–3Fh 03h
6
+
7
+ # RECV
8
+ # 1 2 3 4 5 6 7 8 9 10
9
+ #STX LEN SEQ CMD DATA PA2 STATUS PA1 BCC ETX
10
+ # 1 1 1 1 0–200 1 6 1 4 1
11
+ #01h 20h–FFh 20h–FFh 20h–FFh 20h–FFh 04h 80h–FFh 05h 30h–3Fh 03h
12
+
13
+ module Extface
14
+ class Driver::DaisyFx1200 < Extface::Driver
15
+ NAME = 'Daisy FX1200 (Serial)'.freeze
16
+ GROUP = Extface::FISCAL_DRIVER
17
+
18
+ DEVELOPMENT = true #driver is not ready for production (not passing all tests or has major bugs)
19
+
20
+ # Select driver features
21
+ RAW = true #responds to #push(data) and #pull
22
+ PRINT = false #POS, slip printers
23
+ FISCAL = true #cash registers, fiscal printers
24
+ REPORT = false #only transmit data that must be parsed by handler, CDR, report devices
25
+
26
+ has_serial_config
27
+
28
+ def handle(buffer)
29
+ rpush buffer
30
+ return buffer.length # return number of bytes processed
31
+ end
32
+
33
+ def autocut(partial = true)
34
+ # <ESC> “d” “0” - Full-cut command
35
+ # <ESC> “d” “1” - Partial-cut command
36
+ #push build_packet(CMD)
37
+ #push partial ? "\x1B\x64\x31" : "\x1B\x64\x30"
38
+ end
39
+
40
+ private
41
+ def build_packet(cmd, data)
42
+
43
+ end
44
+
45
+ def bcc(data)
46
+ bcc = 0
47
+ data.each_byte do |byte|
48
+ bcc += byte
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1 @@
1
+ <%= __FILE__.gsub(Rails.root.to_s, "") %>
@@ -0,0 +1 @@
1
+ <%= __FILE__.gsub(Rails.root.to_s, "") %>
@@ -3,7 +3,7 @@ module Extface
3
3
  extend ActiveSupport::Concern
4
4
 
5
5
  def composite_id
6
- "#{self.class.name}##{self.id}"
6
+ "#{(self.class.try(:base_class) || self.class).send(:name)}##{self.id}"
7
7
  end
8
8
 
9
9
  module ClassMethods
@@ -1,3 +1,3 @@
1
1
  module Extface
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
Binary file
Binary file
@@ -0,0 +1,164 @@
1
+  (102.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (74.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+ Migrating to CreateShops (20140221203517)
5
+  (0.1ms) begin transaction
6
+  (0.5ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
7
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140221203517"]]
8
+  (107.8ms) commit transaction
9
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
11
+ Migrating to CreateExtfaceDevices (20140215192111)
12
+  (0.1ms) begin transaction
13
+  (0.3ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime) 
14
+  (0.1ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")
15
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140215192111"]]
16
+  (117.0ms) commit transaction
17
+ Migrating to CreateExtfacePosPrintDrivers (20140216110018)
18
+  (0.1ms) begin transaction
19
+  (0.4ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
20
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140216110018"]]
21
+  (95.8ms) commit transaction
22
+ Migrating to CreateExtfaceSerialConfigs (20140216110608)
23
+  (0.1ms) begin transaction
24
+  (0.3ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "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)
25
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140216110608"]]
26
+  (80.0ms) commit transaction
27
+ Migrating to CreateExtfaceRawDrivers (20140216131245)
28
+  (0.1ms) begin transaction
29
+  (0.4ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
30
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140216131245"]]
31
+  (79.5ms) commit transaction
32
+ Migrating to CreateExtfaceFiscalPrintDrivers (20140216131457)
33
+  (0.1ms) begin transaction
34
+  (0.3ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
35
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140216131457"]]
36
+  (72.1ms) commit transaction
37
+ Migrating to CreateExtfacePbxCdrDrivers (20140216134748)
38
+  (0.1ms) begin transaction
39
+  (0.3ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
40
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140216134748"]]
41
+  (72.1ms) commit transaction
42
+ Migrating to CreateExtfaceJobs (20140219091811)
43
+  (0.1ms) begin transaction
44
+  (0.3ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime)
45
+  (0.1ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
46
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219091811"]]
47
+  (79.8ms) commit transaction
48
+ Migrating to AddJobInfoToExtfaceJobs (20140219175006)
49
+  (0.1ms) begin transaction
50
+  (19.5ms) ALTER TABLE "extface_jobs" ADD "description" varchar(255)
51
+  (0.3ms) ALTER TABLE "extface_jobs" ADD "error" varchar(255)
52
+  (0.2ms) ALTER TABLE "extface_jobs" ADD "failed_at" datetime
53
+  (0.3ms) ALTER TABLE "extface_jobs" ADD "completed_at" datetime
54
+  (0.3ms) ALTER TABLE "extface_jobs" ADD "connected_at" datetime
55
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219175006"]]
56
+  (91.0ms) commit transaction
57
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
58
+  (102.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
59
+  (82.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
60
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
61
+ Migrating to CreateShops (20140221203517)
62
+  (0.1ms) begin transaction
63
+  (0.6ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
64
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140221203517"]]
65
+  (79.7ms) commit transaction
66
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
67
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
68
+ Migrating to CreateExtfaceDevices (20140215192111)
69
+  (0.1ms) begin transaction
70
+  (0.3ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime) 
71
+  (0.1ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")
72
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140215192111"]]
73
+  (127.1ms) commit transaction
74
+ Migrating to CreateExtfacePosPrintDrivers (20140216110018)
75
+  (0.1ms) begin transaction
76
+  (0.3ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
77
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140216110018"]]
78
+  (96.4ms) commit transaction
79
+ Migrating to CreateExtfaceSerialConfigs (20140216110608)
80
+  (0.1ms) begin transaction
81
+  (0.3ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "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)
82
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140216110608"]]
83
+  (96.2ms) commit transaction
84
+ Migrating to CreateExtfaceRawDrivers (20140216131245)
85
+  (0.1ms) begin transaction
86
+  (0.3ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
87
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140216131245"]]
88
+  (95.9ms) commit transaction
89
+ Migrating to CreateExtfaceFiscalPrintDrivers (20140216131457)
90
+  (0.1ms) begin transaction
91
+  (0.3ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
92
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140216131457"]]
93
+  (88.3ms) commit transaction
94
+ Migrating to CreateExtfacePbxCdrDrivers (20140216134748)
95
+  (0.1ms) begin transaction
96
+  (0.3ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
97
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140216134748"]]
98
+  (96.9ms) commit transaction
99
+ Migrating to CreateExtfaceJobs (20140219091811)
100
+  (0.1ms) begin transaction
101
+  (0.3ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime)
102
+  (0.2ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
103
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219091811"]]
104
+  (87.6ms) commit transaction
105
+ Migrating to AddJobInfoToExtfaceJobs (20140219175006)
106
+  (0.1ms) begin transaction
107
+  (0.4ms) ALTER TABLE "extface_jobs" ADD "description" varchar(255)
108
+  (0.3ms) ALTER TABLE "extface_jobs" ADD "error" varchar(255)
109
+  (0.2ms) ALTER TABLE "extface_jobs" ADD "failed_at" datetime
110
+  (0.2ms) ALTER TABLE "extface_jobs" ADD "completed_at" datetime
111
+  (0.3ms) ALTER TABLE "extface_jobs" ADD "connected_at" datetime
112
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219175006"]]
113
+  (177.5ms) commit transaction
114
+ Migrating to CreateExtfaceDrivers (20140303112124)
115
+  (0.1ms) begin transaction
116
+  (0.3ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime) 
117
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140303112124"]]
118
+  (79.8ms) commit transaction
119
+ Migrating to DropSeparateDriverTypeTables (20140303113217)
120
+  (0.1ms) begin transaction
121
+  (0.2ms) DROP TABLE "extface_pos_print_drivers"
122
+  (0.2ms) DROP TABLE "extface_raw_drivers"
123
+  (0.2ms) DROP TABLE "extface_fiscal_print_drivers"
124
+  (0.1ms) DROP TABLE "extface_pbx_cdr_drivers"
125
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140303113217"]]
126
+  (91.1ms) commit transaction
127
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
128
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
129
+ Migrating to ChangeDriverPolymorphicToBelongsToExtfaceDevices (20140303122506)
130
+  (0.1ms) begin transaction
131
+  (0.3ms) DROP INDEX "index_extface_devices_on_driveable_id_and_driveable_type"
132
+  (0.3ms) CREATE TEMPORARY TABLE "aextface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)
133
+  (0.1ms) SELECT * FROM "extface_devices"
134
+  (0.2ms) DROP TABLE "extface_devices"
135
+  (0.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), "driveable_id" integer, "created_at" datetime, "updated_at" datetime) 
136
+  (0.1ms) SELECT * FROM "aextface_devices"
137
+  (0.1ms) DROP TABLE "aextface_devices"
138
+  (0.1ms) CREATE TEMPORARY TABLE "aextface_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)
139
+  (0.1ms) SELECT * FROM "extface_devices"
140
+  (0.1ms) DROP TABLE "extface_devices"
141
+  (0.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) 
142
+  (0.1ms) SELECT * FROM "aextface_devices"
143
+  (0.1ms) DROP TABLE "aextface_devices"
144
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140303122506"]]
145
+  (118.8ms) commit transaction
146
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
147
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
148
+ Migrating to ChangePolymorphicToHasOneToExtfaceSerialConfigs (20140303123022)
149
+  (0.1ms) begin transaction
150
+  (0.4ms) CREATE TEMPORARY TABLE "aextface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "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) 
151
+  (0.1ms) SELECT * FROM "extface_serial_configs"
152
+  (0.2ms) DROP TABLE "extface_serial_configs"
153
+  (0.1ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_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)
154
+  (0.1ms) SELECT * FROM "aextface_serial_configs"
155
+  (0.1ms) DROP TABLE "aextface_serial_configs"
156
+  (0.1ms) CREATE TEMPORARY TABLE "aextface_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) 
157
+  (0.1ms) SELECT * FROM "extface_serial_configs"
158
+  (0.2ms) DROP TABLE "extface_serial_configs"
159
+  (0.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)
160
+  (0.1ms) SELECT * FROM "aextface_serial_configs"
161
+  (0.2ms) DROP TABLE "aextface_serial_configs"
162
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140303123022"]]
163
+  (146.1ms) commit transaction
164
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"