extface 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/extface/extface_fiscal_monitor.js +23 -0
- data/app/controllers/extface/handler_controller.rb +2 -0
- data/app/controllers/extface/jobs_controller.rb +10 -6
- data/app/models/extface/device.rb +13 -0
- data/app/models/extface/driver.rb +23 -10
- data/lib/extface/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +715 -0
- data/test/test_helper.rb +1 -1
- metadata +13 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02a744e2465fa1fb46a3b5ed592a1ac80419c202
|
4
|
+
data.tar.gz: c493972d31000e1bf7a13c4596bd78c317e11f63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31e6d25f146bdfd41010b2a56891cc1fa41ad128e39617afd6556c76b54586df8c499868c33778170fe7b1ddb3ed3e50047302348ad4ed8ac340ebaf746ed438
|
7
|
+
data.tar.gz: a3dc96a32890142f5e3d0690dfc04bad99b07bfc60094f0279902199675e4dcf0eb786716a998debcd9d7d2dbeec6a57242e05db6ad6dbed59824531a5980674
|
@@ -0,0 +1,23 @@
|
|
1
|
+
window.extface_fiscal_jobs = [];
|
2
|
+
document.extface_fiscal_monitor = function(url) {
|
3
|
+
if (!!window.EventSource) {
|
4
|
+
var source = new EventSource(url);
|
5
|
+
var modal = $('#extface_fiscal_monitor');
|
6
|
+
var message = $('#extface_fiscal_message');
|
7
|
+
|
8
|
+
source.onmessage = function(e) {
|
9
|
+
message.html(e.data);
|
10
|
+
};
|
11
|
+
|
12
|
+
source.onopen = function(e) {
|
13
|
+
window.extface_fiscal_jobs.push(url);
|
14
|
+
modal.modal('show');
|
15
|
+
};
|
16
|
+
|
17
|
+
source.onerror = function(e) {
|
18
|
+
window.extface_fiscal_jobs.splice( $.inArray(url, window.extface_jobs), 1 );
|
19
|
+
source.close();
|
20
|
+
if (window.extface_fiscal_jobs.length == 0) setTimeout(function(){modal.modal('hide');},1000);
|
21
|
+
};
|
22
|
+
}
|
23
|
+
};
|
@@ -15,6 +15,7 @@ module Extface
|
|
15
15
|
else
|
16
16
|
stream_job
|
17
17
|
end
|
18
|
+
response.stream.write ''
|
18
19
|
rescue => e
|
19
20
|
p e.message
|
20
21
|
render nothing: true, status: :internal_server_error
|
@@ -41,6 +42,7 @@ module Extface
|
|
41
42
|
#stream_job # stream right now :)
|
42
43
|
status = :ok
|
43
44
|
end
|
45
|
+
response.stream.write ''
|
44
46
|
rescue => e
|
45
47
|
p e.message
|
46
48
|
render nothing: true, status: :internal_server_error
|
@@ -14,16 +14,20 @@ module Extface
|
|
14
14
|
else
|
15
15
|
#redis = Redis.new
|
16
16
|
response.stream.write("data: Job #{@job.id} waiting for device connection...\n\n")
|
17
|
-
Extface.
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
17
|
+
Timeout.timeout(Extface.device_timeout) do #never stay too long, TODO add SSE option to reconnect
|
18
|
+
Extface.redis_block do |r|
|
19
|
+
r.subscribe(@job.id) do |on|
|
20
|
+
on.message do |event, data|
|
21
|
+
p "@@@@ #{event}: #{data}\n\n"
|
22
|
+
response.stream.write("data: #{data}\n\n") unless data == 'OK'
|
23
|
+
r.unsubscribe if data == "Job #{@job.id} completed!" || data == "Job #{@job.id} failed!" #FIXME stupid
|
24
|
+
end
|
23
25
|
end
|
24
26
|
end
|
25
27
|
end
|
26
28
|
end
|
29
|
+
rescue Timeout::Error
|
30
|
+
#TODO invite reconnect
|
27
31
|
ensure
|
28
32
|
response.stream.close
|
29
33
|
end
|
@@ -54,5 +54,18 @@ module Extface
|
|
54
54
|
end
|
55
55
|
job
|
56
56
|
end
|
57
|
+
|
58
|
+
#initial billing module fiscalization support
|
59
|
+
def fiscalize(billing_account, detailed = false)
|
60
|
+
if billing_account.instance_of?(Billing::Account) && billing_account.valid?
|
61
|
+
driver.sale_and_pay_items_session(
|
62
|
+
[].tap() do |payments|
|
63
|
+
billing_account.payments.each do |payment|
|
64
|
+
payments << Extface::Driver::Base::Fiscal::SaleItem.new(price: payment.value.to_f, text1: payment.description)
|
65
|
+
end
|
66
|
+
end
|
67
|
+
)
|
68
|
+
end
|
69
|
+
end
|
57
70
|
end
|
58
71
|
end
|
@@ -46,19 +46,32 @@ module Extface
|
|
46
46
|
|
47
47
|
def push(buffer)
|
48
48
|
if @job
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
49
|
+
#retry if current device job is not @job (waiting on queue)
|
50
|
+
wait_on_queue = false
|
51
|
+
begin
|
52
|
+
if current_device_job = device.jobs(true).active.try(:first)
|
53
|
+
if current_device_job != @job
|
54
|
+
wait_on_queue = true
|
55
|
+
p "#### current_job is not first_on_queue"
|
56
|
+
end
|
57
|
+
end
|
58
|
+
Timeout.timeout(Extface.device_timeout) do
|
59
|
+
Extface.redis_block do |r|
|
60
|
+
r.subscribe(@job.id) do |on| #blocking until delivered
|
61
|
+
on.subscribe do |channel, subscriptions|
|
62
|
+
@job.rpush buffer
|
63
|
+
logger.debug "--> #{buffer.bytes.map{ |b| '%02X' % b }.join(' ')}" if development?
|
64
|
+
end
|
65
|
+
on.message do |event, data|
|
66
|
+
r.unsubscribe
|
67
|
+
@job.connected!
|
68
|
+
end
|
59
69
|
end
|
60
70
|
end
|
61
71
|
end
|
72
|
+
rescue Timeout::Error
|
73
|
+
p "###########3 timeout err"
|
74
|
+
retry if wait_on_queue
|
62
75
|
end
|
63
76
|
else
|
64
77
|
raise "No job given"
|
data/lib/extface/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -5211,3 +5211,718 @@ ExtfaceTest: test_truth
|
|
5211
5211
|
-----------------------
|
5212
5212
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5213
5213
|
Completed in 7ms
|
5214
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5215
|
+
[1m[35m (199.6ms)[0m DROP TABLE "extface_devices"
|
5216
|
+
[1m[36m (115.5ms)[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
|
5217
|
+
[1m[35m (106.3ms)[0m DROP TABLE "extface_drivers"
|
5218
|
+
[1m[36m (107.2ms)[0m [1mCREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime) [0m
|
5219
|
+
[1m[35m (106.3ms)[0m DROP TABLE "extface_jobs"
|
5220
|
+
[1m[36m (106.9ms)[0m [1mCREATE 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) [0m
|
5221
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
5222
|
+
[1m[36m (106.1ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
|
5223
|
+
[1m[35m (107.7ms)[0m DROP TABLE "extface_serial_configs"
|
5224
|
+
[1m[36m (131.7ms)[0m [1mCREATE 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) [0m
|
5225
|
+
[1m[35m (131.0ms)[0m DROP TABLE "shops"
|
5226
|
+
[1m[36m (132.0ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
5227
|
+
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
5228
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5229
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
|
5230
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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, '2014-07-17 22:18:54', '2014-07-17 22:18:54', 980190962, 258259918)[0m
|
5231
|
+
[1m[35mFixture Insert (0.1ms)[0m 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, '2014-07-17 22:18:54', '2014-07-17 22:18:54', 298486374, 599072141)
|
5232
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
|
5233
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID1', 'MyString1', '2014-07-17 22:18:54', '2014-07-17 22:18:54', 980190962, 'Shop', 980190962, 258259918)
|
5234
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID2', 'MyString2', '2014-07-17 22:18:54', '2014-07-17 22:18:54', 298486374, 'Shop', 980190962, 599072141)[0m
|
5235
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_drivers"
|
5236
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::GenericPos', '2014-07-17 22:18:54', '2014-07-17 22:18:54', 258259918)[0m
|
5237
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-07-17 22:18:54', '2014-07-17 22:18:54', 412842077)
|
5238
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-07-17 22:18:54', '2014-07-17 22:18:54', 599072141)[0m
|
5239
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
|
5240
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-07-17 22:18:54', '2014-07-17 22:18:54', 980190962)[0m
|
5241
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-07-17 22:18:54', '2014-07-17 22:18:54', 298486374)
|
5242
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
|
5243
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-07-17 22:18:54', '2014-07-17 22:18:54', 980190962)
|
5244
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-07-17 22:18:54', '2014-07-17 22:18:54', 298486374)[0m
|
5245
|
+
[1m[35m (130.4ms)[0m commit transaction
|
5246
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5247
|
+
---------------------------------------------------------
|
5248
|
+
Extface::DevicesControllerTest: test_should_create_device
|
5249
|
+
---------------------------------------------------------
|
5250
|
+
[1m[35mExtface::Device Load (0.3ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
|
5251
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
|
5252
|
+
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]]
|
5253
|
+
Processing by Extface::DevicesController#create as HTML
|
5254
|
+
Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}}
|
5255
|
+
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
|
5256
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5257
|
+
[1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1[0m
|
5258
|
+
[1m[35mExtface::Device Exists (0.1ms)[0m SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1
|
5259
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-17 22:18:54.644998"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-07-17 22:18:54.644998"]]
|
5260
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-07-17 22:18:54.652262"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "3c131956f1b49b7709ad9403e385727f"], ["updated_at", "2014-07-17 22:18:54.652262"], ["uuid", "3c131956f1b49b7709ad9403e385727f"]]
|
5261
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5262
|
+
Redirected to
|
5263
|
+
Completed 500 Internal Server Error in 25ms
|
5264
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5265
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5266
|
+
----------------------------------------------------------
|
5267
|
+
Extface::DevicesControllerTest: test_should_destroy_device
|
5268
|
+
----------------------------------------------------------
|
5269
|
+
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
|
5270
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
|
5271
|
+
[1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]]
|
5272
|
+
Processing by Extface::DevicesController#destroy as HTML
|
5273
|
+
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
|
5274
|
+
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
|
5275
|
+
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]]
|
5276
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5277
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]
|
5278
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5279
|
+
Completed 500 Internal Server Error in 2ms
|
5280
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5281
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5282
|
+
----------------------------------------------------
|
5283
|
+
Extface::DevicesControllerTest: test_should_get_edit
|
5284
|
+
----------------------------------------------------
|
5285
|
+
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
|
5286
|
+
[1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5287
|
+
Processing by Extface::DevicesController#edit as HTML
|
5288
|
+
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
|
5289
|
+
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
|
5290
|
+
[1m[36mExtface::Device Load (0.0ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]]
|
5291
|
+
Completed 500 Internal Server Error in 11ms
|
5292
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5293
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5294
|
+
-----------------------------------------------------
|
5295
|
+
Extface::DevicesControllerTest: test_should_get_index
|
5296
|
+
-----------------------------------------------------
|
5297
|
+
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
|
5298
|
+
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5299
|
+
Processing by Extface::DevicesController#index as HTML
|
5300
|
+
Parameters: {"shop_id"=>"980190962"}
|
5301
|
+
[1m[35mShop Load (0.2ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
|
5302
|
+
[1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
|
5303
|
+
Completed 500 Internal Server Error in 7ms
|
5304
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5305
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5306
|
+
---------------------------------------------------
|
5307
|
+
Extface::DevicesControllerTest: test_should_get_new
|
5308
|
+
---------------------------------------------------
|
5309
|
+
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
|
5310
|
+
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5311
|
+
Processing by Extface::DevicesController#new as HTML
|
5312
|
+
Parameters: {"shop_id"=>"980190962"}
|
5313
|
+
[1m[35mShop Load (0.2ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
|
5314
|
+
Completed 500 Internal Server Error in 3ms
|
5315
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5316
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5317
|
+
-------------------------------------------------------
|
5318
|
+
Extface::DevicesControllerTest: test_should_show_device
|
5319
|
+
-------------------------------------------------------
|
5320
|
+
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5321
|
+
[1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]]
|
5322
|
+
Processing by Extface::DevicesController#show as HTML
|
5323
|
+
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
|
5324
|
+
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
|
5325
|
+
[1m[35mExtface::Device Load (0.0ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]]
|
5326
|
+
Completed 500 Internal Server Error in 4ms
|
5327
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5328
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5329
|
+
---------------------------------------------------------
|
5330
|
+
Extface::DevicesControllerTest: test_should_update_device
|
5331
|
+
---------------------------------------------------------
|
5332
|
+
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5333
|
+
[1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]]
|
5334
|
+
Processing by Extface::DevicesController#update as HTML
|
5335
|
+
Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
|
5336
|
+
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
|
5337
|
+
[1m[35mExtface::Device Load (0.0ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]]
|
5338
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5339
|
+
[1m[35mExtface::Device Exists (0.1ms)[0m SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'new_name' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1
|
5340
|
+
[1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyUUID1' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1[0m
|
5341
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", "2014-07-17 22:18:54.713439"]]
|
5342
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5343
|
+
Redirected to
|
5344
|
+
Completed 500 Internal Server Error in 5ms
|
5345
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5346
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5347
|
+
-------------------------------------------------
|
5348
|
+
Extface::JobsControllerTest: test_should_show_job
|
5349
|
+
-------------------------------------------------
|
5350
|
+
[1m[35mExtface::Job Load (0.1ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]
|
5351
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5352
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5353
|
+
-----------------------
|
5354
|
+
ExtfaceTest: test_truth
|
5355
|
+
-----------------------
|
5356
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5357
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5358
|
+
[1m[35m (111.5ms)[0m DROP TABLE "extface_devices"
|
5359
|
+
[1m[36m (107.4ms)[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
|
5360
|
+
[1m[35m (106.4ms)[0m DROP TABLE "extface_drivers"
|
5361
|
+
[1m[36m (115.4ms)[0m [1mCREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime) [0m
|
5362
|
+
[1m[35m (114.6ms)[0m DROP TABLE "extface_jobs"
|
5363
|
+
[1m[36m (107.0ms)[0m [1mCREATE 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) [0m
|
5364
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
5365
|
+
[1m[36m (105.9ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
|
5366
|
+
[1m[35m (114.6ms)[0m DROP TABLE "extface_serial_configs"
|
5367
|
+
[1m[36m (131.5ms)[0m [1mCREATE 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) [0m
|
5368
|
+
[1m[35m (139.3ms)[0m DROP TABLE "shops"
|
5369
|
+
[1m[36m (123.7ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
5370
|
+
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
5371
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5372
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
|
5373
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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, '2014-07-18 10:32:32', '2014-07-18 10:32:32', 980190962, 258259918)[0m
|
5374
|
+
[1m[35mFixture Insert (0.1ms)[0m 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, '2014-07-18 10:32:32', '2014-07-18 10:32:32', 298486374, 599072141)
|
5375
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
|
5376
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID1', 'MyString1', '2014-07-18 10:32:32', '2014-07-18 10:32:32', 980190962, 'Shop', 980190962, 258259918)
|
5377
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID2', 'MyString2', '2014-07-18 10:32:32', '2014-07-18 10:32:32', 298486374, 'Shop', 980190962, 599072141)[0m
|
5378
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_drivers"
|
5379
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::GenericPos', '2014-07-18 10:32:32', '2014-07-18 10:32:32', 258259918)[0m
|
5380
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-07-18 10:32:32', '2014-07-18 10:32:32', 412842077)
|
5381
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-07-18 10:32:32', '2014-07-18 10:32:32', 599072141)[0m
|
5382
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
|
5383
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-07-18 10:32:32', '2014-07-18 10:32:32', 980190962)[0m
|
5384
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-07-18 10:32:32', '2014-07-18 10:32:32', 298486374)
|
5385
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
|
5386
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-07-18 10:32:32', '2014-07-18 10:32:32', 980190962)
|
5387
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-07-18 10:32:32', '2014-07-18 10:32:32', 298486374)[0m
|
5388
|
+
[1m[35m (126.1ms)[0m commit transaction
|
5389
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5390
|
+
-------------------------------------------------
|
5391
|
+
Extface::JobsControllerTest: test_should_show_job
|
5392
|
+
-------------------------------------------------
|
5393
|
+
[1m[35mExtface::Job Load (0.3ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]
|
5394
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5395
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5396
|
+
---------------------------------------------------------
|
5397
|
+
Extface::DevicesControllerTest: test_should_create_device
|
5398
|
+
---------------------------------------------------------
|
5399
|
+
[1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5400
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
|
5401
|
+
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5402
|
+
Processing by Extface::DevicesController#create as HTML
|
5403
|
+
Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}}
|
5404
|
+
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
|
5405
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5406
|
+
[1m[35mExtface::Device Exists (0.1ms)[0m SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1
|
5407
|
+
[1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1[0m
|
5408
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-18 10:32:32.496777"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-07-18 10:32:32.496777"]]
|
5409
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-07-18 10:32:32.503470"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "2e01a96126669b56d56b9f1a2ff03628"], ["updated_at", "2014-07-18 10:32:32.503470"], ["uuid", "2e01a96126669b56d56b9f1a2ff03628"]]
|
5410
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5411
|
+
Redirected to
|
5412
|
+
Completed 500 Internal Server Error in 23ms
|
5413
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5414
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5415
|
+
----------------------------------------------------------
|
5416
|
+
Extface::DevicesControllerTest: test_should_destroy_device
|
5417
|
+
----------------------------------------------------------
|
5418
|
+
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5419
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
|
5420
|
+
[1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5421
|
+
Processing by Extface::DevicesController#destroy as HTML
|
5422
|
+
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
|
5423
|
+
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
|
5424
|
+
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]]
|
5425
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5426
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "extface_devices" WHERE "extface_devices"."id" = ?[0m [["id", 980190962]]
|
5427
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5428
|
+
Completed 500 Internal Server Error in 2ms
|
5429
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5430
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5431
|
+
----------------------------------------------------
|
5432
|
+
Extface::DevicesControllerTest: test_should_get_edit
|
5433
|
+
----------------------------------------------------
|
5434
|
+
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5435
|
+
[1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]]
|
5436
|
+
Processing by Extface::DevicesController#edit as HTML
|
5437
|
+
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
|
5438
|
+
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
|
5439
|
+
[1m[35mExtface::Device Load (0.0ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]]
|
5440
|
+
Completed 500 Internal Server Error in 20ms
|
5441
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5442
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5443
|
+
-----------------------------------------------------
|
5444
|
+
Extface::DevicesControllerTest: test_should_get_index
|
5445
|
+
-----------------------------------------------------
|
5446
|
+
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5447
|
+
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]]
|
5448
|
+
Processing by Extface::DevicesController#index as HTML
|
5449
|
+
Parameters: {"shop_id"=>"980190962"}
|
5450
|
+
[1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
|
5451
|
+
[1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
|
5452
|
+
Completed 500 Internal Server Error in 6ms
|
5453
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5454
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5455
|
+
---------------------------------------------------
|
5456
|
+
Extface::DevicesControllerTest: test_should_get_new
|
5457
|
+
---------------------------------------------------
|
5458
|
+
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5459
|
+
[1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]]
|
5460
|
+
Processing by Extface::DevicesController#new as HTML
|
5461
|
+
Parameters: {"shop_id"=>"980190962"}
|
5462
|
+
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
|
5463
|
+
Completed 500 Internal Server Error in 3ms
|
5464
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5465
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5466
|
+
-------------------------------------------------------
|
5467
|
+
Extface::DevicesControllerTest: test_should_show_device
|
5468
|
+
-------------------------------------------------------
|
5469
|
+
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
|
5470
|
+
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5471
|
+
Processing by Extface::DevicesController#show as HTML
|
5472
|
+
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
|
5473
|
+
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
|
5474
|
+
[1m[36mExtface::Device Load (0.0ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]]
|
5475
|
+
Completed 500 Internal Server Error in 4ms
|
5476
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5477
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5478
|
+
---------------------------------------------------------
|
5479
|
+
Extface::DevicesControllerTest: test_should_update_device
|
5480
|
+
---------------------------------------------------------
|
5481
|
+
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
|
5482
|
+
[1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5483
|
+
Processing by Extface::DevicesController#update as HTML
|
5484
|
+
Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
|
5485
|
+
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
|
5486
|
+
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]]
|
5487
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5488
|
+
[1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'new_name' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1[0m
|
5489
|
+
[1m[35mExtface::Device Exists (0.1ms)[0m SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyUUID1' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1
|
5490
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962[0m [["name", "new_name"], ["updated_at", "2014-07-18 10:32:32.565471"]]
|
5491
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5492
|
+
Redirected to
|
5493
|
+
Completed 500 Internal Server Error in 6ms
|
5494
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5495
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5496
|
+
-----------------------
|
5497
|
+
ExtfaceTest: test_truth
|
5498
|
+
-----------------------
|
5499
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5500
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5501
|
+
[1m[35m (191.0ms)[0m DROP TABLE "extface_devices"
|
5502
|
+
[1m[36m (115.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
|
5503
|
+
[1m[35m (106.4ms)[0m DROP TABLE "extface_drivers"
|
5504
|
+
[1m[36m (107.0ms)[0m [1mCREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime) [0m
|
5505
|
+
[1m[35m (107.6ms)[0m DROP TABLE "extface_jobs"
|
5506
|
+
[1m[36m (107.3ms)[0m [1mCREATE 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) [0m
|
5507
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
5508
|
+
[1m[36m (107.1ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
|
5509
|
+
[1m[35m (114.5ms)[0m DROP TABLE "extface_serial_configs"
|
5510
|
+
[1m[36m (115.5ms)[0m [1mCREATE 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) [0m
|
5511
|
+
[1m[35m (139.2ms)[0m DROP TABLE "shops"
|
5512
|
+
[1m[36m (123.6ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
5513
|
+
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
5514
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5515
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "extface_serial_configs"
|
5516
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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, '2014-07-18 12:44:44', '2014-07-18 12:44:44', 980190962, 258259918)[0m
|
5517
|
+
[1m[35mFixture Insert (0.1ms)[0m 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, '2014-07-18 12:44:44', '2014-07-18 12:44:44', 298486374, 599072141)
|
5518
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
|
5519
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID1', 'MyString1', '2014-07-18 12:44:44', '2014-07-18 12:44:44', 980190962, 'Shop', 980190962, 258259918)
|
5520
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID2', 'MyString2', '2014-07-18 12:44:44', '2014-07-18 12:44:44', 298486374, 'Shop', 980190962, 599072141)[0m
|
5521
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_drivers"
|
5522
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::GenericPos', '2014-07-18 12:44:44', '2014-07-18 12:44:44', 258259918)[0m
|
5523
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-07-18 12:44:44', '2014-07-18 12:44:44', 412842077)
|
5524
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-07-18 12:44:44', '2014-07-18 12:44:44', 599072141)[0m
|
5525
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
|
5526
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-07-18 12:44:44', '2014-07-18 12:44:44', 980190962)[0m
|
5527
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-07-18 12:44:44', '2014-07-18 12:44:44', 298486374)
|
5528
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
|
5529
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-07-18 12:44:44', '2014-07-18 12:44:44', 980190962)
|
5530
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-07-18 12:44:44', '2014-07-18 12:44:44', 298486374)[0m
|
5531
|
+
[1m[35m (127.0ms)[0m commit transaction
|
5532
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5533
|
+
-------------------------------------------------
|
5534
|
+
Extface::JobsControllerTest: test_should_show_job
|
5535
|
+
-------------------------------------------------
|
5536
|
+
[1m[35mExtface::Job Load (0.3ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]
|
5537
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5538
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5539
|
+
-----------------------
|
5540
|
+
ExtfaceTest: test_truth
|
5541
|
+
-----------------------
|
5542
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5543
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5544
|
+
---------------------------------------------------------
|
5545
|
+
Extface::DevicesControllerTest: test_should_create_device
|
5546
|
+
---------------------------------------------------------
|
5547
|
+
[1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5548
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
|
5549
|
+
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5550
|
+
Processing by Extface::DevicesController#create as HTML
|
5551
|
+
Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}}
|
5552
|
+
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
|
5553
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5554
|
+
[1m[35mExtface::Device Exists (0.1ms)[0m SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1
|
5555
|
+
[1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1[0m
|
5556
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-18 12:44:45.172626"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-07-18 12:44:45.172626"]]
|
5557
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-07-18 12:44:45.179600"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "50bd03ba39a62e88276c5271c40f6e03"], ["updated_at", "2014-07-18 12:44:45.179600"], ["uuid", "50bd03ba39a62e88276c5271c40f6e03"]]
|
5558
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5559
|
+
Redirected to
|
5560
|
+
Completed 500 Internal Server Error in 26ms
|
5561
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5562
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5563
|
+
----------------------------------------------------------
|
5564
|
+
Extface::DevicesControllerTest: test_should_destroy_device
|
5565
|
+
----------------------------------------------------------
|
5566
|
+
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5567
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
|
5568
|
+
[1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5569
|
+
Processing by Extface::DevicesController#destroy as HTML
|
5570
|
+
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
|
5571
|
+
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
|
5572
|
+
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]]
|
5573
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5574
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "extface_devices" WHERE "extface_devices"."id" = ?[0m [["id", 980190962]]
|
5575
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5576
|
+
Completed 500 Internal Server Error in 2ms
|
5577
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5578
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5579
|
+
----------------------------------------------------
|
5580
|
+
Extface::DevicesControllerTest: test_should_get_edit
|
5581
|
+
----------------------------------------------------
|
5582
|
+
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5583
|
+
[1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]]
|
5584
|
+
Processing by Extface::DevicesController#edit as HTML
|
5585
|
+
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
|
5586
|
+
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
|
5587
|
+
[1m[35mExtface::Device Load (0.0ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]]
|
5588
|
+
Completed 500 Internal Server Error in 17ms
|
5589
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5590
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5591
|
+
-----------------------------------------------------
|
5592
|
+
Extface::DevicesControllerTest: test_should_get_index
|
5593
|
+
-----------------------------------------------------
|
5594
|
+
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5595
|
+
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]]
|
5596
|
+
Processing by Extface::DevicesController#index as HTML
|
5597
|
+
Parameters: {"shop_id"=>"980190962"}
|
5598
|
+
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
|
5599
|
+
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
|
5600
|
+
Completed 500 Internal Server Error in 4ms
|
5601
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5602
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5603
|
+
---------------------------------------------------
|
5604
|
+
Extface::DevicesControllerTest: test_should_get_new
|
5605
|
+
---------------------------------------------------
|
5606
|
+
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5607
|
+
[1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]]
|
5608
|
+
Processing by Extface::DevicesController#new as HTML
|
5609
|
+
Parameters: {"shop_id"=>"980190962"}
|
5610
|
+
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
|
5611
|
+
Completed 500 Internal Server Error in 3ms
|
5612
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5613
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5614
|
+
-------------------------------------------------------
|
5615
|
+
Extface::DevicesControllerTest: test_should_show_device
|
5616
|
+
-------------------------------------------------------
|
5617
|
+
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
|
5618
|
+
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5619
|
+
Processing by Extface::DevicesController#show as HTML
|
5620
|
+
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
|
5621
|
+
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
|
5622
|
+
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]]
|
5623
|
+
Completed 500 Internal Server Error in 5ms
|
5624
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5625
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5626
|
+
---------------------------------------------------------
|
5627
|
+
Extface::DevicesControllerTest: test_should_update_device
|
5628
|
+
---------------------------------------------------------
|
5629
|
+
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
|
5630
|
+
[1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5631
|
+
Processing by Extface::DevicesController#update as HTML
|
5632
|
+
Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
|
5633
|
+
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
|
5634
|
+
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]]
|
5635
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5636
|
+
[1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'new_name' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1[0m
|
5637
|
+
[1m[35mExtface::Device Exists (0.1ms)[0m SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyUUID1' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1
|
5638
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962[0m [["name", "new_name"], ["updated_at", "2014-07-18 12:44:45.234785"]]
|
5639
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5640
|
+
Redirected to
|
5641
|
+
Completed 500 Internal Server Error in 6ms
|
5642
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5643
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5644
|
+
[1m[35m (163.2ms)[0m DROP TABLE "extface_devices"
|
5645
|
+
[1m[36m (106.8ms)[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
|
5646
|
+
[1m[35m (114.6ms)[0m DROP TABLE "extface_drivers"
|
5647
|
+
[1m[36m (107.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
|
5648
|
+
[1m[35m (106.4ms)[0m DROP TABLE "extface_jobs"
|
5649
|
+
[1m[36m (107.1ms)[0m [1mCREATE 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) [0m
|
5650
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
5651
|
+
[1m[36m (106.2ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
|
5652
|
+
[1m[35m (337.0ms)[0m DROP TABLE "extface_serial_configs"
|
5653
|
+
[1m[36m (115.5ms)[0m [1mCREATE 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) [0m
|
5654
|
+
[1m[35m (122.6ms)[0m DROP TABLE "shops"
|
5655
|
+
[1m[36m (140.3ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
5656
|
+
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
5657
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5658
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
|
5659
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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, '2014-07-18 19:39:04', '2014-07-18 19:39:04', 980190962, 258259918)[0m
|
5660
|
+
[1m[35mFixture Insert (0.1ms)[0m 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, '2014-07-18 19:39:04', '2014-07-18 19:39:04', 298486374, 599072141)
|
5661
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
|
5662
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID1', 'MyString1', '2014-07-18 19:39:04', '2014-07-18 19:39:04', 980190962, 'Shop', 980190962, 258259918)
|
5663
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID2', 'MyString2', '2014-07-18 19:39:04', '2014-07-18 19:39:04', 298486374, 'Shop', 980190962, 599072141)[0m
|
5664
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_drivers"
|
5665
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::GenericPos', '2014-07-18 19:39:04', '2014-07-18 19:39:04', 258259918)[0m
|
5666
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-07-18 19:39:04', '2014-07-18 19:39:04', 412842077)
|
5667
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-07-18 19:39:04', '2014-07-18 19:39:04', 599072141)[0m
|
5668
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
|
5669
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-07-18 19:39:04', '2014-07-18 19:39:04', 980190962)[0m
|
5670
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-07-18 19:39:04', '2014-07-18 19:39:04', 298486374)
|
5671
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
|
5672
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-07-18 19:39:04', '2014-07-18 19:39:04', 980190962)
|
5673
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-07-18 19:39:04', '2014-07-18 19:39:04', 298486374)[0m
|
5674
|
+
[1m[35m (126.6ms)[0m commit transaction
|
5675
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
5676
|
+
-----------------------
|
5677
|
+
ExtfaceTest: test_truth
|
5678
|
+
-----------------------
|
5679
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5680
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5681
|
+
---------------------------------------------------------
|
5682
|
+
Extface::DevicesControllerTest: test_should_create_device
|
5683
|
+
---------------------------------------------------------
|
5684
|
+
[1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
|
5685
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
|
5686
|
+
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]]
|
5687
|
+
Processing by Extface::DevicesController#create as HTML
|
5688
|
+
Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}}
|
5689
|
+
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
|
5690
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5691
|
+
[1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1[0m
|
5692
|
+
[1m[35mExtface::Device Exists (0.1ms)[0m SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1
|
5693
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:39:04.499951"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-07-18 19:39:04.499951"]]
|
5694
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-07-18 19:39:04.507355"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "0bf2b4baa741ae713aff8c84b8ac723d"], ["updated_at", "2014-07-18 19:39:04.507355"], ["uuid", "0bf2b4baa741ae713aff8c84b8ac723d"]]
|
5695
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5696
|
+
Redirected to
|
5697
|
+
Completed 500 Internal Server Error in 24ms
|
5698
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5699
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5700
|
+
----------------------------------------------------------
|
5701
|
+
Extface::DevicesControllerTest: test_should_destroy_device
|
5702
|
+
----------------------------------------------------------
|
5703
|
+
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
|
5704
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
|
5705
|
+
[1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]]
|
5706
|
+
Processing by Extface::DevicesController#destroy as HTML
|
5707
|
+
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
|
5708
|
+
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
|
5709
|
+
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]]
|
5710
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5711
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]
|
5712
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5713
|
+
Completed 500 Internal Server Error in 2ms
|
5714
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5715
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5716
|
+
----------------------------------------------------
|
5717
|
+
Extface::DevicesControllerTest: test_should_get_edit
|
5718
|
+
----------------------------------------------------
|
5719
|
+
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
|
5720
|
+
[1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5721
|
+
Processing by Extface::DevicesController#edit as HTML
|
5722
|
+
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
|
5723
|
+
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
|
5724
|
+
[1m[36mExtface::Device Load (0.0ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]]
|
5725
|
+
Completed 500 Internal Server Error in 9ms
|
5726
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5727
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5728
|
+
-----------------------------------------------------
|
5729
|
+
Extface::DevicesControllerTest: test_should_get_index
|
5730
|
+
-----------------------------------------------------
|
5731
|
+
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
|
5732
|
+
[1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5733
|
+
Processing by Extface::DevicesController#index as HTML
|
5734
|
+
Parameters: {"shop_id"=>"980190962"}
|
5735
|
+
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
|
5736
|
+
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
|
5737
|
+
Completed 500 Internal Server Error in 4ms
|
5738
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5739
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5740
|
+
---------------------------------------------------
|
5741
|
+
Extface::DevicesControllerTest: test_should_get_new
|
5742
|
+
---------------------------------------------------
|
5743
|
+
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
|
5744
|
+
[1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5745
|
+
Processing by Extface::DevicesController#new as HTML
|
5746
|
+
Parameters: {"shop_id"=>"980190962"}
|
5747
|
+
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
|
5748
|
+
Completed 500 Internal Server Error in 10ms
|
5749
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5750
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5751
|
+
-------------------------------------------------------
|
5752
|
+
Extface::DevicesControllerTest: test_should_show_device
|
5753
|
+
-------------------------------------------------------
|
5754
|
+
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5755
|
+
[1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]]
|
5756
|
+
Processing by Extface::DevicesController#show as HTML
|
5757
|
+
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
|
5758
|
+
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
|
5759
|
+
[1m[35mExtface::Device Load (0.0ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]]
|
5760
|
+
Completed 500 Internal Server Error in 4ms
|
5761
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5762
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5763
|
+
---------------------------------------------------------
|
5764
|
+
Extface::DevicesControllerTest: test_should_update_device
|
5765
|
+
---------------------------------------------------------
|
5766
|
+
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5767
|
+
[1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]]
|
5768
|
+
Processing by Extface::DevicesController#update as HTML
|
5769
|
+
Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
|
5770
|
+
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
|
5771
|
+
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]]
|
5772
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5773
|
+
[1m[35mExtface::Device Exists (0.1ms)[0m SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'new_name' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1
|
5774
|
+
[1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyUUID1' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1[0m
|
5775
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", "2014-07-18 19:39:04.562945"]]
|
5776
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5777
|
+
Redirected to
|
5778
|
+
Completed 500 Internal Server Error in 6ms
|
5779
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5780
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5781
|
+
-------------------------------------------------
|
5782
|
+
Extface::JobsControllerTest: test_should_show_job
|
5783
|
+
-------------------------------------------------
|
5784
|
+
[1m[35mExtface::Job Load (0.2ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]
|
5785
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5786
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5787
|
+
[1m[35m (134.4ms)[0m DROP TABLE "extface_devices"
|
5788
|
+
[1m[36m (107.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
|
5789
|
+
[1m[35m (106.2ms)[0m DROP TABLE "extface_drivers"
|
5790
|
+
[1m[36m (107.1ms)[0m [1mCREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime) [0m
|
5791
|
+
[1m[35m (107.2ms)[0m DROP TABLE "extface_jobs"
|
5792
|
+
[1m[36m (107.1ms)[0m [1mCREATE 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) [0m
|
5793
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
5794
|
+
[1m[36m (122.3ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
|
5795
|
+
[1m[35m (130.9ms)[0m DROP TABLE "extface_serial_configs"
|
5796
|
+
[1m[36m (140.0ms)[0m [1mCREATE 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) [0m
|
5797
|
+
[1m[35m (122.6ms)[0m DROP TABLE "shops"
|
5798
|
+
[1m[36m (123.6ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
5799
|
+
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
5800
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5801
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "extface_serial_configs"
|
5802
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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, '2014-07-31 12:14:43', '2014-07-31 12:14:43', 980190962, 258259918)[0m
|
5803
|
+
[1m[35mFixture Insert (0.1ms)[0m 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, '2014-07-31 12:14:43', '2014-07-31 12:14:43', 298486374, 599072141)
|
5804
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
|
5805
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID1', 'MyString1', '2014-07-31 12:14:43', '2014-07-31 12:14:43', 980190962, 'Shop', 980190962, 258259918)
|
5806
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driver_id") VALUES ('MyUUID2', 'MyString2', '2014-07-31 12:14:43', '2014-07-31 12:14:43', 298486374, 'Shop', 980190962, 599072141)[0m
|
5807
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "extface_drivers"
|
5808
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::GenericPos', '2014-07-31 12:14:43', '2014-07-31 12:14:43', 258259918)[0m
|
5809
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp200', '2014-07-31 12:14:43', '2014-07-31 12:14:43', 412842077)
|
5810
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-07-31 12:14:43', '2014-07-31 12:14:43', 599072141)[0m
|
5811
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
|
5812
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-07-31 12:14:43', '2014-07-31 12:14:43', 980190962)[0m
|
5813
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-07-31 12:14:43', '2014-07-31 12:14:43', 298486374)
|
5814
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
|
5815
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-07-31 12:14:43', '2014-07-31 12:14:43', 980190962)
|
5816
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-07-31 12:14:43', '2014-07-31 12:14:43', 298486374)[0m
|
5817
|
+
[1m[35m (127.7ms)[0m commit transaction
|
5818
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5819
|
+
-------------------------------------------------
|
5820
|
+
Extface::JobsControllerTest: test_should_show_job
|
5821
|
+
-------------------------------------------------
|
5822
|
+
[1m[35mExtface::Job Load (0.5ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]
|
5823
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
5824
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5825
|
+
-----------------------
|
5826
|
+
ExtfaceTest: test_truth
|
5827
|
+
-----------------------
|
5828
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5829
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5830
|
+
---------------------------------------------------------
|
5831
|
+
Extface::DevicesControllerTest: test_should_create_device
|
5832
|
+
---------------------------------------------------------
|
5833
|
+
[1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5834
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
|
5835
|
+
[1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5836
|
+
Processing by Extface::DevicesController#create as HTML
|
5837
|
+
Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}}
|
5838
|
+
[1m[35mShop Load (0.2ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
|
5839
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5840
|
+
[1m[35mExtface::Device Exists (0.2ms)[0m SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1
|
5841
|
+
[1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1[0m
|
5842
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-31 12:14:44.062806"], ["type", "Extface::Driver::GenericPos"], ["updated_at", "2014-07-31 12:14:44.062806"]]
|
5843
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "driver_id", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-07-31 12:14:44.075855"], ["driver_id", 599072142], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "7b75ae09c644bca9b9e8ca6a0de5c64e"], ["updated_at", "2014-07-31 12:14:44.075855"], ["uuid", "7b75ae09c644bca9b9e8ca6a0de5c64e"]]
|
5844
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5845
|
+
Redirected to
|
5846
|
+
Completed 500 Internal Server Error in 55ms
|
5847
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
5848
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5849
|
+
----------------------------------------------------------
|
5850
|
+
Extface::DevicesControllerTest: test_should_destroy_device
|
5851
|
+
----------------------------------------------------------
|
5852
|
+
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5853
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
|
5854
|
+
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5855
|
+
Processing by Extface::DevicesController#destroy as HTML
|
5856
|
+
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
|
5857
|
+
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
|
5858
|
+
[1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]]
|
5859
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5860
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "extface_devices" WHERE "extface_devices"."id" = ?[0m [["id", 980190962]]
|
5861
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5862
|
+
Completed 500 Internal Server Error in 3ms
|
5863
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5864
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5865
|
+
----------------------------------------------------
|
5866
|
+
Extface::DevicesControllerTest: test_should_get_edit
|
5867
|
+
----------------------------------------------------
|
5868
|
+
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5869
|
+
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]]
|
5870
|
+
Processing by Extface::DevicesController#edit as HTML
|
5871
|
+
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
|
5872
|
+
[1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
|
5873
|
+
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]]
|
5874
|
+
Completed 500 Internal Server Error in 30ms
|
5875
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5876
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5877
|
+
-----------------------------------------------------
|
5878
|
+
Extface::DevicesControllerTest: test_should_get_index
|
5879
|
+
-----------------------------------------------------
|
5880
|
+
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5881
|
+
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]]
|
5882
|
+
Processing by Extface::DevicesController#index as HTML
|
5883
|
+
Parameters: {"shop_id"=>"980190962"}
|
5884
|
+
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
|
5885
|
+
[1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
|
5886
|
+
Completed 500 Internal Server Error in 5ms
|
5887
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5888
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5889
|
+
---------------------------------------------------
|
5890
|
+
Extface::DevicesControllerTest: test_should_get_new
|
5891
|
+
---------------------------------------------------
|
5892
|
+
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5893
|
+
[1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1 [["id", 980190962]]
|
5894
|
+
Processing by Extface::DevicesController#new as HTML
|
5895
|
+
Parameters: {"shop_id"=>"980190962"}
|
5896
|
+
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
|
5897
|
+
Completed 500 Internal Server Error in 3ms
|
5898
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5899
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5900
|
+
-------------------------------------------------------
|
5901
|
+
Extface::DevicesControllerTest: test_should_show_device
|
5902
|
+
-------------------------------------------------------
|
5903
|
+
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
|
5904
|
+
[1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5905
|
+
Processing by Extface::DevicesController#show as HTML
|
5906
|
+
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
|
5907
|
+
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
|
5908
|
+
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]]
|
5909
|
+
Completed 500 Internal Server Error in 5ms
|
5910
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5911
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5912
|
+
---------------------------------------------------------
|
5913
|
+
Extface::DevicesControllerTest: test_should_update_device
|
5914
|
+
---------------------------------------------------------
|
5915
|
+
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
|
5916
|
+
[1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
5917
|
+
Processing by Extface::DevicesController#update as HTML
|
5918
|
+
Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
|
5919
|
+
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
|
5920
|
+
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", 980190962]]
|
5921
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5922
|
+
[1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'new_name' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1[0m
|
5923
|
+
[1m[35mExtface::Device Exists (0.1ms)[0m SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyUUID1' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1
|
5924
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962[0m [["name", "new_name"], ["updated_at", "2014-07-31 12:14:44.155806"]]
|
5925
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5926
|
+
Redirected to
|
5927
|
+
Completed 500 Internal Server Error in 6ms
|
5928
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,69 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: extface
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Vangelov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07
|
11
|
+
date: 2014-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 4.0.5
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 4.0.5
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: redis
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: redis-namespace
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: sqlite3
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
description: Extface allows use of Cash Registers, Fiscal and POS printers without
|
@@ -81,6 +81,7 @@ files:
|
|
81
81
|
- Rakefile
|
82
82
|
- app/assets/javascripts/extface/application.js
|
83
83
|
- app/assets/javascripts/extface/devices.js
|
84
|
+
- app/assets/javascripts/extface/extface_fiscal_monitor.js
|
84
85
|
- app/assets/javascripts/extface/jobs.js
|
85
86
|
- app/assets/stylesheets/extface/application.css
|
86
87
|
- app/assets/stylesheets/extface/devices.css
|
@@ -225,12 +226,12 @@ require_paths:
|
|
225
226
|
- lib
|
226
227
|
required_ruby_version: !ruby/object:Gem::Requirement
|
227
228
|
requirements:
|
228
|
-
- -
|
229
|
+
- - ">="
|
229
230
|
- !ruby/object:Gem::Version
|
230
231
|
version: '0'
|
231
232
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
232
233
|
requirements:
|
233
|
-
- -
|
234
|
+
- - ">="
|
234
235
|
- !ruby/object:Gem::Version
|
235
236
|
version: '0'
|
236
237
|
requirements: []
|