extface 0.2.5 → 0.3.0a
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/application_controller.rb +6 -0
- data/app/controllers/extface/jobs_controller.rb +8 -6
- data/app/models/extface/device.rb +13 -0
- data/app/models/extface/driver/daisy_fx1200.rb +67 -27
- data/app/models/extface/driver/eltrade_tm_u220.rb +3 -2
- 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 +14 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b8000acc6d03fcd00d25bdeaecbf6570bdd3a36
|
4
|
+
data.tar.gz: 4adb5af73958105ca882659f95c5c93aba749801
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65f3e6b3f232ec6275bc667aaa34ca74b0ed1227978c3704ca1e4b119a9f1f36d886ed465bb915961ca5e28aedb043b41dafc49893f06968e65cec0d4ca78fa5
|
7
|
+
data.tar.gz: 87caa97854fff5fd6c665a65812cf9c3d863b683c5470d96cae4cca4e2458b6c2967e907212137236685d9bc4b34e545b571dc4f6b38c5f64021df7f70d681a1
|
@@ -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
|
+
};
|
@@ -2,6 +2,8 @@ module Extface
|
|
2
2
|
class ApplicationController < ActionController::Base
|
3
3
|
prepend_before_filter :include_extra_module
|
4
4
|
|
5
|
+
helper_method :extface
|
6
|
+
|
5
7
|
def index
|
6
8
|
end
|
7
9
|
|
@@ -17,5 +19,9 @@ module Extface
|
|
17
19
|
def include_extra_module
|
18
20
|
self.class.send(:include, extface_mapping.i_extra_module) if extface_mapping.i_extra_module.present?
|
19
21
|
end
|
22
|
+
|
23
|
+
def extface
|
24
|
+
try(extface_mapping.mount_point) || super # rails 4.1 fixed named route for engines mounted for resources
|
25
|
+
end
|
20
26
|
end
|
21
27
|
end
|
@@ -14,12 +14,14 @@ 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
|
@@ -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
|
@@ -15,7 +15,9 @@ module Extface
|
|
15
15
|
NAME = 'Daisy FX1200 (Serial)'.freeze
|
16
16
|
|
17
17
|
RESPONSE_TIMEOUT = 3 #seconds
|
18
|
-
INVALID_FRAME_RETRIES = 6 #
|
18
|
+
INVALID_FRAME_RETRIES = 6 #count (bad length, bad checksum)
|
19
|
+
ACKS_MAX_WAIT = 60 #count / nothing is forever
|
20
|
+
NAKS_MAX_COUNT = 3 #count
|
19
21
|
|
20
22
|
TAX_GROUPS_MAP = {
|
21
23
|
1 => "\xc0",
|
@@ -33,16 +35,12 @@ module Extface
|
|
33
35
|
include Extface::Driver::Daisy::CommandsFx1200
|
34
36
|
|
35
37
|
def handle(buffer) #buffer is filled with multiple pushes, wait for full frame (ACKs)STX..PA2..PA1..ETX
|
36
|
-
if buffer
|
37
|
-
|
38
|
+
if frame_len = buffer.index("\x03") || buffer.index("\x16") || buffer.index("\x15")
|
39
|
+
rpush buffer[0..frame_len]
|
40
|
+
return frame_len+1 # return number of bytes processed
|
38
41
|
else
|
39
|
-
|
40
|
-
|
41
|
-
return frame_len+1 # return number of bytes processed
|
42
|
-
else
|
43
|
-
#TODO check buffer.length
|
44
|
-
return 0 #no bytes processed
|
45
|
-
end
|
42
|
+
#TODO check buffer.length
|
43
|
+
return 0 #no bytes processed
|
46
44
|
end
|
47
45
|
end
|
48
46
|
|
@@ -188,16 +186,38 @@ module Extface
|
|
188
186
|
def fsend(cmd, data = "") #return data or nil
|
189
187
|
packet_data = build_packet(cmd, data)
|
190
188
|
result = false
|
191
|
-
|
189
|
+
invalid_frames = 0
|
190
|
+
nak_messages = 0
|
191
|
+
push packet_data
|
192
|
+
ACKS_MAX_WAIT.times do |retries|
|
192
193
|
errors.clear
|
193
|
-
push packet_data
|
194
194
|
if resp = frecv(RESPONSE_TIMEOUT)
|
195
195
|
if resp.valid?
|
196
|
-
|
197
|
-
|
196
|
+
human_status_errors(resp.status)
|
197
|
+
if errors.empty?
|
198
|
+
result = resp.data
|
199
|
+
break
|
200
|
+
else
|
201
|
+
raise errors.full_messages.join(',')
|
202
|
+
end
|
203
|
+
else #ack, nak or bad
|
204
|
+
if resp.nak?
|
205
|
+
nak_messages += 1
|
206
|
+
if nak_messages > NAKS_MAX_COUNT
|
207
|
+
errors.add :base, "#{NAKS_MAX_COUNT} NAKs Received. Abort!"
|
208
|
+
break
|
209
|
+
end
|
210
|
+
elsif !resp.ack?
|
211
|
+
invalid_frames += 1
|
212
|
+
if nak_messages > INVALID_FRAME_RETRIES
|
213
|
+
errors.add :base, "#{INVALID_FRAME_RETRIES} Broken Packets Received. Abort!"
|
214
|
+
break
|
215
|
+
end
|
216
|
+
end
|
217
|
+
push packet_data unless resp.ack?
|
198
218
|
end
|
199
219
|
end
|
200
|
-
errors.add :base, "#{
|
220
|
+
errors.add :base, "#{ACKS_MAX_WAIT} ACKs Received. Abort!"
|
201
221
|
end
|
202
222
|
return result
|
203
223
|
end
|
@@ -257,13 +277,13 @@ module Extface
|
|
257
277
|
|
258
278
|
#errors.add :base, "Print Doc Allowed" unless (status[2].ord & 0x40).zero?
|
259
279
|
#errors.add :base, "Non Fiscal Doc Open" unless (status[2].ord & 0x20).zero?
|
260
|
-
errors.add :base, "Less Paper (Control)" unless (status[2].ord & 0x20).zero?
|
280
|
+
#errors.add :base, "Less Paper (Control)" unless (status[2].ord & 0x20).zero?
|
261
281
|
#errors.add :base, "Fiscal Doc Open" unless (status[2].ord & 0x08).zero?
|
262
282
|
errors.add :base, "No Paper (Control)" unless (status[2].ord & 0x04).zero?
|
263
283
|
errors.add :base, "Less Paper" unless (status[2].ord & 0x02).zero?
|
264
284
|
errors.add :base, "No Paper" unless (status[2].ord & 0x01).zero?
|
265
285
|
|
266
|
-
case (status[3] & 0x7f)
|
286
|
+
case (status[3].ord & 0x7f)
|
267
287
|
when 1 then errors.add :base, "Operation will result in the overflow"
|
268
288
|
when 3 then errors.add :base, "No more sales for this doc"
|
269
289
|
when 4 then errors.add :base, "No more payments for this doc"
|
@@ -313,26 +333,46 @@ module Extface
|
|
313
333
|
@frame = match.to_a.first
|
314
334
|
@len, @seq, @cmd, @data, @status, @bcc = match.captures
|
315
335
|
else
|
316
|
-
#
|
336
|
+
if buffer[/^\x16+$/] # only ACKs
|
337
|
+
@ack = true
|
338
|
+
elsif buffer.index("\x15")
|
339
|
+
@nak = true
|
340
|
+
end
|
317
341
|
end
|
318
342
|
end
|
319
343
|
|
344
|
+
def ack? #should wait, response is yet to come
|
345
|
+
!!@ack
|
346
|
+
end
|
347
|
+
|
348
|
+
def nak? #should retry command with same seq
|
349
|
+
!!@nak
|
350
|
+
end
|
351
|
+
|
320
352
|
private
|
353
|
+
def unpacked_msg?
|
354
|
+
ack? || nak?
|
355
|
+
end
|
356
|
+
|
321
357
|
def bcc_validation
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
358
|
+
unless unpacked_msg?
|
359
|
+
sum = 0
|
360
|
+
frame[1..-6].each_byte do |byte|
|
361
|
+
sum += byte
|
362
|
+
end unless frame.nil?
|
363
|
+
calc_bcc = "".tap() do |tbcc|
|
364
|
+
4.times do |halfbyte|
|
365
|
+
tbcc.insert 0, (0x30 + ((sum >> (halfbyte*4)) & 0x0f)).chr
|
366
|
+
end
|
329
367
|
end
|
368
|
+
errors.add(:bcc, I18n.t('errors.messages.invalid')) if bcc != calc_bcc
|
330
369
|
end
|
331
|
-
errors.add(:bcc, I18n.t('errors.messages.invalid')) if bcc != calc_bcc
|
332
370
|
end
|
333
371
|
|
334
372
|
def len_validation
|
335
|
-
|
373
|
+
unless unpacked_msg?
|
374
|
+
errors.add(:len, I18n.t('errors.messages.invalid')) if frame.nil? || len.ord != (frame[1..-6].length + 0x20)
|
375
|
+
end
|
336
376
|
end
|
337
377
|
end
|
338
378
|
end
|
@@ -213,9 +213,10 @@ module Extface
|
|
213
213
|
if stat_frame.valid?
|
214
214
|
break if stat_frame.ready?
|
215
215
|
else
|
216
|
-
status_invalid_responses
|
217
|
-
|
216
|
+
status_invalid_responses += 1
|
217
|
+
if status_invalid_responses > INVALID_FRAME_RETRIES
|
218
218
|
errors.add :base, "#{INVALID_FRAME_RETRIES} Broken Packets Received. Abort!"
|
219
|
+
break
|
219
220
|
end
|
220
221
|
end
|
221
222
|
end
|
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.3.0a
|
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-
|
11
|
+
date: 2014-07-31 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,14 +226,14 @@ 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
|
-
version:
|
236
|
+
version: 1.3.1
|
236
237
|
requirements: []
|
237
238
|
rubyforge_project:
|
238
239
|
rubygems_version: 2.2.2
|