clark_kent 0.2.4 → 0.2.5

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: 946b82a5e471b450c9c62dd81a3bfeee3b00dda8
4
- data.tar.gz: 17d1d6d74996eff40d562da68ca0c70db7d442ca
3
+ metadata.gz: db689e28c24e5b598413dfff1e262d5190194606
4
+ data.tar.gz: 2d33fab1d3696a878377a826e0eab54ad57b9320
5
5
  SHA512:
6
- metadata.gz: 4677bcc4135ee9f7f17b86e645b3fce7cd43a597490632449ed9ccb0177ddfedda804985e3e11df08fb7027c8fb4ecfa50fb3897db33b6d0184b2b1662b3885f
7
- data.tar.gz: cdb0ad4ec67d5296f3c2d4d5a3890df1896f4c2cfd6c58d93ba4ba696157446e1004d5cf2b323d49685d18e7434c34529997d0e21e07d20f54d8fa025832d7a0
6
+ metadata.gz: 9c3966ad951cd09b6612be9236b9a4696cccb77dd8f1b833aaec73b89f89e14c8314f27bfd7d0797c828c0bd04cf1776f354732aef83b5654a6443fc93616841
7
+ data.tar.gz: b94128d52ac306654460168b01d6cf4e22ac4f6740f790e41b6e0677e285c40445100d1d3c681dfa4e2f4b877e15556adba3867f9c15e6d71b9701fe5c06cded
@@ -1,3 +1,3 @@
1
1
  module ClarkKent
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
Binary file
@@ -35014,3 +35014,360 @@ ClarkKent::ReportableTest: test_it_works_without_any_required_filters
35014
35014
  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"]]
35015
35015
  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]]
35016
35016
   (0.4ms) rollback transaction
35017
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
35018
+  (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)
35019
+  (0.0ms) select sqlite_version(*)
35020
+  (0.8ms) CREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")
35021
+  (0.7ms) CREATE TABLE "clark_kent_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "when_to_send" varchar, "name" varchar) 
35022
+  (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)
35023
+  (0.8ms) CREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")
35024
+  (0.1ms) SELECT sql
35025
+ FROM sqlite_master
35026
+ WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
35027
+ UNION ALL
35028
+ SELECT sql
35029
+ FROM sqlite_temp_master
35030
+ WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
35031
+
35032
+  (0.9ms) CREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")
35033
+  (0.9ms) 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)
35034
+  (0.8ms) CREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")
35035
+  (0.1ms) SELECT sql
35036
+ FROM sqlite_master
35037
+ WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
35038
+ UNION ALL
35039
+ SELECT sql
35040
+ FROM sqlite_temp_master
35041
+ WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
35042
+
35043
+  (0.7ms) CREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")
35044
+  (0.8ms) CREATE TABLE "clark_kent_user_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "report_email_id" integer)
35045
+  (0.8ms) CREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
35046
+  (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)
35047
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "age" integer, "department_id" integer) 
35048
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
35049
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
35050
+  (0.1ms) SELECT version FROM "schema_migrations"
35051
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150313144015')
35052
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131226170042')
35053
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131226170112')
35054
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140114010048')
35055
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140129051754')
35056
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150304233739')
35057
+  (0.0ms) begin transaction
35058
+ SQL (0.4ms) INSERT INTO "clark_kent_reports" ("resource_type", "created_at", "updated_at") VALUES (?, ?, ?) [["resource_type", "Order"], ["created_at", "2016-02-03 20:13:25.697701"], ["updated_at", "2016-02-03 20:13:25.697701"]]
35059
+  (0.7ms) commit transaction
35060
+  (0.0ms) begin transaction
35061
+ 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]]
35062
+  (0.8ms) commit transaction
35063
+  (0.0ms) begin transaction
35064
+ 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]]
35065
+  (0.7ms) commit transaction
35066
+  (0.0ms) begin transaction
35067
+ SQL (0.2ms) INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "amount"], ["column_order", 3], ["report_id", 1]]
35068
+  (0.7ms) commit transaction
35069
+  (0.0ms) begin transaction
35070
+ SQL (0.3ms) INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "description"], ["column_order", 4], ["report_id", 1]]
35071
+  (0.7ms) commit transaction
35072
+  (0.0ms) begin transaction
35073
+ SQL (0.3ms) INSERT INTO "departments" ("name") VALUES (?) [["name", "silly walks"]]
35074
+  (0.7ms) commit transaction
35075
+  (0.1ms) begin transaction
35076
+ SQL (0.3ms) INSERT INTO "users" ("name", "email", "department_id") VALUES (?, ?, ?) [["name", "Michael Hedges"], ["email", "taproot@gmail.com"], ["department_id", 1]]
35077
+  (0.7ms) commit transaction
35078
+  (0.0ms) begin transaction
35079
+ 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-02-03 20:13:25.747959"], ["updated_at", "2016-02-03 20:13:25.747959"]]
35080
+  (0.7ms) commit transaction
35081
+  (0.1ms) begin transaction
35082
+ ---------------------------------------------------
35083
+ ClarkKent::ReportEmailTest: test_sends_report_to_s3
35084
+ ---------------------------------------------------
35085
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "taproot@gmail.com"]]
35086
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
35087
+ SQL (0.3ms) UPDATE "clark_kent_reports" SET "sharing_scope_type" = 'Department', "sharing_scope_id" = 1 WHERE "clark_kent_reports"."id" = ? [["id", 1]]
35088
+  (0.0ms) SAVEPOINT active_record_1
35089
+ SQL (0.2ms) INSERT INTO "clark_kent_report_emails" ("name", "report_id") VALUES (?, ?) [["name", "test_emailer"], ["report_id", 1]]
35090
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35091
+  (0.1ms) SAVEPOINT active_record_1
35092
+ 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-02-03 20:13:25.849817"], ["updated_at", "2016-02-03 20:13:25.849817"]]
35093
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35094
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
35095
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
35096
+ 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"]]
35097
+ Department Load (0.1ms) SELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT 1 [["id", 1]]
35098
+ 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]]
35099
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
35100
+ 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]]
35101
+ 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"]]
35102
+ 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::ReportEmail"]]
35103
+ 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]]
35104
+ 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]]
35105
+ 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]]
35106
+ 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]]
35107
+  (0.1ms) SELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)
35108
+  (0.6ms) rollback transaction
35109
+  (0.1ms) begin transaction
35110
+ -----------------------------------------------------------------------------------------
35111
+ ClarkKent::ReportEmailTest: test_throws_an_error_if_required_date_filters_are_not_present
35112
+ -----------------------------------------------------------------------------------------
35113
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "taproot@gmail.com"]]
35114
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
35115
+ SQL (0.2ms) UPDATE "clark_kent_reports" SET "sharing_scope_type" = 'Department', "sharing_scope_id" = 1 WHERE "clark_kent_reports"."id" = ? [["id", 1]]
35116
+  (0.0ms) SAVEPOINT active_record_1
35117
+ SQL (0.1ms) INSERT INTO "clark_kent_report_emails" ("name", "report_id") VALUES (?, ?) [["name", "test_emailer"], ["report_id", 1]]
35118
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35119
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
35120
+ ClarkKent::Report Load (0.0ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
35121
+ 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"]]
35122
+ Department Load (0.0ms) SELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT 1 [["id", 1]]
35123
+ ClarkKent::ReportEmail Load (0.0ms) SELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT 1 [["id", 1]]
35124
+ ClarkKent::Report Load (0.0ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
35125
+ 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]]
35126
+ 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"]]
35127
+ 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::ReportEmail"]]
35128
+ 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]]
35129
+ 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]]
35130
+  (0.4ms) rollback transaction
35131
+  (0.1ms) begin transaction
35132
+ ------------------------------------------------------------------------------------------------
35133
+ ClarkKent::ReportTest: test_can't_save_without_a_sharing_scope_id_if_the_sharing_scope_is_custom
35134
+ ------------------------------------------------------------------------------------------------
35135
+  (0.0ms) SAVEPOINT active_record_1
35136
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
35137
+  (0.1ms) rollback transaction
35138
+  (0.0ms) begin transaction
35139
+ -------------------------
35140
+ ClarkKentTest: test_truth
35141
+ -------------------------
35142
+  (0.0ms) rollback transaction
35143
+  (0.0ms) begin transaction
35144
+ -------------------------------------------------------
35145
+ ClarkKent::ReportsController: test_should_create_report
35146
+ -------------------------------------------------------
35147
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
35148
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
35149
+ Processing by ClarkKent::ReportsController#create as HTML
35150
+ Parameters: {"report"=>{"name"=>"delete me", "resource_type"=>"Order", "sharing_scope_id"=>nil, "sharing_scope_type"=>nil}, "current_user_id"=>"1"}
35151
+  (0.2ms) SAVEPOINT active_record_1
35152
+ SQL (0.7ms) INSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "delete me"], ["resource_type", "Order"], ["created_at", "2016-02-03 20:13:25.969559"], ["updated_at", "2016-02-03 20:13:25.969559"]]
35153
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35154
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (5.7ms)
35155
+ 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"]]
35156
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (3.7ms)
35157
+ 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]]
35158
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (3.8ms)
35159
+ 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]]
35160
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (3.7ms)
35161
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (35.5ms)
35162
+ Completed 200 OK in 261ms (Views: 257.0ms | ActiveRecord: 1.2ms)
35163
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."name" = ? LIMIT 1 [["name", "delete me"]]
35164
+  (0.0ms) SAVEPOINT active_record_1
35165
+ 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"]]
35166
+ 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]]
35167
+ 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]]
35168
+ SQL (0.9ms) DELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? [["id", 2]]
35169
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35170
+  (0.7ms) rollback transaction
35171
+  (0.1ms) begin transaction
35172
+ --------------------------------------------------------
35173
+ ClarkKent::ReportsController: test_should_destroy_report
35174
+ --------------------------------------------------------
35175
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
35176
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
35177
+  (0.0ms) SAVEPOINT active_record_1
35178
+ 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-02-03 20:13:26.236563"], ["updated_at", "2016-02-03 20:13:26.236563"]]
35179
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35180
+  (0.1ms) SELECT COUNT(*) FROM "clark_kent_reports"
35181
+ Processing by ClarkKent::ReportsController#destroy as HTML
35182
+ Parameters: {"current_user_id"=>"1", "id"=>"2"}
35183
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 2]]
35184
+  (0.1ms) SAVEPOINT active_record_1
35185
+ 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"]]
35186
+ 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]]
35187
+ 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]]
35188
+ SQL (0.3ms) DELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? [["id", 2]]
35189
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35190
+ Redirected to http://test.host/reports/reports
35191
+ Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
35192
+  (0.1ms) SELECT COUNT(*) FROM "clark_kent_reports"
35193
+  (0.6ms) rollback transaction
35194
+  (0.1ms) begin transaction
35195
+ --------------------------------------------------
35196
+ ClarkKent::ReportsController: test_should_get_edit
35197
+ --------------------------------------------------
35198
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
35199
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
35200
+ Processing by ClarkKent::ReportsController#edit as HTML
35201
+ Parameters: {"current_user_id"=>"1", "id"=>"1"}
35202
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
35203
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (4.2ms)
35204
+ 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"]]
35205
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (2.8ms)
35206
+ 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]]
35207
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (3.6ms)
35208
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (6.8ms)
35209
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (1.9ms)
35210
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (2.1ms)
35211
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (1.8ms)
35212
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (2.0ms)
35213
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (1.7ms)
35214
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (1.9ms)
35215
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (18.7ms)
35216
+ 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]]
35217
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (2.4ms)
35218
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (31.0ms)
35219
+ Completed 200 OK in 33ms (Views: 32.6ms | ActiveRecord: 0.3ms)
35220
+  (0.1ms) rollback transaction
35221
+  (0.1ms) begin transaction
35222
+ ---------------------------------------------------
35223
+ ClarkKent::ReportsController: test_should_get_index
35224
+ ---------------------------------------------------
35225
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
35226
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
35227
+ Processing by ClarkKent::ReportsController#index as HTML
35228
+ Parameters: {"current_user_id"=>"1"}
35229
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
35230
+ ClarkKent::Report Exists (0.1ms) 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"]]
35231
+ Department Load (0.0ms) SELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT 1 [["id", 1]]
35232
+ 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"]]
35233
+  (0.1ms) SELECT COUNT(*) FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL
35234
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL
35235
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application (19.6ms)
35236
+ Completed 200 OK in 25ms (Views: 23.7ms | ActiveRecord: 0.6ms)
35237
+  (0.1ms) rollback transaction
35238
+  (0.1ms) begin transaction
35239
+ -------------------------------------------------
35240
+ ClarkKent::ReportsController: test_should_get_new
35241
+ -------------------------------------------------
35242
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
35243
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
35244
+ Processing by ClarkKent::ReportsController#new as HTML
35245
+ Parameters: {"current_user_id"=>"1"}
35246
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
35247
+ Department Load (0.0ms) SELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT 1 [["id", 1]]
35248
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (55.9ms)
35249
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (61.6ms)
35250
+ Completed 200 OK in 68ms (Views: 67.4ms | ActiveRecord: 0.1ms)
35251
+  (0.1ms) rollback transaction
35252
+  (0.2ms) begin transaction
35253
+ -----------------------------------------------------
35254
+ ClarkKent::ReportsController: test_should_show_report
35255
+ -----------------------------------------------------
35256
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
35257
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
35258
+ Processing by ClarkKent::ReportsController#show as HTML
35259
+ Parameters: {"current_user_id"=>"1", "id"=>"1"}
35260
+ 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]]
35261
+ 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
35262
+  (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"]]
35263
+  (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"]]
35264
+  (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"]]
35265
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (1.1ms)
35266
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
35267
+ User Load (0.1ms) SELECT "users".* FROM "users"
35268
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.7ms)
35269
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.5ms)
35270
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.8ms)
35271
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (20.9ms)
35272
+ Completed 200 OK in 32ms (Views: 25.2ms | ActiveRecord: 0.6ms)
35273
+  (0.1ms) rollback transaction
35274
+  (0.0ms) begin transaction
35275
+ -------------------------------------------------------------
35276
+ ClarkKent::ReportsController: test_should_show_report_results
35277
+ -------------------------------------------------------------
35278
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
35279
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
35280
+ Processing by ClarkKent::ReportsController#show as HTML
35281
+ Parameters: {"current_user_id"=>"1", "run_report"=>true, "created_at_until"=>"2016-02-03", "created_at_from"=>"2016-02-02", "id"=>"1"}
35282
+ 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]]
35283
+ 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
35284
+ 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"]]
35285
+ 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]]
35286
+ 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]]
35287
+  (0.2ms) 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"]]
35288
+  (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"]]
35289
+  (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"]]
35290
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.3ms)
35291
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
35292
+ User Load (0.0ms) SELECT "users".* FROM "users"
35293
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (0.9ms)
35294
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.1ms)
35295
+  (0.1ms) SELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)
35296
+  (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
35297
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (3.5ms)
35298
+ 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]]
35299
+ Order Load (0.1ms) SELECT DISTINCT orders.id, orders.user_id, orders.amount, orders.description, orders.created_at, orders.updated_at,
35300
+ (SELECT u.name
35301
+ FROM users u
35302
+ WHERE u.id = orders.user_id)
35303
+ as user_name FROM "orders" WHERE (orders.user_id > 0) LIMIT 10 OFFSET 0
35304
+ ClarkKent::Report Load (0.0ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
35305
+ ClarkKent::Report Load (0.0ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
35306
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
35307
+ ClarkKent::Report Load (0.0ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
35308
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_download_link.html.erb (2.8ms)
35309
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (29.9ms)
35310
+ Completed 200 OK in 36ms (Views: 31.2ms | ActiveRecord: 1.3ms)
35311
+  (0.1ms) rollback transaction
35312
+  (0.1ms) begin transaction
35313
+ ----------------------------------------------------------------
35314
+ ClarkKent::ReportsController: test_should_show_report_run_errors
35315
+ ----------------------------------------------------------------
35316
+ ClarkKent::Report Load (0.2ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
35317
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
35318
+ Processing by ClarkKent::ReportsController#show as HTML
35319
+ Parameters: {"current_user_id"=>"1", "run_report"=>true, "id"=>"1"}
35320
+ 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]]
35321
+ 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
35322
+ 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"]]
35323
+ 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]]
35324
+ 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]]
35325
+  (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"]]
35326
+  (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"]]
35327
+  (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"]]
35328
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.3ms)
35329
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
35330
+ User Load (0.0ms) SELECT "users".* FROM "users"
35331
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (0.9ms)
35332
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.1ms)
35333
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.0ms)
35334
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (7.3ms)
35335
+ Completed 200 OK in 13ms (Views: 9.0ms | ActiveRecord: 0.7ms)
35336
+  (0.1ms) rollback transaction
35337
+  (0.1ms) begin transaction
35338
+ -------------------------------------------------------
35339
+ ClarkKent::ReportsController: test_should_update_report
35340
+ -------------------------------------------------------
35341
+ ClarkKent::Report Load (0.2ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
35342
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
35343
+ Processing by ClarkKent::ReportsController#update as HTML
35344
+ Parameters: {"report"=>{"name"=>nil, "resource_type"=>"Order", "sharing_scope_id"=>nil, "sharing_scope_type"=>nil}, "current_user_id"=>"1", "id"=>"1"}
35345
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
35346
+  (0.1ms) SAVEPOINT active_record_1
35347
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35348
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (3.8ms)
35349
+ Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.2ms)
35350
+  (0.1ms) rollback transaction
35351
+  (0.0ms) begin transaction
35352
+ -------------------------------------------------------------------
35353
+ ClarkKent::ReportableTest: test_it_adds_required_filters_if_present
35354
+ -------------------------------------------------------------------
35355
+  (0.0ms) SAVEPOINT active_record_1
35356
+ SQL (0.5ms) INSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test one"], ["resource_type", "Order"], ["created_at", "2016-02-03 20:13:26.505057"], ["updated_at", "2016-02-03 20:13:26.505057"]]
35357
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35358
+ 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]]
35359
+ 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"]]
35360
+ 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]]
35361
+ 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]]
35362
+  (0.4ms) rollback transaction
35363
+  (0.1ms) begin transaction
35364
+ ---------------------------------------------------------------------
35365
+ ClarkKent::ReportableTest: test_it_works_without_any_required_filters
35366
+ ---------------------------------------------------------------------
35367
+  (0.0ms) SAVEPOINT active_record_1
35368
+ SQL (0.2ms) INSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test one"], ["resource_type", "TestReportable"], ["created_at", "2016-02-03 20:13:26.512785"], ["updated_at", "2016-02-03 20:13:26.512785"]]
35369
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35370
+ 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]]
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
+ 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
+  (0.4ms) rollback transaction
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.4
4
+ version: 0.2.5
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-02-02 00:00:00.000000000 Z
11
+ date: 2016-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -17,6 +17,9 @@ dependencies:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
19
  version: 4.2.0
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,20 +27,23 @@ dependencies:
24
27
  - - '='
25
28
  - !ruby/object:Gem::Version
26
29
  version: 4.2.0
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '5'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: sass-rails
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
- - - ">="
37
+ - - "<"
32
38
  - !ruby/object:Gem::Version
33
- version: '0'
39
+ version: '5.1'
34
40
  type: :runtime
35
41
  prerelease: false
36
42
  version_requirements: !ruby/object:Gem::Requirement
37
43
  requirements:
38
- - - ">="
44
+ - - "<"
39
45
  - !ruby/object:Gem::Version
40
- version: '0'
46
+ version: '5.1'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: simple_form
43
49
  requirement: !ruby/object:Gem::Requirement
@@ -62,16 +68,16 @@ dependencies:
62
68
  name: kaminari
63
69
  requirement: !ruby/object:Gem::Requirement
64
70
  requirements:
65
- - - ">="
71
+ - - "<"
66
72
  - !ruby/object:Gem::Version
67
- version: '0'
73
+ version: '1'
68
74
  type: :runtime
69
75
  prerelease: false
70
76
  version_requirements: !ruby/object:Gem::Requirement
71
77
  requirements:
72
- - - ">="
78
+ - - "<"
73
79
  - !ruby/object:Gem::Version
74
- version: '0'
80
+ version: '1'
75
81
  - !ruby/object:Gem::Dependency
76
82
  name: thin_man
77
83
  requirement: !ruby/object:Gem::Requirement
@@ -101,7 +107,7 @@ dependencies:
101
107
  version: 0.10.3
102
108
  - - "<"
103
109
  - !ruby/object:Gem::Version
104
- version: '0.11'
110
+ version: '0.12'
105
111
  type: :runtime
106
112
  prerelease: false
107
113
  version_requirements: !ruby/object:Gem::Requirement
@@ -111,7 +117,7 @@ dependencies:
111
117
  version: 0.10.3
112
118
  - - "<"
113
119
  - !ruby/object:Gem::Version
114
- version: '0.11'
120
+ version: '0.12'
115
121
  - !ruby/object:Gem::Dependency
116
122
  name: hooch
117
123
  requirement: !ruby/object:Gem::Requirement
@@ -150,86 +156,86 @@ dependencies:
150
156
  name: sqlite3
151
157
  requirement: !ruby/object:Gem::Requirement
152
158
  requirements:
153
- - - ">="
159
+ - - "<"
154
160
  - !ruby/object:Gem::Version
155
- version: '0'
161
+ version: '2'
156
162
  type: :development
157
163
  prerelease: false
158
164
  version_requirements: !ruby/object:Gem::Requirement
159
165
  requirements:
160
- - - ">="
166
+ - - "<"
161
167
  - !ruby/object:Gem::Version
162
- version: '0'
168
+ version: '2'
163
169
  - !ruby/object:Gem::Dependency
164
170
  name: minitest
165
171
  requirement: !ruby/object:Gem::Requirement
166
172
  requirements:
167
- - - ">="
173
+ - - "<"
168
174
  - !ruby/object:Gem::Version
169
- version: '0'
175
+ version: '6'
170
176
  type: :development
171
177
  prerelease: false
172
178
  version_requirements: !ruby/object:Gem::Requirement
173
179
  requirements:
174
- - - ">="
180
+ - - "<"
175
181
  - !ruby/object:Gem::Version
176
- version: '0'
182
+ version: '6'
177
183
  - !ruby/object:Gem::Dependency
178
184
  name: minitest-rails
179
185
  requirement: !ruby/object:Gem::Requirement
180
186
  requirements:
181
- - - ">="
187
+ - - "<"
182
188
  - !ruby/object:Gem::Version
183
- version: '0'
189
+ version: '3'
184
190
  type: :development
185
191
  prerelease: false
186
192
  version_requirements: !ruby/object:Gem::Requirement
187
193
  requirements:
188
- - - ">="
194
+ - - "<"
189
195
  - !ruby/object:Gem::Version
190
- version: '0'
196
+ version: '3'
191
197
  - !ruby/object:Gem::Dependency
192
198
  name: pry-rails
193
199
  requirement: !ruby/object:Gem::Requirement
194
200
  requirements:
195
- - - ">="
201
+ - - "<"
196
202
  - !ruby/object:Gem::Version
197
- version: '0'
203
+ version: '1'
198
204
  type: :development
199
205
  prerelease: false
200
206
  version_requirements: !ruby/object:Gem::Requirement
201
207
  requirements:
202
- - - ">="
208
+ - - "<"
203
209
  - !ruby/object:Gem::Version
204
- version: '0'
210
+ version: '1'
205
211
  - !ruby/object:Gem::Dependency
206
212
  name: pry-nav
207
213
  requirement: !ruby/object:Gem::Requirement
208
214
  requirements:
209
- - - ">="
215
+ - - "<"
210
216
  - !ruby/object:Gem::Version
211
- version: '0'
217
+ version: '1'
212
218
  type: :development
213
219
  prerelease: false
214
220
  version_requirements: !ruby/object:Gem::Requirement
215
221
  requirements:
216
- - - ">="
222
+ - - "<"
217
223
  - !ruby/object:Gem::Version
218
- version: '0'
224
+ version: '1'
219
225
  - !ruby/object:Gem::Dependency
220
226
  name: pry-remote
221
227
  requirement: !ruby/object:Gem::Requirement
222
228
  requirements:
223
- - - ">="
229
+ - - "<"
224
230
  - !ruby/object:Gem::Version
225
- version: '0'
231
+ version: '1'
226
232
  type: :development
227
233
  prerelease: false
228
234
  version_requirements: !ruby/object:Gem::Requirement
229
235
  requirements:
230
- - - ">="
236
+ - - "<"
231
237
  - !ruby/object:Gem::Version
232
- version: '0'
238
+ version: '1'
233
239
  description: A powerful reporting engine for Rails apps.
234
240
  email:
235
241
  - edraut@gmail.com