query_report 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -3
- data/app/helpers/query_report_link_helper.rb +4 -0
- data/app/mailers/report_mailer.rb +10 -0
- data/app/views/query_report/_content.html.erb +9 -0
- data/app/views/query_report/_links.html.erb +2 -1
- data/app/views/query_report/_list.html.erb +15 -0
- data/app/views/query_report/_record_footer.html.erb +9 -0
- data/app/views/query_report/_records.html.erb +3 -2
- data/app/views/query_report/_search.html.erb +10 -7
- data/app/views/query_report/list.html.erb +1 -14
- data/app/views/query_report/list.js.erb +9 -0
- data/app/views/report_mailer/send_report.html.erb +1 -0
- data/config/locales/query_report.yml +3 -1
- data/lib/query_report.rb +7 -3
- data/lib/query_report/column.rb +36 -0
- data/lib/query_report/comparator.rb +2 -2
- data/lib/query_report/config.rb +4 -0
- data/lib/query_report/helper.rb +20 -2
- data/lib/query_report/report.rb +4 -0
- data/lib/query_report/report_pdf.rb +14 -6
- data/lib/query_report/version.rb +1 -1
- data/test/dummy/app/controllers/invoices_controller.rb +19 -19
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/schema.rb +2 -2
- data/test/dummy/db/seed.rb +0 -1
- data/test/dummy/log/development.log +4357 -0
- data/test/dummy/log/test.log +148 -0
- data/test/functional/report_mailer_test.rb +7 -0
- metadata +14 -6
data/test/dummy/log/test.log
CHANGED
@@ -26,3 +26,151 @@ Connecting to database specified by database.yml
|
|
26
26
|
Connecting to database specified by database.yml
|
27
27
|
Connecting to database specified by database.yml
|
28
28
|
Connecting to database specified by database.yml
|
29
|
+
Connecting to database specified by database.yml
|
30
|
+
[1m[36m (1.7ms)[0m [1mselect sqlite_version(*)[0m
|
31
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
|
32
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
33
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
|
34
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) [0m
|
35
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
|
36
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) [0m
|
37
|
+
[1m[35mUser Load (2.9ms)[0m SELECT "users".* FROM "users"
|
38
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
39
|
+
[1m[35mSQL (43.0ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 08 Sep 2013 04:18:32 UTC +00:00], ["dob", Mon, 08 Sep 2003 04:18:32 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 08 Sep 2013 04:18:32 UTC +00:00]]
|
40
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
41
|
+
[1m[35m (0.1ms)[0m begin transaction
|
42
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["age", 20], ["created_at", Sun, 08 Sep 2013 04:18:32 UTC +00:00], ["dob", Wed, 08 Sep 1993 04:18:32 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 08 Sep 2013 04:18:32 UTC +00:00]]
|
43
|
+
[1m[35m (0.1ms)[0m commit transaction
|
44
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
45
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 08 Sep 2013 04:18:32 UTC +00:00], ["dob", Sat, 08 Sep 1979 04:18:32 UTC +00:00], ["name", "User#3"], ["updated_at", Sun, 08 Sep 2013 04:18:32 UTC +00:00]]
|
46
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
47
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users"
|
48
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" [0m
|
49
|
+
[1m[35m (0.1ms)[0m begin transaction
|
50
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]]
|
51
|
+
[1m[35m (0.1ms)[0m commit transaction
|
52
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
53
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
|
54
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
55
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 3]]
|
57
|
+
[1m[35m (0.1ms)[0m commit transaction
|
58
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
59
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 08 Sep 2013 04:18:33 UTC +00:00], ["dob", Mon, 08 Sep 2003 04:18:33 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 08 Sep 2013 04:18:33 UTC +00:00]]
|
60
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
61
|
+
[1m[35m (0.1ms)[0m begin transaction
|
62
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["age", 20], ["created_at", Sun, 08 Sep 2013 04:18:33 UTC +00:00], ["dob", Wed, 08 Sep 1993 04:18:33 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 08 Sep 2013 04:18:33 UTC +00:00]]
|
63
|
+
[1m[35m (0.1ms)[0m commit transaction
|
64
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
65
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 08 Sep 2013 04:18:33 UTC +00:00], ["dob", Sat, 08 Sep 1979 04:18:33 UTC +00:00], ["name", "User#3"], ["updated_at", Sun, 08 Sep 2013 04:18:33 UTC +00:00]]
|
66
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
67
|
+
[1m[35m (0.3ms)[0m SELECT AVG("users"."age") AS avg_id FROM "users"
|
68
|
+
[1m[36m (0.2ms)[0m [1mSELECT AVG("users"."age") AS avg_id FROM "users" [0m
|
69
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users"
|
70
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" [0m
|
71
|
+
[1m[35m (0.1ms)[0m begin transaction
|
72
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 4]]
|
73
|
+
[1m[35m (0.1ms)[0m commit transaction
|
74
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
75
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]]
|
76
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
77
|
+
[1m[35m (0.1ms)[0m begin transaction
|
78
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 6]]
|
79
|
+
[1m[35m (0.1ms)[0m commit transaction
|
80
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
81
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00], ["dob", Mon, 08 Sep 2003 04:18:36 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00]]
|
82
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
83
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["age", 20], ["created_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00], ["dob", Wed, 08 Sep 1993 04:18:36 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00]]
|
85
|
+
[1m[35m (0.1ms)[0m commit transaction
|
86
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
87
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00], ["dob", Sat, 08 Sep 1979 04:18:36 UTC +00:00], ["name", "User#3"], ["updated_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00]]
|
88
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
89
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users"
|
90
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" [0m
|
91
|
+
[1m[35m (0.0ms)[0m begin transaction
|
92
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 7]]
|
93
|
+
[1m[35m (0.0ms)[0m commit transaction
|
94
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
95
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]]
|
96
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
97
|
+
[1m[35m (0.0ms)[0m begin transaction
|
98
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 9]]
|
99
|
+
[1m[35m (0.0ms)[0m commit transaction
|
100
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
101
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00], ["dob", Mon, 08 Sep 2003 04:18:36 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00]]
|
102
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
103
|
+
[1m[35m (0.0ms)[0m begin transaction
|
104
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["age", 20], ["created_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00], ["dob", Wed, 08 Sep 1993 04:18:36 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00]]
|
105
|
+
[1m[35m (0.1ms)[0m commit transaction
|
106
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
107
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00]]
|
108
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
109
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" LIMIT 25 OFFSET 0
|
110
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" [0m
|
111
|
+
[1m[35m (0.0ms)[0m begin transaction
|
112
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 10]]
|
113
|
+
[1m[35m (0.0ms)[0m commit transaction
|
114
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
115
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]]
|
116
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
117
|
+
[1m[35m (0.0ms)[0m begin transaction
|
118
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 12]]
|
119
|
+
[1m[35m (0.0ms)[0m commit transaction
|
120
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
121
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00], ["dob", Mon, 08 Sep 2003 04:18:36 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00]]
|
122
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
123
|
+
[1m[35m (0.0ms)[0m begin transaction
|
124
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["age", 20], ["created_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00], ["dob", Wed, 08 Sep 1993 04:18:36 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00]]
|
125
|
+
[1m[35m (0.0ms)[0m commit transaction
|
126
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
127
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00]]
|
128
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
129
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
130
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" [0m
|
131
|
+
[1m[35m (0.1ms)[0m begin transaction
|
132
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 13]]
|
133
|
+
[1m[35m (0.0ms)[0m commit transaction
|
134
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
135
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]]
|
136
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
137
|
+
[1m[35m (0.0ms)[0m begin transaction
|
138
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 15]]
|
139
|
+
[1m[35m (0.0ms)[0m commit transaction
|
140
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
141
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00], ["dob", Mon, 08 Sep 2003 04:18:36 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00]]
|
142
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
143
|
+
[1m[35m (0.0ms)[0m begin transaction
|
144
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["age", 20], ["created_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00], ["dob", Wed, 08 Sep 1993 04:18:36 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00]]
|
145
|
+
[1m[35m (0.0ms)[0m commit transaction
|
146
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
147
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00]]
|
148
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
149
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE (("users"."dob" >= '1992-09-08 04:18:36.000000' AND "users"."dob" <= '2013-10-08 04:18:36.000000')) LIMIT 25 OFFSET 0
|
150
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" [0m
|
151
|
+
[1m[35m (0.1ms)[0m begin transaction
|
152
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 16]]
|
153
|
+
[1m[35m (0.1ms)[0m commit transaction
|
154
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
155
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]]
|
156
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
157
|
+
[1m[35m (0.1ms)[0m begin transaction
|
158
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 18]]
|
159
|
+
[1m[35m (0.1ms)[0m commit transaction
|
160
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
161
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00], ["dob", Mon, 08 Sep 2003 04:18:36 UTC +00:00], ["name", "User#1"], ["updated_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00]]
|
162
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
163
|
+
[1m[35m (0.1ms)[0m begin transaction
|
164
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["age", 20], ["created_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00], ["dob", Wed, 08 Sep 1993 04:18:36 UTC +00:00], ["name", "User#2"], ["updated_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00]]
|
165
|
+
[1m[35m (0.1ms)[0m commit transaction
|
166
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
167
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00]]
|
168
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
169
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0
|
170
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
171
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Sun, 08 Sep 2013 04:18:36 UTC +00:00]]
|
172
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
173
|
+
[1m[35m (0.1ms)[0m begin transaction
|
174
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?)[0m [["book_id", nil], ["user_id", 22]]
|
175
|
+
[1m[35m (0.1ms)[0m commit transaction
|
176
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 22 LIMIT 1[0m
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: query_report
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-10-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -118,17 +118,17 @@ dependencies:
|
|
118
118
|
requirement: !ruby/object:Gem::Requirement
|
119
119
|
none: false
|
120
120
|
requirements:
|
121
|
-
- -
|
121
|
+
- - ~>
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version:
|
123
|
+
version: 1.0.0.rc2
|
124
124
|
type: :runtime
|
125
125
|
prerelease: false
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - ~>
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: 1.0.0.rc2
|
132
132
|
- !ruby/object:Gem::Dependency
|
133
133
|
name: awesome_print
|
134
134
|
requirement: !ruby/object:Gem::Requirement
|
@@ -249,15 +249,21 @@ executables: []
|
|
249
249
|
extensions: []
|
250
250
|
extra_rdoc_files: []
|
251
251
|
files:
|
252
|
+
- app/mailers/report_mailer.rb
|
252
253
|
- app/helpers/query_report_helper.rb
|
253
254
|
- app/helpers/query_report_filter_helper.rb
|
254
255
|
- app/helpers/query_report_link_helper.rb
|
256
|
+
- app/views/report_mailer/send_report.html.erb
|
255
257
|
- app/views/query_report/_charts.html.erb
|
256
258
|
- app/views/query_report/_search.html.erb
|
259
|
+
- app/views/query_report/list.js.erb
|
260
|
+
- app/views/query_report/_list.html.erb
|
257
261
|
- app/views/query_report/_links.html.erb
|
258
262
|
- app/views/query_report/list.html.erb
|
259
263
|
- app/views/query_report/_records.html.erb
|
264
|
+
- app/views/query_report/_record_footer.html.erb
|
260
265
|
- app/views/query_report/_chart.html.erb
|
266
|
+
- app/views/query_report/_content.html.erb
|
261
267
|
- config/routes.rb
|
262
268
|
- config/locales/query_report.yml
|
263
269
|
- db/schema.rb
|
@@ -283,6 +289,7 @@ files:
|
|
283
289
|
- MIT-LICENSE
|
284
290
|
- Rakefile
|
285
291
|
- README.md
|
292
|
+
- test/functional/report_mailer_test.rb
|
286
293
|
- test/test_helper.rb
|
287
294
|
- test/dummy/config/environment.rb
|
288
295
|
- test/dummy/config/database.yml
|
@@ -409,6 +416,7 @@ signing_key:
|
|
409
416
|
specification_version: 3
|
410
417
|
summary: Structure you reports
|
411
418
|
test_files:
|
419
|
+
- test/functional/report_mailer_test.rb
|
412
420
|
- test/test_helper.rb
|
413
421
|
- test/dummy/config/environment.rb
|
414
422
|
- test/dummy/config/database.yml
|