dossier 2.0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +13 -1
- data/lib/dossier/result.rb +23 -7
- data/lib/dossier/version.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +2308 -0
- data/spec/fixtures/reports/employee.html +1 -1
- data/spec/fixtures/reports/employee_with_footer.html +1 -1
- data/spec/support/reports/employee.rb +3 -2
- metadata +3 -3
data/README.markdown
CHANGED
@@ -93,6 +93,18 @@ end
|
|
93
93
|
|
94
94
|
The built-in `ReportsController` uses this formatting when rendering the HTML and JSON representations, but not when rendering the CSV.
|
95
95
|
|
96
|
+
If your formatting method takes a second argment, it will be given a hash of the values in the row.
|
97
|
+
|
98
|
+
```ruby
|
99
|
+
class MoneyLaunderingReport < Dossier::Report
|
100
|
+
#...
|
101
|
+
def format_payment(value, row)
|
102
|
+
return "$0.00" if row[:recipient] == 'Jimmy The Squid'
|
103
|
+
formatter.number_to_currency(value)
|
104
|
+
end
|
105
|
+
end
|
106
|
+
```
|
107
|
+
|
96
108
|
## Report Options and Footers
|
97
109
|
|
98
110
|
You may want to specify parameters for a report: which columns to show, a range of dates, etc. Dossier supports this via URL parameters, anything in `params[:options]` will be passed into your report's `initialize` method and made available via the `options` reader.
|
@@ -109,7 +121,7 @@ You can pass these options by hardcoding them into a link, or you can allow user
|
|
109
121
|
= f.select_tag :in_division, divisions_collection
|
110
122
|
= f.button "Submit"
|
111
123
|
|
112
|
-
= render template: 'dossier/
|
124
|
+
= render template: 'dossier/reports/show', locals: {report: report}
|
113
125
|
```
|
114
126
|
|
115
127
|
It's up to you to use these options in generating your SQL query.
|
data/lib/dossier/result.rb
CHANGED
@@ -31,7 +31,11 @@ module Dossier
|
|
31
31
|
|
32
32
|
def hashes
|
33
33
|
return @hashes if defined?(@hashes)
|
34
|
-
@hashes = rows.map { |row|
|
34
|
+
@hashes = rows.map { |row| row_hash(row) }
|
35
|
+
end
|
36
|
+
|
37
|
+
def row_hash(row)
|
38
|
+
Hash[headers.zip(row)].with_indifferent_access
|
35
39
|
end
|
36
40
|
|
37
41
|
def each
|
@@ -45,14 +49,26 @@ module Dossier
|
|
45
49
|
end
|
46
50
|
end
|
47
51
|
|
48
|
-
def format(
|
49
|
-
unless
|
50
|
-
raise ArgumentError.new("#{
|
52
|
+
def format(row)
|
53
|
+
unless row.kind_of?(Enumerable)
|
54
|
+
raise ArgumentError.new("#{row.inspect} must be a kind of Enumerable")
|
51
55
|
end
|
52
56
|
|
53
|
-
|
54
|
-
|
55
|
-
|
57
|
+
row.each_with_index.map do |field, i|
|
58
|
+
method_name = "format_#{headers[i]}"
|
59
|
+
|
60
|
+
if report.respond_to?(method_name)
|
61
|
+
|
62
|
+
# Provide the row as context if the formatter takes two arguments
|
63
|
+
if report.method(method_name).arity == 2
|
64
|
+
report.public_send(method_name, field, row_hash(row))
|
65
|
+
else
|
66
|
+
report.public_send(method_name, field)
|
67
|
+
end
|
68
|
+
|
69
|
+
else
|
70
|
+
field
|
71
|
+
end
|
56
72
|
end
|
57
73
|
end
|
58
74
|
end
|
data/lib/dossier/version.rb
CHANGED
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/spec/dummy/log/test.log
CHANGED
@@ -24246,3 +24246,2311 @@ Processing by Dossier::ReportsController#show as HTML
|
|
24246
24246
|
Parameters: {"report"=>"employee_with_custom_client"}
|
24247
24247
|
[1m[35mEmployeeWithCustomClientReport (0.3ms)[0m SELECT * FROM `employees`
|
24248
24248
|
Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.0ms)
|
24249
|
+
Connecting to database specified by database.yml
|
24250
|
+
[1m[36mFACTORY (0.2ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
24251
|
+
[1m[35mFACTORY (188.7ms)[0m DROP TABLE IF EXISTS `employees`
|
24252
|
+
[1m[36mFACTORY (103.3ms)[0m [1m CREATE TABLE `employees` (
|
24253
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
24254
|
+
`name` varchar(255) NOT NULL,
|
24255
|
+
`division` varchar(255) NOT NULL,
|
24256
|
+
`salary` int(11) NOT NULL,
|
24257
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
24258
|
+
`hired_on` date NOT NULL,
|
24259
|
+
PRIMARY KEY (`id`)
|
24260
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
24261
|
+
[0m
|
24262
|
+
[1m[35mFACTORY (21.3ms)[0m TRUNCATE `employees`
|
24263
|
+
[1m[36mFACTORY (0.8ms)[0m [1m INSERT INTO
|
24264
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24265
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
24266
|
+
[0m
|
24267
|
+
[1m[35mFACTORY (0.3ms)[0m INSERT INTO
|
24268
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24269
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
24270
|
+
|
24271
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
24272
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24273
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
24274
|
+
[0m
|
24275
|
+
[1m[35mFACTORY (2.7ms)[0m DROP TABLE IF EXISTS `employees`
|
24276
|
+
[1m[36mFACTORY (1.2ms)[0m [1m CREATE TABLE `employees` (
|
24277
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
24278
|
+
`name` TEXT NOT NULL,
|
24279
|
+
`division` TEXT NOT NULL,
|
24280
|
+
`salary` INTEGER NOT NULL,
|
24281
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
24282
|
+
`hired_on` DATE NOT NULL
|
24283
|
+
);
|
24284
|
+
[0m
|
24285
|
+
[1m[35mFACTORY (0.9ms)[0m DELETE FROM `employees`
|
24286
|
+
[1m[36mFACTORY (1.0ms)[0m [1m INSERT INTO
|
24287
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24288
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
24289
|
+
[0m
|
24290
|
+
[1m[35mFACTORY (1.1ms)[0m INSERT INTO
|
24291
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24292
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
24293
|
+
|
24294
|
+
[1m[36mFACTORY (1.7ms)[0m [1m INSERT INTO
|
24295
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24296
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
24297
|
+
[0m
|
24298
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
24299
|
+
ORDER BY name ASC
|
24300
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 15:44:40 -0500
|
24301
|
+
Processing by Dossier::ReportsController#show as HTML
|
24302
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
24303
|
+
[1m[36mEmployeeWithCustomClientReport (0.3ms)[0m [1mSELECT * FROM `employees`[0m
|
24304
|
+
Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (4.0ms)
|
24305
|
+
Completed 200 OK in 63ms (Views: 46.5ms | ActiveRecord: 0.0ms)
|
24306
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 15:44:40 -0500
|
24307
|
+
Processing by Dossier::ReportsController#show as HTML
|
24308
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
24309
|
+
[1m[35mEmployeeWithCustomViewReport (0.2ms)[0m SELECT * FROM employees WHERE suspended = true
|
24310
|
+
Completed 200 OK in 33ms (Views: 28.8ms | ActiveRecord: 0.2ms)
|
24311
|
+
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-01-22 15:44:40 -0500
|
24312
|
+
Processing by Dossier::ReportsController#show as HTML
|
24313
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
24314
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
24315
|
+
AND division in (('Tedious Toiling'))
|
24316
|
+
AND salary > 10000
|
24317
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
24318
|
+
ORDER BY name DESC[0m
|
24319
|
+
Completed 200 OK in 83ms (Views: 78.5ms | ActiveRecord: 0.0ms)
|
24320
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 15:44:40 -0500
|
24321
|
+
Processing by Dossier::ReportsController#show as HTML
|
24322
|
+
Parameters: {"report"=>"employee"}
|
24323
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
24324
|
+
ORDER BY name ASC
|
24325
|
+
Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 0.0ms)
|
24326
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 15:44:40 -0500
|
24327
|
+
Processing by Dossier::ReportsController#show as HTML
|
24328
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
24329
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
24330
|
+
ORDER BY name ASC[0m
|
24331
|
+
Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.0ms)
|
24332
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 15:44:40 -0500
|
24333
|
+
Processing by Dossier::ReportsController#show as CSV
|
24334
|
+
Parameters: {"report"=>"employee"}
|
24335
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
24336
|
+
ORDER BY name ASC
|
24337
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
|
24338
|
+
Connecting to database specified by database.yml
|
24339
|
+
[1m[36mFACTORY (0.1ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
24340
|
+
[1m[35mFACTORY (0.9ms)[0m DROP TABLE IF EXISTS `employees`
|
24341
|
+
[1m[36mFACTORY (137.5ms)[0m [1m CREATE TABLE `employees` (
|
24342
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
24343
|
+
`name` varchar(255) NOT NULL,
|
24344
|
+
`division` varchar(255) NOT NULL,
|
24345
|
+
`salary` int(11) NOT NULL,
|
24346
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
24347
|
+
`hired_on` date NOT NULL,
|
24348
|
+
PRIMARY KEY (`id`)
|
24349
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
24350
|
+
[0m
|
24351
|
+
[1m[35mFACTORY (1.2ms)[0m TRUNCATE `employees`
|
24352
|
+
[1m[36mFACTORY (0.8ms)[0m [1m INSERT INTO
|
24353
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24354
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
24355
|
+
[0m
|
24356
|
+
[1m[35mFACTORY (0.6ms)[0m INSERT INTO
|
24357
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24358
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
24359
|
+
|
24360
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
24361
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24362
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
24363
|
+
[0m
|
24364
|
+
[1m[35mFACTORY (1.9ms)[0m DROP TABLE IF EXISTS `employees`
|
24365
|
+
[1m[36mFACTORY (1.0ms)[0m [1m CREATE TABLE `employees` (
|
24366
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
24367
|
+
`name` TEXT NOT NULL,
|
24368
|
+
`division` TEXT NOT NULL,
|
24369
|
+
`salary` INTEGER NOT NULL,
|
24370
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
24371
|
+
`hired_on` DATE NOT NULL
|
24372
|
+
);
|
24373
|
+
[0m
|
24374
|
+
[1m[35mFACTORY (1.4ms)[0m DELETE FROM `employees`
|
24375
|
+
[1m[36mFACTORY (1.1ms)[0m [1m INSERT INTO
|
24376
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24377
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
24378
|
+
[0m
|
24379
|
+
[1m[35mFACTORY (0.9ms)[0m INSERT INTO
|
24380
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24381
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
24382
|
+
|
24383
|
+
[1m[36mFACTORY (1.2ms)[0m [1m INSERT INTO
|
24384
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24385
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
24386
|
+
[0m
|
24387
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 15:51:48 -0500
|
24388
|
+
Processing by Dossier::ReportsController#show as HTML
|
24389
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
24390
|
+
[1m[35mEmployeeWithCustomClientReport (1.5ms)[0m SELECT * FROM `employees`
|
24391
|
+
Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (3.8ms)
|
24392
|
+
Completed 200 OK in 46ms (Views: 7.2ms | ActiveRecord: 0.0ms)
|
24393
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
24394
|
+
ORDER BY name ASC[0m
|
24395
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 15:51:48 -0500
|
24396
|
+
Processing by Dossier::ReportsController#show as HTML
|
24397
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
24398
|
+
[1m[35mEmployeeWithCustomViewReport (0.3ms)[0m SELECT * FROM employees WHERE suspended = true
|
24399
|
+
Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.3ms)
|
24400
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 15:51:48 -0500
|
24401
|
+
Processing by Dossier::ReportsController#show as HTML
|
24402
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
24403
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
24404
|
+
ORDER BY name ASC[0m
|
24405
|
+
Completed 200 OK in 40ms (Views: 3.2ms | ActiveRecord: 0.0ms)
|
24406
|
+
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-01-22 15:51:48 -0500
|
24407
|
+
Processing by Dossier::ReportsController#show as HTML
|
24408
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
24409
|
+
[1m[35mEmployeeReport (0.6ms)[0m SELECT * FROM employees WHERE 1=1
|
24410
|
+
AND division in (('Tedious Toiling'))
|
24411
|
+
AND salary > 10000
|
24412
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
24413
|
+
ORDER BY name DESC
|
24414
|
+
Completed 200 OK in 11ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
24415
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 15:51:48 -0500
|
24416
|
+
Processing by Dossier::ReportsController#show as HTML
|
24417
|
+
Parameters: {"report"=>"employee"}
|
24418
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
24419
|
+
ORDER BY name ASC[0m
|
24420
|
+
Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 0.0ms)
|
24421
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 15:51:48 -0500
|
24422
|
+
Processing by Dossier::ReportsController#show as CSV
|
24423
|
+
Parameters: {"report"=>"employee"}
|
24424
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
24425
|
+
ORDER BY name ASC
|
24426
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
|
24427
|
+
Connecting to database specified by database.yml
|
24428
|
+
[1m[36mFACTORY (0.2ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
24429
|
+
[1m[35mFACTORY (1.2ms)[0m DROP TABLE IF EXISTS `employees`
|
24430
|
+
[1m[36mFACTORY (73.7ms)[0m [1m CREATE TABLE `employees` (
|
24431
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
24432
|
+
`name` varchar(255) NOT NULL,
|
24433
|
+
`division` varchar(255) NOT NULL,
|
24434
|
+
`salary` int(11) NOT NULL,
|
24435
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
24436
|
+
`hired_on` date NOT NULL,
|
24437
|
+
PRIMARY KEY (`id`)
|
24438
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
24439
|
+
[0m
|
24440
|
+
[1m[35mFACTORY (12.2ms)[0m TRUNCATE `employees`
|
24441
|
+
[1m[36mFACTORY (0.5ms)[0m [1m INSERT INTO
|
24442
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24443
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
24444
|
+
[0m
|
24445
|
+
[1m[35mFACTORY (0.3ms)[0m INSERT INTO
|
24446
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24447
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
24448
|
+
|
24449
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
24450
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24451
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
24452
|
+
[0m
|
24453
|
+
[1m[35mFACTORY (1.8ms)[0m DROP TABLE IF EXISTS `employees`
|
24454
|
+
[1m[36mFACTORY (1.1ms)[0m [1m CREATE TABLE `employees` (
|
24455
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
24456
|
+
`name` TEXT NOT NULL,
|
24457
|
+
`division` TEXT NOT NULL,
|
24458
|
+
`salary` INTEGER NOT NULL,
|
24459
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
24460
|
+
`hired_on` DATE NOT NULL
|
24461
|
+
);
|
24462
|
+
[0m
|
24463
|
+
[1m[35mFACTORY (1.2ms)[0m DELETE FROM `employees`
|
24464
|
+
[1m[36mFACTORY (0.9ms)[0m [1m INSERT INTO
|
24465
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24466
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
24467
|
+
[0m
|
24468
|
+
[1m[35mFACTORY (1.1ms)[0m INSERT INTO
|
24469
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24470
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
24471
|
+
|
24472
|
+
[1m[36mFACTORY (1.1ms)[0m [1m INSERT INTO
|
24473
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24474
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
24475
|
+
[0m
|
24476
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 15:52:23 -0500
|
24477
|
+
Processing by Dossier::ReportsController#show as HTML
|
24478
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
24479
|
+
[1m[35mEmployeeWithCustomClientReport (1.5ms)[0m SELECT * FROM `employees`
|
24480
|
+
Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (4.2ms)
|
24481
|
+
Completed 200 OK in 19ms (Views: 7.6ms | ActiveRecord: 0.0ms)
|
24482
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
24483
|
+
ORDER BY name ASC[0m
|
24484
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 15:52:23 -0500
|
24485
|
+
Processing by Dossier::ReportsController#show as HTML
|
24486
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
24487
|
+
[1m[35mEmployeeWithCustomViewReport (0.2ms)[0m SELECT * FROM employees WHERE suspended = true
|
24488
|
+
Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.2ms)
|
24489
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 15:52:23 -0500
|
24490
|
+
Processing by Dossier::ReportsController#show as HTML
|
24491
|
+
Parameters: {"report"=>"employee"}
|
24492
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
24493
|
+
ORDER BY name ASC[0m
|
24494
|
+
Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 0.0ms)
|
24495
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 15:52:23 -0500
|
24496
|
+
Processing by Dossier::ReportsController#show as HTML
|
24497
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
24498
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
24499
|
+
ORDER BY name ASC
|
24500
|
+
Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.0ms)
|
24501
|
+
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-01-22 15:52:23 -0500
|
24502
|
+
Processing by Dossier::ReportsController#show as HTML
|
24503
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
24504
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
24505
|
+
AND division in (('Tedious Toiling'))
|
24506
|
+
AND salary > 10000
|
24507
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
24508
|
+
ORDER BY name DESC[0m
|
24509
|
+
Completed 200 OK in 7ms (Views: 2.7ms | ActiveRecord: 0.0ms)
|
24510
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 15:52:23 -0500
|
24511
|
+
Processing by Dossier::ReportsController#show as CSV
|
24512
|
+
Parameters: {"report"=>"employee"}
|
24513
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
24514
|
+
ORDER BY name ASC
|
24515
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
|
24516
|
+
Connecting to database specified by database.yml
|
24517
|
+
[1m[36mFACTORY (0.1ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
24518
|
+
[1m[35mFACTORY (0.9ms)[0m DROP TABLE IF EXISTS `employees`
|
24519
|
+
[1m[36mFACTORY (97.3ms)[0m [1m CREATE TABLE `employees` (
|
24520
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
24521
|
+
`name` varchar(255) NOT NULL,
|
24522
|
+
`division` varchar(255) NOT NULL,
|
24523
|
+
`salary` int(11) NOT NULL,
|
24524
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
24525
|
+
`hired_on` date NOT NULL,
|
24526
|
+
PRIMARY KEY (`id`)
|
24527
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
24528
|
+
[0m
|
24529
|
+
[1m[35mFACTORY (6.6ms)[0m TRUNCATE `employees`
|
24530
|
+
[1m[36mFACTORY (0.4ms)[0m [1m INSERT INTO
|
24531
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24532
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
24533
|
+
[0m
|
24534
|
+
[1m[35mFACTORY (0.3ms)[0m INSERT INTO
|
24535
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24536
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
24537
|
+
|
24538
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
24539
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24540
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
24541
|
+
[0m
|
24542
|
+
[1m[35mFACTORY (1.8ms)[0m DROP TABLE IF EXISTS `employees`
|
24543
|
+
[1m[36mFACTORY (1.4ms)[0m [1m CREATE TABLE `employees` (
|
24544
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
24545
|
+
`name` TEXT NOT NULL,
|
24546
|
+
`division` TEXT NOT NULL,
|
24547
|
+
`salary` INTEGER NOT NULL,
|
24548
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
24549
|
+
`hired_on` DATE NOT NULL
|
24550
|
+
);
|
24551
|
+
[0m
|
24552
|
+
[1m[35mFACTORY (1.0ms)[0m DELETE FROM `employees`
|
24553
|
+
[1m[36mFACTORY (1.1ms)[0m [1m INSERT INTO
|
24554
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24555
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
24556
|
+
[0m
|
24557
|
+
[1m[35mFACTORY (1.0ms)[0m INSERT INTO
|
24558
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24559
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
24560
|
+
|
24561
|
+
[1m[36mFACTORY (1.0ms)[0m [1m INSERT INTO
|
24562
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24563
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
24564
|
+
[0m
|
24565
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 15:56:15 -0500
|
24566
|
+
Processing by Dossier::ReportsController#show as HTML
|
24567
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
24568
|
+
[1m[35mEmployeeWithCustomClientReport (1.9ms)[0m SELECT * FROM `employees`
|
24569
|
+
Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (3.8ms)
|
24570
|
+
Completed 200 OK in 19ms (Views: 7.1ms | ActiveRecord: 0.0ms)
|
24571
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
24572
|
+
ORDER BY name ASC[0m
|
24573
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 15:56:15 -0500
|
24574
|
+
Processing by Dossier::ReportsController#show as HTML
|
24575
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
24576
|
+
[1m[35mEmployeeWithCustomViewReport (0.2ms)[0m SELECT * FROM employees WHERE suspended = true
|
24577
|
+
Completed 200 OK in 6ms (Views: 2.5ms | ActiveRecord: 0.2ms)
|
24578
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 15:56:15 -0500
|
24579
|
+
Processing by Dossier::ReportsController#show as HTML
|
24580
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
24581
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
24582
|
+
ORDER BY name ASC[0m
|
24583
|
+
Completed 200 OK in 8ms (Views: 3.2ms | ActiveRecord: 0.0ms)
|
24584
|
+
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-01-22 15:56:15 -0500
|
24585
|
+
Processing by Dossier::ReportsController#show as HTML
|
24586
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
24587
|
+
[1m[35mEmployeeReport (0.5ms)[0m SELECT * FROM employees WHERE 1=1
|
24588
|
+
AND division in (('Tedious Toiling'))
|
24589
|
+
AND salary > 10000
|
24590
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
24591
|
+
ORDER BY name DESC
|
24592
|
+
Completed 200 OK in 11ms (Views: 2.9ms | ActiveRecord: 0.0ms)
|
24593
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 15:56:15 -0500
|
24594
|
+
Processing by Dossier::ReportsController#show as HTML
|
24595
|
+
Parameters: {"report"=>"employee"}
|
24596
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
24597
|
+
ORDER BY name ASC[0m
|
24598
|
+
Completed 200 OK in 37ms (Views: 32.9ms | ActiveRecord: 0.0ms)
|
24599
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 15:56:15 -0500
|
24600
|
+
Processing by Dossier::ReportsController#show as CSV
|
24601
|
+
Parameters: {"report"=>"employee"}
|
24602
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
24603
|
+
ORDER BY name ASC
|
24604
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.2ms)
|
24605
|
+
Connecting to database specified by database.yml
|
24606
|
+
[1m[36mFACTORY (0.1ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
24607
|
+
[1m[35mFACTORY (1.0ms)[0m DROP TABLE IF EXISTS `employees`
|
24608
|
+
[1m[36mFACTORY (100.3ms)[0m [1m CREATE TABLE `employees` (
|
24609
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
24610
|
+
`name` varchar(255) NOT NULL,
|
24611
|
+
`division` varchar(255) NOT NULL,
|
24612
|
+
`salary` int(11) NOT NULL,
|
24613
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
24614
|
+
`hired_on` date NOT NULL,
|
24615
|
+
PRIMARY KEY (`id`)
|
24616
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
24617
|
+
[0m
|
24618
|
+
[1m[35mFACTORY (29.7ms)[0m TRUNCATE `employees`
|
24619
|
+
[1m[36mFACTORY (0.8ms)[0m [1m INSERT INTO
|
24620
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24621
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
24622
|
+
[0m
|
24623
|
+
[1m[35mFACTORY (0.3ms)[0m INSERT INTO
|
24624
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24625
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
24626
|
+
|
24627
|
+
[1m[36mFACTORY (0.8ms)[0m [1m INSERT INTO
|
24628
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24629
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
24630
|
+
[0m
|
24631
|
+
[1m[35mFACTORY (1.9ms)[0m DROP TABLE IF EXISTS `employees`
|
24632
|
+
[1m[36mFACTORY (1.1ms)[0m [1m CREATE TABLE `employees` (
|
24633
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
24634
|
+
`name` TEXT NOT NULL,
|
24635
|
+
`division` TEXT NOT NULL,
|
24636
|
+
`salary` INTEGER NOT NULL,
|
24637
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
24638
|
+
`hired_on` DATE NOT NULL
|
24639
|
+
);
|
24640
|
+
[0m
|
24641
|
+
[1m[35mFACTORY (0.9ms)[0m DELETE FROM `employees`
|
24642
|
+
[1m[36mFACTORY (1.1ms)[0m [1m INSERT INTO
|
24643
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24644
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
24645
|
+
[0m
|
24646
|
+
[1m[35mFACTORY (1.0ms)[0m INSERT INTO
|
24647
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24648
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
24649
|
+
|
24650
|
+
[1m[36mFACTORY (1.4ms)[0m [1m INSERT INTO
|
24651
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24652
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
24653
|
+
[0m
|
24654
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 15:57:12 -0500
|
24655
|
+
Processing by Dossier::ReportsController#show as HTML
|
24656
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
24657
|
+
[1m[35mEmployeeWithCustomClientReport (1.8ms)[0m SELECT * FROM `employees`
|
24658
|
+
Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (3.8ms)
|
24659
|
+
Completed 200 OK in 46ms (Views: 7.1ms | ActiveRecord: 0.0ms)
|
24660
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
24661
|
+
ORDER BY name ASC[0m
|
24662
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 15:57:12 -0500
|
24663
|
+
Processing by Dossier::ReportsController#show as HTML
|
24664
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
24665
|
+
[1m[35mEmployeeWithCustomViewReport (0.3ms)[0m SELECT * FROM employees WHERE suspended = true
|
24666
|
+
Completed 200 OK in 8ms (Views: 3.7ms | ActiveRecord: 0.3ms)
|
24667
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 15:57:12 -0500
|
24668
|
+
Processing by Dossier::ReportsController#show as HTML
|
24669
|
+
Parameters: {"report"=>"employee"}
|
24670
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
24671
|
+
ORDER BY name ASC[0m
|
24672
|
+
Completed 200 OK in 8ms (Views: 3.3ms | ActiveRecord: 0.0ms)
|
24673
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 15:57:12 -0500
|
24674
|
+
Processing by Dossier::ReportsController#show as HTML
|
24675
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
24676
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
24677
|
+
ORDER BY name ASC
|
24678
|
+
Completed 200 OK in 8ms (Views: 3.5ms | ActiveRecord: 0.0ms)
|
24679
|
+
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-01-22 15:57:12 -0500
|
24680
|
+
Processing by Dossier::ReportsController#show as HTML
|
24681
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
24682
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
24683
|
+
AND division in (('Tedious Toiling'))
|
24684
|
+
AND salary > 10000
|
24685
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
24686
|
+
ORDER BY name DESC[0m
|
24687
|
+
Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
24688
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 15:57:12 -0500
|
24689
|
+
Processing by Dossier::ReportsController#show as CSV
|
24690
|
+
Parameters: {"report"=>"employee"}
|
24691
|
+
[1m[35mEmployeeReport (0.4ms)[0m SELECT * FROM employees WHERE 1=1
|
24692
|
+
ORDER BY name ASC
|
24693
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.4ms)
|
24694
|
+
Connecting to database specified by database.yml
|
24695
|
+
[1m[36mFACTORY (0.2ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
24696
|
+
[1m[35mFACTORY (0.9ms)[0m DROP TABLE IF EXISTS `employees`
|
24697
|
+
[1m[36mFACTORY (50.5ms)[0m [1m CREATE TABLE `employees` (
|
24698
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
24699
|
+
`name` varchar(255) NOT NULL,
|
24700
|
+
`division` varchar(255) NOT NULL,
|
24701
|
+
`salary` int(11) NOT NULL,
|
24702
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
24703
|
+
`hired_on` date NOT NULL,
|
24704
|
+
PRIMARY KEY (`id`)
|
24705
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
24706
|
+
[0m
|
24707
|
+
[1m[35mFACTORY (1.6ms)[0m TRUNCATE `employees`
|
24708
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
24709
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24710
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
24711
|
+
[0m
|
24712
|
+
[1m[35mFACTORY (0.3ms)[0m INSERT INTO
|
24713
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24714
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
24715
|
+
|
24716
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
24717
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24718
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
24719
|
+
[0m
|
24720
|
+
[1m[35mFACTORY (2.3ms)[0m DROP TABLE IF EXISTS `employees`
|
24721
|
+
[1m[36mFACTORY (1.5ms)[0m [1m CREATE TABLE `employees` (
|
24722
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
24723
|
+
`name` TEXT NOT NULL,
|
24724
|
+
`division` TEXT NOT NULL,
|
24725
|
+
`salary` INTEGER NOT NULL,
|
24726
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
24727
|
+
`hired_on` DATE NOT NULL
|
24728
|
+
);
|
24729
|
+
[0m
|
24730
|
+
[1m[35mFACTORY (0.9ms)[0m DELETE FROM `employees`
|
24731
|
+
[1m[36mFACTORY (0.9ms)[0m [1m INSERT INTO
|
24732
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24733
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
24734
|
+
[0m
|
24735
|
+
[1m[35mFACTORY (1.0ms)[0m INSERT INTO
|
24736
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24737
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
24738
|
+
|
24739
|
+
[1m[36mFACTORY (1.4ms)[0m [1m INSERT INTO
|
24740
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24741
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
24742
|
+
[0m
|
24743
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 15:59:54 -0500
|
24744
|
+
Processing by Dossier::ReportsController#show as HTML
|
24745
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
24746
|
+
[1m[35mEmployeeWithCustomViewReport (0.3ms)[0m SELECT * FROM employees WHERE suspended = true
|
24747
|
+
Rendered dossier/reports/employee_with_custom_view.html.haml within layouts/application (0.9ms)
|
24748
|
+
Completed 200 OK in 18ms (Views: 12.0ms | ActiveRecord: 0.3ms)
|
24749
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 15:59:54 -0500
|
24750
|
+
Processing by Dossier::ReportsController#show as HTML
|
24751
|
+
Parameters: {"report"=>"employee"}
|
24752
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
24753
|
+
ORDER BY name ASC[0m
|
24754
|
+
Completed 200 OK in 14ms (Views: 9.4ms | ActiveRecord: 0.0ms)
|
24755
|
+
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-01-22 15:59:54 -0500
|
24756
|
+
Processing by Dossier::ReportsController#show as HTML
|
24757
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
24758
|
+
[1m[35mEmployeeReport (0.5ms)[0m SELECT * FROM employees WHERE 1=1
|
24759
|
+
AND division in (('Tedious Toiling'))
|
24760
|
+
AND salary > 10000
|
24761
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
24762
|
+
ORDER BY name DESC
|
24763
|
+
Completed 200 OK in 11ms (Views: 2.9ms | ActiveRecord: 0.0ms)
|
24764
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 15:59:54 -0500
|
24765
|
+
Processing by Dossier::ReportsController#show as HTML
|
24766
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
24767
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
24768
|
+
ORDER BY name ASC[0m
|
24769
|
+
Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 0.0ms)
|
24770
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 15:59:54 -0500
|
24771
|
+
Processing by Dossier::ReportsController#show as CSV
|
24772
|
+
Parameters: {"report"=>"employee"}
|
24773
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
24774
|
+
ORDER BY name ASC
|
24775
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
|
24776
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
24777
|
+
ORDER BY name ASC[0m
|
24778
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 15:59:54 -0500
|
24779
|
+
Processing by Dossier::ReportsController#show as HTML
|
24780
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
24781
|
+
[1m[35mEmployeeWithCustomClientReport (0.3ms)[0m SELECT * FROM `employees`
|
24782
|
+
Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.0ms)
|
24783
|
+
Connecting to database specified by database.yml
|
24784
|
+
[1m[36mFACTORY (0.2ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
24785
|
+
[1m[35mFACTORY (1.2ms)[0m DROP TABLE IF EXISTS `employees`
|
24786
|
+
[1m[36mFACTORY (85.4ms)[0m [1m CREATE TABLE `employees` (
|
24787
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
24788
|
+
`name` varchar(255) NOT NULL,
|
24789
|
+
`division` varchar(255) NOT NULL,
|
24790
|
+
`salary` int(11) NOT NULL,
|
24791
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
24792
|
+
`hired_on` date NOT NULL,
|
24793
|
+
PRIMARY KEY (`id`)
|
24794
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
24795
|
+
[0m
|
24796
|
+
[1m[35mFACTORY (1.0ms)[0m TRUNCATE `employees`
|
24797
|
+
[1m[36mFACTORY (0.5ms)[0m [1m INSERT INTO
|
24798
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24799
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
24800
|
+
[0m
|
24801
|
+
[1m[35mFACTORY (0.4ms)[0m INSERT INTO
|
24802
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24803
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
24804
|
+
|
24805
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
24806
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24807
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
24808
|
+
[0m
|
24809
|
+
[1m[35mFACTORY (1.9ms)[0m DROP TABLE IF EXISTS `employees`
|
24810
|
+
[1m[36mFACTORY (1.1ms)[0m [1m CREATE TABLE `employees` (
|
24811
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
24812
|
+
`name` TEXT NOT NULL,
|
24813
|
+
`division` TEXT NOT NULL,
|
24814
|
+
`salary` INTEGER NOT NULL,
|
24815
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
24816
|
+
`hired_on` DATE NOT NULL
|
24817
|
+
);
|
24818
|
+
[0m
|
24819
|
+
[1m[35mFACTORY (1.0ms)[0m DELETE FROM `employees`
|
24820
|
+
[1m[36mFACTORY (1.1ms)[0m [1m INSERT INTO
|
24821
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24822
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
24823
|
+
[0m
|
24824
|
+
[1m[35mFACTORY (0.9ms)[0m INSERT INTO
|
24825
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24826
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
24827
|
+
|
24828
|
+
[1m[36mFACTORY (0.9ms)[0m [1m INSERT INTO
|
24829
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24830
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
24831
|
+
[0m
|
24832
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
24833
|
+
ORDER BY name ASC
|
24834
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:03:07 -0500
|
24835
|
+
Processing by Dossier::ReportsController#show as CSV
|
24836
|
+
Parameters: {"report"=>"employee"}
|
24837
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
24838
|
+
ORDER BY name ASC[0m
|
24839
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.3ms)
|
24840
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:03:07 -0500
|
24841
|
+
Processing by Dossier::ReportsController#show as HTML
|
24842
|
+
Parameters: {"report"=>"employee"}
|
24843
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
24844
|
+
ORDER BY name ASC
|
24845
|
+
Completed 200 OK in 23ms (Views: 7.7ms | ActiveRecord: 0.0ms)
|
24846
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:03:07 -0500
|
24847
|
+
Processing by Dossier::ReportsController#show as HTML
|
24848
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
24849
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
24850
|
+
ORDER BY name ASC[0m
|
24851
|
+
Completed 200 OK in 38ms (Views: 3.5ms | ActiveRecord: 0.0ms)
|
24852
|
+
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-01-22 16:03:07 -0500
|
24853
|
+
Processing by Dossier::ReportsController#show as HTML
|
24854
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
24855
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
24856
|
+
AND division in (('Tedious Toiling'))
|
24857
|
+
AND salary > 10000
|
24858
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
24859
|
+
ORDER BY name DESC
|
24860
|
+
Completed 200 OK in 10ms (Views: 4.7ms | ActiveRecord: 0.0ms)
|
24861
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:03:07 -0500
|
24862
|
+
Processing by Dossier::ReportsController#show as HTML
|
24863
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
24864
|
+
[1m[36mEmployeeWithCustomViewReport (0.2ms)[0m [1mSELECT * FROM employees WHERE suspended = true[0m
|
24865
|
+
Completed 200 OK in 7ms (Views: 2.7ms | ActiveRecord: 0.2ms)
|
24866
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:03:07 -0500
|
24867
|
+
Processing by Dossier::ReportsController#show as HTML
|
24868
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
24869
|
+
[1m[35mEmployeeWithCustomClientReport (0.3ms)[0m SELECT * FROM `employees`
|
24870
|
+
Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.0ms)
|
24871
|
+
Connecting to database specified by database.yml
|
24872
|
+
[1m[36mFACTORY (0.3ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
24873
|
+
[1m[35mFACTORY (0.9ms)[0m DROP TABLE IF EXISTS `employees`
|
24874
|
+
[1m[36mFACTORY (56.8ms)[0m [1m CREATE TABLE `employees` (
|
24875
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
24876
|
+
`name` varchar(255) NOT NULL,
|
24877
|
+
`division` varchar(255) NOT NULL,
|
24878
|
+
`salary` int(11) NOT NULL,
|
24879
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
24880
|
+
`hired_on` date NOT NULL,
|
24881
|
+
PRIMARY KEY (`id`)
|
24882
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
24883
|
+
[0m
|
24884
|
+
[1m[35mFACTORY (1.8ms)[0m TRUNCATE `employees`
|
24885
|
+
[1m[36mFACTORY (0.4ms)[0m [1m INSERT INTO
|
24886
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24887
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
24888
|
+
[0m
|
24889
|
+
[1m[35mFACTORY (0.3ms)[0m INSERT INTO
|
24890
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24891
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
24892
|
+
|
24893
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
24894
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24895
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
24896
|
+
[0m
|
24897
|
+
[1m[35mFACTORY (2.0ms)[0m DROP TABLE IF EXISTS `employees`
|
24898
|
+
[1m[36mFACTORY (1.3ms)[0m [1m CREATE TABLE `employees` (
|
24899
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
24900
|
+
`name` TEXT NOT NULL,
|
24901
|
+
`division` TEXT NOT NULL,
|
24902
|
+
`salary` INTEGER NOT NULL,
|
24903
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
24904
|
+
`hired_on` DATE NOT NULL
|
24905
|
+
);
|
24906
|
+
[0m
|
24907
|
+
[1m[35mFACTORY (1.0ms)[0m DELETE FROM `employees`
|
24908
|
+
[1m[36mFACTORY (1.0ms)[0m [1m INSERT INTO
|
24909
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24910
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
24911
|
+
[0m
|
24912
|
+
[1m[35mFACTORY (1.1ms)[0m INSERT INTO
|
24913
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24914
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
24915
|
+
|
24916
|
+
[1m[36mFACTORY (1.1ms)[0m [1m INSERT INTO
|
24917
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24918
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
24919
|
+
[0m
|
24920
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:04:33 -0500
|
24921
|
+
Processing by Dossier::ReportsController#show as CSV
|
24922
|
+
Parameters: {"report"=>"employee"}
|
24923
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
24924
|
+
ORDER BY name ASC
|
24925
|
+
Completed 200 OK in 6ms (ActiveRecord: 0.3ms)
|
24926
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:04:33 -0500
|
24927
|
+
Processing by Dossier::ReportsController#show as HTML
|
24928
|
+
Parameters: {"report"=>"employee"}
|
24929
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
24930
|
+
ORDER BY name ASC[0m
|
24931
|
+
Completed 200 OK in 24ms (Views: 11.9ms | ActiveRecord: 0.0ms)
|
24932
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:04:33 -0500
|
24933
|
+
Processing by Dossier::ReportsController#show as HTML
|
24934
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
24935
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
24936
|
+
ORDER BY name ASC
|
24937
|
+
Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 0.0ms)
|
24938
|
+
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-01-22 16:04:33 -0500
|
24939
|
+
Processing by Dossier::ReportsController#show as HTML
|
24940
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
24941
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
24942
|
+
AND division in (('Tedious Toiling'))
|
24943
|
+
AND salary > 10000
|
24944
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
24945
|
+
ORDER BY name DESC[0m
|
24946
|
+
Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
24947
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:04:33 -0500
|
24948
|
+
Processing by Dossier::ReportsController#show as HTML
|
24949
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
24950
|
+
[1m[35mEmployeeWithCustomViewReport (0.3ms)[0m SELECT * FROM employees WHERE suspended = true
|
24951
|
+
Completed 200 OK in 6ms (Views: 2.7ms | ActiveRecord: 0.3ms)
|
24952
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:04:33 -0500
|
24953
|
+
Processing by Dossier::ReportsController#show as HTML
|
24954
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
24955
|
+
[1m[36mEmployeeWithCustomClientReport (0.4ms)[0m [1mSELECT * FROM `employees`[0m
|
24956
|
+
Completed 200 OK in 35ms (Views: 3.2ms | ActiveRecord: 0.0ms)
|
24957
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
24958
|
+
ORDER BY name ASC
|
24959
|
+
Connecting to database specified by database.yml
|
24960
|
+
[1m[36mFACTORY (0.1ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
24961
|
+
[1m[35mFACTORY (1.1ms)[0m DROP TABLE IF EXISTS `employees`
|
24962
|
+
[1m[36mFACTORY (58.5ms)[0m [1m CREATE TABLE `employees` (
|
24963
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
24964
|
+
`name` varchar(255) NOT NULL,
|
24965
|
+
`division` varchar(255) NOT NULL,
|
24966
|
+
`salary` int(11) NOT NULL,
|
24967
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
24968
|
+
`hired_on` date NOT NULL,
|
24969
|
+
PRIMARY KEY (`id`)
|
24970
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
24971
|
+
[0m
|
24972
|
+
[1m[35mFACTORY (1.1ms)[0m TRUNCATE `employees`
|
24973
|
+
[1m[36mFACTORY (0.7ms)[0m [1m INSERT INTO
|
24974
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24975
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
24976
|
+
[0m
|
24977
|
+
[1m[35mFACTORY (0.4ms)[0m INSERT INTO
|
24978
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24979
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
24980
|
+
|
24981
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
24982
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24983
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
24984
|
+
[0m
|
24985
|
+
[1m[35mFACTORY (2.1ms)[0m DROP TABLE IF EXISTS `employees`
|
24986
|
+
[1m[36mFACTORY (1.2ms)[0m [1m CREATE TABLE `employees` (
|
24987
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
24988
|
+
`name` TEXT NOT NULL,
|
24989
|
+
`division` TEXT NOT NULL,
|
24990
|
+
`salary` INTEGER NOT NULL,
|
24991
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
24992
|
+
`hired_on` DATE NOT NULL
|
24993
|
+
);
|
24994
|
+
[0m
|
24995
|
+
[1m[35mFACTORY (0.9ms)[0m DELETE FROM `employees`
|
24996
|
+
[1m[36mFACTORY (0.9ms)[0m [1m INSERT INTO
|
24997
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
24998
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
24999
|
+
[0m
|
25000
|
+
[1m[35mFACTORY (1.0ms)[0m INSERT INTO
|
25001
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25002
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
25003
|
+
|
25004
|
+
[1m[36mFACTORY (1.1ms)[0m [1m INSERT INTO
|
25005
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25006
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
25007
|
+
[0m
|
25008
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:06:39 -0500
|
25009
|
+
Processing by Dossier::ReportsController#show as HTML
|
25010
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
25011
|
+
[1m[35mEmployeeWithCustomViewReport (0.3ms)[0m SELECT * FROM employees WHERE suspended = true
|
25012
|
+
Rendered dossier/reports/employee_with_custom_view.html.haml within layouts/application (0.9ms)
|
25013
|
+
Completed 200 OK in 17ms (Views: 11.7ms | ActiveRecord: 0.3ms)
|
25014
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:06:39 -0500
|
25015
|
+
Processing by Dossier::ReportsController#show as HTML
|
25016
|
+
Parameters: {"report"=>"employee"}
|
25017
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
25018
|
+
ORDER BY name ASC[0m
|
25019
|
+
Completed 200 OK in 15ms (Views: 10.2ms | ActiveRecord: 0.0ms)
|
25020
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:06:39 -0500
|
25021
|
+
Processing by Dossier::ReportsController#show as HTML
|
25022
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
25023
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
25024
|
+
ORDER BY name ASC
|
25025
|
+
Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.0ms)
|
25026
|
+
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-01-22 16:06:39 -0500
|
25027
|
+
Processing by Dossier::ReportsController#show as HTML
|
25028
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
25029
|
+
[1m[36mEmployeeReport (0.6ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
25030
|
+
AND division in (('Tedious Toiling'))
|
25031
|
+
AND salary > 10000
|
25032
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
25033
|
+
ORDER BY name DESC[0m
|
25034
|
+
Completed 200 OK in 11ms (Views: 2.9ms | ActiveRecord: 0.0ms)
|
25035
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:06:39 -0500
|
25036
|
+
Processing by Dossier::ReportsController#show as CSV
|
25037
|
+
Parameters: {"report"=>"employee"}
|
25038
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
25039
|
+
ORDER BY name ASC
|
25040
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.3ms)
|
25041
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
25042
|
+
ORDER BY name ASC[0m
|
25043
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:06:39 -0500
|
25044
|
+
Processing by Dossier::ReportsController#show as HTML
|
25045
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
25046
|
+
[1m[35mEmployeeWithCustomClientReport (0.4ms)[0m SELECT * FROM `employees`
|
25047
|
+
Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.0ms)
|
25048
|
+
Connecting to database specified by database.yml
|
25049
|
+
[1m[36mFACTORY (0.1ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
25050
|
+
[1m[35mFACTORY (0.9ms)[0m DROP TABLE IF EXISTS `employees`
|
25051
|
+
[1m[36mFACTORY (55.3ms)[0m [1m CREATE TABLE `employees` (
|
25052
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
25053
|
+
`name` varchar(255) NOT NULL,
|
25054
|
+
`division` varchar(255) NOT NULL,
|
25055
|
+
`salary` int(11) NOT NULL,
|
25056
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
25057
|
+
`hired_on` date NOT NULL,
|
25058
|
+
PRIMARY KEY (`id`)
|
25059
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
25060
|
+
[0m
|
25061
|
+
[1m[35mFACTORY (1.1ms)[0m TRUNCATE `employees`
|
25062
|
+
[1m[36mFACTORY (0.4ms)[0m [1m INSERT INTO
|
25063
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25064
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
25065
|
+
[0m
|
25066
|
+
[1m[35mFACTORY (0.5ms)[0m INSERT INTO
|
25067
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25068
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
25069
|
+
|
25070
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
25071
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25072
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
25073
|
+
[0m
|
25074
|
+
[1m[35mFACTORY (1.9ms)[0m DROP TABLE IF EXISTS `employees`
|
25075
|
+
[1m[36mFACTORY (1.4ms)[0m [1m CREATE TABLE `employees` (
|
25076
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
25077
|
+
`name` TEXT NOT NULL,
|
25078
|
+
`division` TEXT NOT NULL,
|
25079
|
+
`salary` INTEGER NOT NULL,
|
25080
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
25081
|
+
`hired_on` DATE NOT NULL
|
25082
|
+
);
|
25083
|
+
[0m
|
25084
|
+
[1m[35mFACTORY (1.0ms)[0m DELETE FROM `employees`
|
25085
|
+
[1m[36mFACTORY (1.0ms)[0m [1m INSERT INTO
|
25086
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25087
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
25088
|
+
[0m
|
25089
|
+
[1m[35mFACTORY (1.0ms)[0m INSERT INTO
|
25090
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25091
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
25092
|
+
|
25093
|
+
[1m[36mFACTORY (1.3ms)[0m [1m INSERT INTO
|
25094
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25095
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
25096
|
+
[0m
|
25097
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:07:49 -0500
|
25098
|
+
Processing by Dossier::ReportsController#show as HTML
|
25099
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
25100
|
+
[1m[35mEmployeeWithCustomViewReport (0.3ms)[0m SELECT * FROM employees WHERE suspended = true
|
25101
|
+
Rendered dossier/reports/employee_with_custom_view.html.haml within layouts/application (0.9ms)
|
25102
|
+
Completed 200 OK in 17ms (Views: 11.7ms | ActiveRecord: 0.3ms)
|
25103
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:07:49 -0500
|
25104
|
+
Processing by Dossier::ReportsController#show as HTML
|
25105
|
+
Parameters: {"report"=>"employee"}
|
25106
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
25107
|
+
ORDER BY name ASC[0m
|
25108
|
+
Completed 200 OK in 14ms (Views: 9.2ms | ActiveRecord: 0.0ms)
|
25109
|
+
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-01-22 16:07:49 -0500
|
25110
|
+
Processing by Dossier::ReportsController#show as HTML
|
25111
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
25112
|
+
[1m[35mEmployeeReport (0.5ms)[0m SELECT * FROM employees WHERE 1=1
|
25113
|
+
AND division in (('Tedious Toiling'))
|
25114
|
+
AND salary > 10000
|
25115
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
25116
|
+
ORDER BY name DESC
|
25117
|
+
Completed 200 OK in 10ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
25118
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:07:49 -0500
|
25119
|
+
Processing by Dossier::ReportsController#show as HTML
|
25120
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
25121
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
25122
|
+
ORDER BY name ASC[0m
|
25123
|
+
Completed 200 OK in 8ms (Views: 3.2ms | ActiveRecord: 0.0ms)
|
25124
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:07:49 -0500
|
25125
|
+
Processing by Dossier::ReportsController#show as CSV
|
25126
|
+
Parameters: {"report"=>"employee"}
|
25127
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
25128
|
+
ORDER BY name ASC
|
25129
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.2ms)
|
25130
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:07:49 -0500
|
25131
|
+
Processing by Dossier::ReportsController#show as HTML
|
25132
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
25133
|
+
[1m[36mEmployeeWithCustomClientReport (0.4ms)[0m [1mSELECT * FROM `employees`[0m
|
25134
|
+
Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.0ms)
|
25135
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
25136
|
+
ORDER BY name ASC
|
25137
|
+
Connecting to database specified by database.yml
|
25138
|
+
[1m[36mFACTORY (0.2ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
25139
|
+
[1m[35mFACTORY (1.1ms)[0m DROP TABLE IF EXISTS `employees`
|
25140
|
+
[1m[36mFACTORY (48.0ms)[0m [1m CREATE TABLE `employees` (
|
25141
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
25142
|
+
`name` varchar(255) NOT NULL,
|
25143
|
+
`division` varchar(255) NOT NULL,
|
25144
|
+
`salary` int(11) NOT NULL,
|
25145
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
25146
|
+
`hired_on` date NOT NULL,
|
25147
|
+
PRIMARY KEY (`id`)
|
25148
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
25149
|
+
[0m
|
25150
|
+
[1m[35mFACTORY (0.9ms)[0m TRUNCATE `employees`
|
25151
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
25152
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25153
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
25154
|
+
[0m
|
25155
|
+
[1m[35mFACTORY (0.3ms)[0m INSERT INTO
|
25156
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25157
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
25158
|
+
|
25159
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
25160
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25161
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
25162
|
+
[0m
|
25163
|
+
[1m[35mFACTORY (1.6ms)[0m DROP TABLE IF EXISTS `employees`
|
25164
|
+
[1m[36mFACTORY (1.1ms)[0m [1m CREATE TABLE `employees` (
|
25165
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
25166
|
+
`name` TEXT NOT NULL,
|
25167
|
+
`division` TEXT NOT NULL,
|
25168
|
+
`salary` INTEGER NOT NULL,
|
25169
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
25170
|
+
`hired_on` DATE NOT NULL
|
25171
|
+
);
|
25172
|
+
[0m
|
25173
|
+
[1m[35mFACTORY (1.3ms)[0m DELETE FROM `employees`
|
25174
|
+
[1m[36mFACTORY (1.0ms)[0m [1m INSERT INTO
|
25175
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25176
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
25177
|
+
[0m
|
25178
|
+
[1m[35mFACTORY (0.9ms)[0m INSERT INTO
|
25179
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25180
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
25181
|
+
|
25182
|
+
[1m[36mFACTORY (1.3ms)[0m [1m INSERT INTO
|
25183
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25184
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
25185
|
+
[0m
|
25186
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:08:05 -0500
|
25187
|
+
Processing by Dossier::ReportsController#show as HTML
|
25188
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
25189
|
+
[1m[35mEmployeeWithCustomViewReport (0.3ms)[0m SELECT * FROM employees WHERE suspended = true
|
25190
|
+
Rendered dossier/reports/employee_with_custom_view.html.haml within layouts/application (1.0ms)
|
25191
|
+
Completed 200 OK in 17ms (Views: 11.7ms | ActiveRecord: 0.3ms)
|
25192
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:08:05 -0500
|
25193
|
+
Processing by Dossier::ReportsController#show as HTML
|
25194
|
+
Parameters: {"report"=>"employee"}
|
25195
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
25196
|
+
ORDER BY name ASC[0m
|
25197
|
+
Completed 200 OK in 14ms (Views: 9.1ms | ActiveRecord: 0.0ms)
|
25198
|
+
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-01-22 16:08:05 -0500
|
25199
|
+
Processing by Dossier::ReportsController#show as HTML
|
25200
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
25201
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
25202
|
+
AND division in (('Tedious Toiling'))
|
25203
|
+
AND salary > 10000
|
25204
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
25205
|
+
ORDER BY name DESC
|
25206
|
+
Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
25207
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:08:05 -0500
|
25208
|
+
Processing by Dossier::ReportsController#show as HTML
|
25209
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
25210
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
25211
|
+
ORDER BY name ASC[0m
|
25212
|
+
Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.0ms)
|
25213
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:08:05 -0500
|
25214
|
+
Processing by Dossier::ReportsController#show as CSV
|
25215
|
+
Parameters: {"report"=>"employee"}
|
25216
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
25217
|
+
ORDER BY name ASC
|
25218
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.2ms)
|
25219
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:08:05 -0500
|
25220
|
+
Processing by Dossier::ReportsController#show as HTML
|
25221
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
25222
|
+
[1m[36mEmployeeWithCustomClientReport (0.3ms)[0m [1mSELECT * FROM `employees`[0m
|
25223
|
+
Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.0ms)
|
25224
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
25225
|
+
ORDER BY name ASC
|
25226
|
+
Connecting to database specified by database.yml
|
25227
|
+
[1m[36mFACTORY (0.2ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
25228
|
+
[1m[35mFACTORY (1.2ms)[0m DROP TABLE IF EXISTS `employees`
|
25229
|
+
[1m[36mFACTORY (90.2ms)[0m [1m CREATE TABLE `employees` (
|
25230
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
25231
|
+
`name` varchar(255) NOT NULL,
|
25232
|
+
`division` varchar(255) NOT NULL,
|
25233
|
+
`salary` int(11) NOT NULL,
|
25234
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
25235
|
+
`hired_on` date NOT NULL,
|
25236
|
+
PRIMARY KEY (`id`)
|
25237
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
25238
|
+
[0m
|
25239
|
+
[1m[35mFACTORY (209.7ms)[0m TRUNCATE `employees`
|
25240
|
+
[1m[36mFACTORY (0.6ms)[0m [1m INSERT INTO
|
25241
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25242
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
25243
|
+
[0m
|
25244
|
+
[1m[35mFACTORY (0.3ms)[0m INSERT INTO
|
25245
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25246
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
25247
|
+
|
25248
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
25249
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25250
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
25251
|
+
[0m
|
25252
|
+
[1m[35mFACTORY (1.9ms)[0m DROP TABLE IF EXISTS `employees`
|
25253
|
+
[1m[36mFACTORY (1.1ms)[0m [1m CREATE TABLE `employees` (
|
25254
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
25255
|
+
`name` TEXT NOT NULL,
|
25256
|
+
`division` TEXT NOT NULL,
|
25257
|
+
`salary` INTEGER NOT NULL,
|
25258
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
25259
|
+
`hired_on` DATE NOT NULL
|
25260
|
+
);
|
25261
|
+
[0m
|
25262
|
+
[1m[35mFACTORY (0.9ms)[0m DELETE FROM `employees`
|
25263
|
+
[1m[36mFACTORY (1.0ms)[0m [1m INSERT INTO
|
25264
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25265
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
25266
|
+
[0m
|
25267
|
+
[1m[35mFACTORY (0.9ms)[0m INSERT INTO
|
25268
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25269
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
25270
|
+
|
25271
|
+
[1m[36mFACTORY (1.0ms)[0m [1m INSERT INTO
|
25272
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25273
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
25274
|
+
[0m
|
25275
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:08:23 -0500
|
25276
|
+
Processing by Dossier::ReportsController#show as HTML
|
25277
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
25278
|
+
[1m[35mEmployeeWithCustomClientReport (1.7ms)[0m SELECT * FROM `employees`
|
25279
|
+
Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (3.8ms)
|
25280
|
+
Completed 200 OK in 18ms (Views: 7.0ms | ActiveRecord: 0.0ms)
|
25281
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:08:23 -0500
|
25282
|
+
Processing by Dossier::ReportsController#show as HTML
|
25283
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
25284
|
+
[1m[36mEmployeeWithCustomViewReport (0.3ms)[0m [1mSELECT * FROM employees WHERE suspended = true[0m
|
25285
|
+
Completed 200 OK in 6ms (Views: 2.5ms | ActiveRecord: 0.3ms)
|
25286
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:08:23 -0500
|
25287
|
+
Processing by Dossier::ReportsController#show as HTML
|
25288
|
+
Parameters: {"report"=>"employee"}
|
25289
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
25290
|
+
ORDER BY name ASC
|
25291
|
+
Completed 200 OK in 11ms (Views: 6.4ms | ActiveRecord: 0.0ms)
|
25292
|
+
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-01-22 16:08:23 -0500
|
25293
|
+
Processing by Dossier::ReportsController#show as HTML
|
25294
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
25295
|
+
[1m[36mEmployeeReport (0.4ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
25296
|
+
AND division in (('Tedious Toiling'))
|
25297
|
+
AND salary > 10000
|
25298
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
25299
|
+
ORDER BY name DESC[0m
|
25300
|
+
Completed 200 OK in 11ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
25301
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:08:23 -0500
|
25302
|
+
Processing by Dossier::ReportsController#show as HTML
|
25303
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
25304
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
25305
|
+
ORDER BY name ASC
|
25306
|
+
Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
25307
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:08:23 -0500
|
25308
|
+
Processing by Dossier::ReportsController#show as CSV
|
25309
|
+
Parameters: {"report"=>"employee"}
|
25310
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
25311
|
+
ORDER BY name ASC[0m
|
25312
|
+
Completed 200 OK in 5ms (ActiveRecord: 0.3ms)
|
25313
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
25314
|
+
ORDER BY name ASC
|
25315
|
+
Connecting to database specified by database.yml
|
25316
|
+
[1m[36mFACTORY (0.2ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
25317
|
+
[1m[35mFACTORY (1.2ms)[0m DROP TABLE IF EXISTS `employees`
|
25318
|
+
[1m[36mFACTORY (100.3ms)[0m [1m CREATE TABLE `employees` (
|
25319
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
25320
|
+
`name` varchar(255) NOT NULL,
|
25321
|
+
`division` varchar(255) NOT NULL,
|
25322
|
+
`salary` int(11) NOT NULL,
|
25323
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
25324
|
+
`hired_on` date NOT NULL,
|
25325
|
+
PRIMARY KEY (`id`)
|
25326
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
25327
|
+
[0m
|
25328
|
+
[1m[35mFACTORY (1.5ms)[0m TRUNCATE `employees`
|
25329
|
+
[1m[36mFACTORY (0.5ms)[0m [1m INSERT INTO
|
25330
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25331
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
25332
|
+
[0m
|
25333
|
+
[1m[35mFACTORY (0.3ms)[0m INSERT INTO
|
25334
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25335
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
25336
|
+
|
25337
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
25338
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25339
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
25340
|
+
[0m
|
25341
|
+
[1m[35mFACTORY (362.5ms)[0m DROP TABLE IF EXISTS `employees`
|
25342
|
+
[1m[36mFACTORY (46.6ms)[0m [1m CREATE TABLE `employees` (
|
25343
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
25344
|
+
`name` TEXT NOT NULL,
|
25345
|
+
`division` TEXT NOT NULL,
|
25346
|
+
`salary` INTEGER NOT NULL,
|
25347
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
25348
|
+
`hired_on` DATE NOT NULL
|
25349
|
+
);
|
25350
|
+
[0m
|
25351
|
+
[1m[35mFACTORY (2.8ms)[0m DELETE FROM `employees`
|
25352
|
+
[1m[36mFACTORY (1.1ms)[0m [1m INSERT INTO
|
25353
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25354
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
25355
|
+
[0m
|
25356
|
+
[1m[35mFACTORY (1.0ms)[0m INSERT INTO
|
25357
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25358
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
25359
|
+
|
25360
|
+
[1m[36mFACTORY (0.9ms)[0m [1m INSERT INTO
|
25361
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25362
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
25363
|
+
[0m
|
25364
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:08:41 -0500
|
25365
|
+
Processing by Dossier::ReportsController#show as HTML
|
25366
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
25367
|
+
[1m[35mEmployeeWithCustomClientReport (1.7ms)[0m SELECT * FROM `employees`
|
25368
|
+
Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (4.2ms)
|
25369
|
+
Completed 200 OK in 19ms (Views: 7.7ms | ActiveRecord: 0.0ms)
|
25370
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:08:41 -0500
|
25371
|
+
Processing by Dossier::ReportsController#show as HTML
|
25372
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
25373
|
+
[1m[36mEmployeeWithCustomViewReport (0.3ms)[0m [1mSELECT * FROM employees WHERE suspended = true[0m
|
25374
|
+
Completed 200 OK in 7ms (Views: 2.6ms | ActiveRecord: 0.3ms)
|
25375
|
+
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-01-22 16:08:41 -0500
|
25376
|
+
Processing by Dossier::ReportsController#show as HTML
|
25377
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
25378
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
25379
|
+
AND division in (('Tedious Toiling'))
|
25380
|
+
AND salary > 10000
|
25381
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
25382
|
+
ORDER BY name DESC
|
25383
|
+
Completed 200 OK in 41ms (Views: 35.9ms | ActiveRecord: 0.0ms)
|
25384
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:08:41 -0500
|
25385
|
+
Processing by Dossier::ReportsController#show as HTML
|
25386
|
+
Parameters: {"report"=>"employee"}
|
25387
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
25388
|
+
ORDER BY name ASC[0m
|
25389
|
+
Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
25390
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:08:41 -0500
|
25391
|
+
Processing by Dossier::ReportsController#show as HTML
|
25392
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
25393
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
25394
|
+
ORDER BY name ASC
|
25395
|
+
Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
25396
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:08:41 -0500
|
25397
|
+
Processing by Dossier::ReportsController#show as CSV
|
25398
|
+
Parameters: {"report"=>"employee"}
|
25399
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
25400
|
+
ORDER BY name ASC[0m
|
25401
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
|
25402
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
25403
|
+
ORDER BY name ASC
|
25404
|
+
Connecting to database specified by database.yml
|
25405
|
+
[1m[36mFACTORY (0.1ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
25406
|
+
[1m[35mFACTORY (1.6ms)[0m DROP TABLE IF EXISTS `employees`
|
25407
|
+
[1m[36mFACTORY (102.2ms)[0m [1m CREATE TABLE `employees` (
|
25408
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
25409
|
+
`name` varchar(255) NOT NULL,
|
25410
|
+
`division` varchar(255) NOT NULL,
|
25411
|
+
`salary` int(11) NOT NULL,
|
25412
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
25413
|
+
`hired_on` date NOT NULL,
|
25414
|
+
PRIMARY KEY (`id`)
|
25415
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
25416
|
+
[0m
|
25417
|
+
[1m[35mFACTORY (14.8ms)[0m TRUNCATE `employees`
|
25418
|
+
[1m[36mFACTORY (0.5ms)[0m [1m INSERT INTO
|
25419
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25420
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
25421
|
+
[0m
|
25422
|
+
[1m[35mFACTORY (0.6ms)[0m INSERT INTO
|
25423
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25424
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
25425
|
+
|
25426
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
25427
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25428
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
25429
|
+
[0m
|
25430
|
+
[1m[35mFACTORY (1.8ms)[0m DROP TABLE IF EXISTS `employees`
|
25431
|
+
[1m[36mFACTORY (1.1ms)[0m [1m CREATE TABLE `employees` (
|
25432
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
25433
|
+
`name` TEXT NOT NULL,
|
25434
|
+
`division` TEXT NOT NULL,
|
25435
|
+
`salary` INTEGER NOT NULL,
|
25436
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
25437
|
+
`hired_on` DATE NOT NULL
|
25438
|
+
);
|
25439
|
+
[0m
|
25440
|
+
[1m[35mFACTORY (1.0ms)[0m DELETE FROM `employees`
|
25441
|
+
[1m[36mFACTORY (0.9ms)[0m [1m INSERT INTO
|
25442
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25443
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
25444
|
+
[0m
|
25445
|
+
[1m[35mFACTORY (1.1ms)[0m INSERT INTO
|
25446
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25447
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
25448
|
+
|
25449
|
+
[1m[36mFACTORY (8.2ms)[0m [1m INSERT INTO
|
25450
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25451
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
25452
|
+
[0m
|
25453
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:10:42 -0500
|
25454
|
+
Processing by Dossier::ReportsController#show as CSV
|
25455
|
+
Parameters: {"report"=>"employee"}
|
25456
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
25457
|
+
ORDER BY name ASC
|
25458
|
+
Completed 200 OK in 5ms (ActiveRecord: 0.3ms)
|
25459
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:10:42 -0500
|
25460
|
+
Processing by Dossier::ReportsController#show as HTML
|
25461
|
+
Parameters: {"report"=>"employee"}
|
25462
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
25463
|
+
ORDER BY name ASC[0m
|
25464
|
+
Completed 200 OK in 23ms (Views: 10.8ms | ActiveRecord: 0.0ms)
|
25465
|
+
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-01-22 16:10:42 -0500
|
25466
|
+
Processing by Dossier::ReportsController#show as HTML
|
25467
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
25468
|
+
[1m[35mEmployeeReport (0.5ms)[0m SELECT * FROM employees WHERE 1=1
|
25469
|
+
AND division in (('Tedious Toiling'))
|
25470
|
+
AND salary > 10000
|
25471
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
25472
|
+
ORDER BY name DESC
|
25473
|
+
Completed 200 OK in 12ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
25474
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:10:42 -0500
|
25475
|
+
Processing by Dossier::ReportsController#show as HTML
|
25476
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
25477
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
25478
|
+
ORDER BY name ASC[0m
|
25479
|
+
Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.0ms)
|
25480
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:10:42 -0500
|
25481
|
+
Processing by Dossier::ReportsController#show as HTML
|
25482
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
25483
|
+
[1m[35mEmployeeWithCustomViewReport (0.2ms)[0m SELECT * FROM employees WHERE suspended = true
|
25484
|
+
Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.2ms)
|
25485
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
25486
|
+
ORDER BY name ASC[0m
|
25487
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:10:42 -0500
|
25488
|
+
Processing by Dossier::ReportsController#show as HTML
|
25489
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
25490
|
+
[1m[35mEmployeeWithCustomClientReport (0.3ms)[0m SELECT * FROM `employees`
|
25491
|
+
Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.0ms)
|
25492
|
+
Connecting to database specified by database.yml
|
25493
|
+
[1m[36mFACTORY (0.1ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
25494
|
+
[1m[35mFACTORY (1.1ms)[0m DROP TABLE IF EXISTS `employees`
|
25495
|
+
[1m[36mFACTORY (52.8ms)[0m [1m CREATE TABLE `employees` (
|
25496
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
25497
|
+
`name` varchar(255) NOT NULL,
|
25498
|
+
`division` varchar(255) NOT NULL,
|
25499
|
+
`salary` int(11) NOT NULL,
|
25500
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
25501
|
+
`hired_on` date NOT NULL,
|
25502
|
+
PRIMARY KEY (`id`)
|
25503
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
25504
|
+
[0m
|
25505
|
+
[1m[35mFACTORY (1.3ms)[0m TRUNCATE `employees`
|
25506
|
+
[1m[36mFACTORY (0.5ms)[0m [1m INSERT INTO
|
25507
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25508
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
25509
|
+
[0m
|
25510
|
+
[1m[35mFACTORY (0.3ms)[0m INSERT INTO
|
25511
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25512
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
25513
|
+
|
25514
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
25515
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25516
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
25517
|
+
[0m
|
25518
|
+
[1m[35mFACTORY (2.4ms)[0m DROP TABLE IF EXISTS `employees`
|
25519
|
+
[1m[36mFACTORY (1.2ms)[0m [1m CREATE TABLE `employees` (
|
25520
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
25521
|
+
`name` TEXT NOT NULL,
|
25522
|
+
`division` TEXT NOT NULL,
|
25523
|
+
`salary` INTEGER NOT NULL,
|
25524
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
25525
|
+
`hired_on` DATE NOT NULL
|
25526
|
+
);
|
25527
|
+
[0m
|
25528
|
+
[1m[35mFACTORY (1.0ms)[0m DELETE FROM `employees`
|
25529
|
+
[1m[36mFACTORY (1.2ms)[0m [1m INSERT INTO
|
25530
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25531
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
25532
|
+
[0m
|
25533
|
+
[1m[35mFACTORY (1.3ms)[0m INSERT INTO
|
25534
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25535
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
25536
|
+
|
25537
|
+
[1m[36mFACTORY (1.1ms)[0m [1m INSERT INTO
|
25538
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25539
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
25540
|
+
[0m
|
25541
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:10:50 -0500
|
25542
|
+
Processing by Dossier::ReportsController#show as HTML
|
25543
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
25544
|
+
[1m[35mEmployeeWithCustomClientReport (1.7ms)[0m SELECT * FROM `employees`
|
25545
|
+
Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (3.9ms)
|
25546
|
+
Completed 200 OK in 45ms (Views: 7.2ms | ActiveRecord: 0.0ms)
|
25547
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:10:51 -0500
|
25548
|
+
Processing by Dossier::ReportsController#show as HTML
|
25549
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
25550
|
+
[1m[36mEmployeeWithCustomViewReport (0.3ms)[0m [1mSELECT * FROM employees WHERE suspended = true[0m
|
25551
|
+
Completed 200 OK in 7ms (Views: 2.6ms | ActiveRecord: 0.3ms)
|
25552
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:10:51 -0500
|
25553
|
+
Processing by Dossier::ReportsController#show as HTML
|
25554
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
25555
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
25556
|
+
ORDER BY name ASC
|
25557
|
+
Completed 200 OK in 11ms (Views: 6.4ms | ActiveRecord: 0.0ms)
|
25558
|
+
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-01-22 16:10:51 -0500
|
25559
|
+
Processing by Dossier::ReportsController#show as HTML
|
25560
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
25561
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
25562
|
+
AND division in (('Tedious Toiling'))
|
25563
|
+
AND salary > 10000
|
25564
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
25565
|
+
ORDER BY name DESC[0m
|
25566
|
+
Completed 200 OK in 37ms (Views: 31.9ms | ActiveRecord: 0.0ms)
|
25567
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:10:51 -0500
|
25568
|
+
Processing by Dossier::ReportsController#show as HTML
|
25569
|
+
Parameters: {"report"=>"employee"}
|
25570
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
25571
|
+
ORDER BY name ASC
|
25572
|
+
Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
25573
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:10:51 -0500
|
25574
|
+
Processing by Dossier::ReportsController#show as CSV
|
25575
|
+
Parameters: {"report"=>"employee"}
|
25576
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
25577
|
+
ORDER BY name ASC[0m
|
25578
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
|
25579
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
25580
|
+
ORDER BY name ASC
|
25581
|
+
Connecting to database specified by database.yml
|
25582
|
+
[1m[36mFACTORY (0.2ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
25583
|
+
[1m[35mFACTORY (1.0ms)[0m DROP TABLE IF EXISTS `employees`
|
25584
|
+
[1m[36mFACTORY (47.3ms)[0m [1m CREATE TABLE `employees` (
|
25585
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
25586
|
+
`name` varchar(255) NOT NULL,
|
25587
|
+
`division` varchar(255) NOT NULL,
|
25588
|
+
`salary` int(11) NOT NULL,
|
25589
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
25590
|
+
`hired_on` date NOT NULL,
|
25591
|
+
PRIMARY KEY (`id`)
|
25592
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
25593
|
+
[0m
|
25594
|
+
[1m[35mFACTORY (1.3ms)[0m TRUNCATE `employees`
|
25595
|
+
[1m[36mFACTORY (0.8ms)[0m [1m INSERT INTO
|
25596
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25597
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
25598
|
+
[0m
|
25599
|
+
[1m[35mFACTORY (0.4ms)[0m INSERT INTO
|
25600
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25601
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
25602
|
+
|
25603
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
25604
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25605
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
25606
|
+
[0m
|
25607
|
+
[1m[35mFACTORY (2.2ms)[0m DROP TABLE IF EXISTS `employees`
|
25608
|
+
[1m[36mFACTORY (1.3ms)[0m [1m CREATE TABLE `employees` (
|
25609
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
25610
|
+
`name` TEXT NOT NULL,
|
25611
|
+
`division` TEXT NOT NULL,
|
25612
|
+
`salary` INTEGER NOT NULL,
|
25613
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
25614
|
+
`hired_on` DATE NOT NULL
|
25615
|
+
);
|
25616
|
+
[0m
|
25617
|
+
[1m[35mFACTORY (1.0ms)[0m DELETE FROM `employees`
|
25618
|
+
[1m[36mFACTORY (1.1ms)[0m [1m INSERT INTO
|
25619
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25620
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
25621
|
+
[0m
|
25622
|
+
[1m[35mFACTORY (1.1ms)[0m INSERT INTO
|
25623
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25624
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
25625
|
+
|
25626
|
+
[1m[36mFACTORY (1.2ms)[0m [1m INSERT INTO
|
25627
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25628
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
25629
|
+
[0m
|
25630
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
25631
|
+
ORDER BY name ASC
|
25632
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:11:17 -0500
|
25633
|
+
Processing by Dossier::ReportsController#show as HTML
|
25634
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
25635
|
+
[1m[36mEmployeeWithCustomClientReport (0.3ms)[0m [1mSELECT * FROM `employees`[0m
|
25636
|
+
Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (3.8ms)
|
25637
|
+
Completed 200 OK in 17ms (Views: 7.2ms | ActiveRecord: 0.0ms)
|
25638
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:11:18 -0500
|
25639
|
+
Processing by Dossier::ReportsController#show as CSV
|
25640
|
+
Parameters: {"report"=>"employee"}
|
25641
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
25642
|
+
ORDER BY name ASC
|
25643
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.2ms)
|
25644
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:11:18 -0500
|
25645
|
+
Processing by Dossier::ReportsController#show as HTML
|
25646
|
+
Parameters: {"report"=>"employee"}
|
25647
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
25648
|
+
ORDER BY name ASC[0m
|
25649
|
+
Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.0ms)
|
25650
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:11:18 -0500
|
25651
|
+
Processing by Dossier::ReportsController#show as HTML
|
25652
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
25653
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
25654
|
+
ORDER BY name ASC
|
25655
|
+
Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
25656
|
+
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-01-22 16:11:18 -0500
|
25657
|
+
Processing by Dossier::ReportsController#show as HTML
|
25658
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
25659
|
+
[1m[36mEmployeeReport (0.6ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
25660
|
+
AND division in (('Tedious Toiling'))
|
25661
|
+
AND salary > 10000
|
25662
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
25663
|
+
ORDER BY name DESC[0m
|
25664
|
+
Completed 200 OK in 11ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
25665
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:11:18 -0500
|
25666
|
+
Processing by Dossier::ReportsController#show as HTML
|
25667
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
25668
|
+
[1m[35mEmployeeWithCustomViewReport (0.2ms)[0m SELECT * FROM employees WHERE suspended = true
|
25669
|
+
Completed 200 OK in 8ms (Views: 4.1ms | ActiveRecord: 0.2ms)
|
25670
|
+
Connecting to database specified by database.yml
|
25671
|
+
[1m[36mFACTORY (0.1ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
25672
|
+
[1m[35mFACTORY (0.9ms)[0m DROP TABLE IF EXISTS `employees`
|
25673
|
+
[1m[36mFACTORY (90.2ms)[0m [1m CREATE TABLE `employees` (
|
25674
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
25675
|
+
`name` varchar(255) NOT NULL,
|
25676
|
+
`division` varchar(255) NOT NULL,
|
25677
|
+
`salary` int(11) NOT NULL,
|
25678
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
25679
|
+
`hired_on` date NOT NULL,
|
25680
|
+
PRIMARY KEY (`id`)
|
25681
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
25682
|
+
[0m
|
25683
|
+
[1m[35mFACTORY (1.1ms)[0m TRUNCATE `employees`
|
25684
|
+
[1m[36mFACTORY (0.4ms)[0m [1m INSERT INTO
|
25685
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25686
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
25687
|
+
[0m
|
25688
|
+
[1m[35mFACTORY (0.3ms)[0m INSERT INTO
|
25689
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25690
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
25691
|
+
|
25692
|
+
[1m[36mFACTORY (0.2ms)[0m [1m INSERT INTO
|
25693
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25694
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
25695
|
+
[0m
|
25696
|
+
[1m[35mFACTORY (2.0ms)[0m DROP TABLE IF EXISTS `employees`
|
25697
|
+
[1m[36mFACTORY (1.2ms)[0m [1m CREATE TABLE `employees` (
|
25698
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
25699
|
+
`name` TEXT NOT NULL,
|
25700
|
+
`division` TEXT NOT NULL,
|
25701
|
+
`salary` INTEGER NOT NULL,
|
25702
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
25703
|
+
`hired_on` DATE NOT NULL
|
25704
|
+
);
|
25705
|
+
[0m
|
25706
|
+
[1m[35mFACTORY (0.9ms)[0m DELETE FROM `employees`
|
25707
|
+
[1m[36mFACTORY (1.4ms)[0m [1m INSERT INTO
|
25708
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25709
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
25710
|
+
[0m
|
25711
|
+
[1m[35mFACTORY (1.1ms)[0m INSERT INTO
|
25712
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25713
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
25714
|
+
|
25715
|
+
[1m[36mFACTORY (1.0ms)[0m [1m INSERT INTO
|
25716
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25717
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
25718
|
+
[0m
|
25719
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:11:27 -0500
|
25720
|
+
Processing by Dossier::ReportsController#show as CSV
|
25721
|
+
Parameters: {"report"=>"employee"}
|
25722
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
25723
|
+
ORDER BY name ASC
|
25724
|
+
Completed 200 OK in 5ms (ActiveRecord: 0.3ms)
|
25725
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:11:27 -0500
|
25726
|
+
Processing by Dossier::ReportsController#show as HTML
|
25727
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
25728
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
25729
|
+
ORDER BY name ASC[0m
|
25730
|
+
Completed 200 OK in 24ms (Views: 11.0ms | ActiveRecord: 0.0ms)
|
25731
|
+
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-01-22 16:11:27 -0500
|
25732
|
+
Processing by Dossier::ReportsController#show as HTML
|
25733
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
25734
|
+
[1m[35mEmployeeReport (0.6ms)[0m SELECT * FROM employees WHERE 1=1
|
25735
|
+
AND division in (('Tedious Toiling'))
|
25736
|
+
AND salary > 10000
|
25737
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
25738
|
+
ORDER BY name DESC
|
25739
|
+
Completed 200 OK in 11ms (Views: 2.9ms | ActiveRecord: 0.0ms)
|
25740
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:11:27 -0500
|
25741
|
+
Processing by Dossier::ReportsController#show as HTML
|
25742
|
+
Parameters: {"report"=>"employee"}
|
25743
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
25744
|
+
ORDER BY name ASC[0m
|
25745
|
+
Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.0ms)
|
25746
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:11:27 -0500
|
25747
|
+
Processing by Dossier::ReportsController#show as HTML
|
25748
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
25749
|
+
[1m[35mEmployeeWithCustomViewReport (0.2ms)[0m SELECT * FROM employees WHERE suspended = true
|
25750
|
+
Completed 200 OK in 6ms (Views: 2.5ms | ActiveRecord: 0.2ms)
|
25751
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
25752
|
+
ORDER BY name ASC[0m
|
25753
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:11:28 -0500
|
25754
|
+
Processing by Dossier::ReportsController#show as HTML
|
25755
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
25756
|
+
[1m[35mEmployeeWithCustomClientReport (0.3ms)[0m SELECT * FROM `employees`
|
25757
|
+
Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.0ms)
|
25758
|
+
Connecting to database specified by database.yml
|
25759
|
+
[1m[36mFACTORY (0.2ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
25760
|
+
[1m[35mFACTORY (1.3ms)[0m DROP TABLE IF EXISTS `employees`
|
25761
|
+
[1m[36mFACTORY (51.1ms)[0m [1m CREATE TABLE `employees` (
|
25762
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
25763
|
+
`name` varchar(255) NOT NULL,
|
25764
|
+
`division` varchar(255) NOT NULL,
|
25765
|
+
`salary` int(11) NOT NULL,
|
25766
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
25767
|
+
`hired_on` date NOT NULL,
|
25768
|
+
PRIMARY KEY (`id`)
|
25769
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
25770
|
+
[0m
|
25771
|
+
[1m[35mFACTORY (1.3ms)[0m TRUNCATE `employees`
|
25772
|
+
[1m[36mFACTORY (0.8ms)[0m [1m INSERT INTO
|
25773
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25774
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
25775
|
+
[0m
|
25776
|
+
[1m[35mFACTORY (0.5ms)[0m INSERT INTO
|
25777
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25778
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
25779
|
+
|
25780
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
25781
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25782
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
25783
|
+
[0m
|
25784
|
+
[1m[35mFACTORY (2.1ms)[0m DROP TABLE IF EXISTS `employees`
|
25785
|
+
[1m[36mFACTORY (1.3ms)[0m [1m CREATE TABLE `employees` (
|
25786
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
25787
|
+
`name` TEXT NOT NULL,
|
25788
|
+
`division` TEXT NOT NULL,
|
25789
|
+
`salary` INTEGER NOT NULL,
|
25790
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
25791
|
+
`hired_on` DATE NOT NULL
|
25792
|
+
);
|
25793
|
+
[0m
|
25794
|
+
[1m[35mFACTORY (0.8ms)[0m DELETE FROM `employees`
|
25795
|
+
[1m[36mFACTORY (1.0ms)[0m [1m INSERT INTO
|
25796
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25797
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
25798
|
+
[0m
|
25799
|
+
[1m[35mFACTORY (1.1ms)[0m INSERT INTO
|
25800
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25801
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
25802
|
+
|
25803
|
+
[1m[36mFACTORY (1.1ms)[0m [1m INSERT INTO
|
25804
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25805
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
25806
|
+
[0m
|
25807
|
+
[1m[35mEmployeeReport (0.4ms)[0m SELECT * FROM employees WHERE 1=1
|
25808
|
+
ORDER BY name ASC
|
25809
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:11:33 -0500
|
25810
|
+
Processing by Dossier::ReportsController#show as CSV
|
25811
|
+
Parameters: {"report"=>"employee"}
|
25812
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
25813
|
+
ORDER BY name ASC[0m
|
25814
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.2ms)
|
25815
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:11:33 -0500
|
25816
|
+
Processing by Dossier::ReportsController#show as HTML
|
25817
|
+
Parameters: {"report"=>"employee"}
|
25818
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
25819
|
+
ORDER BY name ASC
|
25820
|
+
Completed 200 OK in 53ms (Views: 12.4ms | ActiveRecord: 0.0ms)
|
25821
|
+
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-01-22 16:11:33 -0500
|
25822
|
+
Processing by Dossier::ReportsController#show as HTML
|
25823
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
25824
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
25825
|
+
AND division in (('Tedious Toiling'))
|
25826
|
+
AND salary > 10000
|
25827
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
25828
|
+
ORDER BY name DESC[0m
|
25829
|
+
Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 0.0ms)
|
25830
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:11:33 -0500
|
25831
|
+
Processing by Dossier::ReportsController#show as HTML
|
25832
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
25833
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
25834
|
+
ORDER BY name ASC
|
25835
|
+
Completed 200 OK in 7ms (Views: 3.2ms | ActiveRecord: 0.0ms)
|
25836
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:11:33 -0500
|
25837
|
+
Processing by Dossier::ReportsController#show as HTML
|
25838
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
25839
|
+
[1m[36mEmployeeWithCustomViewReport (0.2ms)[0m [1mSELECT * FROM employees WHERE suspended = true[0m
|
25840
|
+
Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.2ms)
|
25841
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:11:33 -0500
|
25842
|
+
Processing by Dossier::ReportsController#show as HTML
|
25843
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
25844
|
+
[1m[35mEmployeeWithCustomClientReport (0.3ms)[0m SELECT * FROM `employees`
|
25845
|
+
Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.0ms)
|
25846
|
+
Connecting to database specified by database.yml
|
25847
|
+
[1m[36mFACTORY (0.2ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
25848
|
+
[1m[35mFACTORY (1.0ms)[0m DROP TABLE IF EXISTS `employees`
|
25849
|
+
[1m[36mFACTORY (50.0ms)[0m [1m CREATE TABLE `employees` (
|
25850
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
25851
|
+
`name` varchar(255) NOT NULL,
|
25852
|
+
`division` varchar(255) NOT NULL,
|
25853
|
+
`salary` int(11) NOT NULL,
|
25854
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
25855
|
+
`hired_on` date NOT NULL,
|
25856
|
+
PRIMARY KEY (`id`)
|
25857
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
25858
|
+
[0m
|
25859
|
+
[1m[35mFACTORY (1.1ms)[0m TRUNCATE `employees`
|
25860
|
+
[1m[36mFACTORY (0.4ms)[0m [1m INSERT INTO
|
25861
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25862
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
25863
|
+
[0m
|
25864
|
+
[1m[35mFACTORY (0.3ms)[0m INSERT INTO
|
25865
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25866
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
25867
|
+
|
25868
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
25869
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25870
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
25871
|
+
[0m
|
25872
|
+
[1m[35mFACTORY (2.0ms)[0m DROP TABLE IF EXISTS `employees`
|
25873
|
+
[1m[36mFACTORY (1.2ms)[0m [1m CREATE TABLE `employees` (
|
25874
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
25875
|
+
`name` TEXT NOT NULL,
|
25876
|
+
`division` TEXT NOT NULL,
|
25877
|
+
`salary` INTEGER NOT NULL,
|
25878
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
25879
|
+
`hired_on` DATE NOT NULL
|
25880
|
+
);
|
25881
|
+
[0m
|
25882
|
+
[1m[35mFACTORY (0.9ms)[0m DELETE FROM `employees`
|
25883
|
+
[1m[36mFACTORY (1.3ms)[0m [1m INSERT INTO
|
25884
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25885
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
25886
|
+
[0m
|
25887
|
+
[1m[35mFACTORY (1.1ms)[0m INSERT INTO
|
25888
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25889
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
25890
|
+
|
25891
|
+
[1m[36mFACTORY (1.0ms)[0m [1m INSERT INTO
|
25892
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25893
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
25894
|
+
[0m
|
25895
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
25896
|
+
ORDER BY name ASC
|
25897
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:11:40 -0500
|
25898
|
+
Processing by Dossier::ReportsController#show as HTML
|
25899
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
25900
|
+
[1m[36mEmployeeWithCustomViewReport (0.2ms)[0m [1mSELECT * FROM employees WHERE suspended = true[0m
|
25901
|
+
Rendered dossier/reports/employee_with_custom_view.html.haml within layouts/application (0.9ms)
|
25902
|
+
Completed 200 OK in 15ms (Views: 11.6ms | ActiveRecord: 0.2ms)
|
25903
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:11:40 -0500
|
25904
|
+
Processing by Dossier::ReportsController#show as HTML
|
25905
|
+
Parameters: {"report"=>"employee"}
|
25906
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
25907
|
+
ORDER BY name ASC
|
25908
|
+
Completed 200 OK in 43ms (Views: 10.9ms | ActiveRecord: 0.0ms)
|
25909
|
+
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-01-22 16:11:40 -0500
|
25910
|
+
Processing by Dossier::ReportsController#show as HTML
|
25911
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
25912
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
25913
|
+
AND division in (('Tedious Toiling'))
|
25914
|
+
AND salary > 10000
|
25915
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
25916
|
+
ORDER BY name DESC[0m
|
25917
|
+
Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
25918
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:11:40 -0500
|
25919
|
+
Processing by Dossier::ReportsController#show as HTML
|
25920
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
25921
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
25922
|
+
ORDER BY name ASC
|
25923
|
+
Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 0.0ms)
|
25924
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:11:40 -0500
|
25925
|
+
Processing by Dossier::ReportsController#show as CSV
|
25926
|
+
Parameters: {"report"=>"employee"}
|
25927
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
25928
|
+
ORDER BY name ASC[0m
|
25929
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.2ms)
|
25930
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:11:40 -0500
|
25931
|
+
Processing by Dossier::ReportsController#show as HTML
|
25932
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
25933
|
+
[1m[35mEmployeeWithCustomClientReport (0.3ms)[0m SELECT * FROM `employees`
|
25934
|
+
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.0ms)
|
25935
|
+
Connecting to database specified by database.yml
|
25936
|
+
[1m[36mFACTORY (0.2ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
25937
|
+
[1m[35mFACTORY (1.1ms)[0m DROP TABLE IF EXISTS `employees`
|
25938
|
+
[1m[36mFACTORY (85.3ms)[0m [1m CREATE TABLE `employees` (
|
25939
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
25940
|
+
`name` varchar(255) NOT NULL,
|
25941
|
+
`division` varchar(255) NOT NULL,
|
25942
|
+
`salary` int(11) NOT NULL,
|
25943
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
25944
|
+
`hired_on` date NOT NULL,
|
25945
|
+
PRIMARY KEY (`id`)
|
25946
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
25947
|
+
[0m
|
25948
|
+
[1m[35mFACTORY (1.0ms)[0m TRUNCATE `employees`
|
25949
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
25950
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25951
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
25952
|
+
[0m
|
25953
|
+
[1m[35mFACTORY (0.3ms)[0m INSERT INTO
|
25954
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25955
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
25956
|
+
|
25957
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
25958
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25959
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
25960
|
+
[0m
|
25961
|
+
[1m[35mFACTORY (1.7ms)[0m DROP TABLE IF EXISTS `employees`
|
25962
|
+
[1m[36mFACTORY (0.8ms)[0m [1m CREATE TABLE `employees` (
|
25963
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
25964
|
+
`name` TEXT NOT NULL,
|
25965
|
+
`division` TEXT NOT NULL,
|
25966
|
+
`salary` INTEGER NOT NULL,
|
25967
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
25968
|
+
`hired_on` DATE NOT NULL
|
25969
|
+
);
|
25970
|
+
[0m
|
25971
|
+
[1m[35mFACTORY (1.0ms)[0m DELETE FROM `employees`
|
25972
|
+
[1m[36mFACTORY (1.5ms)[0m [1m INSERT INTO
|
25973
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25974
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
25975
|
+
[0m
|
25976
|
+
[1m[35mFACTORY (0.8ms)[0m INSERT INTO
|
25977
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25978
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
25979
|
+
|
25980
|
+
[1m[36mFACTORY (0.8ms)[0m [1m INSERT INTO
|
25981
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
25982
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
25983
|
+
[0m
|
25984
|
+
[1m[35mEmployeeReport (0.4ms)[0m SELECT * FROM employees WHERE 1=1
|
25985
|
+
ORDER BY name ASC
|
25986
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:11:47 -0500
|
25987
|
+
Processing by Dossier::ReportsController#show as HTML
|
25988
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
25989
|
+
[1m[36mEmployeeWithCustomClientReport (0.3ms)[0m [1mSELECT * FROM `employees`[0m
|
25990
|
+
Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (4.2ms)
|
25991
|
+
Completed 200 OK in 18ms (Views: 7.8ms | ActiveRecord: 0.0ms)
|
25992
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:11:47 -0500
|
25993
|
+
Processing by Dossier::ReportsController#show as HTML
|
25994
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
25995
|
+
[1m[35mEmployeeWithCustomViewReport (0.2ms)[0m SELECT * FROM employees WHERE suspended = true
|
25996
|
+
Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.2ms)
|
25997
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:11:47 -0500
|
25998
|
+
Processing by Dossier::ReportsController#show as HTML
|
25999
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
26000
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
26001
|
+
ORDER BY name ASC[0m
|
26002
|
+
Completed 200 OK in 8ms (Views: 3.0ms | ActiveRecord: 0.0ms)
|
26003
|
+
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-01-22 16:11:47 -0500
|
26004
|
+
Processing by Dossier::ReportsController#show as HTML
|
26005
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
26006
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
26007
|
+
AND division in (('Tedious Toiling'))
|
26008
|
+
AND salary > 10000
|
26009
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
26010
|
+
ORDER BY name DESC
|
26011
|
+
Completed 200 OK in 7ms (Views: 2.7ms | ActiveRecord: 0.0ms)
|
26012
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:11:47 -0500
|
26013
|
+
Processing by Dossier::ReportsController#show as HTML
|
26014
|
+
Parameters: {"report"=>"employee"}
|
26015
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
26016
|
+
ORDER BY name ASC[0m
|
26017
|
+
Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 0.0ms)
|
26018
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:11:47 -0500
|
26019
|
+
Processing by Dossier::ReportsController#show as CSV
|
26020
|
+
Parameters: {"report"=>"employee"}
|
26021
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
26022
|
+
ORDER BY name ASC
|
26023
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.2ms)
|
26024
|
+
Connecting to database specified by database.yml
|
26025
|
+
[1m[36mFACTORY (0.1ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
26026
|
+
[1m[35mFACTORY (0.9ms)[0m DROP TABLE IF EXISTS `employees`
|
26027
|
+
[1m[36mFACTORY (65.8ms)[0m [1m CREATE TABLE `employees` (
|
26028
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
26029
|
+
`name` varchar(255) NOT NULL,
|
26030
|
+
`division` varchar(255) NOT NULL,
|
26031
|
+
`salary` int(11) NOT NULL,
|
26032
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
26033
|
+
`hired_on` date NOT NULL,
|
26034
|
+
PRIMARY KEY (`id`)
|
26035
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
26036
|
+
[0m
|
26037
|
+
[1m[35mFACTORY (0.9ms)[0m TRUNCATE `employees`
|
26038
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
26039
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26040
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
26041
|
+
[0m
|
26042
|
+
[1m[35mFACTORY (0.3ms)[0m INSERT INTO
|
26043
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26044
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
26045
|
+
|
26046
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
26047
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26048
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
26049
|
+
[0m
|
26050
|
+
[1m[35mFACTORY (2.2ms)[0m DROP TABLE IF EXISTS `employees`
|
26051
|
+
[1m[36mFACTORY (1.2ms)[0m [1m CREATE TABLE `employees` (
|
26052
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
26053
|
+
`name` TEXT NOT NULL,
|
26054
|
+
`division` TEXT NOT NULL,
|
26055
|
+
`salary` INTEGER NOT NULL,
|
26056
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
26057
|
+
`hired_on` DATE NOT NULL
|
26058
|
+
);
|
26059
|
+
[0m
|
26060
|
+
[1m[35mFACTORY (0.9ms)[0m DELETE FROM `employees`
|
26061
|
+
[1m[36mFACTORY (1.0ms)[0m [1m INSERT INTO
|
26062
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26063
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
26064
|
+
[0m
|
26065
|
+
[1m[35mFACTORY (1.1ms)[0m INSERT INTO
|
26066
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26067
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
26068
|
+
|
26069
|
+
[1m[36mFACTORY (1.5ms)[0m [1m INSERT INTO
|
26070
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26071
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
26072
|
+
[0m
|
26073
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
26074
|
+
ORDER BY name ASC
|
26075
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:13:16 -0500
|
26076
|
+
Processing by Dossier::ReportsController#show as CSV
|
26077
|
+
Parameters: {"report"=>"employee"}
|
26078
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
26079
|
+
ORDER BY name ASC[0m
|
26080
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.2ms)
|
26081
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:13:16 -0500
|
26082
|
+
Processing by Dossier::ReportsController#show as HTML
|
26083
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
26084
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
26085
|
+
ORDER BY name ASC
|
26086
|
+
Completed 200 OK in 24ms (Views: 11.2ms | ActiveRecord: 0.0ms)
|
26087
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:13:16 -0500
|
26088
|
+
Processing by Dossier::ReportsController#show as HTML
|
26089
|
+
Parameters: {"report"=>"employee"}
|
26090
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
26091
|
+
ORDER BY name ASC[0m
|
26092
|
+
Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.0ms)
|
26093
|
+
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-01-22 16:13:16 -0500
|
26094
|
+
Processing by Dossier::ReportsController#show as HTML
|
26095
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
26096
|
+
[1m[35mEmployeeReport (0.6ms)[0m SELECT * FROM employees WHERE 1=1
|
26097
|
+
AND division in (('Tedious Toiling'))
|
26098
|
+
AND salary > 10000
|
26099
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
26100
|
+
ORDER BY name DESC
|
26101
|
+
Completed 200 OK in 39ms (Views: 2.9ms | ActiveRecord: 0.0ms)
|
26102
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:13:16 -0500
|
26103
|
+
Processing by Dossier::ReportsController#show as HTML
|
26104
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
26105
|
+
[1m[36mEmployeeWithCustomViewReport (0.2ms)[0m [1mSELECT * FROM employees WHERE suspended = true[0m
|
26106
|
+
Completed 200 OK in 7ms (Views: 2.7ms | ActiveRecord: 0.2ms)
|
26107
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:13:16 -0500
|
26108
|
+
Processing by Dossier::ReportsController#show as HTML
|
26109
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
26110
|
+
[1m[35mEmployeeWithCustomClientReport (0.3ms)[0m SELECT * FROM `employees`
|
26111
|
+
Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.0ms)
|
26112
|
+
Connecting to database specified by database.yml
|
26113
|
+
[1m[36mFACTORY (0.3ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
26114
|
+
[1m[35mFACTORY (1.4ms)[0m DROP TABLE IF EXISTS `employees`
|
26115
|
+
[1m[36mFACTORY (334.4ms)[0m [1m CREATE TABLE `employees` (
|
26116
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
26117
|
+
`name` varchar(255) NOT NULL,
|
26118
|
+
`division` varchar(255) NOT NULL,
|
26119
|
+
`salary` int(11) NOT NULL,
|
26120
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
26121
|
+
`hired_on` date NOT NULL,
|
26122
|
+
PRIMARY KEY (`id`)
|
26123
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
26124
|
+
[0m
|
26125
|
+
[1m[35mFACTORY (1.0ms)[0m TRUNCATE `employees`
|
26126
|
+
[1m[36mFACTORY (0.4ms)[0m [1m INSERT INTO
|
26127
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26128
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
26129
|
+
[0m
|
26130
|
+
[1m[35mFACTORY (0.3ms)[0m INSERT INTO
|
26131
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26132
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
26133
|
+
|
26134
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
26135
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26136
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
26137
|
+
[0m
|
26138
|
+
[1m[35mFACTORY (2.1ms)[0m DROP TABLE IF EXISTS `employees`
|
26139
|
+
[1m[36mFACTORY (1.2ms)[0m [1m CREATE TABLE `employees` (
|
26140
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
26141
|
+
`name` TEXT NOT NULL,
|
26142
|
+
`division` TEXT NOT NULL,
|
26143
|
+
`salary` INTEGER NOT NULL,
|
26144
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
26145
|
+
`hired_on` DATE NOT NULL
|
26146
|
+
);
|
26147
|
+
[0m
|
26148
|
+
[1m[35mFACTORY (1.0ms)[0m DELETE FROM `employees`
|
26149
|
+
[1m[36mFACTORY (0.9ms)[0m [1m INSERT INTO
|
26150
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26151
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
26152
|
+
[0m
|
26153
|
+
[1m[35mFACTORY (1.0ms)[0m INSERT INTO
|
26154
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26155
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
26156
|
+
|
26157
|
+
[1m[36mFACTORY (0.9ms)[0m [1m INSERT INTO
|
26158
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26159
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
26160
|
+
[0m
|
26161
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:13:26 -0500
|
26162
|
+
Processing by Dossier::ReportsController#show as HTML
|
26163
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
26164
|
+
[1m[35mEmployeeWithCustomClientReport (1.6ms)[0m SELECT * FROM `employees`
|
26165
|
+
Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (5.4ms)
|
26166
|
+
Completed 200 OK in 20ms (Views: 8.8ms | ActiveRecord: 0.0ms)
|
26167
|
+
[1m[36mEmployeeReport (0.4ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
26168
|
+
ORDER BY name ASC[0m
|
26169
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:13:26 -0500
|
26170
|
+
Processing by Dossier::ReportsController#show as HTML
|
26171
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
26172
|
+
[1m[35mEmployeeWithCustomViewReport (0.2ms)[0m SELECT * FROM employees WHERE suspended = true
|
26173
|
+
Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.2ms)
|
26174
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:13:26 -0500
|
26175
|
+
Processing by Dossier::ReportsController#show as HTML
|
26176
|
+
Parameters: {"report"=>"employee"}
|
26177
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
26178
|
+
ORDER BY name ASC[0m
|
26179
|
+
Completed 200 OK in 11ms (Views: 7.0ms | ActiveRecord: 0.0ms)
|
26180
|
+
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-01-22 16:13:26 -0500
|
26181
|
+
Processing by Dossier::ReportsController#show as HTML
|
26182
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
26183
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
26184
|
+
AND division in (('Tedious Toiling'))
|
26185
|
+
AND salary > 10000
|
26186
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
26187
|
+
ORDER BY name DESC
|
26188
|
+
Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
26189
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:13:26 -0500
|
26190
|
+
Processing by Dossier::ReportsController#show as HTML
|
26191
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
26192
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
26193
|
+
ORDER BY name ASC[0m
|
26194
|
+
Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
26195
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:13:26 -0500
|
26196
|
+
Processing by Dossier::ReportsController#show as CSV
|
26197
|
+
Parameters: {"report"=>"employee"}
|
26198
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
26199
|
+
ORDER BY name ASC
|
26200
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
|
26201
|
+
Connecting to database specified by database.yml
|
26202
|
+
[1m[36mFACTORY (0.3ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
26203
|
+
[1m[35mFACTORY (1.7ms)[0m DROP TABLE IF EXISTS `employees`
|
26204
|
+
[1m[36mFACTORY (90.7ms)[0m [1m CREATE TABLE `employees` (
|
26205
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
26206
|
+
`name` varchar(255) NOT NULL,
|
26207
|
+
`division` varchar(255) NOT NULL,
|
26208
|
+
`salary` int(11) NOT NULL,
|
26209
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
26210
|
+
`hired_on` date NOT NULL,
|
26211
|
+
PRIMARY KEY (`id`)
|
26212
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
26213
|
+
[0m
|
26214
|
+
[1m[35mFACTORY (1.3ms)[0m TRUNCATE `employees`
|
26215
|
+
[1m[36mFACTORY (0.8ms)[0m [1m INSERT INTO
|
26216
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26217
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
26218
|
+
[0m
|
26219
|
+
[1m[35mFACTORY (0.4ms)[0m INSERT INTO
|
26220
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26221
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
26222
|
+
|
26223
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
26224
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26225
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
26226
|
+
[0m
|
26227
|
+
[1m[35mFACTORY (2.1ms)[0m DROP TABLE IF EXISTS `employees`
|
26228
|
+
[1m[36mFACTORY (1.2ms)[0m [1m CREATE TABLE `employees` (
|
26229
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
26230
|
+
`name` TEXT NOT NULL,
|
26231
|
+
`division` TEXT NOT NULL,
|
26232
|
+
`salary` INTEGER NOT NULL,
|
26233
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
26234
|
+
`hired_on` DATE NOT NULL
|
26235
|
+
);
|
26236
|
+
[0m
|
26237
|
+
[1m[35mFACTORY (0.9ms)[0m DELETE FROM `employees`
|
26238
|
+
[1m[36mFACTORY (1.1ms)[0m [1m INSERT INTO
|
26239
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26240
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
26241
|
+
[0m
|
26242
|
+
[1m[35mFACTORY (1.0ms)[0m INSERT INTO
|
26243
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26244
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
26245
|
+
|
26246
|
+
[1m[36mFACTORY (1.0ms)[0m [1m INSERT INTO
|
26247
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26248
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
26249
|
+
[0m
|
26250
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:13:44 -0500
|
26251
|
+
Processing by Dossier::ReportsController#show as HTML
|
26252
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
26253
|
+
[1m[35mEmployeeWithCustomClientReport (1.5ms)[0m SELECT * FROM `employees`
|
26254
|
+
Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (3.9ms)
|
26255
|
+
Completed 200 OK in 45ms (Views: 7.4ms | ActiveRecord: 0.0ms)
|
26256
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
26257
|
+
ORDER BY name ASC[0m
|
26258
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:13:44 -0500
|
26259
|
+
Processing by Dossier::ReportsController#show as HTML
|
26260
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
26261
|
+
[1m[35mEmployeeWithCustomViewReport (0.2ms)[0m SELECT * FROM employees WHERE suspended = true
|
26262
|
+
Completed 200 OK in 36ms (Views: 2.6ms | ActiveRecord: 0.2ms)
|
26263
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:13:44 -0500
|
26264
|
+
Processing by Dossier::ReportsController#show as HTML
|
26265
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
26266
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
26267
|
+
ORDER BY name ASC[0m
|
26268
|
+
Completed 200 OK in 8ms (Views: 3.1ms | ActiveRecord: 0.0ms)
|
26269
|
+
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-01-22 16:13:44 -0500
|
26270
|
+
Processing by Dossier::ReportsController#show as HTML
|
26271
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
26272
|
+
[1m[35mEmployeeReport (0.5ms)[0m SELECT * FROM employees WHERE 1=1
|
26273
|
+
AND division in (('Tedious Toiling'))
|
26274
|
+
AND salary > 10000
|
26275
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
26276
|
+
ORDER BY name DESC
|
26277
|
+
Completed 200 OK in 11ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
26278
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:13:44 -0500
|
26279
|
+
Processing by Dossier::ReportsController#show as HTML
|
26280
|
+
Parameters: {"report"=>"employee"}
|
26281
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
26282
|
+
ORDER BY name ASC[0m
|
26283
|
+
Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 0.0ms)
|
26284
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:13:44 -0500
|
26285
|
+
Processing by Dossier::ReportsController#show as CSV
|
26286
|
+
Parameters: {"report"=>"employee"}
|
26287
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
26288
|
+
ORDER BY name ASC
|
26289
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.2ms)
|
26290
|
+
Connecting to database specified by database.yml
|
26291
|
+
[1m[36mFACTORY (0.1ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
26292
|
+
[1m[35mFACTORY (0.9ms)[0m DROP TABLE IF EXISTS `employees`
|
26293
|
+
[1m[36mFACTORY (84.9ms)[0m [1m CREATE TABLE `employees` (
|
26294
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
26295
|
+
`name` varchar(255) NOT NULL,
|
26296
|
+
`division` varchar(255) NOT NULL,
|
26297
|
+
`salary` int(11) NOT NULL,
|
26298
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
26299
|
+
`hired_on` date NOT NULL,
|
26300
|
+
PRIMARY KEY (`id`)
|
26301
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
26302
|
+
[0m
|
26303
|
+
[1m[35mFACTORY (1.1ms)[0m TRUNCATE `employees`
|
26304
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
26305
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26306
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
26307
|
+
[0m
|
26308
|
+
[1m[35mFACTORY (0.6ms)[0m INSERT INTO
|
26309
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26310
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
26311
|
+
|
26312
|
+
[1m[36mFACTORY (0.4ms)[0m [1m INSERT INTO
|
26313
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26314
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
26315
|
+
[0m
|
26316
|
+
[1m[35mFACTORY (1.7ms)[0m DROP TABLE IF EXISTS `employees`
|
26317
|
+
[1m[36mFACTORY (1.1ms)[0m [1m CREATE TABLE `employees` (
|
26318
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
26319
|
+
`name` TEXT NOT NULL,
|
26320
|
+
`division` TEXT NOT NULL,
|
26321
|
+
`salary` INTEGER NOT NULL,
|
26322
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
26323
|
+
`hired_on` DATE NOT NULL
|
26324
|
+
);
|
26325
|
+
[0m
|
26326
|
+
[1m[35mFACTORY (1.4ms)[0m DELETE FROM `employees`
|
26327
|
+
[1m[36mFACTORY (1.1ms)[0m [1m INSERT INTO
|
26328
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26329
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
26330
|
+
[0m
|
26331
|
+
[1m[35mFACTORY (1.0ms)[0m INSERT INTO
|
26332
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26333
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
26334
|
+
|
26335
|
+
[1m[36mFACTORY (1.1ms)[0m [1m INSERT INTO
|
26336
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26337
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
26338
|
+
[0m
|
26339
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:14:00 -0500
|
26340
|
+
Processing by Dossier::ReportsController#show as HTML
|
26341
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
26342
|
+
[1m[35mEmployeeWithCustomClientReport (1.6ms)[0m SELECT * FROM `employees`
|
26343
|
+
Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (4.0ms)
|
26344
|
+
Completed 200 OK in 18ms (Views: 7.4ms | ActiveRecord: 0.0ms)
|
26345
|
+
[1m[36mEmployeeReport (0.4ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
26346
|
+
ORDER BY name ASC[0m
|
26347
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:14:00 -0500
|
26348
|
+
Processing by Dossier::ReportsController#show as CSV
|
26349
|
+
Parameters: {"report"=>"employee"}
|
26350
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
26351
|
+
ORDER BY name ASC
|
26352
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.3ms)
|
26353
|
+
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-01-22 16:14:00 -0500
|
26354
|
+
Processing by Dossier::ReportsController#show as HTML
|
26355
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
26356
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
26357
|
+
AND division in (('Tedious Toiling'))
|
26358
|
+
AND salary > 10000
|
26359
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
26360
|
+
ORDER BY name DESC[0m
|
26361
|
+
Completed 200 OK in 8ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
26362
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:14:00 -0500
|
26363
|
+
Processing by Dossier::ReportsController#show as HTML
|
26364
|
+
Parameters: {"report"=>"employee"}
|
26365
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
26366
|
+
ORDER BY name ASC
|
26367
|
+
Completed 200 OK in 38ms (Views: 2.9ms | ActiveRecord: 0.0ms)
|
26368
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:14:00 -0500
|
26369
|
+
Processing by Dossier::ReportsController#show as HTML
|
26370
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
26371
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
26372
|
+
ORDER BY name ASC[0m
|
26373
|
+
Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.0ms)
|
26374
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:14:00 -0500
|
26375
|
+
Processing by Dossier::ReportsController#show as HTML
|
26376
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
26377
|
+
[1m[35mEmployeeWithCustomViewReport (0.2ms)[0m SELECT * FROM employees WHERE suspended = true
|
26378
|
+
Completed 200 OK in 6ms (Views: 2.5ms | ActiveRecord: 0.2ms)
|
26379
|
+
Connecting to database specified by database.yml
|
26380
|
+
[1m[36mFACTORY (0.2ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
26381
|
+
[1m[35mFACTORY (1.1ms)[0m DROP TABLE IF EXISTS `employees`
|
26382
|
+
[1m[36mFACTORY (61.4ms)[0m [1m CREATE TABLE `employees` (
|
26383
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
26384
|
+
`name` varchar(255) NOT NULL,
|
26385
|
+
`division` varchar(255) NOT NULL,
|
26386
|
+
`salary` int(11) NOT NULL,
|
26387
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
26388
|
+
`hired_on` date NOT NULL,
|
26389
|
+
PRIMARY KEY (`id`)
|
26390
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
26391
|
+
[0m
|
26392
|
+
[1m[35mFACTORY (1.2ms)[0m TRUNCATE `employees`
|
26393
|
+
[1m[36mFACTORY (0.6ms)[0m [1m INSERT INTO
|
26394
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26395
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
26396
|
+
[0m
|
26397
|
+
[1m[35mFACTORY (0.5ms)[0m INSERT INTO
|
26398
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26399
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
26400
|
+
|
26401
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
26402
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26403
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
26404
|
+
[0m
|
26405
|
+
[1m[35mFACTORY (2.0ms)[0m DROP TABLE IF EXISTS `employees`
|
26406
|
+
[1m[36mFACTORY (1.4ms)[0m [1m CREATE TABLE `employees` (
|
26407
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
26408
|
+
`name` TEXT NOT NULL,
|
26409
|
+
`division` TEXT NOT NULL,
|
26410
|
+
`salary` INTEGER NOT NULL,
|
26411
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
26412
|
+
`hired_on` DATE NOT NULL
|
26413
|
+
);
|
26414
|
+
[0m
|
26415
|
+
[1m[35mFACTORY (0.9ms)[0m DELETE FROM `employees`
|
26416
|
+
[1m[36mFACTORY (1.3ms)[0m [1m INSERT INTO
|
26417
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26418
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
26419
|
+
[0m
|
26420
|
+
[1m[35mFACTORY (0.9ms)[0m INSERT INTO
|
26421
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26422
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
26423
|
+
|
26424
|
+
[1m[36mFACTORY (1.1ms)[0m [1m INSERT INTO
|
26425
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26426
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
26427
|
+
[0m
|
26428
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:14:57 -0500
|
26429
|
+
Processing by Dossier::ReportsController#show as HTML
|
26430
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
26431
|
+
[1m[35mEmployeeWithCustomClientReport (2.1ms)[0m SELECT * FROM `employees`
|
26432
|
+
Rendered /Users/nathanlong/projects/dossier/app/views/dossier/reports/show.html.haml within layouts/application (3.9ms)
|
26433
|
+
Completed 200 OK in 46ms (Views: 7.2ms | ActiveRecord: 0.0ms)
|
26434
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:14:57 -0500
|
26435
|
+
Processing by Dossier::ReportsController#show as HTML
|
26436
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
26437
|
+
[1m[36mEmployeeWithCustomViewReport (0.3ms)[0m [1mSELECT * FROM employees WHERE suspended = true[0m
|
26438
|
+
Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.3ms)
|
26439
|
+
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-01-22 16:14:57 -0500
|
26440
|
+
Processing by Dossier::ReportsController#show as HTML
|
26441
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
26442
|
+
[1m[35mEmployeeReport (0.5ms)[0m SELECT * FROM employees WHERE 1=1
|
26443
|
+
AND division in (('Tedious Toiling'))
|
26444
|
+
AND salary > 10000
|
26445
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
26446
|
+
ORDER BY name DESC
|
26447
|
+
Completed 200 OK in 15ms (Views: 6.5ms | ActiveRecord: 0.0ms)
|
26448
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:14:57 -0500
|
26449
|
+
Processing by Dossier::ReportsController#show as HTML
|
26450
|
+
Parameters: {"report"=>"employee"}
|
26451
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
26452
|
+
ORDER BY name ASC[0m
|
26453
|
+
Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.0ms)
|
26454
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:14:57 -0500
|
26455
|
+
Processing by Dossier::ReportsController#show as HTML
|
26456
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
26457
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
26458
|
+
ORDER BY name ASC
|
26459
|
+
Completed 200 OK in 8ms (Views: 3.6ms | ActiveRecord: 0.0ms)
|
26460
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:14:57 -0500
|
26461
|
+
Processing by Dossier::ReportsController#show as CSV
|
26462
|
+
Parameters: {"report"=>"employee"}
|
26463
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
26464
|
+
ORDER BY name ASC[0m
|
26465
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.2ms)
|
26466
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
26467
|
+
ORDER BY name ASC
|
26468
|
+
Connecting to database specified by database.yml
|
26469
|
+
[1m[36mFACTORY (0.2ms)[0m [1mCREATE DATABASE IF NOT EXISTS `dossier_test`[0m
|
26470
|
+
[1m[35mFACTORY (1.2ms)[0m DROP TABLE IF EXISTS `employees`
|
26471
|
+
[1m[36mFACTORY (46.7ms)[0m [1m CREATE TABLE `employees` (
|
26472
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
26473
|
+
`name` varchar(255) NOT NULL,
|
26474
|
+
`division` varchar(255) NOT NULL,
|
26475
|
+
`salary` int(11) NOT NULL,
|
26476
|
+
`suspended` tinyint(1) NOT NULL DEFAULT 0,
|
26477
|
+
`hired_on` date NOT NULL,
|
26478
|
+
PRIMARY KEY (`id`)
|
26479
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
26480
|
+
[0m
|
26481
|
+
[1m[35mFACTORY (1.1ms)[0m TRUNCATE `employees`
|
26482
|
+
[1m[36mFACTORY (0.4ms)[0m [1m INSERT INTO
|
26483
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26484
|
+
VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
|
26485
|
+
[0m
|
26486
|
+
[1m[35mFACTORY (0.3ms)[0m INSERT INTO
|
26487
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26488
|
+
VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
|
26489
|
+
|
26490
|
+
[1m[36mFACTORY (0.3ms)[0m [1m INSERT INTO
|
26491
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26492
|
+
VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
|
26493
|
+
[0m
|
26494
|
+
[1m[35mFACTORY (2.0ms)[0m DROP TABLE IF EXISTS `employees`
|
26495
|
+
[1m[36mFACTORY (1.1ms)[0m [1m CREATE TABLE `employees` (
|
26496
|
+
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
26497
|
+
`name` TEXT NOT NULL,
|
26498
|
+
`division` TEXT NOT NULL,
|
26499
|
+
`salary` INTEGER NOT NULL,
|
26500
|
+
`suspended` TINYINT NOT NULL DEFAULT 0,
|
26501
|
+
`hired_on` DATE NOT NULL
|
26502
|
+
);
|
26503
|
+
[0m
|
26504
|
+
[1m[35mFACTORY (0.9ms)[0m DELETE FROM `employees`
|
26505
|
+
[1m[36mFACTORY (1.0ms)[0m [1m INSERT INTO
|
26506
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26507
|
+
VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
|
26508
|
+
[0m
|
26509
|
+
[1m[35mFACTORY (1.0ms)[0m INSERT INTO
|
26510
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26511
|
+
VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
|
26512
|
+
|
26513
|
+
[1m[36mFACTORY (1.0ms)[0m [1m INSERT INTO
|
26514
|
+
`employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
|
26515
|
+
VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
|
26516
|
+
[0m
|
26517
|
+
Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-01-22 16:18:22 -0500
|
26518
|
+
Processing by Dossier::ReportsController#show as HTML
|
26519
|
+
Parameters: {"report"=>"employee_with_custom_view"}
|
26520
|
+
[1m[35mEmployeeWithCustomViewReport (0.3ms)[0m SELECT * FROM employees WHERE suspended = true
|
26521
|
+
Rendered dossier/reports/employee_with_custom_view.html.haml within layouts/application (0.9ms)
|
26522
|
+
Completed 200 OK in 17ms (Views: 11.6ms | ActiveRecord: 0.3ms)
|
26523
|
+
Started GET "/reports/employee" for 127.0.0.1 at 2013-01-22 16:18:22 -0500
|
26524
|
+
Processing by Dossier::ReportsController#show as HTML
|
26525
|
+
Parameters: {"report"=>"employee"}
|
26526
|
+
[1m[36mEmployeeReport (0.2ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
26527
|
+
ORDER BY name ASC[0m
|
26528
|
+
Completed 200 OK in 10ms (Views: 6.0ms | ActiveRecord: 0.0ms)
|
26529
|
+
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-01-22 16:18:22 -0500
|
26530
|
+
Processing by Dossier::ReportsController#show as HTML
|
26531
|
+
Parameters: {"options"=>{"salary"=>"true", "order"=>"desc", "names"=>["Jimmy Jackalope", "Moustafa McMann"], "divisions"=>["Tedious Toiling"]}, "report"=>"employee"}
|
26532
|
+
[1m[35mEmployeeReport (0.5ms)[0m SELECT * FROM employees WHERE 1=1
|
26533
|
+
AND division in (('Tedious Toiling'))
|
26534
|
+
AND salary > 10000
|
26535
|
+
AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
|
26536
|
+
ORDER BY name DESC
|
26537
|
+
Completed 200 OK in 11ms (Views: 3.0ms | ActiveRecord: 0.0ms)
|
26538
|
+
Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-01-22 16:18:22 -0500
|
26539
|
+
Processing by Dossier::ReportsController#show as HTML
|
26540
|
+
Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
|
26541
|
+
[1m[36mEmployeeReport (0.3ms)[0m [1mSELECT * FROM employees WHERE 1=1
|
26542
|
+
ORDER BY name ASC[0m
|
26543
|
+
Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 0.0ms)
|
26544
|
+
Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-01-22 16:18:22 -0500
|
26545
|
+
Processing by Dossier::ReportsController#show as CSV
|
26546
|
+
Parameters: {"report"=>"employee"}
|
26547
|
+
[1m[35mEmployeeReport (0.3ms)[0m SELECT * FROM employees WHERE 1=1
|
26548
|
+
ORDER BY name ASC
|
26549
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.3ms)
|
26550
|
+
Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-01-22 16:18:22 -0500
|
26551
|
+
Processing by Dossier::ReportsController#show as HTML
|
26552
|
+
Parameters: {"report"=>"employee_with_custom_client"}
|
26553
|
+
[1m[36mEmployeeWithCustomClientReport (0.4ms)[0m [1mSELECT * FROM `employees`[0m
|
26554
|
+
Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.0ms)
|
26555
|
+
[1m[35mEmployeeReport (0.2ms)[0m SELECT * FROM employees WHERE 1=1
|
26556
|
+
ORDER BY name ASC
|