dossier 2.9.2 → 2.9.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e1b68dfd8df8d7ec4d31063accdd12b169bc6d1
4
- data.tar.gz: 7fea2320a7e5fc9f33e584ccc6e98cb76a80215d
3
+ metadata.gz: 0e7f5e5c621df6121e3b3363a4e86235f0ab861a
4
+ data.tar.gz: 711f5e8d526969571126c5ced2bf5107cbe43267
5
5
  SHA512:
6
- metadata.gz: 9ff8ad7c19307d6f4f1d4d03ca835dc8146c691b54645f4e031daa15b56fea7d6c0577b293587a8457efd04e805e592b5d430cdf4be9ea4ee4ec58017663212e
7
- data.tar.gz: 3344312e894d95c274b7fff2c77da3ec90475382c2c188eb162597c3aafabc2cc950fc20bdc551a360c2a983a92a8e3032b255776952ba2f9298f9a26ce52273
6
+ metadata.gz: c76b2b8235cb62dc965f58c44207d6e8e7173e1316f788402287938730896c2adb97c6fdb23f95f4a5498cb33789a841185151ef1c657c2947360f83dbc58770
7
+ data.tar.gz: 94b7c57fc6df708ee1ba964031561282ecfc4615075c0a1635b2030ad9588e9a2d5108ae0c41b323fb2dd1636abd2212ac68905e6d5fd9de02aeb17dd97711d5
@@ -1,3 +1,4 @@
1
+ require 'erb'
1
2
  require 'yaml'
2
3
 
3
4
  module Dossier
@@ -13,7 +14,7 @@ module Dossier
13
14
  private
14
15
 
15
16
  def setup_client!
16
- @connection_options = YAML.load_file(@config_path)[Rails.env].symbolize_keys
17
+ @connection_options = YAML.load(ERB.new(File.read(@config_path)).result)[Rails.env].symbolize_keys
17
18
  @client = Dossier::Client.new(@connection_options)
18
19
 
19
20
  rescue Errno::ENOENT => e
@@ -14,7 +14,7 @@ module Dossier
14
14
 
15
15
  def commafy_number(value, precision = nil)
16
16
  whole, fraction = value.to_s.split('.')
17
- fraction = "%.#{precision}d" % ("0.#{fraction}".to_f.round(precision) * 10**precision).to_i if precision
17
+ fraction = "%.#{precision}d" % (BigDecimal.new("0.#{fraction}").round(precision) * 10**precision).to_i if precision
18
18
  [whole.to_i.to_s.gsub(/(\d)(?=(\d\d\d)+(?!\d))/, "\\1,"), fraction].compact.join('.')
19
19
  end
20
20
 
@@ -1,3 +1,3 @@
1
1
  module Dossier
2
- VERSION = "2.9.2"
2
+ VERSION = "2.9.3"
3
3
  end
@@ -38,7 +38,7 @@ describe Dossier::Formatter do
38
38
 
39
39
  describe "custom formatters" do
40
40
  describe "commafy_number" do
41
- formats = {
41
+ {
42
42
  10_000 => '10,000',
43
43
  10_000.01 => '10,000.01',
44
44
  1_000_000_000.001 => '1,000,000,000.001',
@@ -48,6 +48,7 @@ describe Dossier::Formatter do
48
48
  expect(formatter.commafy_number(base)).to eq formatted
49
49
  end
50
50
  }
51
+
51
52
  it "will return the expected precision if too large" do
52
53
  expect(formatter.commafy_number(1_000.23523563, 2)).to eq '1,000.24'
53
54
  end
@@ -55,10 +56,15 @@ describe Dossier::Formatter do
55
56
  it "will return the expected precision if too small" do
56
57
  expect(formatter.commafy_number(1_000, 5)).to eq '1,000.00000'
57
58
  end
59
+
60
+ # h/t to @rodneyturnham for finding this edge case and providing the solution
61
+ it "will properly format a number given to it" do
62
+ expect(formatter.commafy_number(1342.58, 2)).to eq '1,342.58'
63
+ end
58
64
  end
59
65
 
60
66
  describe "number_to_dollars" do
61
- formats = {
67
+ {
62
68
  10_000 => '$10,000.00',
63
69
  10_000.00 => '$10,000.00',
64
70
  1_000_000_000.000 => '$1,000,000,000.00',
Binary file
@@ -54530,3 +54530,1104 @@ Completed 200 OK in 10ms (Views: 5.3ms | ActiveRecord: 0.4ms)
54530
54530
  EmployeeReport (0.2ms) 
54531
54531
  SELECT * FROM employees WHERE 1=1
54532
54532
  ORDER BY name ASC
54533
+ Connecting to database specified by database.yml
54534
+ FACTORY (9.3ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
54535
+ FACTORY (101.0ms) DROP TABLE IF EXISTS `employees`
54536
+ FACTORY (34.3ms)  CREATE TABLE `employees` (
54537
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
54538
+ `name` varchar(255) NOT NULL,
54539
+ `division` varchar(255) NOT NULL,
54540
+ `salary` int(11) NOT NULL,
54541
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
54542
+ `hired_on` date NOT NULL,
54543
+ PRIMARY KEY (`id`)
54544
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
54545
+ 
54546
+ FACTORY (2.6ms) TRUNCATE `employees`
54547
+ FACTORY (1.6ms)  INSERT INTO
54548
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
54549
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
54550
+ 
54551
+ FACTORY (0.6ms) INSERT INTO
54552
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
54553
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
54554
+
54555
+ FACTORY (0.5ms)  INSERT INTO
54556
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
54557
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
54558
+ 
54559
+ FACTORY (5.1ms) DROP TABLE IF EXISTS `employees`
54560
+ FACTORY (0.9ms)  CREATE TABLE `employees` (
54561
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
54562
+ `name` TEXT NOT NULL,
54563
+ `division` TEXT NOT NULL,
54564
+ `salary` INTEGER NOT NULL,
54565
+ `suspended` TINYINT NOT NULL DEFAULT 0,
54566
+ `hired_on` DATE NOT NULL
54567
+ );
54568
+ 
54569
+ FACTORY (0.7ms) DELETE FROM `employees`
54570
+ FACTORY (0.9ms)  INSERT INTO
54571
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
54572
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
54573
+ 
54574
+ FACTORY (0.8ms) INSERT INTO
54575
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
54576
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
54577
+
54578
+ FACTORY (0.7ms)  INSERT INTO
54579
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
54580
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
54581
+ 
54582
+ EmployeeReport (17.5ms)
54583
+ SELECT * FROM employees WHERE 1=1
54584
+ ORDER BY name ASC
54585
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml within dossier/layouts/application (47.6ms)
54586
+ EmployeeReport (0.2ms) 
54587
+ SELECT * FROM employees WHERE 1=1
54588
+ ORDER BY name ASC
54589
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml within dossier/layouts/application (4.5ms)
54590
+ Rendered dossier/reports/employee_with_custom_view/_options.html.haml (42.6ms)
54591
+ Started GET "/multi/reports/combination.csv" for 127.0.0.1 at 2013-12-02 08:50:05 -0500
54592
+ Processing by Dossier::ReportsController#multi as CSV
54593
+ Parameters: {"report"=>"combination"}
54594
+ Completed 500 Internal Server Error in 1ms
54595
+ Started GET "/multi/reports/combination" for 127.0.0.1 at 2013-12-02 08:50:05 -0500
54596
+ Processing by Dossier::ReportsController#multi as HTML
54597
+ Parameters: {"report"=>"combination"}
54598
+ Rendered dossier/reports/combination/_options.html.haml (3.4ms)
54599
+ EmployeeReport (0.2ms)
54600
+ SELECT * FROM employees WHERE 1=1
54601
+ ORDER BY name ASC
54602
+ EmployeeWithCustomViewReport (0.3ms) 
54603
+ SELECT * FROM employees WHERE suspended = true
54604
+ Completed 200 OK in 26ms (Views: 24.8ms | ActiveRecord: 0.6ms)
54605
+ Started GET "/multi/reports/combination" for 127.0.0.1 at 2013-12-02 08:50:05 -0500
54606
+ Processing by Dossier::ReportsController#multi as HTML
54607
+ Parameters: {"report"=>"combination"}
54608
+ Rendered dossier/reports/combination/_options.html.haml (1.4ms)
54609
+ EmployeeReport (0.4ms)
54610
+ SELECT * FROM employees WHERE 1=1
54611
+ ORDER BY name ASC
54612
+ EmployeeWithCustomViewReport (0.4ms) 
54613
+ SELECT * FROM employees WHERE suspended = true
54614
+ Completed 200 OK in 15ms (Views: 12.9ms | ActiveRecord: 0.7ms)
54615
+ Started GET "/multi/reports/combination" for 127.0.0.1 at 2013-12-02 08:50:05 -0500
54616
+ Processing by Dossier::ReportsController#multi as HTML
54617
+ Parameters: {"report"=>"combination"}
54618
+ Rendered dossier/reports/combination/_options.html.haml (1.5ms)
54619
+ EmployeeReport (0.4ms)
54620
+ SELECT * FROM employees WHERE 1=1
54621
+ ORDER BY name ASC
54622
+ EmployeeWithCustomViewReport (0.4ms) 
54623
+ SELECT * FROM employees WHERE suspended = true
54624
+ Completed 200 OK in 15ms (Views: 13.4ms | ActiveRecord: 0.8ms)
54625
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-12-02 08:50:06 -0500
54626
+ Processing by Dossier::ReportsController#show as HTML
54627
+ Parameters: {"report"=>"employee_with_custom_client"}
54628
+ EmployeeWithCustomClientReport (0.2ms)
54629
+ SELECT * FROM `employees`
54630
+ Completed 200 OK in 12ms (Views: 8.3ms | ActiveRecord: 0.2ms)
54631
+ Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-12-02 08:50:06 -0500
54632
+ Processing by SiteController#report as HTML
54633
+ EmployeeReport (0.3ms) 
54634
+ SELECT * FROM employees WHERE 1=1
54635
+ ORDER BY name ASC
54636
+ Completed 200 OK in 10ms (Views: 5.3ms | ActiveRecord: 0.3ms)
54637
+ EmployeeReport (0.4ms)
54638
+ SELECT * FROM employees WHERE 1=1
54639
+ ORDER BY name ASC
54640
+ Started GET "/reports/cats/are/super_fun" for 127.0.0.1 at 2013-12-02 08:50:06 -0500
54641
+ Processing by Dossier::ReportsController#show as HTML
54642
+ Parameters: {"report"=>"cats/are/super_fun"}
54643
+ Cats::Are::SuperFunReport (0.3ms) 
54644
+ select 'cats', 'are', 'super', 'fun'
54645
+ Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.3ms)
54646
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-12-02 08:50:06 -0500
54647
+ Processing by Dossier::ReportsController#show as HTML
54648
+ Parameters: {"report"=>"employee"}
54649
+ EmployeeReport (0.4ms)
54650
+ SELECT * FROM employees WHERE 1=1
54651
+ ORDER BY name ASC
54652
+ Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.4ms)
54653
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-12-02 08:50:06 -0500
54654
+ Processing by Dossier::ReportsController#show as HTML
54655
+ Parameters: {"report"=>"employee"}
54656
+ EmployeeReport (0.3ms) 
54657
+ SELECT * FROM employees WHERE 1=1
54658
+ ORDER BY name ASC
54659
+ Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.3ms)
54660
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-12-02 08:50:06 -0500
54661
+ Processing by Dossier::ReportsController#show as HTML
54662
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
54663
+ EmployeeReport (0.5ms)
54664
+ SELECT * FROM employees WHERE 1=1
54665
+ ORDER BY name ASC
54666
+ Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.5ms)
54667
+ Started GET "/reports/employee?options[divisions][]=Tedious+Toiling&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[order]=desc&options[salary]=true" for 127.0.0.1 at 2013-12-02 08:50:06 -0500
54668
+ Processing by Dossier::ReportsController#show as HTML
54669
+ Parameters: {"options"=>{"divisions"=>["Tedious Toiling"], "names"=>["Jimmy Jackalope", "Moustafa McMann"], "order"=>"desc", "salary"=>"true"}, "report"=>"employee"}
54670
+ EmployeeReport (1.0ms) 
54671
+ SELECT * FROM employees WHERE 1=1
54672
+ AND division in (('Tedious Toiling'))
54673
+ AND salary > 10000
54674
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
54675
+ ORDER BY name DESC
54676
+ Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 1.0ms)
54677
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-12-02 08:50:06 -0500
54678
+ Processing by Dossier::ReportsController#show as HTML
54679
+ Parameters: {"report"=>"employee_with_custom_view"}
54680
+ Rendered dossier/reports/employee_with_custom_view/_options.html.haml (3.2ms)
54681
+ EmployeeWithCustomViewReport (0.2ms)
54682
+ SELECT * FROM employees WHERE suspended = true
54683
+ Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.2ms)
54684
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-12-02 08:50:06 -0500
54685
+ Processing by Dossier::ReportsController#show as HTML
54686
+ Parameters: {"report"=>"employee_with_custom_view"}
54687
+ Rendered dossier/reports/employee_with_custom_view/_options.html.haml (2.0ms)
54688
+ EmployeeWithCustomViewReport (0.4ms) 
54689
+ SELECT * FROM employees WHERE suspended = true
54690
+ Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.4ms)
54691
+ Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-12-02 08:50:06 -0500
54692
+ Processing by Dossier::ReportsController#show as XLS
54693
+ Parameters: {"report"=>"employee"}
54694
+ EmployeeReport (0.3ms)
54695
+ SELECT * FROM employees WHERE 1=1
54696
+ ORDER BY name ASC
54697
+ Completed 200 OK in 4ms (ActiveRecord: 0.3ms)
54698
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-12-02 08:50:06 -0500
54699
+ Processing by Dossier::ReportsController#show as CSV
54700
+ Parameters: {"report"=>"employee"}
54701
+ EmployeeReport (0.5ms) 
54702
+ SELECT * FROM employees WHERE 1=1
54703
+ ORDER BY name ASC
54704
+ Completed 200 OK in 4ms (ActiveRecord: 0.5ms)
54705
+ Connecting to database specified by database.yml
54706
+ FACTORY (0.2ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
54707
+ FACTORY (24.4ms) DROP TABLE IF EXISTS `employees`
54708
+ FACTORY (12.8ms)  CREATE TABLE `employees` (
54709
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
54710
+ `name` varchar(255) NOT NULL,
54711
+ `division` varchar(255) NOT NULL,
54712
+ `salary` int(11) NOT NULL,
54713
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
54714
+ `hired_on` date NOT NULL,
54715
+ PRIMARY KEY (`id`)
54716
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
54717
+ 
54718
+ FACTORY (1.4ms) TRUNCATE `employees`
54719
+ FACTORY (0.7ms)  INSERT INTO
54720
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
54721
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
54722
+ 
54723
+ FACTORY (0.5ms) INSERT INTO
54724
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
54725
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
54726
+
54727
+ FACTORY (0.5ms)  INSERT INTO
54728
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
54729
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
54730
+ 
54731
+ FACTORY (1.7ms) DROP TABLE IF EXISTS `employees`
54732
+ FACTORY (0.9ms)  CREATE TABLE `employees` (
54733
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
54734
+ `name` TEXT NOT NULL,
54735
+ `division` TEXT NOT NULL,
54736
+ `salary` INTEGER NOT NULL,
54737
+ `suspended` TINYINT NOT NULL DEFAULT 0,
54738
+ `hired_on` DATE NOT NULL
54739
+ );
54740
+ 
54741
+ FACTORY (0.8ms) DELETE FROM `employees`
54742
+ FACTORY (1.1ms)  INSERT INTO
54743
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
54744
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
54745
+ 
54746
+ FACTORY (0.8ms) INSERT INTO
54747
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
54748
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
54749
+
54750
+ FACTORY (0.8ms)  INSERT INTO
54751
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
54752
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
54753
+ 
54754
+ Rendered dossier/reports/employee_with_custom_view/_options.html.haml (6.5ms)
54755
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-12-02 09:31:56 -0500
54756
+ Processing by Dossier::ReportsController#show as CSV
54757
+ Parameters: {"report"=>"employee"}
54758
+ EmployeeReport (0.3ms)
54759
+ SELECT * FROM employees WHERE 1=1
54760
+ ORDER BY name ASC
54761
+ Completed 200 OK in 6ms (ActiveRecord: 0.3ms)
54762
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-12-02 09:31:56 -0500
54763
+ Processing by Dossier::ReportsController#show as HTML
54764
+ Parameters: {"report"=>"employee_with_custom_view"}
54765
+ Rendered dossier/reports/employee_with_custom_view/_options.html.haml (3.7ms)
54766
+ EmployeeWithCustomViewReport (0.2ms) 
54767
+ SELECT * FROM employees WHERE suspended = true
54768
+ Completed 200 OK in 19ms (Views: 17.8ms | ActiveRecord: 0.2ms)
54769
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-12-02 09:31:56 -0500
54770
+ Processing by Dossier::ReportsController#show as HTML
54771
+ Parameters: {"report"=>"employee_with_custom_view"}
54772
+ Rendered dossier/reports/employee_with_custom_view/_options.html.haml (2.4ms)
54773
+ EmployeeWithCustomViewReport (0.2ms)
54774
+ SELECT * FROM employees WHERE suspended = true
54775
+ Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.2ms)
54776
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-12-02 09:31:56 -0500
54777
+ Processing by Dossier::ReportsController#show as HTML
54778
+ Parameters: {"report"=>"employee"}
54779
+ EmployeeReport (0.3ms) 
54780
+ SELECT * FROM employees WHERE 1=1
54781
+ ORDER BY name ASC
54782
+ Completed 200 OK in 16ms (Views: 14.2ms | ActiveRecord: 0.3ms)
54783
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-12-02 09:31:56 -0500
54784
+ Processing by Dossier::ReportsController#show as HTML
54785
+ Parameters: {"report"=>"employee"}
54786
+ EmployeeReport (0.3ms)
54787
+ SELECT * FROM employees WHERE 1=1
54788
+ ORDER BY name ASC
54789
+ Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.3ms)
54790
+ Started GET "/reports/employee?options[divisions][]=Tedious+Toiling&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[order]=desc&options[salary]=true" for 127.0.0.1 at 2013-12-02 09:31:56 -0500
54791
+ Processing by Dossier::ReportsController#show as HTML
54792
+ Parameters: {"options"=>{"divisions"=>["Tedious Toiling"], "names"=>["Jimmy Jackalope", "Moustafa McMann"], "order"=>"desc", "salary"=>"true"}, "report"=>"employee"}
54793
+ EmployeeReport (0.6ms) 
54794
+ SELECT * FROM employees WHERE 1=1
54795
+ AND division in (('Tedious Toiling'))
54796
+ AND salary > 10000
54797
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
54798
+ ORDER BY name DESC
54799
+ Completed 200 OK in 54ms (Views: 51.6ms | ActiveRecord: 0.6ms)
54800
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-12-02 09:31:56 -0500
54801
+ Processing by Dossier::ReportsController#show as HTML
54802
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
54803
+ EmployeeReport (0.3ms)
54804
+ SELECT * FROM employees WHERE 1=1
54805
+ ORDER BY name ASC
54806
+ Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.3ms)
54807
+ Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-12-02 09:31:56 -0500
54808
+ Processing by Dossier::ReportsController#show as XLS
54809
+ Parameters: {"report"=>"employee"}
54810
+ EmployeeReport (0.2ms) 
54811
+ SELECT * FROM employees WHERE 1=1
54812
+ ORDER BY name ASC
54813
+ Completed 200 OK in 4ms (ActiveRecord: 0.2ms)
54814
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-12-02 09:31:56 -0500
54815
+ Processing by Dossier::ReportsController#show as HTML
54816
+ Parameters: {"report"=>"employee_with_custom_client"}
54817
+ EmployeeWithCustomClientReport (0.2ms)
54818
+ SELECT * FROM `employees`
54819
+ Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.2ms)
54820
+ Started GET "/reports/cats/are/super_fun" for 127.0.0.1 at 2013-12-02 09:31:56 -0500
54821
+ Processing by Dossier::ReportsController#show as HTML
54822
+ Parameters: {"report"=>"cats/are/super_fun"}
54823
+ Cats::Are::SuperFunReport (0.1ms) 
54824
+ select 'cats', 'are', 'super', 'fun'
54825
+ Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.1ms)
54826
+ EmployeeReport (0.3ms)
54827
+ SELECT * FROM employees WHERE 1=1
54828
+ ORDER BY name ASC
54829
+ EmployeeReport (0.3ms) 
54830
+ SELECT * FROM employees WHERE 1=1
54831
+ ORDER BY name ASC
54832
+ EmployeeReport (0.3ms)
54833
+ SELECT * FROM employees WHERE 1=1
54834
+ ORDER BY name ASC
54835
+ Started GET "/multi/reports/combination" for 127.0.0.1 at 2013-12-02 09:31:56 -0500
54836
+ Processing by Dossier::ReportsController#multi as HTML
54837
+ Parameters: {"report"=>"combination"}
54838
+ Rendered dossier/reports/combination/_options.html.haml (3.5ms)
54839
+ EmployeeReport (0.3ms) 
54840
+ SELECT * FROM employees WHERE 1=1
54841
+ ORDER BY name ASC
54842
+ EmployeeWithCustomViewReport (0.3ms)
54843
+ SELECT * FROM employees WHERE suspended = true
54844
+ Completed 200 OK in 22ms (Views: 20.0ms | ActiveRecord: 0.6ms)
54845
+ Started GET "/multi/reports/combination.csv" for 127.0.0.1 at 2013-12-02 09:31:56 -0500
54846
+ Processing by Dossier::ReportsController#multi as CSV
54847
+ Parameters: {"report"=>"combination"}
54848
+ Completed 500 Internal Server Error in 1ms
54849
+ Started GET "/multi/reports/combination" for 127.0.0.1 at 2013-12-02 09:31:56 -0500
54850
+ Processing by Dossier::ReportsController#multi as HTML
54851
+ Parameters: {"report"=>"combination"}
54852
+ Rendered dossier/reports/combination/_options.html.haml (2.1ms)
54853
+ EmployeeReport (0.3ms) 
54854
+ SELECT * FROM employees WHERE 1=1
54855
+ ORDER BY name ASC
54856
+ EmployeeWithCustomViewReport (0.2ms)
54857
+ SELECT * FROM employees WHERE suspended = true
54858
+ Completed 200 OK in 13ms (Views: 11.9ms | ActiveRecord: 0.5ms)
54859
+ Started GET "/multi/reports/combination" for 127.0.0.1 at 2013-12-02 09:31:56 -0500
54860
+ Processing by Dossier::ReportsController#multi as HTML
54861
+ Parameters: {"report"=>"combination"}
54862
+ Rendered dossier/reports/combination/_options.html.haml (1.4ms)
54863
+ EmployeeReport (0.3ms) 
54864
+ SELECT * FROM employees WHERE 1=1
54865
+ ORDER BY name ASC
54866
+ EmployeeWithCustomViewReport (0.2ms)
54867
+ SELECT * FROM employees WHERE suspended = true
54868
+ Completed 200 OK in 12ms (Views: 9.9ms | ActiveRecord: 0.5ms)
54869
+ Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-12-02 09:31:56 -0500
54870
+ Processing by SiteController#report as HTML
54871
+ EmployeeReport (0.2ms) 
54872
+ SELECT * FROM employees WHERE 1=1
54873
+ ORDER BY name ASC
54874
+ Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.2ms)
54875
+ Connecting to database specified by database.yml
54876
+ FACTORY (0.1ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
54877
+ FACTORY (25.0ms) DROP TABLE IF EXISTS `employees`
54878
+ FACTORY (20.1ms)  CREATE TABLE `employees` (
54879
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
54880
+ `name` varchar(255) NOT NULL,
54881
+ `division` varchar(255) NOT NULL,
54882
+ `salary` int(11) NOT NULL,
54883
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
54884
+ `hired_on` date NOT NULL,
54885
+ PRIMARY KEY (`id`)
54886
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
54887
+ 
54888
+ FACTORY (2.4ms) TRUNCATE `employees`
54889
+ FACTORY (0.6ms)  INSERT INTO
54890
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
54891
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
54892
+ 
54893
+ FACTORY (0.5ms) INSERT INTO
54894
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
54895
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
54896
+
54897
+ FACTORY (0.8ms)  INSERT INTO
54898
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
54899
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
54900
+ 
54901
+ FACTORY (2.2ms) DROP TABLE IF EXISTS `employees`
54902
+ FACTORY (1.1ms)  CREATE TABLE `employees` (
54903
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
54904
+ `name` TEXT NOT NULL,
54905
+ `division` TEXT NOT NULL,
54906
+ `salary` INTEGER NOT NULL,
54907
+ `suspended` TINYINT NOT NULL DEFAULT 0,
54908
+ `hired_on` DATE NOT NULL
54909
+ );
54910
+ 
54911
+ FACTORY (0.6ms) DELETE FROM `employees`
54912
+ FACTORY (0.7ms)  INSERT INTO
54913
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
54914
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
54915
+ 
54916
+ FACTORY (0.9ms) INSERT INTO
54917
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
54918
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
54919
+
54920
+ FACTORY (0.8ms)  INSERT INTO
54921
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
54922
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
54923
+ 
54924
+ Started GET "/multi/reports/combination" for 127.0.0.1 at 2013-12-02 09:42:41 -0500
54925
+ Processing by Dossier::ReportsController#multi as HTML
54926
+ Parameters: {"report"=>"combination"}
54927
+ Rendered dossier/reports/combination/_options.html.haml (9.8ms)
54928
+ EmployeeReport (0.3ms)
54929
+ SELECT * FROM employees WHERE 1=1
54930
+ ORDER BY name ASC
54931
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml (50.1ms)
54932
+ EmployeeWithCustomViewReport (0.3ms) 
54933
+ SELECT * FROM employees WHERE suspended = true
54934
+ Rendered dossier/reports/employee_with_custom_view.html.haml (5.0ms)
54935
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/multi.html.haml within layouts/application (87.6ms)
54936
+ Completed 200 OK in 100ms (Views: 98.2ms | ActiveRecord: 0.6ms)
54937
+ Started GET "/multi/reports/combination" for 127.0.0.1 at 2013-12-02 09:42:41 -0500
54938
+ Processing by Dossier::ReportsController#multi as HTML
54939
+ Parameters: {"report"=>"combination"}
54940
+ Rendered dossier/reports/combination/_options.html.haml (1.9ms)
54941
+ EmployeeReport (0.3ms)
54942
+ SELECT * FROM employees WHERE 1=1
54943
+ ORDER BY name ASC
54944
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml (4.7ms)
54945
+ EmployeeWithCustomViewReport (0.2ms) 
54946
+ SELECT * FROM employees WHERE suspended = true
54947
+ Rendered dossier/reports/employee_with_custom_view.html.haml (1.8ms)
54948
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/multi.html.haml within layouts/application (10.6ms)
54949
+ Completed 200 OK in 14ms (Views: 11.8ms | ActiveRecord: 0.5ms)
54950
+ Started GET "/multi/reports/combination.csv" for 127.0.0.1 at 2013-12-02 09:42:41 -0500
54951
+ Processing by Dossier::ReportsController#multi as CSV
54952
+ Parameters: {"report"=>"combination"}
54953
+ Completed 500 Internal Server Error in 1ms
54954
+ Started GET "/multi/reports/combination" for 127.0.0.1 at 2013-12-02 09:42:41 -0500
54955
+ Processing by Dossier::ReportsController#multi as HTML
54956
+ Parameters: {"report"=>"combination"}
54957
+ Rendered dossier/reports/combination/_options.html.haml (1.6ms)
54958
+ EmployeeReport (0.2ms)
54959
+ SELECT * FROM employees WHERE 1=1
54960
+ ORDER BY name ASC
54961
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml (5.0ms)
54962
+ EmployeeWithCustomViewReport (0.3ms) 
54963
+ SELECT * FROM employees WHERE suspended = true
54964
+ Rendered dossier/reports/employee_with_custom_view.html.haml (1.7ms)
54965
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/multi.html.haml within layouts/application (10.5ms)
54966
+ Completed 200 OK in 13ms (Views: 11.5ms | ActiveRecord: 0.5ms)
54967
+ Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-12-02 09:42:41 -0500
54968
+ Processing by SiteController#report as HTML
54969
+ EmployeeReport (0.3ms)
54970
+ SELECT * FROM employees WHERE 1=1
54971
+ ORDER BY name ASC
54972
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml within layouts/application (5.1ms)
54973
+ Completed 200 OK in 11ms (Views: 7.9ms | ActiveRecord: 0.3ms)
54974
+ EmployeeReport (0.2ms) 
54975
+ SELECT * FROM employees WHERE 1=1
54976
+ ORDER BY name ASC
54977
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml within dossier/layouts/application (5.2ms)
54978
+ EmployeeReport (0.3ms)
54979
+ SELECT * FROM employees WHERE 1=1
54980
+ ORDER BY name ASC
54981
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml within dossier/layouts/application (44.8ms)
54982
+ Started GET "/reports/cats/are/super_fun" for 127.0.0.1 at 2013-12-02 09:42:41 -0500
54983
+ Processing by Dossier::ReportsController#show as HTML
54984
+ Parameters: {"report"=>"cats/are/super_fun"}
54985
+ Cats::Are::SuperFunReport (0.2ms) 
54986
+ select 'cats', 'are', 'super', 'fun'
54987
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml within layouts/application (4.8ms)
54988
+ Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.2ms)
54989
+ EmployeeReport (0.3ms)
54990
+ SELECT * FROM employees WHERE 1=1
54991
+ ORDER BY name ASC
54992
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-12-02 09:42:41 -0500
54993
+ Processing by Dossier::ReportsController#show as HTML
54994
+ Parameters: {"report"=>"employee"}
54995
+ EmployeeReport (0.2ms) 
54996
+ SELECT * FROM employees WHERE 1=1
54997
+ ORDER BY name ASC
54998
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml within layouts/application (5.5ms)
54999
+ Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.2ms)
55000
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-12-02 09:42:41 -0500
55001
+ Processing by Dossier::ReportsController#show as HTML
55002
+ Parameters: {"report"=>"employee_with_custom_view"}
55003
+ Rendered dossier/reports/employee_with_custom_view/_options.html.haml (4.5ms)
55004
+ EmployeeWithCustomViewReport (0.4ms)
55005
+ SELECT * FROM employees WHERE suspended = true
55006
+ Rendered dossier/reports/employee_with_custom_view.html.haml within layouts/application (12.4ms)
55007
+ Completed 200 OK in 17ms (Views: 15.6ms | ActiveRecord: 0.4ms)
55008
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-12-02 09:42:41 -0500
55009
+ Processing by Dossier::ReportsController#show as HTML
55010
+ Parameters: {"report"=>"employee_with_custom_view"}
55011
+ Rendered dossier/reports/employee_with_custom_view/_options.html.haml (2.3ms)
55012
+ EmployeeWithCustomViewReport (0.3ms) 
55013
+ SELECT * FROM employees WHERE suspended = true
55014
+ Rendered dossier/reports/employee_with_custom_view.html.haml within layouts/application (6.5ms)
55015
+ Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.3ms)
55016
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-12-02 09:42:41 -0500
55017
+ Processing by Dossier::ReportsController#show as HTML
55018
+ Parameters: {"report"=>"employee"}
55019
+ EmployeeReport (0.3ms)
55020
+ SELECT * FROM employees WHERE 1=1
55021
+ ORDER BY name ASC
55022
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml within layouts/application (5.6ms)
55023
+ Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.3ms)
55024
+ Started GET "/reports/employee?options[divisions][]=Tedious+Toiling&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[order]=desc&options[salary]=true" for 127.0.0.1 at 2013-12-02 09:42:41 -0500
55025
+ Processing by Dossier::ReportsController#show as HTML
55026
+ Parameters: {"options"=>{"divisions"=>["Tedious Toiling"], "names"=>["Jimmy Jackalope", "Moustafa McMann"], "order"=>"desc", "salary"=>"true"}, "report"=>"employee"}
55027
+ EmployeeReport (0.6ms) 
55028
+ SELECT * FROM employees WHERE 1=1
55029
+ AND division in (('Tedious Toiling'))
55030
+ AND salary > 10000
55031
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
55032
+ ORDER BY name DESC
55033
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml within layouts/application (6.8ms)
55034
+ Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.6ms)
55035
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-12-02 09:42:41 -0500
55036
+ Processing by Dossier::ReportsController#show as HTML
55037
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
55038
+ EmployeeReport (0.4ms)
55039
+ SELECT * FROM employees WHERE 1=1
55040
+ ORDER BY name ASC
55041
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml within layouts/application (7.3ms)
55042
+ Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.4ms)
55043
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-12-02 09:42:41 -0500
55044
+ Processing by Dossier::ReportsController#show as CSV
55045
+ Parameters: {"report"=>"employee"}
55046
+ EmployeeReport (0.4ms) 
55047
+ SELECT * FROM employees WHERE 1=1
55048
+ ORDER BY name ASC
55049
+ Completed 200 OK in 110ms (ActiveRecord: 0.4ms)
55050
+ Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-12-02 09:42:41 -0500
55051
+ Processing by Dossier::ReportsController#show as XLS
55052
+ Parameters: {"report"=>"employee"}
55053
+ EmployeeReport (0.3ms)
55054
+ SELECT * FROM employees WHERE 1=1
55055
+ ORDER BY name ASC
55056
+ Completed 200 OK in 4ms (ActiveRecord: 0.3ms)
55057
+ Rendered dossier/reports/employee_with_custom_view/_options.html.haml (3.6ms)
55058
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-12-02 09:42:42 -0500
55059
+ Processing by Dossier::ReportsController#show as HTML
55060
+ Parameters: {"report"=>"employee_with_custom_client"}
55061
+ EmployeeWithCustomClientReport (0.2ms) 
55062
+ SELECT * FROM `employees`
55063
+ Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.2ms)
55064
+ Connecting to database specified by database.yml
55065
+ FACTORY (2.8ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
55066
+ FACTORY (56.1ms) DROP TABLE IF EXISTS `employees`
55067
+ FACTORY (17.4ms)  CREATE TABLE `employees` (
55068
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
55069
+ `name` varchar(255) NOT NULL,
55070
+ `division` varchar(255) NOT NULL,
55071
+ `salary` int(11) NOT NULL,
55072
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
55073
+ `hired_on` date NOT NULL,
55074
+ PRIMARY KEY (`id`)
55075
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
55076
+ 
55077
+ FACTORY (0.9ms) TRUNCATE `employees`
55078
+ FACTORY (0.4ms)  INSERT INTO
55079
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55080
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
55081
+ 
55082
+ FACTORY (0.3ms) INSERT INTO
55083
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55084
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
55085
+
55086
+ FACTORY (0.3ms)  INSERT INTO
55087
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55088
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
55089
+ 
55090
+ FACTORY (4.4ms) DROP TABLE IF EXISTS `employees`
55091
+ FACTORY (0.9ms)  CREATE TABLE `employees` (
55092
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
55093
+ `name` TEXT NOT NULL,
55094
+ `division` TEXT NOT NULL,
55095
+ `salary` INTEGER NOT NULL,
55096
+ `suspended` TINYINT NOT NULL DEFAULT 0,
55097
+ `hired_on` DATE NOT NULL
55098
+ );
55099
+ 
55100
+ FACTORY (0.8ms) DELETE FROM `employees`
55101
+ FACTORY (0.8ms)  INSERT INTO
55102
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55103
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
55104
+ 
55105
+ FACTORY (0.7ms) INSERT INTO
55106
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55107
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
55108
+
55109
+ FACTORY (0.7ms)  INSERT INTO
55110
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55111
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
55112
+ 
55113
+ Connecting to database specified by database.yml
55114
+ FACTORY (0.1ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
55115
+ FACTORY (0.8ms) DROP TABLE IF EXISTS `employees`
55116
+ FACTORY (7.5ms)  CREATE TABLE `employees` (
55117
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
55118
+ `name` varchar(255) NOT NULL,
55119
+ `division` varchar(255) NOT NULL,
55120
+ `salary` int(11) NOT NULL,
55121
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
55122
+ `hired_on` date NOT NULL,
55123
+ PRIMARY KEY (`id`)
55124
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
55125
+ 
55126
+ FACTORY (2.3ms) TRUNCATE `employees`
55127
+ FACTORY (0.5ms)  INSERT INTO
55128
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55129
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
55130
+ 
55131
+ FACTORY (0.6ms) INSERT INTO
55132
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55133
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
55134
+
55135
+ FACTORY (0.5ms)  INSERT INTO
55136
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55137
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
55138
+ 
55139
+ FACTORY (1.4ms) DROP TABLE IF EXISTS `employees`
55140
+ FACTORY (0.9ms)  CREATE TABLE `employees` (
55141
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
55142
+ `name` TEXT NOT NULL,
55143
+ `division` TEXT NOT NULL,
55144
+ `salary` INTEGER NOT NULL,
55145
+ `suspended` TINYINT NOT NULL DEFAULT 0,
55146
+ `hired_on` DATE NOT NULL
55147
+ );
55148
+ 
55149
+ FACTORY (0.7ms) DELETE FROM `employees`
55150
+ FACTORY (0.8ms)  INSERT INTO
55151
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55152
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
55153
+ 
55154
+ FACTORY (0.8ms) INSERT INTO
55155
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55156
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
55157
+
55158
+ FACTORY (0.8ms)  INSERT INTO
55159
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55160
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
55161
+ 
55162
+ Connecting to database specified by database.yml
55163
+ FACTORY (0.1ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
55164
+ FACTORY (1.2ms) DROP TABLE IF EXISTS `employees`
55165
+ FACTORY (14.5ms)  CREATE TABLE `employees` (
55166
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
55167
+ `name` varchar(255) NOT NULL,
55168
+ `division` varchar(255) NOT NULL,
55169
+ `salary` int(11) NOT NULL,
55170
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
55171
+ `hired_on` date NOT NULL,
55172
+ PRIMARY KEY (`id`)
55173
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
55174
+ 
55175
+ FACTORY (1.1ms) TRUNCATE `employees`
55176
+ FACTORY (0.5ms)  INSERT INTO
55177
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55178
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
55179
+ 
55180
+ FACTORY (0.4ms) INSERT INTO
55181
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55182
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
55183
+
55184
+ FACTORY (0.5ms)  INSERT INTO
55185
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55186
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
55187
+ 
55188
+ FACTORY (1.3ms) DROP TABLE IF EXISTS `employees`
55189
+ FACTORY (0.8ms)  CREATE TABLE `employees` (
55190
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
55191
+ `name` TEXT NOT NULL,
55192
+ `division` TEXT NOT NULL,
55193
+ `salary` INTEGER NOT NULL,
55194
+ `suspended` TINYINT NOT NULL DEFAULT 0,
55195
+ `hired_on` DATE NOT NULL
55196
+ );
55197
+ 
55198
+ FACTORY (0.7ms) DELETE FROM `employees`
55199
+ FACTORY (0.9ms)  INSERT INTO
55200
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55201
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
55202
+ 
55203
+ FACTORY (0.8ms) INSERT INTO
55204
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55205
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
55206
+
55207
+ FACTORY (0.8ms)  INSERT INTO
55208
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55209
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
55210
+ 
55211
+ Connecting to database specified by database.yml
55212
+ FACTORY (0.1ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
55213
+ FACTORY (0.8ms) DROP TABLE IF EXISTS `employees`
55214
+ FACTORY (13.7ms)  CREATE TABLE `employees` (
55215
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
55216
+ `name` varchar(255) NOT NULL,
55217
+ `division` varchar(255) NOT NULL,
55218
+ `salary` int(11) NOT NULL,
55219
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
55220
+ `hired_on` date NOT NULL,
55221
+ PRIMARY KEY (`id`)
55222
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
55223
+ 
55224
+ FACTORY (1.1ms) TRUNCATE `employees`
55225
+ FACTORY (0.5ms)  INSERT INTO
55226
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55227
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
55228
+ 
55229
+ FACTORY (0.4ms) INSERT INTO
55230
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55231
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
55232
+
55233
+ FACTORY (0.6ms)  INSERT INTO
55234
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55235
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
55236
+ 
55237
+ FACTORY (1.4ms) DROP TABLE IF EXISTS `employees`
55238
+ FACTORY (0.8ms)  CREATE TABLE `employees` (
55239
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
55240
+ `name` TEXT NOT NULL,
55241
+ `division` TEXT NOT NULL,
55242
+ `salary` INTEGER NOT NULL,
55243
+ `suspended` TINYINT NOT NULL DEFAULT 0,
55244
+ `hired_on` DATE NOT NULL
55245
+ );
55246
+ 
55247
+ FACTORY (0.7ms) DELETE FROM `employees`
55248
+ FACTORY (0.8ms)  INSERT INTO
55249
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55250
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
55251
+ 
55252
+ FACTORY (0.8ms) INSERT INTO
55253
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55254
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
55255
+
55256
+ FACTORY (0.8ms)  INSERT INTO
55257
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55258
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
55259
+ 
55260
+ Connecting to database specified by database.yml
55261
+ FACTORY (0.1ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
55262
+ FACTORY (0.9ms) DROP TABLE IF EXISTS `employees`
55263
+ FACTORY (7.5ms)  CREATE TABLE `employees` (
55264
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
55265
+ `name` varchar(255) NOT NULL,
55266
+ `division` varchar(255) NOT NULL,
55267
+ `salary` int(11) NOT NULL,
55268
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
55269
+ `hired_on` date NOT NULL,
55270
+ PRIMARY KEY (`id`)
55271
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
55272
+ 
55273
+ FACTORY (1.5ms) TRUNCATE `employees`
55274
+ FACTORY (0.6ms)  INSERT INTO
55275
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55276
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
55277
+ 
55278
+ FACTORY (0.5ms) INSERT INTO
55279
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55280
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
55281
+
55282
+ FACTORY (0.5ms)  INSERT INTO
55283
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55284
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
55285
+ 
55286
+ FACTORY (1.5ms) DROP TABLE IF EXISTS `employees`
55287
+ FACTORY (1.3ms)  CREATE TABLE `employees` (
55288
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
55289
+ `name` TEXT NOT NULL,
55290
+ `division` TEXT NOT NULL,
55291
+ `salary` INTEGER NOT NULL,
55292
+ `suspended` TINYINT NOT NULL DEFAULT 0,
55293
+ `hired_on` DATE NOT NULL
55294
+ );
55295
+ 
55296
+ FACTORY (0.8ms) DELETE FROM `employees`
55297
+ FACTORY (0.8ms)  INSERT INTO
55298
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55299
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
55300
+ 
55301
+ FACTORY (0.8ms) INSERT INTO
55302
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55303
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
55304
+
55305
+ FACTORY (0.9ms)  INSERT INTO
55306
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55307
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
55308
+ 
55309
+ Started GET "/reports/cats/are/super_fun" for 127.0.0.1 at 2013-12-02 10:05:04 -0500
55310
+ Processing by Dossier::ReportsController#show as HTML
55311
+ Parameters: {"report"=>"cats/are/super_fun"}
55312
+ Cats::Are::SuperFunReport (0.1ms)
55313
+ select 'cats', 'are', 'super', 'fun'
55314
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml within layouts/application (12.0ms)
55315
+ Completed 200 OK in 25ms (Views: 15.8ms | ActiveRecord: 0.1ms)
55316
+ Started GET "/multi/reports/combination" for 127.0.0.1 at 2013-12-02 10:05:04 -0500
55317
+ Processing by Dossier::ReportsController#multi as HTML
55318
+ Parameters: {"report"=>"combination"}
55319
+ Rendered dossier/reports/combination/_options.html.haml (5.1ms)
55320
+ EmployeeReport (0.6ms) 
55321
+ SELECT * FROM employees WHERE 1=1
55322
+ ORDER BY name ASC
55323
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml (10.2ms)
55324
+ EmployeeWithCustomViewReport (0.3ms)
55325
+ SELECT * FROM employees WHERE suspended = true
55326
+ Rendered dossier/reports/employee_with_custom_view.html.haml (3.7ms)
55327
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/multi.html.haml within layouts/application (36.2ms)
55328
+ Completed 200 OK in 40ms (Views: 37.9ms | ActiveRecord: 0.8ms)
55329
+ Started GET "/multi/reports/combination" for 127.0.0.1 at 2013-12-02 10:05:04 -0500
55330
+ Processing by Dossier::ReportsController#multi as HTML
55331
+ Parameters: {"report"=>"combination"}
55332
+ Rendered dossier/reports/combination/_options.html.haml (1.3ms)
55333
+ EmployeeReport (0.3ms) 
55334
+ SELECT * FROM employees WHERE 1=1
55335
+ ORDER BY name ASC
55336
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml (4.7ms)
55337
+ EmployeeWithCustomViewReport (0.2ms)
55338
+ SELECT * FROM employees WHERE suspended = true
55339
+ Rendered dossier/reports/employee_with_custom_view.html.haml (1.5ms)
55340
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/multi.html.haml within layouts/application (9.3ms)
55341
+ Completed 200 OK in 12ms (Views: 10.2ms | ActiveRecord: 0.5ms)
55342
+ Started GET "/multi/reports/combination.csv" for 127.0.0.1 at 2013-12-02 10:05:05 -0500
55343
+ Processing by Dossier::ReportsController#multi as CSV
55344
+ Parameters: {"report"=>"combination"}
55345
+ Completed 500 Internal Server Error in 1ms
55346
+ Started GET "/multi/reports/combination" for 127.0.0.1 at 2013-12-02 10:05:05 -0500
55347
+ Processing by Dossier::ReportsController#multi as HTML
55348
+ Parameters: {"report"=>"combination"}
55349
+ Rendered dossier/reports/combination/_options.html.haml (2.1ms)
55350
+ EmployeeReport (0.3ms) 
55351
+ SELECT * FROM employees WHERE 1=1
55352
+ ORDER BY name ASC
55353
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml (47.2ms)
55354
+ EmployeeWithCustomViewReport (0.2ms)
55355
+ SELECT * FROM employees WHERE suspended = true
55356
+ Rendered dossier/reports/employee_with_custom_view.html.haml (1.5ms)
55357
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/multi.html.haml within layouts/application (53.0ms)
55358
+ Completed 200 OK in 55ms (Views: 53.9ms | ActiveRecord: 0.6ms)
55359
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-12-02 10:05:05 -0500
55360
+ Processing by Dossier::ReportsController#show as CSV
55361
+ Parameters: {"report"=>"employee"}
55362
+ EmployeeReport (0.5ms) 
55363
+ SELECT * FROM employees WHERE 1=1
55364
+ ORDER BY name ASC
55365
+ Completed 200 OK in 4ms (ActiveRecord: 0.5ms)
55366
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-12-02 10:05:05 -0500
55367
+ Processing by Dossier::ReportsController#show as HTML
55368
+ Parameters: {"report"=>"employee_with_custom_view"}
55369
+ Rendered dossier/reports/employee_with_custom_view/_options.html.haml (5.0ms)
55370
+ EmployeeWithCustomViewReport (0.2ms)
55371
+ SELECT * FROM employees WHERE suspended = true
55372
+ Rendered dossier/reports/employee_with_custom_view.html.haml within layouts/application (11.0ms)
55373
+ Completed 200 OK in 15ms (Views: 13.5ms | ActiveRecord: 0.2ms)
55374
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-12-02 10:05:05 -0500
55375
+ Processing by Dossier::ReportsController#show as HTML
55376
+ Parameters: {"report"=>"employee_with_custom_view"}
55377
+ Rendered dossier/reports/employee_with_custom_view/_options.html.haml (4.7ms)
55378
+ EmployeeWithCustomViewReport (0.2ms) 
55379
+ SELECT * FROM employees WHERE suspended = true
55380
+ Rendered dossier/reports/employee_with_custom_view.html.haml within layouts/application (10.6ms)
55381
+ Completed 200 OK in 15ms (Views: 12.9ms | ActiveRecord: 0.2ms)
55382
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-12-02 10:05:05 -0500
55383
+ Processing by Dossier::ReportsController#show as HTML
55384
+ Parameters: {"report"=>"employee"}
55385
+ EmployeeReport (0.4ms)
55386
+ SELECT * FROM employees WHERE 1=1
55387
+ ORDER BY name ASC
55388
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml within layouts/application (8.7ms)
55389
+ Completed 200 OK in 15ms (Views: 10.9ms | ActiveRecord: 0.4ms)
55390
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-12-02 10:05:05 -0500
55391
+ Processing by Dossier::ReportsController#show as HTML
55392
+ Parameters: {"report"=>"employee"}
55393
+ EmployeeReport (0.3ms) 
55394
+ SELECT * FROM employees WHERE 1=1
55395
+ ORDER BY name ASC
55396
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml within layouts/application (5.8ms)
55397
+ Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.3ms)
55398
+ Started GET "/reports/employee?options[divisions][]=Tedious+Toiling&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[order]=desc&options[salary]=true" for 127.0.0.1 at 2013-12-02 10:05:05 -0500
55399
+ Processing by Dossier::ReportsController#show as HTML
55400
+ Parameters: {"options"=>{"divisions"=>["Tedious Toiling"], "names"=>["Jimmy Jackalope", "Moustafa McMann"], "order"=>"desc", "salary"=>"true"}, "report"=>"employee"}
55401
+ EmployeeReport (0.4ms)
55402
+ SELECT * FROM employees WHERE 1=1
55403
+ AND division in (('Tedious Toiling'))
55404
+ AND salary > 10000
55405
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
55406
+ ORDER BY name DESC
55407
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml within layouts/application (7.3ms)
55408
+ Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.4ms)
55409
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-12-02 10:05:05 -0500
55410
+ Processing by Dossier::ReportsController#show as HTML
55411
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
55412
+ EmployeeReport (0.3ms) 
55413
+ SELECT * FROM employees WHERE 1=1
55414
+ ORDER BY name ASC
55415
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml within layouts/application (6.2ms)
55416
+ Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.3ms)
55417
+ Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-12-02 10:05:05 -0500
55418
+ Processing by Dossier::ReportsController#show as XLS
55419
+ Parameters: {"report"=>"employee"}
55420
+ EmployeeReport (0.3ms)
55421
+ SELECT * FROM employees WHERE 1=1
55422
+ ORDER BY name ASC
55423
+ Completed 200 OK in 4ms (ActiveRecord: 0.3ms)
55424
+ Rendered dossier/reports/employee_with_custom_view/_options.html.haml (3.9ms)
55425
+ EmployeeReport (0.3ms) 
55426
+ SELECT * FROM employees WHERE 1=1
55427
+ ORDER BY name ASC
55428
+ EmployeeReport (0.2ms)
55429
+ SELECT * FROM employees WHERE 1=1
55430
+ ORDER BY name ASC
55431
+ Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-12-02 10:05:05 -0500
55432
+ Processing by SiteController#report as HTML
55433
+ EmployeeReport (0.4ms) 
55434
+ SELECT * FROM employees WHERE 1=1
55435
+ ORDER BY name ASC
55436
+ Completed 200 OK in 7ms (Views: 4.1ms | ActiveRecord: 0.4ms)
55437
+ EmployeeReport (0.3ms)
55438
+ SELECT * FROM employees WHERE 1=1
55439
+ ORDER BY name ASC
55440
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-12-02 10:05:05 -0500
55441
+ Processing by Dossier::ReportsController#show as HTML
55442
+ Parameters: {"report"=>"employee_with_custom_client"}
55443
+ EmployeeWithCustomClientReport (0.2ms) 
55444
+ SELECT * FROM `employees`
55445
+ Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.2ms)
55446
+ Connecting to database specified by database.yml
55447
+ FACTORY (0.1ms) CREATE DATABASE IF NOT EXISTS `dossier_test`
55448
+ FACTORY (6.5ms) DROP TABLE IF EXISTS `employees`
55449
+ FACTORY (19.9ms)  CREATE TABLE `employees` (
55450
+ `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
55451
+ `name` varchar(255) NOT NULL,
55452
+ `division` varchar(255) NOT NULL,
55453
+ `salary` int(11) NOT NULL,
55454
+ `suspended` tinyint(1) NOT NULL DEFAULT 0,
55455
+ `hired_on` date NOT NULL,
55456
+ PRIMARY KEY (`id`)
55457
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
55458
+ 
55459
+ FACTORY (0.9ms) TRUNCATE `employees`
55460
+ FACTORY (0.4ms)  INSERT INTO
55461
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55462
+ VALUES ('Moustafa McMann', '2010-10-02', false, 'Zany Inventions', 30000);
55463
+ 
55464
+ FACTORY (0.3ms) INSERT INTO
55465
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55466
+ VALUES ('Jimmy Jackalope, Jr.', '2013-01-11', true, 'Tedious Toiling', 20000);
55467
+
55468
+ FACTORY (0.3ms)  INSERT INTO
55469
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55470
+ VALUES ('Elise Elderberry', '2013-01-11', false, 'Corporate Malfeasance', 99000);
55471
+ 
55472
+ FACTORY (1.2ms) DROP TABLE IF EXISTS `employees`
55473
+ FACTORY (0.7ms)  CREATE TABLE `employees` (
55474
+ `id` INTEGER PRIMARY KEY AUTOINCREMENT,
55475
+ `name` TEXT NOT NULL,
55476
+ `division` TEXT NOT NULL,
55477
+ `salary` INTEGER NOT NULL,
55478
+ `suspended` TINYINT NOT NULL DEFAULT 0,
55479
+ `hired_on` DATE NOT NULL
55480
+ );
55481
+ 
55482
+ FACTORY (0.5ms) DELETE FROM `employees`
55483
+ FACTORY (0.6ms)  INSERT INTO
55484
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55485
+ VALUES ('MOUSTAFA MCMANN', '2010-10-02', 0, 'Zany Inventions', 30000);
55486
+ 
55487
+ FACTORY (0.6ms) INSERT INTO
55488
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55489
+ VALUES ('JIMMY JACKALOPE, JR.', '2013-01-11', 1, 'Tedious Toiling', 20000);
55490
+
55491
+ FACTORY (0.6ms)  INSERT INTO
55492
+ `employees` (`name`, `hired_on`, `suspended`, `division`, `salary`)
55493
+ VALUES ('ELISE ELDERBERRY', '2013-01-11', 0, 'Corporate Malfeasance', 99000);
55494
+ 
55495
+ Started GET "/reports/employee_with_custom_client" for 127.0.0.1 at 2013-12-02 10:07:16 -0500
55496
+ Processing by Dossier::ReportsController#show as HTML
55497
+ Parameters: {"report"=>"employee_with_custom_client"}
55498
+ EmployeeWithCustomClientReport (0.8ms)
55499
+ SELECT * FROM `employees`
55500
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml within layouts/application (10.9ms)
55501
+ Completed 200 OK in 22ms (Views: 14.3ms | ActiveRecord: 0.8ms)
55502
+ EmployeeReport (0.3ms) 
55503
+ SELECT * FROM employees WHERE 1=1
55504
+ ORDER BY name ASC
55505
+ Started GET "/reports/employee.csv" for 127.0.0.1 at 2013-12-02 10:07:17 -0500
55506
+ Processing by Dossier::ReportsController#show as CSV
55507
+ Parameters: {"report"=>"employee"}
55508
+ EmployeeReport (0.3ms)
55509
+ SELECT * FROM employees WHERE 1=1
55510
+ ORDER BY name ASC
55511
+ Completed 200 OK in 3ms (ActiveRecord: 0.3ms)
55512
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-12-02 10:07:17 -0500
55513
+ Processing by Dossier::ReportsController#show as HTML
55514
+ Parameters: {"report"=>"employee_with_custom_view"}
55515
+ Rendered dossier/reports/employee_with_custom_view/_options.html.haml (4.7ms)
55516
+ EmployeeWithCustomViewReport (0.3ms) 
55517
+ SELECT * FROM employees WHERE suspended = true
55518
+ Rendered dossier/reports/employee_with_custom_view.html.haml within layouts/application (12.4ms)
55519
+ Completed 200 OK in 17ms (Views: 15.6ms | ActiveRecord: 0.3ms)
55520
+ Started GET "/reports/employee_with_custom_view" for 127.0.0.1 at 2013-12-02 10:07:17 -0500
55521
+ Processing by Dossier::ReportsController#show as HTML
55522
+ Parameters: {"report"=>"employee_with_custom_view"}
55523
+ Rendered dossier/reports/employee_with_custom_view/_options.html.haml (2.5ms)
55524
+ EmployeeWithCustomViewReport (0.2ms)
55525
+ SELECT * FROM employees WHERE suspended = true
55526
+ Rendered dossier/reports/employee_with_custom_view.html.haml within layouts/application (6.4ms)
55527
+ Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.2ms)
55528
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-12-02 10:07:17 -0500
55529
+ Processing by Dossier::ReportsController#show as HTML
55530
+ Parameters: {"report"=>"employee"}
55531
+ EmployeeReport (0.3ms) 
55532
+ SELECT * FROM employees WHERE 1=1
55533
+ ORDER BY name ASC
55534
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml within layouts/application (6.8ms)
55535
+ Completed 200 OK in 11ms (Views: 8.2ms | ActiveRecord: 0.3ms)
55536
+ Started GET "/reports/employee" for 127.0.0.1 at 2013-12-02 10:07:17 -0500
55537
+ Processing by Dossier::ReportsController#show as HTML
55538
+ Parameters: {"report"=>"employee"}
55539
+ EmployeeReport (0.3ms)
55540
+ SELECT * FROM employees WHERE 1=1
55541
+ ORDER BY name ASC
55542
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml within layouts/application (8.1ms)
55543
+ Completed 200 OK in 13ms (Views: 10.4ms | ActiveRecord: 0.3ms)
55544
+ Started GET "/reports/employee?options[divisions][]=Tedious+Toiling&options[names][]=Jimmy+Jackalope&options[names][]=Moustafa+McMann&options[order]=desc&options[salary]=true" for 127.0.0.1 at 2013-12-02 10:07:17 -0500
55545
+ Processing by Dossier::ReportsController#show as HTML
55546
+ Parameters: {"options"=>{"divisions"=>["Tedious Toiling"], "names"=>["Jimmy Jackalope", "Moustafa McMann"], "order"=>"desc", "salary"=>"true"}, "report"=>"employee"}
55547
+ EmployeeReport (0.5ms) 
55548
+ SELECT * FROM employees WHERE 1=1
55549
+ AND division in (('Tedious Toiling'))
55550
+ AND salary > 10000
55551
+ AND (name like '%Moustafa McMann%' or name like '%Jimmy Jackalope%')
55552
+ ORDER BY name DESC
55553
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml within layouts/application (11.2ms)
55554
+ Completed 200 OK in 16ms (Views: 13.3ms | ActiveRecord: 0.5ms)
55555
+ Started GET "/reports/employee?options[footer]=1" for 127.0.0.1 at 2013-12-02 10:07:17 -0500
55556
+ Processing by Dossier::ReportsController#show as HTML
55557
+ Parameters: {"options"=>{"footer"=>"1"}, "report"=>"employee"}
55558
+ EmployeeReport (0.3ms)
55559
+ SELECT * FROM employees WHERE 1=1
55560
+ ORDER BY name ASC
55561
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml within layouts/application (5.3ms)
55562
+ Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.3ms)
55563
+ Started GET "/reports/employee.xls" for 127.0.0.1 at 2013-12-02 10:07:17 -0500
55564
+ Processing by Dossier::ReportsController#show as XLS
55565
+ Parameters: {"report"=>"employee"}
55566
+ EmployeeReport (0.3ms) 
55567
+ SELECT * FROM employees WHERE 1=1
55568
+ ORDER BY name ASC
55569
+ Completed 200 OK in 4ms (ActiveRecord: 0.3ms)
55570
+ Started GET "/multi/reports/combination" for 127.0.0.1 at 2013-12-02 10:07:17 -0500
55571
+ Processing by Dossier::ReportsController#multi as HTML
55572
+ Parameters: {"report"=>"combination"}
55573
+ Rendered dossier/reports/combination/_options.html.haml (3.8ms)
55574
+ EmployeeReport (0.4ms)
55575
+ SELECT * FROM employees WHERE 1=1
55576
+ ORDER BY name ASC
55577
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml (7.6ms)
55578
+ EmployeeWithCustomViewReport (0.3ms) 
55579
+ SELECT * FROM employees WHERE suspended = true
55580
+ Rendered dossier/reports/employee_with_custom_view.html.haml (3.0ms)
55581
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/multi.html.haml within layouts/application (29.6ms)
55582
+ Completed 200 OK in 34ms (Views: 31.5ms | ActiveRecord: 0.7ms)
55583
+ Started GET "/multi/reports/combination" for 127.0.0.1 at 2013-12-02 10:07:17 -0500
55584
+ Processing by Dossier::ReportsController#multi as HTML
55585
+ Parameters: {"report"=>"combination"}
55586
+ Rendered dossier/reports/combination/_options.html.haml (1.3ms)
55587
+ EmployeeReport (0.3ms)
55588
+ SELECT * FROM employees WHERE 1=1
55589
+ ORDER BY name ASC
55590
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml (5.1ms)
55591
+ EmployeeWithCustomViewReport (0.2ms) 
55592
+ SELECT * FROM employees WHERE suspended = true
55593
+ Rendered dossier/reports/employee_with_custom_view.html.haml (1.6ms)
55594
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/multi.html.haml within layouts/application (9.9ms)
55595
+ Completed 200 OK in 12ms (Views: 10.9ms | ActiveRecord: 0.6ms)
55596
+ Started GET "/multi/reports/combination.csv" for 127.0.0.1 at 2013-12-02 10:07:17 -0500
55597
+ Processing by Dossier::ReportsController#multi as CSV
55598
+ Parameters: {"report"=>"combination"}
55599
+ Completed 500 Internal Server Error in 1ms
55600
+ Started GET "/multi/reports/combination" for 127.0.0.1 at 2013-12-02 10:07:17 -0500
55601
+ Processing by Dossier::ReportsController#multi as HTML
55602
+ Parameters: {"report"=>"combination"}
55603
+ Rendered dossier/reports/combination/_options.html.haml (1.8ms)
55604
+ EmployeeReport (0.2ms)
55605
+ SELECT * FROM employees WHERE 1=1
55606
+ ORDER BY name ASC
55607
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml (5.0ms)
55608
+ EmployeeWithCustomViewReport (0.2ms) 
55609
+ SELECT * FROM employees WHERE suspended = true
55610
+ Rendered dossier/reports/employee_with_custom_view.html.haml (1.5ms)
55611
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/multi.html.haml within layouts/application (10.2ms)
55612
+ Completed 200 OK in 12ms (Views: 11.1ms | ActiveRecord: 0.5ms)
55613
+ EmployeeReport (0.3ms)
55614
+ SELECT * FROM employees WHERE 1=1
55615
+ ORDER BY name ASC
55616
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml within dossier/layouts/application (4.7ms)
55617
+ EmployeeReport (0.3ms) 
55618
+ SELECT * FROM employees WHERE 1=1
55619
+ ORDER BY name ASC
55620
+ Rendered /Users/adamhunter/Studio/github/dossier/app/views/dossier/reports/show.html.haml within dossier/layouts/application (6.2ms)
55621
+ Rendered dossier/reports/employee_with_custom_view/_options.html.haml (3.9ms)
55622
+ Started GET "/reports/cats/are/super_fun" for 127.0.0.1 at 2013-12-02 10:07:17 -0500
55623
+ Processing by Dossier::ReportsController#show as HTML
55624
+ Parameters: {"report"=>"cats/are/super_fun"}
55625
+ Cats::Are::SuperFunReport (0.1ms)
55626
+ select 'cats', 'are', 'super', 'fun'
55627
+ Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.1ms)
55628
+ Started GET "/employee_report_custom_controller" for 127.0.0.1 at 2013-12-02 10:07:17 -0500
55629
+ Processing by SiteController#report as HTML
55630
+ EmployeeReport (0.4ms) 
55631
+ SELECT * FROM employees WHERE 1=1
55632
+ ORDER BY name ASC
55633
+ Completed 200 OK in 9ms (Views: 5.6ms | ActiveRecord: 0.4ms)
data/spec/spec_helper.rb CHANGED
@@ -4,7 +4,6 @@ ENV["RAILS_ENV"] = "test"
4
4
  require 'simplecov'
5
5
  require 'coveralls'
6
6
 
7
-
8
7
  SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
9
8
  SimpleCov::Formatter::HTMLFormatter,
10
9
  Coveralls::SimpleCov::Formatter
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dossier
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.2
4
+ version: 2.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Hunter
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-10-30 00:00:00.000000000 Z
13
+ date: 2013-12-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: arel
@@ -336,7 +336,8 @@ files:
336
336
  - spec/spec_helper.rb
337
337
  - spec/support/factory.rb
338
338
  homepage: https://github.com/adamhunter/dossier
339
- licenses: []
339
+ licenses:
340
+ - MIT
340
341
  metadata: {}
341
342
  post_install_message:
342
343
  rdoc_options: []