extface 0.1.5 → 0.1.6
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 +5 -13
- data/app/assets/javascripts/extface/devices.js +6 -1
- data/app/controllers/extface/handler_controller.rb +26 -20
- data/app/models/extface/driver/daisy/commands_fx1200.rb +94 -0
- data/app/models/extface/driver/daisy_fx1200.rb +52 -0
- data/app/views/extface/driver/daisy_fx1200/_settings.html.erb +1 -0
- data/app/views/extface/driver/epson_tm_u220/_settings.html.erb +1 -0
- data/lib/extface/extfaceable.rb +1 -1
- data/lib/extface/version.rb +1 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +164 -0
- data/test/dummy/log/test.log +5213 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/0a8a23b1a73ebf217f4e2b765013ce7b +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/21fb58a50e25d1170f2c7d5bd5d29c54 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/263375f2d55c31687ed052f99ddead55 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/3f4ff460a79b2e29781690193a3960f6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/4ef10b222fde3c042209a46daf3d3e36 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/544650645bc510ef8fbee0043c41fdcf +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6dbf2b0443792e51055710be15c83197 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/717acb3e7c0df18696cf1bc56de6d3d5 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/9891cbb0808f38b2c42f42fd89e662a4 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/9b178820b9dc8c81c9784cf7ee3b7d35 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a06a4a7f51754a6a2c0694eb39ff824b +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a8cc2e73253025d2518d2449e16e5266 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b56dfad0b14283f2cc10c62f37d71cc7 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e1197e0129ade843b08de0b45c47fc40 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/ece3270b150db7c668579bb91ac7e2e5 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f018ab87f3490dbbcbc2e3c9f36aed3d +0 -0
- metadata +169 -125
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
YTFiNGM0OGQzNGZkZjQwNzliNzJiYmNkOTg3YmUwZjY4NjhmYWExZQ==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 246de0f5b3ea8497766df714b9b1905522043f35
|
4
|
+
data.tar.gz: b25336c13ec5ffa1736488ad0a2b9a4483edfc15
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
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
|
-
$.
|
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
|
-
|
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, "") %>
|
data/lib/extface/extfaceable.rb
CHANGED
data/lib/extface/version.rb
CHANGED
Binary file
|
Binary file
|
@@ -0,0 +1,164 @@
|
|
1
|
+
[1m[36m (102.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
2
|
+
[1m[35m (74.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4
|
+
Migrating to CreateShops (20140221203517)
|
5
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
7
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140221203517"]]
|
8
|
+
[1m[36m (107.8ms)[0m [1mcommit transaction[0m
|
9
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
10
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
11
|
+
Migrating to CreateExtfaceDevices (20140215192111)
|
12
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13
|
+
[1m[36m (0.3ms)[0m [1mCREATE 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) [0m
|
14
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")
|
15
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140215192111"]]
|
16
|
+
[1m[35m (117.0ms)[0m commit transaction
|
17
|
+
Migrating to CreateExtfacePosPrintDrivers (20140216110018)
|
18
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
19
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
|
20
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140216110018"]]
|
21
|
+
[1m[35m (95.8ms)[0m commit transaction
|
22
|
+
Migrating to CreateExtfaceSerialConfigs (20140216110608)
|
23
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
24
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140216110608"]]
|
26
|
+
[1m[35m (80.0ms)[0m commit transaction
|
27
|
+
Migrating to CreateExtfaceRawDrivers (20140216131245)
|
28
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
29
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
|
30
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140216131245"]]
|
31
|
+
[1m[35m (79.5ms)[0m commit transaction
|
32
|
+
Migrating to CreateExtfaceFiscalPrintDrivers (20140216131457)
|
33
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
34
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
|
35
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140216131457"]]
|
36
|
+
[1m[35m (72.1ms)[0m commit transaction
|
37
|
+
Migrating to CreateExtfacePbxCdrDrivers (20140216134748)
|
38
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
39
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
|
40
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140216134748"]]
|
41
|
+
[1m[35m (72.1ms)[0m commit transaction
|
42
|
+
Migrating to CreateExtfaceJobs (20140219091811)
|
43
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
44
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime)
|
45
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
|
46
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219091811"]]
|
47
|
+
[1m[36m (79.8ms)[0m [1mcommit transaction[0m
|
48
|
+
Migrating to AddJobInfoToExtfaceJobs (20140219175006)
|
49
|
+
[1m[35m (0.1ms)[0m begin transaction
|
50
|
+
[1m[36m (19.5ms)[0m [1mALTER TABLE "extface_jobs" ADD "description" varchar(255)[0m
|
51
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "extface_jobs" ADD "error" varchar(255)
|
52
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "extface_jobs" ADD "failed_at" datetime[0m
|
53
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "extface_jobs" ADD "completed_at" datetime
|
54
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "extface_jobs" ADD "connected_at" datetime[0m
|
55
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219175006"]]
|
56
|
+
[1m[36m (91.0ms)[0m [1mcommit transaction[0m
|
57
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
58
|
+
[1m[36m (102.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
59
|
+
[1m[35m (82.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
60
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
61
|
+
Migrating to CreateShops (20140221203517)
|
62
|
+
[1m[35m (0.1ms)[0m begin transaction
|
63
|
+
[1m[36m (0.6ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
64
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140221203517"]]
|
65
|
+
[1m[36m (79.7ms)[0m [1mcommit transaction[0m
|
66
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
67
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
68
|
+
Migrating to CreateExtfaceDevices (20140215192111)
|
69
|
+
[1m[35m (0.1ms)[0m begin transaction
|
70
|
+
[1m[36m (0.3ms)[0m [1mCREATE 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) [0m
|
71
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")
|
72
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140215192111"]]
|
73
|
+
[1m[35m (127.1ms)[0m commit transaction
|
74
|
+
Migrating to CreateExtfacePosPrintDrivers (20140216110018)
|
75
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
76
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
|
77
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140216110018"]]
|
78
|
+
[1m[35m (96.4ms)[0m commit transaction
|
79
|
+
Migrating to CreateExtfaceSerialConfigs (20140216110608)
|
80
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
81
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140216110608"]]
|
83
|
+
[1m[35m (96.2ms)[0m commit transaction
|
84
|
+
Migrating to CreateExtfaceRawDrivers (20140216131245)
|
85
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
86
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
|
87
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140216131245"]]
|
88
|
+
[1m[35m (95.9ms)[0m commit transaction
|
89
|
+
Migrating to CreateExtfaceFiscalPrintDrivers (20140216131457)
|
90
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
91
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
|
92
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140216131457"]]
|
93
|
+
[1m[35m (88.3ms)[0m commit transaction
|
94
|
+
Migrating to CreateExtfacePbxCdrDrivers (20140216134748)
|
95
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
96
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
|
97
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140216134748"]]
|
98
|
+
[1m[35m (96.9ms)[0m commit transaction
|
99
|
+
Migrating to CreateExtfaceJobs (20140219091811)
|
100
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
101
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime)
|
102
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
|
103
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219091811"]]
|
104
|
+
[1m[36m (87.6ms)[0m [1mcommit transaction[0m
|
105
|
+
Migrating to AddJobInfoToExtfaceJobs (20140219175006)
|
106
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "extface_jobs" ADD "description" varchar(255)[0m
|
108
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "extface_jobs" ADD "error" varchar(255)
|
109
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "extface_jobs" ADD "failed_at" datetime[0m
|
110
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "extface_jobs" ADD "completed_at" datetime
|
111
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "extface_jobs" ADD "connected_at" datetime[0m
|
112
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219175006"]]
|
113
|
+
[1m[36m (177.5ms)[0m [1mcommit transaction[0m
|
114
|
+
Migrating to CreateExtfaceDrivers (20140303112124)
|
115
|
+
[1m[35m (0.1ms)[0m begin transaction
|
116
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime) [0m
|
117
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140303112124"]]
|
118
|
+
[1m[36m (79.8ms)[0m [1mcommit transaction[0m
|
119
|
+
Migrating to DropSeparateDriverTypeTables (20140303113217)
|
120
|
+
[1m[35m (0.1ms)[0m begin transaction
|
121
|
+
[1m[36m (0.2ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
|
122
|
+
[1m[35m (0.2ms)[0m DROP TABLE "extface_raw_drivers"
|
123
|
+
[1m[36m (0.2ms)[0m [1mDROP TABLE "extface_fiscal_print_drivers"[0m
|
124
|
+
[1m[35m (0.1ms)[0m DROP TABLE "extface_pbx_cdr_drivers"
|
125
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140303113217"]]
|
126
|
+
[1m[35m (91.1ms)[0m commit transaction
|
127
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
128
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
129
|
+
Migrating to ChangeDriverPolymorphicToBelongsToExtfaceDevices (20140303122506)
|
130
|
+
[1m[35m (0.1ms)[0m begin transaction
|
131
|
+
[1m[36m (0.3ms)[0m [1mDROP INDEX "index_extface_devices_on_driveable_id_and_driveable_type"[0m
|
132
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM "extface_devices"[0m
|
134
|
+
[1m[35m (0.2ms)[0m DROP TABLE "extface_devices"
|
135
|
+
[1m[36m (0.1ms)[0m [1mCREATE 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) [0m
|
136
|
+
[1m[35m (0.1ms)[0m SELECT * FROM "aextface_devices"
|
137
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "aextface_devices"[0m
|
138
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM "extface_devices"[0m
|
140
|
+
[1m[35m (0.1ms)[0m DROP TABLE "extface_devices"
|
141
|
+
[1m[36m (0.1ms)[0m [1mCREATE 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) [0m
|
142
|
+
[1m[35m (0.1ms)[0m SELECT * FROM "aextface_devices"
|
143
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "aextface_devices"[0m
|
144
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140303122506"]]
|
145
|
+
[1m[36m (118.8ms)[0m [1mcommit transaction[0m
|
146
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
147
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
148
|
+
Migrating to ChangePolymorphicToHasOneToExtfaceSerialConfigs (20140303123022)
|
149
|
+
[1m[35m (0.1ms)[0m begin transaction
|
150
|
+
[1m[36m (0.4ms)[0m [1mCREATE 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) [0m
|
151
|
+
[1m[35m (0.1ms)[0m SELECT * FROM "extface_serial_configs"
|
152
|
+
[1m[36m (0.2ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
|
153
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM "aextface_serial_configs"[0m
|
155
|
+
[1m[35m (0.1ms)[0m DROP TABLE "aextface_serial_configs"
|
156
|
+
[1m[36m (0.1ms)[0m [1mCREATE 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) [0m
|
157
|
+
[1m[35m (0.1ms)[0m SELECT * FROM "extface_serial_configs"
|
158
|
+
[1m[36m (0.2ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
|
159
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM "aextface_serial_configs"[0m
|
161
|
+
[1m[35m (0.2ms)[0m DROP TABLE "aextface_serial_configs"
|
162
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140303123022"]]
|
163
|
+
[1m[35m (146.1ms)[0m commit transaction
|
164
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|