clark_kent 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 771c516239721dc3e10ce668be9bf00f41159bff
4
- data.tar.gz: f4d0aa975ae949da1ef0ac54967dc6577f38a8c5
3
+ metadata.gz: c003298cbdcef4e49fa092a0f4fca66eb1331a9f
4
+ data.tar.gz: 36733fd66320a708c2fff95b07c7bb87269b5dd6
5
5
  SHA512:
6
- metadata.gz: d0901dff83b2fe89332ba626228df1b1915481e078d6147482a5e3745db2c616792ea0888cde5214ac510a5dbd8ef4722ebf2ea6ed6dbfb5c5c411c91cdc84d1
7
- data.tar.gz: 8e7411754f0018019c0400a987793d673b14134564c2a2b7fc6877e34d0822563d9189f3495efd35215572a59606355796b5a9b636a6ab81dad9eb781df3ee5e
6
+ metadata.gz: 011992af258de23071497df9aa7b57da2a699ff2d3a76e96bde1a9d660dc4a268878034150ac91e07f078609516cdf4dcaca59127f9262fabe6711202cb7b949
7
+ data.tar.gz: fc56a098cda4262d34f4bc77e181b23167d74c1a4038e31fdd5c863d44feb37f2c54363e20aaaa951aa0dc36797c5010ec689405bc1f7f654dfa05d4c5f3b3e7
@@ -1,6 +1,8 @@
1
1
  module ClarkKent
2
2
  module Reportable
3
- extend ActiveSupport::Concern
3
+ def self.included(base)
4
+ base.extend ClassMethods
5
+ end
4
6
 
5
7
  module ClassMethods
6
8
 
@@ -1,3 +1,3 @@
1
1
  module ClarkKent
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
Binary file
@@ -35371,3 +35371,358 @@ ClarkKent::ReportableTest: test_it_works_without_any_required_filters
35371
35371
  ClarkKent::ReportFilter Load (0.0ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
35372
35372
  ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 2]]
35373
35373
   (0.4ms) rollback transaction
35374
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
35375
+  (1.0ms) CREATE TABLE "clark_kent_report_columns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "column_name" varchar, "column_order" integer, "report_sort" varchar, "summary_method" varchar)
35376
+  (0.1ms) select sqlite_version(*)
35377
+  (0.9ms) CREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")
35378
+  (0.8ms) CREATE TABLE "clark_kent_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "when_to_send" varchar, "name" varchar) 
35379
+  (0.9ms) CREATE TABLE "clark_kent_report_filters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "filterable_id" integer, "filterable_type" varchar DEFAULT 'ClarkKent::Report', "string" varchar DEFAULT 'ClarkKent::Report', "filter_name" varchar, "filter_value" varchar, "type" varchar, "duration" varchar, "kind_of_day" varchar, "offset" varchar, "created_at" datetime, "updated_at" datetime)
35380
+  (1.0ms) CREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")
35381
+  (0.2ms) SELECT sql
35382
+ FROM sqlite_master
35383
+ WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
35384
+ UNION ALL
35385
+ SELECT sql
35386
+ FROM sqlite_temp_master
35387
+ WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
35388
+
35389
+  (0.9ms) CREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")
35390
+  (0.8ms) CREATE TABLE "clark_kent_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_type" varchar, "sharing_scope_type" varchar, "sharing_scope_id" integer, "created_at" datetime, "updated_at" datetime)
35391
+  (0.8ms) CREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")
35392
+  (0.1ms) SELECT sql
35393
+ FROM sqlite_master
35394
+ WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
35395
+ UNION ALL
35396
+ SELECT sql
35397
+ FROM sqlite_temp_master
35398
+ WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
35399
+
35400
+  (0.8ms) CREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")
35401
+  (0.8ms) CREATE TABLE "clark_kent_user_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "report_email_id" integer)
35402
+  (0.8ms) CREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
35403
+  (0.8ms) CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "amount" integer, "description" varchar, "created_at" datetime, "updated_at" datetime)
35404
+  (0.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "age" integer, "department_id" integer) 
35405
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
35406
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
35407
+  (0.1ms) SELECT version FROM "schema_migrations"
35408
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150313144015')
35409
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131226170042')
35410
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131226170112')
35411
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140114010048')
35412
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140129051754')
35413
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150304233739')
35414
+  (0.0ms) begin transaction
35415
+ SQL (0.3ms) INSERT INTO "clark_kent_reports" ("resource_type", "created_at", "updated_at") VALUES (?, ?, ?) [["resource_type", "Order"], ["created_at", "2016-03-30 16:09:48.322634"], ["updated_at", "2016-03-30 16:09:48.322634"]]
35416
+  (0.8ms) commit transaction
35417
+  (0.0ms) begin transaction
35418
+ SQL (0.3ms) INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "user_name"], ["column_order", 1], ["report_id", 1]]
35419
+  (0.9ms) commit transaction
35420
+  (0.0ms) begin transaction
35421
+ SQL (0.2ms) INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "id"], ["column_order", 2], ["report_id", 1]]
35422
+  (0.8ms) commit transaction
35423
+  (0.1ms) begin transaction
35424
+ SQL (0.3ms) INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "amount"], ["column_order", 3], ["report_id", 1]]
35425
+  (0.8ms) commit transaction
35426
+  (0.0ms) begin transaction
35427
+ SQL (0.2ms) INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "description"], ["column_order", 4], ["report_id", 1]]
35428
+  (0.7ms) commit transaction
35429
+  (0.0ms) begin transaction
35430
+ SQL (0.3ms) INSERT INTO "departments" ("name") VALUES (?) [["name", "silly walks"]]
35431
+  (0.6ms) commit transaction
35432
+  (0.0ms) begin transaction
35433
+ SQL (0.3ms) INSERT INTO "users" ("name", "email", "department_id") VALUES (?, ?, ?) [["name", "Michael Hedges"], ["email", "taproot@gmail.com"], ["department_id", 1]]
35434
+  (0.6ms) commit transaction
35435
+  (0.1ms) begin transaction
35436
+ SQL (0.3ms) INSERT INTO "orders" ("user_id", "description", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["user_id", 1], ["description", "Guitar strings"], ["amount", 1], ["created_at", "2016-03-30 16:09:48.370741"], ["updated_at", "2016-03-30 16:09:48.370741"]]
35437
+  (0.7ms) commit transaction
35438
+  (0.1ms) begin transaction
35439
+ -------------------------------------------------------
35440
+ ClarkKent::ReportsController: test_should_create_report
35441
+ -------------------------------------------------------
35442
+ ClarkKent::Report Load (0.2ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
35443
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
35444
+ Processing by ClarkKent::ReportsController#create as HTML
35445
+ Parameters: {"report"=>{"name"=>"delete me", "resource_type"=>"Order", "sharing_scope_id"=>nil, "sharing_scope_type"=>nil}, "current_user_id"=>"1"}
35446
+  (0.1ms) SAVEPOINT active_record_1
35447
+ SQL (0.4ms) INSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "delete me"], ["resource_type", "Order"], ["created_at", "2016-03-30 16:09:48.434103"], ["updated_at", "2016-03-30 16:09:48.434103"]]
35448
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35449
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (9.0ms)
35450
+ ClarkKent::ReportFilter Load (0.1ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
35451
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (11.0ms)
35452
+ ClarkKent::ReportColumn Load (0.2ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 2]]
35453
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (4.7ms)
35454
+ ClarkKent::ReportEmail Load (0.1ms) SELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ? [["report_id", 2]]
35455
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (9.1ms)
35456
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (55.8ms)
35457
+ Completed 200 OK in 674ms (Views: 663.1ms | ActiveRecord: 1.1ms)
35458
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."name" = ? LIMIT 1 [["name", "delete me"]]
35459
+  (0.0ms) SAVEPOINT active_record_1
35460
+ ClarkKent::ReportFilter Load (0.0ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
35461
+ ClarkKent::ReportColumn Load (0.0ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 2]]
35462
+ ClarkKent::ReportEmail Load (0.0ms) SELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ? [["report_id", 2]]
35463
+ SQL (0.4ms) DELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? [["id", 2]]
35464
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35465
+  (0.6ms) rollback transaction
35466
+  (0.1ms) begin transaction
35467
+ --------------------------------------------------------
35468
+ ClarkKent::ReportsController: test_should_destroy_report
35469
+ --------------------------------------------------------
35470
+ ClarkKent::Report Load (0.2ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
35471
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
35472
+  (0.1ms) SAVEPOINT active_record_1
35473
+ SQL (0.3ms) INSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "delete me"], ["resource_type", "Order"], ["created_at", "2016-03-30 16:09:49.118005"], ["updated_at", "2016-03-30 16:09:49.118005"]]
35474
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35475
+  (0.1ms) SELECT COUNT(*) FROM "clark_kent_reports"
35476
+ Processing by ClarkKent::ReportsController#destroy as HTML
35477
+ Parameters: {"current_user_id"=>"1", "id"=>"2"}
35478
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 2]]
35479
+  (0.1ms) SAVEPOINT active_record_1
35480
+ ClarkKent::ReportFilter Load (0.0ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
35481
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 2]]
35482
+ ClarkKent::ReportEmail Load (0.0ms) SELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ? [["report_id", 2]]
35483
+ SQL (0.3ms) DELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? [["id", 2]]
35484
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35485
+ Redirected to http://test.host/reports/reports
35486
+ Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
35487
+  (0.1ms) SELECT COUNT(*) FROM "clark_kent_reports"
35488
+  (0.6ms) rollback transaction
35489
+  (0.1ms) begin transaction
35490
+ --------------------------------------------------
35491
+ ClarkKent::ReportsController: test_should_get_edit
35492
+ --------------------------------------------------
35493
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
35494
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
35495
+ Processing by ClarkKent::ReportsController#edit as HTML
35496
+ Parameters: {"current_user_id"=>"1", "id"=>"1"}
35497
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
35498
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (4.5ms)
35499
+ ClarkKent::ReportFilter Load (0.1ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
35500
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (4.1ms)
35501
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 1]]
35502
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (4.4ms)
35503
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (7.5ms)
35504
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (2.1ms)
35505
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (2.4ms)
35506
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (1.9ms)
35507
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (2.1ms)
35508
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (1.8ms)
35509
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (2.1ms)
35510
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (20.1ms)
35511
+ ClarkKent::ReportEmail Load (0.1ms) SELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ? [["report_id", 1]]
35512
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (2.3ms)
35513
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (34.5ms)
35514
+ Completed 200 OK in 38ms (Views: 36.9ms | ActiveRecord: 0.4ms)
35515
+  (0.1ms) rollback transaction
35516
+  (0.1ms) begin transaction
35517
+ ---------------------------------------------------
35518
+ ClarkKent::ReportsController: test_should_get_index
35519
+ ---------------------------------------------------
35520
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
35521
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
35522
+ Processing by ClarkKent::ReportsController#index as HTML
35523
+ Parameters: {"current_user_id"=>"1"}
35524
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
35525
+ ClarkKent::Report Exists (0.2ms) SELECT 1 AS one FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" = ? AND "clark_kent_reports"."sharing_scope_type" = ? LIMIT 1 [["sharing_scope_id", 1], ["sharing_scope_type", "User"]]
35526
+ Department Load (0.1ms) SELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT 1 [["id", 1]]
35527
+ ClarkKent::Report Exists (0.0ms) SELECT 1 AS one FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" = ? AND "clark_kent_reports"."sharing_scope_type" = ? LIMIT 1 [["sharing_scope_id", 1], ["sharing_scope_type", "Department"]]
35528
+  (0.1ms) SELECT COUNT(*) FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL
35529
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL
35530
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application (21.2ms)
35531
+ Completed 200 OK in 27ms (Views: 25.6ms | ActiveRecord: 0.6ms)
35532
+  (0.1ms) rollback transaction
35533
+  (0.1ms) begin transaction
35534
+ -------------------------------------------------
35535
+ ClarkKent::ReportsController: test_should_get_new
35536
+ -------------------------------------------------
35537
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
35538
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
35539
+ Processing by ClarkKent::ReportsController#new as HTML
35540
+ Parameters: {"current_user_id"=>"1"}
35541
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
35542
+ Department Load (0.0ms) SELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT 1 [["id", 1]]
35543
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (76.1ms)
35544
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (81.7ms)
35545
+ Completed 200 OK in 89ms (Views: 88.3ms | ActiveRecord: 0.1ms)
35546
+  (0.1ms) rollback transaction
35547
+  (0.1ms) begin transaction
35548
+ -----------------------------------------------------
35549
+ ClarkKent::ReportsController: test_should_show_report
35550
+ -----------------------------------------------------
35551
+ ClarkKent::Report Load (0.2ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
35552
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
35553
+ Processing by ClarkKent::ReportsController#show as HTML
35554
+ Parameters: {"current_user_id"=>"1", "id"=>"1"}
35555
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT 1 [["id", 1]]
35556
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" IN (1) ORDER BY clark_kent_report_columns.column_order
35557
+  (0.1ms) SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
35558
+  (0.0ms) SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
35559
+  (0.0ms) SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
35560
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (2.2ms)
35561
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
35562
+ User Load (0.1ms) SELECT "users".* FROM "users"
35563
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (3.9ms)
35564
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (1.4ms)
35565
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (2.0ms)
35566
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (34.4ms)
35567
+ Completed 200 OK in 50ms (Views: 41.5ms | ActiveRecord: 0.7ms)
35568
+  (0.1ms) rollback transaction
35569
+  (0.1ms) begin transaction
35570
+ -------------------------------------------------------------
35571
+ ClarkKent::ReportsController: test_should_show_report_results
35572
+ -------------------------------------------------------------
35573
+ ClarkKent::Report Load (0.4ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
35574
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
35575
+ Processing by ClarkKent::ReportsController#show as HTML
35576
+ Parameters: {"current_user_id"=>"1", "run_report"=>true, "created_at_until"=>"2016-03-30", "created_at_from"=>"2016-03-29", "id"=>"1"}
35577
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT 1 [["id", 1]]
35578
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" IN (1) ORDER BY clark_kent_report_columns.column_order
35579
+ ClarkKent::ReportFilter Load (0.0ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
35580
+ ClarkKent::ReportColumn Load (0.2ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
35581
+  (0.1ms) SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
35582
+  (0.0ms) SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
35583
+  (0.0ms) SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
35584
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.2ms)
35585
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
35586
+ User Load (0.1ms) SELECT "users".* FROM "users"
35587
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.3ms)
35588
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.1ms)
35589
+  (0.1ms) SELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)
35590
+  (0.1ms) SELECT COUNT(count_column) FROM (SELECT "orders"."id" AS count_column FROM "orders" WHERE (orders.user_id > 0) LIMIT 10 OFFSET 0) subquery_for_count
35591
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (4.5ms)
35592
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 1]]
35593
+ Order Load (0.1ms) SELECT DISTINCT orders.id, orders.user_id, orders.amount, orders.description, orders.created_at, orders.updated_at,
35594
+ (SELECT u.name
35595
+ FROM users u
35596
+ WHERE u.id = orders.user_id)
35597
+ as user_name FROM "orders" WHERE (orders.user_id > 0) LIMIT 10 OFFSET 0
35598
+ ClarkKent::Report Load (0.0ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
35599
+ ClarkKent::Report Load (0.0ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
35600
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
35601
+ ClarkKent::Report Load (0.0ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
35602
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_download_link.html.erb (3.1ms)
35603
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (36.1ms)
35604
+ Completed 200 OK in 46ms (Views: 38.5ms | ActiveRecord: 1.3ms)
35605
+  (0.1ms) rollback transaction
35606
+  (0.1ms) begin transaction
35607
+ ----------------------------------------------------------------
35608
+ ClarkKent::ReportsController: test_should_show_report_run_errors
35609
+ ----------------------------------------------------------------
35610
+ ClarkKent::Report Load (0.2ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
35611
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
35612
+ Processing by ClarkKent::ReportsController#show as HTML
35613
+ Parameters: {"current_user_id"=>"1", "run_report"=>true, "id"=>"1"}
35614
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT 1 [["id", 1]]
35615
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" IN (1) ORDER BY clark_kent_report_columns.column_order
35616
+ ClarkKent::ReportFilter Load (0.0ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
35617
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
35618
+  (0.1ms) SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
35619
+  (0.0ms) SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
35620
+  (0.0ms) SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
35621
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.3ms)
35622
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
35623
+ User Load (0.1ms) SELECT "users".* FROM "users"
35624
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.1ms)
35625
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.1ms)
35626
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.0ms)
35627
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (8.2ms)
35628
+ Completed 200 OK in 15ms (Views: 10.1ms | ActiveRecord: 0.6ms)
35629
+  (0.1ms) rollback transaction
35630
+  (0.0ms) begin transaction
35631
+ -------------------------------------------------------
35632
+ ClarkKent::ReportsController: test_should_update_report
35633
+ -------------------------------------------------------
35634
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
35635
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
35636
+ Processing by ClarkKent::ReportsController#update as HTML
35637
+ Parameters: {"report"=>{"name"=>nil, "resource_type"=>"Order", "sharing_scope_id"=>nil, "sharing_scope_type"=>nil}, "current_user_id"=>"1", "id"=>"1"}
35638
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
35639
+  (0.0ms) SAVEPOINT active_record_1
35640
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35641
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (5.3ms)
35642
+ Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.2ms)
35643
+  (0.1ms) rollback transaction
35644
+  (0.1ms) begin transaction
35645
+ -------------------------
35646
+ ClarkKentTest: test_truth
35647
+ -------------------------
35648
+  (0.0ms) rollback transaction
35649
+  (0.1ms) begin transaction
35650
+ ------------------------------------------------------------------------------------------------
35651
+ ClarkKent::ReportTest: test_can't_save_without_a_sharing_scope_id_if_the_sharing_scope_is_custom
35652
+ ------------------------------------------------------------------------------------------------
35653
+  (0.0ms) SAVEPOINT active_record_1
35654
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
35655
+  (0.0ms) rollback transaction
35656
+  (0.0ms) begin transaction
35657
+ ---------------------------------------------------
35658
+ ClarkKent::ReportEmailTest: test_sends_report_to_s3
35659
+ ---------------------------------------------------
35660
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "taproot@gmail.com"]]
35661
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
35662
+ SQL (0.3ms) UPDATE "clark_kent_reports" SET "sharing_scope_type" = 'Department', "sharing_scope_id" = 1 WHERE "clark_kent_reports"."id" = ? [["id", 1]]
35663
+  (0.0ms) SAVEPOINT active_record_1
35664
+ SQL (0.1ms) INSERT INTO "clark_kent_report_emails" ("name", "report_id") VALUES (?, ?) [["name", "test_emailer"], ["report_id", 1]]
35665
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35666
+  (0.0ms) SAVEPOINT active_record_1
35667
+ SQL (0.5ms) INSERT INTO "clark_kent_report_filters" ("type", "filter_name", "duration", "kind_of_day", "offset", "filterable_id", "filterable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "ClarkKent::ReportDateFilter"], ["filter_name", "created_at"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "this_week"], ["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["created_at", "2016-03-30 16:09:49.492637"], ["updated_at", "2016-03-30 16:09:49.492637"]]
35668
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35669
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
35670
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
35671
+ ClarkKent::ReportFilter Load (0.8ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
35672
+ Department Load (0.0ms) SELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT 1 [["id", 1]]
35673
+ ClarkKent::ReportEmail Load (0.1ms) SELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT 1 [["id", 1]]
35674
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
35675
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 1]]
35676
+ ClarkKent::ReportFilter Load (0.1ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
35677
+ ClarkKent::ReportFilter Load (0.7ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"]]
35678
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
35679
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
35680
+ ClarkKent::ReportColumn Load (0.7ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
35681
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
35682
+  (0.1ms) SELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)
35683
+  (1.3ms) rollback transaction
35684
+  (0.1ms) begin transaction
35685
+ -----------------------------------------------------------------------------------------
35686
+ ClarkKent::ReportEmailTest: test_throws_an_error_if_required_date_filters_are_not_present
35687
+ -----------------------------------------------------------------------------------------
35688
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "taproot@gmail.com"]]
35689
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
35690
+ SQL (0.2ms) UPDATE "clark_kent_reports" SET "sharing_scope_type" = 'Department', "sharing_scope_id" = 1 WHERE "clark_kent_reports"."id" = ? [["id", 1]]
35691
+  (0.0ms) SAVEPOINT active_record_1
35692
+ SQL (0.1ms) INSERT INTO "clark_kent_report_emails" ("name", "report_id") VALUES (?, ?) [["name", "test_emailer"], ["report_id", 1]]
35693
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35694
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
35695
+ ClarkKent::Report Load (0.0ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
35696
+ ClarkKent::ReportFilter Load (0.0ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
35697
+ Department Load (0.0ms) SELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT 1 [["id", 1]]
35698
+ ClarkKent::ReportEmail Load (0.1ms) SELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT 1 [["id", 1]]
35699
+ ClarkKent::Report Load (0.0ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
35700
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 1]]
35701
+ ClarkKent::ReportFilter Load (0.0ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
35702
+ ClarkKent::ReportFilter Load (0.0ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"]]
35703
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
35704
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
35705
+  (0.3ms) rollback transaction
35706
+  (0.1ms) begin transaction
35707
+ -------------------------------------------------------------------
35708
+ ClarkKent::ReportableTest: test_it_adds_required_filters_if_present
35709
+ -------------------------------------------------------------------
35710
+  (0.0ms) SAVEPOINT active_record_1
35711
+ SQL (0.3ms) INSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test one"], ["resource_type", "Order"], ["created_at", "2016-03-30 16:09:49.620925"], ["updated_at", "2016-03-30 16:09:49.620925"]]
35712
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35713
+ ClarkKent::ReportColumn Load (0.0ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 2]]
35714
+ ClarkKent::ReportFilter Load (0.0ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
35715
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
35716
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
35717
+  (0.3ms) rollback transaction
35718
+  (0.0ms) begin transaction
35719
+ ---------------------------------------------------------------------
35720
+ ClarkKent::ReportableTest: test_it_works_without_any_required_filters
35721
+ ---------------------------------------------------------------------
35722
+  (0.0ms) SAVEPOINT active_record_1
35723
+ SQL (0.5ms) INSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test one"], ["resource_type", "TestReportable"], ["created_at", "2016-03-30 16:09:49.626925"], ["updated_at", "2016-03-30 16:09:49.626925"]]
35724
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35725
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 2]]
35726
+ ClarkKent::ReportFilter Load (0.0ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
35727
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 2]]
35728
+  (0.3ms) rollback transaction
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&id=6782bf9513a85455fd54452c13a59769efaf480cfc356fd207edb12778a93589:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=e56afac6e06fbb491f008d03c94cfb1830731a41d0d3d057cb0196b7108cbad1:ET
@@ -0,0 +1 @@
1
+ I"�/Users/eric/projects/clark_kent/app/assets/javascripts/clark_kent/application.js?type=application/javascript&id=0253adbe29845697ef4fd73b18ad0f6b6ebe30512b3cdb5001be55848460abee:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=7e6b93fcadce0852c0d8a9aebf1d3824370a68f0d52a46b8faa40ce075db8348:ET
@@ -0,0 +1 @@
1
+ I"�/Users/eric/projects/clark_kent/app/assets/javascripts/clark_kent/application.js?type=application/javascript&pipeline=self&id=8d4217911d4476d3c9e7f20e72a2697ea9f70605778170f1ce74174879ad3878:ET
@@ -0,0 +1 @@
1
+ I"}app/assets/stylesheets/application.css?type=text/css&id=ec0ff491bb2e98f9c88ffafc8a224c93c477ada6fdbd511e2139e109782ba288:ET
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clark_kent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-08 00:00:00.000000000 Z
11
+ date: 2016-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -413,6 +413,7 @@ files:
413
413
  - test/dummy/tmp/cache/assets/sprockets/v3.0/6e3-8lJQHaB2tpaemkQBoG8j1IXYd2T7R0hxB6RUry0.cache
414
414
  - test/dummy/tmp/cache/assets/sprockets/v3.0/BOXckJswXOmYIFOmyN_i44U-bY_U4-c-kE1Gk-rPlA8.cache
415
415
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Br0JlF7EfKjFrhWBfcqOj-sdtnNCHJLRFqPNY1mM5l0.cache
416
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Dq7vIXUs-4Fo3qF_pKChBZAaJzn6_Yf1hHEFu5vxKxg.cache
416
417
  - test/dummy/tmp/cache/assets/sprockets/v3.0/GSlw-mT--yR76-3Q9MUh6AOvIB8p5JRCbOYnb5bDyzI.cache
417
418
  - test/dummy/tmp/cache/assets/sprockets/v3.0/H0ZpixREXT2i1zQ82nkmYZzok2oXmJ5Z0tYH21Ag6hg.cache
418
419
  - test/dummy/tmp/cache/assets/sprockets/v3.0/HuyKNAYEnPs4OFAHZ6YQZ3VSrTaxZe0Ra_fNZLbeXDw.cache
@@ -426,13 +427,17 @@ files:
426
427
  - test/dummy/tmp/cache/assets/sprockets/v3.0/SnU3WeG9WD2u9ObM6eJPhNVI-AR0kTW9EjvVtdsmBYU.cache
427
428
  - test/dummy/tmp/cache/assets/sprockets/v3.0/TKNXein9fms2hyVGgBUTpbFU4IzJrA4H2uVv1TvRy8s.cache
428
429
  - test/dummy/tmp/cache/assets/sprockets/v3.0/UGBHtggSaDhQVXh82S85XGM4XLPrNcA9oGk5imyLQso.cache
430
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/UQwQfp4f1cu3wf-ooVNBslMVYMSkes6dLLERta2Vv24.cache
429
431
  - test/dummy/tmp/cache/assets/sprockets/v3.0/UVeH93rELRBawlPCnRGGJP4tRFjy_dH7wicU_ZbrCDM.cache
430
432
  - test/dummy/tmp/cache/assets/sprockets/v3.0/UwMFS8rJmeOVTOPUAsy5rBsPqe-mwJgvTSCg-8xwSK8.cache
433
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/WsZ-stqNR7J6hPEWXEZ0DnmLK889A6bPXKqnUAqV0_E.cache
431
434
  - test/dummy/tmp/cache/assets/sprockets/v3.0/X1pDD1_Im8Jyti817p7q6enVK8MjNPsLCoZ_c8hG2fs.cache
432
435
  - test/dummy/tmp/cache/assets/sprockets/v3.0/XGAUd4zdycHNjgugiwtNoIzH7Rye3BmjHFqOL3pkrhg.cache
433
436
  - test/dummy/tmp/cache/assets/sprockets/v3.0/XtN1zYSzj7nMrKARGZJk3aBoAkOvTRo2e2mfBW4jB6o.cache
434
437
  - test/dummy/tmp/cache/assets/sprockets/v3.0/ZZG2BX3ZNKeB05plv8lIMy-z0yF_KnHRwVS-uMtpcrE.cache
435
438
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Zo-Gv5yCgWm4ckuzHH4U1SjFs_tYPZVWEGXpoBgZeYU.cache
439
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/a0bracA01CExs_QbG3P1egYky6ZRd4m-3ln1ekPgXxw.cache
440
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/ajIuxsDjPa9Ckbc6l1z-E5J7kmNCl2z1zMziWYUABOs.cache
436
441
  - test/dummy/tmp/cache/assets/sprockets/v3.0/bR-gDb8oK48ZYrZSIeamJnm4H0noAKvPys1zAPml46I.cache
437
442
  - test/dummy/tmp/cache/assets/sprockets/v3.0/c0fZzpmetAbdlEG8jam5O6N3N3wiVzKXR_lCIY6kCTA.cache
438
443
  - test/dummy/tmp/cache/assets/sprockets/v3.0/cwN5IE5m4V3MoUFZd0am5HQjaHydW8ySLOSbOwc4ChY.cache
@@ -445,11 +450,18 @@ files:
445
450
  - test/dummy/tmp/cache/assets/sprockets/v3.0/mXL70cyqA-IuZlTlRDqoP_QDPgxcUNIvHjrE9-nkF0k.cache
446
451
  - test/dummy/tmp/cache/assets/sprockets/v3.0/nQh7J8iLgW3j3-evMg5iclK6Ph4j4agDPZbAb2D1cpY.cache
447
452
  - test/dummy/tmp/cache/assets/sprockets/v3.0/oCsZTGZyV4kH8Y4OeSDUdrwfkJFPzTODZjuBKZB8oGQ.cache
453
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/oXTxi5YUbdz5xyt-wXZjgg8Tnbn9JSw1lmcEqjgUBtU.cache
448
454
  - test/dummy/tmp/cache/assets/sprockets/v3.0/oqA7W6o9dYAG75KmI0M7fPUKSEn3B8qAGD5mL9R7FT8.cache
449
455
  - test/dummy/tmp/cache/assets/sprockets/v3.0/qDTX9x3gssugNMYBtUCEPsx25Z7T_Vi76vbJyG6w5jg.cache
456
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/qU-5tKDbPbSh4KkgHIbMh20NwNu3kKmk1rwa3VTy_lI.cache
457
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/qvvaWhtH_esBrBPzGCT_d3Q6dSq4TR_gwWhfj7yNd0Q.cache
458
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/r4mWLr0pwlIV-0wnQKDTCWoFrvx5mQd3jFlatnAzdXw.cache
450
459
  - test/dummy/tmp/cache/assets/sprockets/v3.0/tFi4IIk7HxeTEe8QM0tfFxtvthId0aM6b83iqEjJAoc.cache
451
460
  - test/dummy/tmp/cache/assets/sprockets/v3.0/tPF6H9NRpGO3whu2y5_e_R_1EACKdCwu5437D83qJT0.cache
461
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/vUa3yT6o5vkf5NYcahbJUdOaNtnerPbO2JlTSZzYDN8.cache
452
462
  - test/dummy/tmp/cache/assets/sprockets/v3.0/wWEACjGoHremcmCG6pA981DR6b1PCvGKfvJuJbYIqBQ.cache
463
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/wgbO1Px36atEYDFKYZ8Yx2Kubk7L-qe_pqgAkxybT4g.cache
464
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/wvjgvVlo2DBG2pIfefRNE4jBpifCui-P8u1LWgXYi3o.cache
453
465
  - test/dummy/tmp/cache/assets/sprockets/v3.0/x1pNHYQUCVLQm2-2eBri2T7gxgLTBDez3d7ao8etFX4.cache
454
466
  - test/dummy/tmp/cache/assets/sprockets/v3.0/yEHhEsjQv9j3w1E8HZSLNeJ3FwxVJY02gIUVtdy9sQ4.cache
455
467
  - test/dummy/tmp/cache/assets/test/sprockets/0a5b3da98f8307d16bc302a1f7206591
@@ -639,12 +651,15 @@ test_files:
639
651
  - test/dummy/tmp/cache/assets/sprockets/v3.0/2ZXmQy6WZeji8LMCJLbMjGK1VJbkNRF2lC7MAI07cvc.cache
640
652
  - test/dummy/tmp/cache/assets/sprockets/v3.0/5k7OtUEslUWi1MkCA5Kmc7rHAU0hWPFaSUcq7j8-doc.cache
641
653
  - test/dummy/tmp/cache/assets/sprockets/v3.0/6e3-8lJQHaB2tpaemkQBoG8j1IXYd2T7R0hxB6RUry0.cache
654
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/a0bracA01CExs_QbG3P1egYky6ZRd4m-3ln1ekPgXxw.cache
655
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/ajIuxsDjPa9Ckbc6l1z-E5J7kmNCl2z1zMziWYUABOs.cache
642
656
  - test/dummy/tmp/cache/assets/sprockets/v3.0/BOXckJswXOmYIFOmyN_i44U-bY_U4-c-kE1Gk-rPlA8.cache
643
657
  - test/dummy/tmp/cache/assets/sprockets/v3.0/bR-gDb8oK48ZYrZSIeamJnm4H0noAKvPys1zAPml46I.cache
644
658
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Br0JlF7EfKjFrhWBfcqOj-sdtnNCHJLRFqPNY1mM5l0.cache
645
659
  - test/dummy/tmp/cache/assets/sprockets/v3.0/c0fZzpmetAbdlEG8jam5O6N3N3wiVzKXR_lCIY6kCTA.cache
646
660
  - test/dummy/tmp/cache/assets/sprockets/v3.0/cwN5IE5m4V3MoUFZd0am5HQjaHydW8ySLOSbOwc4ChY.cache
647
661
  - test/dummy/tmp/cache/assets/sprockets/v3.0/dKk5D4vEs4pKkbGWK8CqDojCmwIkp_WDwK4-4Ejmtoo.cache
662
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Dq7vIXUs-4Fo3qF_pKChBZAaJzn6_Yf1hHEFu5vxKxg.cache
648
663
  - test/dummy/tmp/cache/assets/sprockets/v3.0/dwXsOetUlrT7c2kTk4ADNmZoNvC5otpVOxTNLw_EVVM.cache
649
664
  - test/dummy/tmp/cache/assets/sprockets/v3.0/GSlw-mT--yR76-3Q9MUh6AOvIB8p5JRCbOYnb5bDyzI.cache
650
665
  - test/dummy/tmp/cache/assets/sprockets/v3.0/H0ZpixREXT2i1zQ82nkmYZzok2oXmJ5Z0tYH21Ag6hg.cache
@@ -662,16 +677,25 @@ test_files:
662
677
  - test/dummy/tmp/cache/assets/sprockets/v3.0/O8akbUwAbmIKY-AhITimq-JDQ6IgsO3Hvq2v5etufFw.cache
663
678
  - test/dummy/tmp/cache/assets/sprockets/v3.0/oCsZTGZyV4kH8Y4OeSDUdrwfkJFPzTODZjuBKZB8oGQ.cache
664
679
  - test/dummy/tmp/cache/assets/sprockets/v3.0/oqA7W6o9dYAG75KmI0M7fPUKSEn3B8qAGD5mL9R7FT8.cache
680
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/oXTxi5YUbdz5xyt-wXZjgg8Tnbn9JSw1lmcEqjgUBtU.cache
665
681
  - test/dummy/tmp/cache/assets/sprockets/v3.0/qDTX9x3gssugNMYBtUCEPsx25Z7T_Vi76vbJyG6w5jg.cache
666
682
  - test/dummy/tmp/cache/assets/sprockets/v3.0/QFhmcCsJ5yFlk5v0gmM51ZDiTZV92igXtiScIngdFMk.cache
683
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/qU-5tKDbPbSh4KkgHIbMh20NwNu3kKmk1rwa3VTy_lI.cache
684
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/qvvaWhtH_esBrBPzGCT_d3Q6dSq4TR_gwWhfj7yNd0Q.cache
685
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/r4mWLr0pwlIV-0wnQKDTCWoFrvx5mQd3jFlatnAzdXw.cache
667
686
  - test/dummy/tmp/cache/assets/sprockets/v3.0/SnU3WeG9WD2u9ObM6eJPhNVI-AR0kTW9EjvVtdsmBYU.cache
668
687
  - test/dummy/tmp/cache/assets/sprockets/v3.0/SP99tSgcYiJIx2KM12C0FnnXucDnvQ53-Z2aJFro-PU.cache
669
688
  - test/dummy/tmp/cache/assets/sprockets/v3.0/tFi4IIk7HxeTEe8QM0tfFxtvthId0aM6b83iqEjJAoc.cache
670
689
  - test/dummy/tmp/cache/assets/sprockets/v3.0/TKNXein9fms2hyVGgBUTpbFU4IzJrA4H2uVv1TvRy8s.cache
671
690
  - test/dummy/tmp/cache/assets/sprockets/v3.0/tPF6H9NRpGO3whu2y5_e_R_1EACKdCwu5437D83qJT0.cache
672
691
  - test/dummy/tmp/cache/assets/sprockets/v3.0/UGBHtggSaDhQVXh82S85XGM4XLPrNcA9oGk5imyLQso.cache
692
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/UQwQfp4f1cu3wf-ooVNBslMVYMSkes6dLLERta2Vv24.cache
673
693
  - test/dummy/tmp/cache/assets/sprockets/v3.0/UVeH93rELRBawlPCnRGGJP4tRFjy_dH7wicU_ZbrCDM.cache
674
694
  - test/dummy/tmp/cache/assets/sprockets/v3.0/UwMFS8rJmeOVTOPUAsy5rBsPqe-mwJgvTSCg-8xwSK8.cache
695
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/vUa3yT6o5vkf5NYcahbJUdOaNtnerPbO2JlTSZzYDN8.cache
696
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/wgbO1Px36atEYDFKYZ8Yx2Kubk7L-qe_pqgAkxybT4g.cache
697
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/WsZ-stqNR7J6hPEWXEZ0DnmLK889A6bPXKqnUAqV0_E.cache
698
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/wvjgvVlo2DBG2pIfefRNE4jBpifCui-P8u1LWgXYi3o.cache
675
699
  - test/dummy/tmp/cache/assets/sprockets/v3.0/wWEACjGoHremcmCG6pA981DR6b1PCvGKfvJuJbYIqBQ.cache
676
700
  - test/dummy/tmp/cache/assets/sprockets/v3.0/X1pDD1_Im8Jyti817p7q6enVK8MjNPsLCoZ_c8hG2fs.cache
677
701
  - test/dummy/tmp/cache/assets/sprockets/v3.0/x1pNHYQUCVLQm2-2eBri2T7gxgLTBDez3d7ao8etFX4.cache