dossier 2.6.0 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
data/lib/dossier/version.rb
CHANGED
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/spec/dummy/log/test.log
CHANGED
@@ -2327,3 +2327,641 @@ Processing by Dossier::ReportsController#show as HTML
|
|
2327
2327
|
Parameters: {"report"=>"employee_with_custom_client"}
|
2328
2328
|
[1m[36mEmployeeWithCustomClientReport (0.4ms)[0m [1mSELECT * FROM `employees`[0m
|
2329
2329
|
Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.4ms)
|
2330
|
+
Connecting to database specified by database.yml
|
2331
|
+
[1m[36mFACTORY (14.3ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
2332
|
+
[1m[35mFACTORY (5.0ms)[0m DROP TABLE IF EXISTS `employees`
|
2333
|
+
[1m[36mFACTORY (12.4ms)[0m [1m CREATE TABLE `employees` (
|
2334
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
2335
|
+
`name` varchar(255) NOT NULL,
|
2336
|
+
`division` varchar(255) NOT NULL,
|
2337
|
+
`salary` int(11) NOT NULL,
|
2338
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
2339
|
+
`hired_on` date NOT NULL,
|
2340
|
+
PRIMARY KEY (`id`)
|
2341
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2342
|
+
[0m
|
2343
|
+
[1m[35mFACTORY (0.7ms)[0m TRUNCATE `employees`
|
2344
|
+
[1m[36mFACTORY (0.6ms)[0m [1m INSERT INTO
|
2345
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2346
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
2347
|
+
[0m
|
2348
|
+
[1m[35mFACTORY (0.5ms)[0m INSERT INTO
|
2349
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2350
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
2351
|
+
|
2352
|
+
[1m[36mFACTORY (2.5ms)[0m [1m INSERT INTO
|
2353
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2354
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
2355
|
+
[0m
|
2356
|
+
[1m[35mFACTORY (9.8ms)[0m DROP TABLE IF EXISTS `employees`
|
2357
|
+
[1m[36mFACTORY (1.1ms)[0m [1m CREATE TABLE `employees` (
|
2358
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
2359
|
+
`name` TEXT NOT NULL,
|
2360
|
+
`division` TEXT NOT NULL,
|
2361
|
+
`salary` INTEGER NOT NULL,
|
2362
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
2363
|
+
`hired_on` DATE NOT NULL
|
2364
|
+
);
|
2365
|
+
[0m
|
2366
|
+
[1m[35mFACTORY (2.9ms)[0m DELETE FROM `employees`
|
2367
|
+
[1m[36mFACTORY (0.9ms)[0m [1m INSERT INTO
|
2368
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2369
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
2370
|
+
[0m
|
2371
|
+
[1m[35mFACTORY (1.0ms)[0m INSERT INTO
|
2372
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2373
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
2374
|
+
|
2375
|
+
[1m[36mFACTORY (1.0ms)[0m [1m INSERT INTO
|
2376
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2377
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
2378
|
+
[0m
|
2379
|
+
Started GET "/multi/reports/combination" for 127.0.0.1 at 2013-05-22 12:35:17 -0400
|
2380
|
+
Processing by Dossier::ReportsController#multi as HTML
|
2381
|
+
Parameters: {"report"=>"combination"}
|
2382
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
2383
|
+
ORDER BY name ASC
|
2384
|
+
Rendered /Users/adamhunter/Studio/adamhunter/dossier/app/views/dossier/reports/show.html.haml (20.6ms)
|
2385
|
+
[1m[36mEmployeeWithCustomViewReport (0.3ms)[0m [1mSELECT * FROM employees WHERE suspended = true[0m
|
2386
|
+
Rendered /Users/adamhunter/Studio/adamhunter/dossier/app/views/dossier/reports/show.html.haml (3.1ms)
|
2387
|
+
Rendered /Users/adamhunter/Studio/adamhunter/dossier/app/views/dossier/reports/multi.html.haml within layouts/application (32.7ms)
|
2388
|
+
Completed 200 OK in 84ms (Views: 37.8ms | ActiveRecord: 0.7ms)
|
2389
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-05-22 12:35:17 -0400
|
2390
|
+
Processing by Dossier::ReportsController#show as HTML
|
2391
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
2392
|
+
[1m[35mEmployeeWithCustomClientReport (0.3ms)[0m SELECT * FROM `employees`
|
2393
|
+
Rendered /Users/adamhunter/Studio/adamhunter/dossier/app/views/dossier/reports/show.html.haml within layouts/application (2.2ms)
|
2394
|
+
Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.3ms)
|
2395
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-05-22 12:35:17 -0400
|
2396
|
+
Processing by Dossier::ReportsController#show as HTML
|
2397
|
+
Parameters: {"report"=>"employee"}
|
2398
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
2399
|
+
ORDER BY name ASC[0m
|
2400
|
+
Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.3ms)
|
2401
|
+
Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-05-22 12:35:17 -0400
|
2402
|
+
Processing by Dossier::ReportsController#show as HTML
|
2403
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
2404
|
+
[1m[35mEmployeeReport (0.4ms)[0m SELECT * FROM employees WHERE 1=1
|
2405
|
+
AND division in (('Tedious Toiling'))
|
2406
|
+
AND salary > 10000
|
2407
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
2408
|
+
ORDER BY name DESC
|
2409
|
+
Completed 200 OK in 38ms (Views: 36.8ms | ActiveRecord: 0.4ms)
|
2410
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-05-22 12:35:18 -0400
|
2411
|
+
Processing by Dossier::ReportsController#show as HTML
|
2412
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
2413
|
+
[1m[36mEmployeeReport (0.5ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
2414
|
+
ORDER BY name ASC[0m
|
2415
|
+
Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.5ms)
|
2416
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-05-22 12:35:18 -0400
|
2417
|
+
Processing by Dossier::ReportsController#show as HTML
|
2418
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
2419
|
+
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms)
|
2420
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-05-22 12:35:18 -0400
|
2421
|
+
Processing by Dossier::ReportsController#show as CSV
|
2422
|
+
Parameters: {"report"=>"employee"}
|
2423
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
2424
|
+
ORDER BY name ASC
|
2425
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.3ms)
|
2426
|
+
Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-05-22 12:35:18 -0400
|
2427
|
+
Processing by Dossier::ReportsController#show as XLS
|
2428
|
+
Parameters: {"report"=>"employee"}
|
2429
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
2430
|
+
ORDER BY name ASC[0m
|
2431
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.2ms)
|
2432
|
+
Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-05-22 12:35:18 -0400
|
2433
|
+
Processing by SiteController#report as HTML
|
2434
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
2435
|
+
ORDER BY name ASC
|
2436
|
+
Completed 200 OK in 7ms (Views: 4.1ms | ActiveRecord: 0.2ms)
|
2437
|
+
[1m[36mEmployeeReport (0.4ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
2438
|
+
ORDER BY name ASC[0m
|
2439
|
+
Connecting to database specified by database.yml
|
2440
|
+
[1m[36mFACTORY (0.2ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
2441
|
+
[1m[35mFACTORY (0.8ms)[0m DROP TABLE IF EXISTS `employees`
|
2442
|
+
[1m[36mFACTORY (15.9ms)[0m [1m CREATE TABLE `employees` (
|
2443
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
2444
|
+
`name` varchar(255) NOT NULL,
|
2445
|
+
`division` varchar(255) NOT NULL,
|
2446
|
+
`salary` int(11) NOT NULL,
|
2447
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
2448
|
+
`hired_on` date NOT NULL,
|
2449
|
+
PRIMARY KEY (`id`)
|
2450
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2451
|
+
[0m
|
2452
|
+
[1m[35mFACTORY (0.8ms)[0m TRUNCATE `employees`
|
2453
|
+
[1m[36mFACTORY (0.6ms)[0m [1m INSERT INTO
|
2454
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2455
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
2456
|
+
[0m
|
2457
|
+
[1m[35mFACTORY (0.5ms)[0m INSERT INTO
|
2458
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2459
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
2460
|
+
|
2461
|
+
[1m[36mFACTORY (0.5ms)[0m [1m INSERT INTO
|
2462
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2463
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
2464
|
+
[0m
|
2465
|
+
[1m[35mFACTORY (1.7ms)[0m DROP TABLE IF EXISTS `employees`
|
2466
|
+
[1m[36mFACTORY (1.0ms)[0m [1m CREATE TABLE `employees` (
|
2467
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
2468
|
+
`name` TEXT NOT NULL,
|
2469
|
+
`division` TEXT NOT NULL,
|
2470
|
+
`salary` INTEGER NOT NULL,
|
2471
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
2472
|
+
`hired_on` DATE NOT NULL
|
2473
|
+
);
|
2474
|
+
[0m
|
2475
|
+
[1m[35mFACTORY (0.8ms)[0m DELETE FROM `employees`
|
2476
|
+
[1m[36mFACTORY (0.9ms)[0m [1m INSERT INTO
|
2477
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2478
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
2479
|
+
[0m
|
2480
|
+
[1m[35mFACTORY (0.9ms)[0m INSERT INTO
|
2481
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2482
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
2483
|
+
|
2484
|
+
[1m[36mFACTORY (0.9ms)[0m [1m INSERT INTO
|
2485
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2486
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
2487
|
+
[0m
|
2488
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-05-22 12:35:59 -0400
|
2489
|
+
Processing by Dossier::ReportsController#show as CSV
|
2490
|
+
Parameters: {"report"=>"employee"}
|
2491
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
2492
|
+
ORDER BY name ASC
|
2493
|
+
Completed 200 OK in 5ms (ActiveRecord: 0.3ms)
|
2494
|
+
Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-05-22 12:35:59 -0400
|
2495
|
+
Processing by Dossier::ReportsController#show as HTML
|
2496
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
2497
|
+
[1m[36mEmployeeReport (0.4ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
2498
|
+
AND division in (('Tedious Toiling'))
|
2499
|
+
AND salary > 10000
|
2500
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
2501
|
+
ORDER BY name DESC[0m
|
2502
|
+
Completed 200 OK in 34ms (Views: 20.2ms | ActiveRecord: 0.4ms)
|
2503
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-05-22 12:35:59 -0400
|
2504
|
+
Processing by Dossier::ReportsController#show as HTML
|
2505
|
+
Parameters: {"report"=>"employee"}
|
2506
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
2507
|
+
ORDER BY name ASC
|
2508
|
+
Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.2ms)
|
2509
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-05-22 12:35:59 -0400
|
2510
|
+
Processing by Dossier::ReportsController#show as HTML
|
2511
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
2512
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
2513
|
+
ORDER BY name ASC[0m
|
2514
|
+
Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.2ms)
|
2515
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-05-22 12:35:59 -0400
|
2516
|
+
Processing by Dossier::ReportsController#show as HTML
|
2517
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
2518
|
+
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
|
2519
|
+
Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-05-22 12:35:59 -0400
|
2520
|
+
Processing by Dossier::ReportsController#show as XLS
|
2521
|
+
Parameters: {"report"=>"employee"}
|
2522
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
2523
|
+
ORDER BY name ASC
|
2524
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
|
2525
|
+
Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-05-22 12:35:59 -0400
|
2526
|
+
Processing by SiteController#report as HTML
|
2527
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
2528
|
+
ORDER BY name ASC[0m
|
2529
|
+
Completed 200 OK in 8ms (Views: 4.1ms | ActiveRecord: 0.2ms)
|
2530
|
+
Started GET "/multi/reports/combination" for 127.0.0.1 at 2013-05-22 12:35:59 -0400
|
2531
|
+
Processing by Dossier::ReportsController#multi as HTML
|
2532
|
+
Parameters: {"report"=>"combination"}
|
2533
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
2534
|
+
ORDER BY name ASC
|
2535
|
+
[1m[36mEmployeeWithCustomViewReport (0.3ms)[0m [1mSELECT * FROM employees WHERE suspended = true[0m
|
2536
|
+
Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.6ms)
|
2537
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
2538
|
+
ORDER BY name ASC
|
2539
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-05-22 12:35:59 -0400
|
2540
|
+
Processing by Dossier::ReportsController#show as HTML
|
2541
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
2542
|
+
[1m[36mEmployeeWithCustomClientReport (0.3ms)[0m [1mSELECT * FROM `employees`[0m
|
2543
|
+
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.3ms)
|
2544
|
+
Connecting to database specified by database.yml
|
2545
|
+
[1m[36mFACTORY (0.2ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
2546
|
+
[1m[35mFACTORY (22.6ms)[0m DROP TABLE IF EXISTS `employees`
|
2547
|
+
[1m[36mFACTORY (17.8ms)[0m [1m CREATE TABLE `employees` (
|
2548
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
2549
|
+
`name` varchar(255) NOT NULL,
|
2550
|
+
`division` varchar(255) NOT NULL,
|
2551
|
+
`salary` int(11) NOT NULL,
|
2552
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
2553
|
+
`hired_on` date NOT NULL,
|
2554
|
+
PRIMARY KEY (`id`)
|
2555
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2556
|
+
[0m
|
2557
|
+
[1m[35mFACTORY (0.7ms)[0m TRUNCATE `employees`
|
2558
|
+
[1m[36mFACTORY (0.6ms)[0m [1m INSERT INTO
|
2559
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2560
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
2561
|
+
[0m
|
2562
|
+
[1m[35mFACTORY (0.5ms)[0m INSERT INTO
|
2563
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2564
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
2565
|
+
|
2566
|
+
[1m[36mFACTORY (0.5ms)[0m [1m INSERT INTO
|
2567
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2568
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
2569
|
+
[0m
|
2570
|
+
[1m[35mFACTORY (2.0ms)[0m DROP TABLE IF EXISTS `employees`
|
2571
|
+
[1m[36mFACTORY (1.2ms)[0m [1m CREATE TABLE `employees` (
|
2572
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
2573
|
+
`name` TEXT NOT NULL,
|
2574
|
+
`division` TEXT NOT NULL,
|
2575
|
+
`salary` INTEGER NOT NULL,
|
2576
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
2577
|
+
`hired_on` DATE NOT NULL
|
2578
|
+
);
|
2579
|
+
[0m
|
2580
|
+
[1m[35mFACTORY (0.8ms)[0m DELETE FROM `employees`
|
2581
|
+
[1m[36mFACTORY (0.9ms)[0m [1m INSERT INTO
|
2582
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2583
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
2584
|
+
[0m
|
2585
|
+
[1m[35mFACTORY (0.9ms)[0m INSERT INTO
|
2586
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2587
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
2588
|
+
|
2589
|
+
[1m[36mFACTORY (0.9ms)[0m [1m INSERT INTO
|
2590
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2591
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
2592
|
+
[0m
|
2593
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-05-22 12:36:21 -0400
|
2594
|
+
Processing by Dossier::ReportsController#show as HTML
|
2595
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
2596
|
+
[1m[35mEmployeeWithCustomClientReport (2.0ms)[0m SELECT * FROM `employees`
|
2597
|
+
Rendered /Users/adamhunter/Studio/adamhunter/dossier/app/views/dossier/reports/show.html.haml within layouts/application (8.9ms)
|
2598
|
+
Completed 200 OK in 26ms (Views: 10.4ms | ActiveRecord: 2.0ms)
|
2599
|
+
Started GET "/multi/reports/combination" for 127.0.0.1 at 2013-05-22 12:36:21 -0400
|
2600
|
+
Processing by Dossier::ReportsController#multi as HTML
|
2601
|
+
Parameters: {"report"=>"combination"}
|
2602
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
2603
|
+
ORDER BY name ASC[0m
|
2604
|
+
[1m[35mEmployeeWithCustomViewReport (0.3ms)[0m SELECT * FROM employees WHERE suspended = true
|
2605
|
+
Completed 200 OK in 12ms (Views: 9.9ms | ActiveRecord: 0.5ms)
|
2606
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-05-22 12:36:21 -0400
|
2607
|
+
Processing by Dossier::ReportsController#show as HTML
|
2608
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
2609
|
+
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
|
2610
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-05-22 12:36:21 -0400
|
2611
|
+
Processing by Dossier::ReportsController#show as HTML
|
2612
|
+
Parameters: {"report"=>"employee"}
|
2613
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
2614
|
+
ORDER BY name ASC[0m
|
2615
|
+
Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.3ms)
|
2616
|
+
Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-05-22 12:36:21 -0400
|
2617
|
+
Processing by Dossier::ReportsController#show as HTML
|
2618
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
2619
|
+
[1m[35mEmployeeReport (0.5ms)[0m SELECT * FROM employees WHERE 1=1
|
2620
|
+
AND division in (('Tedious Toiling'))
|
2621
|
+
AND salary > 10000
|
2622
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
2623
|
+
ORDER BY name DESC
|
2624
|
+
Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.5ms)
|
2625
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-05-22 12:36:21 -0400
|
2626
|
+
Processing by Dossier::ReportsController#show as HTML
|
2627
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
2628
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
2629
|
+
ORDER BY name ASC[0m
|
2630
|
+
Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.3ms)
|
2631
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-05-22 12:36:21 -0400
|
2632
|
+
Processing by Dossier::ReportsController#show as CSV
|
2633
|
+
Parameters: {"report"=>"employee"}
|
2634
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
2635
|
+
ORDER BY name ASC
|
2636
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.3ms)
|
2637
|
+
Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-05-22 12:36:21 -0400
|
2638
|
+
Processing by Dossier::ReportsController#show as XLS
|
2639
|
+
Parameters: {"report"=>"employee"}
|
2640
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
2641
|
+
ORDER BY name ASC[0m
|
2642
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.3ms)
|
2643
|
+
Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-05-22 12:36:22 -0400
|
2644
|
+
Processing by SiteController#report as HTML
|
2645
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
2646
|
+
ORDER BY name ASC
|
2647
|
+
Completed 200 OK in 8ms (Views: 4.4ms | ActiveRecord: 0.3ms)
|
2648
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
2649
|
+
ORDER BY name ASC[0m
|
2650
|
+
Connecting to database specified by database.yml
|
2651
|
+
[1m[36mFACTORY (0.2ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
2652
|
+
[1m[35mFACTORY (0.8ms)[0m DROP TABLE IF EXISTS `employees`
|
2653
|
+
[1m[36mFACTORY (11.6ms)[0m [1m CREATE TABLE `employees` (
|
2654
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
2655
|
+
`name` varchar(255) NOT NULL,
|
2656
|
+
`division` varchar(255) NOT NULL,
|
2657
|
+
`salary` int(11) NOT NULL,
|
2658
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
2659
|
+
`hired_on` date NOT NULL,
|
2660
|
+
PRIMARY KEY (`id`)
|
2661
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2662
|
+
[0m
|
2663
|
+
[1m[35mFACTORY (0.7ms)[0m TRUNCATE `employees`
|
2664
|
+
[1m[36mFACTORY (0.6ms)[0m [1m INSERT INTO
|
2665
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2666
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
2667
|
+
[0m
|
2668
|
+
[1m[35mFACTORY (0.5ms)[0m INSERT INTO
|
2669
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2670
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
2671
|
+
|
2672
|
+
[1m[36mFACTORY (0.5ms)[0m [1m INSERT INTO
|
2673
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2674
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
2675
|
+
[0m
|
2676
|
+
[1m[35mFACTORY (1.9ms)[0m DROP TABLE IF EXISTS `employees`
|
2677
|
+
[1m[36mFACTORY (1.0ms)[0m [1m CREATE TABLE `employees` (
|
2678
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
2679
|
+
`name` TEXT NOT NULL,
|
2680
|
+
`division` TEXT NOT NULL,
|
2681
|
+
`salary` INTEGER NOT NULL,
|
2682
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
2683
|
+
`hired_on` DATE NOT NULL
|
2684
|
+
);
|
2685
|
+
[0m
|
2686
|
+
[1m[35mFACTORY (0.8ms)[0m DELETE FROM `employees`
|
2687
|
+
[1m[36mFACTORY (0.9ms)[0m [1m INSERT INTO
|
2688
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2689
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
2690
|
+
[0m
|
2691
|
+
[1m[35mFACTORY (0.9ms)[0m INSERT INTO
|
2692
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2693
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
2694
|
+
|
2695
|
+
[1m[36mFACTORY (0.9ms)[0m [1m INSERT INTO
|
2696
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2697
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
2698
|
+
[0m
|
2699
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
2700
|
+
ORDER BY name ASC
|
2701
|
+
Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-05-22 12:36:47 -0400
|
2702
|
+
Processing by SiteController#report as HTML
|
2703
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
2704
|
+
ORDER BY name ASC[0m
|
2705
|
+
Rendered /Users/adamhunter/Studio/adamhunter/dossier/app/views/dossier/reports/show.html.haml within layouts/application (15.7ms)
|
2706
|
+
Completed 200 OK in 32ms (Views: 28.7ms | ActiveRecord: 0.2ms)
|
2707
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-05-22 12:36:47 -0400
|
2708
|
+
Processing by Dossier::ReportsController#show as HTML
|
2709
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
2710
|
+
Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms)
|
2711
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-05-22 12:36:47 -0400
|
2712
|
+
Processing by Dossier::ReportsController#show as HTML
|
2713
|
+
Parameters: {"report"=>"employee"}
|
2714
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
2715
|
+
ORDER BY name ASC
|
2716
|
+
Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 0.3ms)
|
2717
|
+
Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-05-22 12:36:47 -0400
|
2718
|
+
Processing by Dossier::ReportsController#show as HTML
|
2719
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
2720
|
+
[1m[36mEmployeeReport (0.4ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
2721
|
+
AND division in (('Tedious Toiling'))
|
2722
|
+
AND salary > 10000
|
2723
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
2724
|
+
ORDER BY name DESC[0m
|
2725
|
+
Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.4ms)
|
2726
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-05-22 12:36:47 -0400
|
2727
|
+
Processing by Dossier::ReportsController#show as HTML
|
2728
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
2729
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
2730
|
+
ORDER BY name ASC
|
2731
|
+
Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.2ms)
|
2732
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-05-22 12:36:47 -0400
|
2733
|
+
Processing by Dossier::ReportsController#show as CSV
|
2734
|
+
Parameters: {"report"=>"employee"}
|
2735
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
2736
|
+
ORDER BY name ASC[0m
|
2737
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.3ms)
|
2738
|
+
Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-05-22 12:36:47 -0400
|
2739
|
+
Processing by Dossier::ReportsController#show as XLS
|
2740
|
+
Parameters: {"report"=>"employee"}
|
2741
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
2742
|
+
ORDER BY name ASC
|
2743
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
|
2744
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-05-22 12:36:47 -0400
|
2745
|
+
Processing by Dossier::ReportsController#show as HTML
|
2746
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
2747
|
+
[1m[36mEmployeeWithCustomClientReport (0.3ms)[0m [1mSELECT * FROM `employees`[0m
|
2748
|
+
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.3ms)
|
2749
|
+
Started GET "/multi/reports/combination" for 127.0.0.1 at 2013-05-22 12:36:47 -0400
|
2750
|
+
Processing by Dossier::ReportsController#multi as HTML
|
2751
|
+
Parameters: {"report"=>"combination"}
|
2752
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
2753
|
+
ORDER BY name ASC
|
2754
|
+
[1m[36mEmployeeWithCustomViewReport (0.3ms)[0m [1mSELECT * FROM employees WHERE suspended = true[0m
|
2755
|
+
Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.6ms)
|
2756
|
+
Connecting to database specified by database.yml
|
2757
|
+
[1m[36mFACTORY (0.2ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
2758
|
+
[1m[35mFACTORY (23.2ms)[0m DROP TABLE IF EXISTS `employees`
|
2759
|
+
[1m[36mFACTORY (15.0ms)[0m [1m CREATE TABLE `employees` (
|
2760
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
2761
|
+
`name` varchar(255) NOT NULL,
|
2762
|
+
`division` varchar(255) NOT NULL,
|
2763
|
+
`salary` int(11) NOT NULL,
|
2764
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
2765
|
+
`hired_on` date NOT NULL,
|
2766
|
+
PRIMARY KEY (`id`)
|
2767
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2768
|
+
[0m
|
2769
|
+
[1m[35mFACTORY (1.5ms)[0m TRUNCATE `employees`
|
2770
|
+
[1m[36mFACTORY (0.8ms)[0m [1m INSERT INTO
|
2771
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2772
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
2773
|
+
[0m
|
2774
|
+
[1m[35mFACTORY (0.7ms)[0m INSERT INTO
|
2775
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2776
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
2777
|
+
|
2778
|
+
[1m[36mFACTORY (0.6ms)[0m [1m INSERT INTO
|
2779
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2780
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
2781
|
+
[0m
|
2782
|
+
[1m[35mFACTORY (1.9ms)[0m DROP TABLE IF EXISTS `employees`
|
2783
|
+
[1m[36mFACTORY (1.1ms)[0m [1m CREATE TABLE `employees` (
|
2784
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
2785
|
+
`name` TEXT NOT NULL,
|
2786
|
+
`division` TEXT NOT NULL,
|
2787
|
+
`salary` INTEGER NOT NULL,
|
2788
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
2789
|
+
`hired_on` DATE NOT NULL
|
2790
|
+
);
|
2791
|
+
[0m
|
2792
|
+
[1m[35mFACTORY (0.8ms)[0m DELETE FROM `employees`
|
2793
|
+
[1m[36mFACTORY (0.9ms)[0m [1m INSERT INTO
|
2794
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2795
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
2796
|
+
[0m
|
2797
|
+
[1m[35mFACTORY (0.9ms)[0m INSERT INTO
|
2798
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2799
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
2800
|
+
|
2801
|
+
[1m[36mFACTORY (0.8ms)[0m [1m INSERT INTO
|
2802
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2803
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
2804
|
+
[0m
|
2805
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-05-22 12:37:02 -0400
|
2806
|
+
Processing by Dossier::ReportsController#show as HTML
|
2807
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
2808
|
+
[1m[35mEmployeeWithCustomClientReport (1.5ms)[0m SELECT * FROM `employees`
|
2809
|
+
Rendered /Users/adamhunter/Studio/adamhunter/dossier/app/views/dossier/reports/show.html.haml within layouts/application (7.7ms)
|
2810
|
+
Completed 200 OK in 48ms (Views: 9.5ms | ActiveRecord: 1.5ms)
|
2811
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-05-22 12:37:02 -0400
|
2812
|
+
Processing by Dossier::ReportsController#show as HTML
|
2813
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
2814
|
+
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
|
2815
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-05-22 12:37:02 -0400
|
2816
|
+
Processing by Dossier::ReportsController#show as HTML
|
2817
|
+
Parameters: {"report"=>"employee"}
|
2818
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
2819
|
+
ORDER BY name ASC[0m
|
2820
|
+
Completed 200 OK in 12ms (Views: 10.4ms | ActiveRecord: 0.3ms)
|
2821
|
+
Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-05-22 12:37:02 -0400
|
2822
|
+
Processing by Dossier::ReportsController#show as HTML
|
2823
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
2824
|
+
[1m[35mEmployeeReport (0.4ms)[0m SELECT * FROM employees WHERE 1=1
|
2825
|
+
AND division in (('Tedious Toiling'))
|
2826
|
+
AND salary > 10000
|
2827
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
2828
|
+
ORDER BY name DESC
|
2829
|
+
Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.4ms)
|
2830
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-05-22 12:37:02 -0400
|
2831
|
+
Processing by Dossier::ReportsController#show as HTML
|
2832
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
2833
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
2834
|
+
ORDER BY name ASC[0m
|
2835
|
+
Completed 200 OK in 33ms (Views: 32.1ms | ActiveRecord: 0.2ms)
|
2836
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-05-22 12:37:02 -0400
|
2837
|
+
Processing by Dossier::ReportsController#show as CSV
|
2838
|
+
Parameters: {"report"=>"employee"}
|
2839
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
2840
|
+
ORDER BY name ASC
|
2841
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.3ms)
|
2842
|
+
Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-05-22 12:37:02 -0400
|
2843
|
+
Processing by Dossier::ReportsController#show as XLS
|
2844
|
+
Parameters: {"report"=>"employee"}
|
2845
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
2846
|
+
ORDER BY name ASC[0m
|
2847
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
|
2848
|
+
Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-05-22 12:37:02 -0400
|
2849
|
+
Processing by SiteController#report as HTML
|
2850
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
2851
|
+
ORDER BY name ASC
|
2852
|
+
Completed 200 OK in 8ms (Views: 3.8ms | ActiveRecord: 0.3ms)
|
2853
|
+
Started GET "/multi/reports/combination" for 127.0.0.1 at 2013-05-22 12:37:03 -0400
|
2854
|
+
Processing by Dossier::ReportsController#multi as HTML
|
2855
|
+
Parameters: {"report"=>"combination"}
|
2856
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
2857
|
+
ORDER BY name ASC[0m
|
2858
|
+
[1m[35mEmployeeWithCustomViewReport (0.3ms)[0m SELECT * FROM employees WHERE suspended = true
|
2859
|
+
Completed 200 OK in 12ms (Views: 9.5ms | ActiveRecord: 0.5ms)
|
2860
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
2861
|
+
ORDER BY name ASC[0m
|
2862
|
+
Connecting to database specified by database.yml
|
2863
|
+
[1m[36mFACTORY (0.2ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
2864
|
+
[1m[35mFACTORY (22.7ms)[0m DROP TABLE IF EXISTS `employees`
|
2865
|
+
[1m[36mFACTORY (23.1ms)[0m [1m CREATE TABLE `employees` (
|
2866
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
2867
|
+
`name` varchar(255) NOT NULL,
|
2868
|
+
`division` varchar(255) NOT NULL,
|
2869
|
+
`salary` int(11) NOT NULL,
|
2870
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
2871
|
+
`hired_on` date NOT NULL,
|
2872
|
+
PRIMARY KEY (`id`)
|
2873
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2874
|
+
[0m
|
2875
|
+
[1m[35mFACTORY (0.9ms)[0m TRUNCATE `employees`
|
2876
|
+
[1m[36mFACTORY (0.6ms)[0m [1m INSERT INTO
|
2877
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2878
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
2879
|
+
[0m
|
2880
|
+
[1m[35mFACTORY (0.5ms)[0m INSERT INTO
|
2881
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2882
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
2883
|
+
|
2884
|
+
[1m[36mFACTORY (0.5ms)[0m [1m INSERT INTO
|
2885
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2886
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
2887
|
+
[0m
|
2888
|
+
[1m[35mFACTORY (2.0ms)[0m DROP TABLE IF EXISTS `employees`
|
2889
|
+
[1m[36mFACTORY (1.1ms)[0m [1m CREATE TABLE `employees` (
|
2890
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
2891
|
+
`name` TEXT NOT NULL,
|
2892
|
+
`division` TEXT NOT NULL,
|
2893
|
+
`salary` INTEGER NOT NULL,
|
2894
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
2895
|
+
`hired_on` DATE NOT NULL
|
2896
|
+
);
|
2897
|
+
[0m
|
2898
|
+
[1m[35mFACTORY (0.9ms)[0m DELETE FROM `employees`
|
2899
|
+
[1m[36mFACTORY (0.9ms)[0m [1m INSERT INTO
|
2900
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2901
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
2902
|
+
[0m
|
2903
|
+
[1m[35mFACTORY (1.1ms)[0m INSERT INTO
|
2904
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2905
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
2906
|
+
|
2907
|
+
[1m[36mFACTORY (1.0ms)[0m [1m INSERT INTO
|
2908
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
2909
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
2910
|
+
[0m
|
2911
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-05-22 12:40:08 -0400
|
2912
|
+
Processing by Dossier::ReportsController#show as HTML
|
2913
|
+
Parameters: {"report"=>"employee"}
|
2914
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
2915
|
+
ORDER BY name ASC
|
2916
|
+
Rendered /Users/adamhunter/Studio/adamhunter/dossier/app/views/dossier/reports/show.html.haml within layouts/application (15.6ms)
|
2917
|
+
Completed 200 OK in 55ms (Views: 18.8ms | ActiveRecord: 0.3ms)
|
2918
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-05-22 12:40:08 -0400
|
2919
|
+
Processing by Dossier::ReportsController#show as HTML
|
2920
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
2921
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
2922
|
+
ORDER BY name ASC[0m
|
2923
|
+
Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.3ms)
|
2924
|
+
Started GET "/reports/employee?options[salary]=true&options[order]=desc&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[divisions][]=Tedious+Toiling" for 127.0.0.1 at 2013-05-22 12:40:08 -0400
|
2925
|
+
Processing by Dossier::ReportsController#show as HTML
|
2926
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
2927
|
+
[1m[35mEmployeeReport (0.4ms)[0m SELECT * FROM employees WHERE 1=1
|
2928
|
+
AND division in (('Tedious Toiling'))
|
2929
|
+
AND salary > 10000
|
2930
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
2931
|
+
ORDER BY name DESC
|
2932
|
+
Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.4ms)
|
2933
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-05-22 12:40:08 -0400
|
2934
|
+
Processing by Dossier::ReportsController#show as HTML
|
2935
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
2936
|
+
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
|
2937
|
+
Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-05-22 12:40:08 -0400
|
2938
|
+
Processing by Dossier::ReportsController#show as XLS
|
2939
|
+
Parameters: {"report"=>"employee"}
|
2940
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
2941
|
+
ORDER BY name ASC[0m
|
2942
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
|
2943
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-05-22 12:40:08 -0400
|
2944
|
+
Processing by Dossier::ReportsController#show as CSV
|
2945
|
+
Parameters: {"report"=>"employee"}
|
2946
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
2947
|
+
ORDER BY name ASC
|
2948
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.3ms)
|
2949
|
+
Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-05-22 12:40:08 -0400
|
2950
|
+
Processing by SiteController#report as HTML
|
2951
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
2952
|
+
ORDER BY name ASC[0m
|
2953
|
+
Completed 200 OK in 9ms (Views: 5.0ms | ActiveRecord: 0.3ms)
|
2954
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
2955
|
+
ORDER BY name ASC
|
2956
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-05-22 12:40:08 -0400
|
2957
|
+
Processing by Dossier::ReportsController#show as HTML
|
2958
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
2959
|
+
[1m[36mEmployeeWithCustomClientReport (0.3ms)[0m [1mSELECT * FROM `employees`[0m
|
2960
|
+
Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.3ms)
|
2961
|
+
Started GET "/multi/reports/combination" for 127.0.0.1 at 2013-05-22 12:40:08 -0400
|
2962
|
+
Processing by Dossier::ReportsController#multi as HTML
|
2963
|
+
Parameters: {"report"=>"combination"}
|
2964
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
2965
|
+
ORDER BY name ASC
|
2966
|
+
[1m[36mEmployeeWithCustomViewReport (0.4ms)[0m [1mSELECT * FROM employees WHERE suspended = true[0m
|
2967
|
+
Completed 200 OK in 12ms (Views: 9.7ms | ActiveRecord: 0.7ms)
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'open-uri'
|
3
|
+
|
4
|
+
describe Dossier::ApplicationHelper do
|
5
|
+
describe "#formatted_dossier_report_path" do
|
6
|
+
let(:options) { {divisions: %w[Alpha Omega], salary: 125_000} }
|
7
|
+
let(:report) { EmployeeReport.new(options) }
|
8
|
+
let(:path) { helper.formatted_dossier_report_path('csv', report) }
|
9
|
+
let(:uri) { URI.parse(path) }
|
10
|
+
|
11
|
+
it "generates a path with the given format" do
|
12
|
+
expect(uri.path).to match(/\.csv\z/)
|
13
|
+
end
|
14
|
+
|
15
|
+
it "generates a path with the given report name" do
|
16
|
+
expect(uri.path).to match(/employee/)
|
17
|
+
end
|
18
|
+
|
19
|
+
it "generates a path with the given report options" do
|
20
|
+
expect(uri.query).to eq({options: options}.to_query)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dossier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.7.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-05-
|
14
|
+
date: 2013-05-22 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: arel
|
@@ -314,6 +314,7 @@ files:
|
|
314
314
|
- spec/fixtures/reports/employee_with_footer.html
|
315
315
|
- spec/fixtures/reports/employee_with_parameters.html
|
316
316
|
- spec/generators/dossier/views/views_spec.rb
|
317
|
+
- spec/helpers/dossier/application_helper_spec.rb
|
317
318
|
- spec/requests/employee_spec.rb
|
318
319
|
- spec/requests/employee_with_custom_client_spec.rb
|
319
320
|
- spec/requests/employee_with_custom_controller_spec.rb
|
@@ -340,7 +341,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
340
341
|
version: '0'
|
341
342
|
segments:
|
342
343
|
- 0
|
343
|
-
hash: -
|
344
|
+
hash: -3765042987867063075
|
344
345
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
345
346
|
none: false
|
346
347
|
requirements:
|
@@ -349,7 +350,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
349
350
|
version: '0'
|
350
351
|
segments:
|
351
352
|
- 0
|
352
|
-
hash: -
|
353
|
+
hash: -3765042987867063075
|
353
354
|
requirements: []
|
354
355
|
rubyforge_project:
|
355
356
|
rubygems_version: 1.8.23
|
@@ -427,6 +428,7 @@ test_files:
|
|
427
428
|
- spec/fixtures/reports/employee_with_footer.html
|
428
429
|
- spec/fixtures/reports/employee_with_parameters.html
|
429
430
|
- spec/generators/dossier/views/views_spec.rb
|
431
|
+
- spec/helpers/dossier/application_helper_spec.rb
|
430
432
|
- spec/requests/employee_spec.rb
|
431
433
|
- spec/requests/employee_with_custom_client_spec.rb
|
432
434
|
- spec/requests/employee_with_custom_controller_spec.rb
|