espinita 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/espinita/version.rb +1 -1
- data/spec/dummy/log/test.log +138 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 100decf1261e0523d0eee544dbf74aec61e1fb7a
|
4
|
+
data.tar.gz: b35f69df914a6ec14c157086ca054b3a68a864e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 081db585299397209c8d384354a73dd0c18c02b6fc0aaf561300a81a1ac0bee72c092a21dc521c78e0281525ea4863c4d98a836ccd5f9ace8db672b86d037709
|
7
|
+
data.tar.gz: c1344a568f58d97d2320256eb055634c6e8b2c5824c0afd2305f0e2a77d90643a9eeedc5e089803fd8a922d11af8a68219b0300af110e9f6fc56b62475ad311f
|
data/README.md
CHANGED
@@ -52,7 +52,7 @@ You can find the audits records easily:
|
|
52
52
|
|
53
53
|
Espinita will save the model changes in a serialized column called audited_changes:
|
54
54
|
|
55
|
-
@post.audits.
|
55
|
+
@post.audits.first.audited_changes #=> {"title"=>[nil, "MyString"], "created_at"=>[nil, 2013-10-30 15:50:14 UTC], "updated_at"=>[nil, 2013-10-30 15:50:14 UTC], "id"=>[nil, 1]}
|
56
56
|
|
57
57
|
Espinita will detect the current user when records saved from rails controllers. By default Espinita uses current_user method but you can change it:
|
58
58
|
|
data/lib/espinita/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -23439,3 +23439,141 @@ Completed 200 OK in 110ms (Views: 5.5ms | ActiveRecord: 2.2ms)
|
|
23439
23439
|
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ?[0m [["auditable_id", 11], ["auditable_type", "GeneralModel"]]
|
23440
23440
|
[1m[35mEspinita::Audit Load (0.1ms)[0m SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 11], ["auditable_type", "GeneralModel"]]
|
23441
23441
|
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1[0m [["auditable_id", 11], ["auditable_type", "GeneralModel"]]
|
23442
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "last_name" varchar(255), "email" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
23443
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "general_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "name" varchar(255), "settings" text, "position" integer, "created_at" datetime, "updated_at" datetime)
|
23444
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_general_models_on_user_id" ON "general_models" ("user_id")[0m
|
23445
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "espinita_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "auditable_id" integer, "auditable_type" varchar(255), "user_id" integer, "user_type" varchar(255), "audited_changes" text, "comment" varchar(255), "version" integer, "action" varchar(255), "remote_address" varchar(255), "created_at" datetime, "updated_at" datetime)
|
23446
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_espinita_audits_on_auditable_id_and_auditable_type" ON "espinita_audits" ("auditable_id", "auditable_type")[0m
|
23447
|
+
[1m[35m (0.3ms)[0m CREATE INDEX "index_espinita_audits_on_user_id_and_user_type" ON "espinita_audits" ("user_id", "user_type")
|
23448
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
23449
|
+
[1m[35mSQL (2.5ms)[0m INSERT INTO "users" ("created_at", "email", "last_name", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["email", "john@afferson.com"], ["last_name", "Afferson"], ["name", "John"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00]]
|
23450
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
23451
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "espinita_audits"
|
23452
|
+
Processing by AuditsController#audit as HTML
|
23453
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
23454
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00]]
|
23455
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 1 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
23456
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["auditable_id", 1], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name: MyString\n:settings: MyText\n:position: 1\n:id: 1\n"], ["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 1]]
|
23457
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "espinita_audits" SET "updated_at" = ?, "audited_changes" = ? WHERE "espinita_audits"."id" = 1[0m [["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["audited_changes", "---\n:name: MyString\n:settings: MyText\n:position: 1\n:id: 1\n"]]
|
23458
|
+
[1m[35m (0.1ms)[0m commit transaction
|
23459
|
+
Rendered text template (0.0ms)
|
23460
|
+
Completed 200 OK in 78ms (Views: 4.4ms | ActiveRecord: 1.4ms)
|
23461
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "espinita_audits"[0m
|
23462
|
+
[1m[35mEspinita::Audit Load (0.2ms)[0m SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 1], ["auditable_type", "GeneralModel"]]
|
23463
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
23464
|
+
[1m[35mEspinita::Audit Load (0.1ms)[0m SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 1], ["auditable_type", "GeneralModel"]]
|
23465
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
23466
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00]]
|
23467
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 2 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
23468
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["auditable_id", 2], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:settings: MyText\n:position: 1\n:id: 2\n"], ["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 1]]
|
23469
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
23470
|
+
[1m[35m (0.1ms)[0m begin transaction
|
23471
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 2 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
23472
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 2], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name: Foo\n"], ["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 2]]
|
23473
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 2[0m [["name", "Foo"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00]]
|
23474
|
+
[1m[35m (0.1ms)[0m commit transaction
|
23475
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1[0m [["auditable_id", 2], ["auditable_type", "GeneralModel"]]
|
23476
|
+
[1m[35m (0.1ms)[0m begin transaction
|
23477
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00]]
|
23478
|
+
[1m[35m (0.1ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 3 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
23479
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "create"], ["auditable_id", 3], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name: MyString\n"], ["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 1]]
|
23480
|
+
[1m[35m (0.1ms)[0m commit transaction
|
23481
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
23482
|
+
[1m[35m (0.2ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 3 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
23483
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "update"], ["auditable_id", 3], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name: Foo\n"], ["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 2]]
|
23484
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 3 [["name", "Foo"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00]]
|
23485
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
23486
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 3], ["auditable_type", "GeneralModel"]]
|
23487
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
23488
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00]]
|
23489
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 4 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
23490
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["auditable_id", 4], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name: MyString\n"], ["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 1]]
|
23491
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
23492
|
+
[1m[35m (0.1ms)[0m begin transaction
|
23493
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 4[0m [["name", "Foo"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00]]
|
23494
|
+
[1m[35m (0.1ms)[0m commit transaction
|
23495
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1[0m [["auditable_id", 4], ["auditable_type", "GeneralModel"]]
|
23496
|
+
[1m[35m (0.1ms)[0m begin transaction
|
23497
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00]]
|
23498
|
+
[1m[35m (0.1ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 5 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
23499
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "create"], ["auditable_id", 5], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:settings: MyText\n:position: 1\n:id: 5\n"], ["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 1]]
|
23500
|
+
[1m[35m (0.1ms)[0m commit transaction
|
23501
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
23502
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 5 [["name", "Foo"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00]]
|
23503
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
23504
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 5], ["auditable_type", "GeneralModel"]]
|
23505
|
+
[1m[36mEspinita::Audit Load (0.2ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" ASC LIMIT 1[0m [["auditable_id", 5], ["auditable_type", "GeneralModel"]]
|
23506
|
+
[1m[35m (0.1ms)[0m begin transaction
|
23507
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00]]
|
23508
|
+
[1m[35m (0.1ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 6 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
23509
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "create"], ["auditable_id", 6], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:settings: MyText\n:position: 1\n:id: 6\n"], ["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 1]]
|
23510
|
+
[1m[35m (0.1ms)[0m commit transaction
|
23511
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
23512
|
+
[1m[35m (0.2ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 6 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
23513
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "update"], ["auditable_id", 6], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name: Foo\n"], ["comment", "Some comment"], ["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 2]]
|
23514
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 6 [["name", "Foo"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00]]
|
23515
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
23516
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 6], ["auditable_type", "GeneralModel"]]
|
23517
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1[0m [["auditable_id", 6], ["auditable_type", "GeneralModel"]]
|
23518
|
+
[1m[35mEspinita::Audit Load (0.1ms)[0m SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 6], ["auditable_type", "GeneralModel"]]
|
23519
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
23520
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00]]
|
23521
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 7 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
23522
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["auditable_id", 7], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name: MyString\n:settings: MyText\n:position: 1\n:id: 7\n"], ["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 1]]
|
23523
|
+
[1m[36m (0.2ms)[0m [1mcommit transaction[0m
|
23524
|
+
[1m[35m (0.1ms)[0m begin transaction
|
23525
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 7 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
23526
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 7], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name: Foo\n"], ["comment", "Some comment"], ["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 2]]
|
23527
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 7[0m [["name", "Foo"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00]]
|
23528
|
+
[1m[35m (0.1ms)[0m commit transaction
|
23529
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ?[0m [["auditable_id", 7], ["auditable_type", "GeneralModel"]]
|
23530
|
+
[1m[35mEspinita::Audit Load (0.1ms)[0m SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 7], ["auditable_type", "GeneralModel"]]
|
23531
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1[0m [["auditable_id", 7], ["auditable_type", "GeneralModel"]]
|
23532
|
+
[1m[35m (0.1ms)[0m begin transaction
|
23533
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "last_name", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["email", "john@afferson.com"], ["last_name", "Afferson"], ["name", "John"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00]]
|
23534
|
+
[1m[35m (0.1ms)[0m commit transaction
|
23535
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
23536
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00]]
|
23537
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 8 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
23538
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["auditable_id", 8], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name: MyString\n:settings: MyText\n:position: 1\n:id: 8\n"], ["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 1]]
|
23539
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
23540
|
+
[1m[35m (0.1ms)[0m begin transaction
|
23541
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 8 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
23542
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 8], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name: Foo\n"], ["comment", "Some comment"], ["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 2]]
|
23543
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 8[0m [["name", "Foo"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00]]
|
23544
|
+
[1m[35m (0.1ms)[0m commit transaction
|
23545
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1[0m [["auditable_id", 8], ["auditable_type", "GeneralModel"]]
|
23546
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
|
23547
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1[0m [["auditable_id", 8], ["auditable_type", "GeneralModel"]]
|
23548
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
|
23549
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1[0m [["auditable_id", 8], ["auditable_type", "GeneralModel"]]
|
23550
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
|
23551
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
23552
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00]]
|
23553
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
23554
|
+
[1m[35m (0.1ms)[0m begin transaction
|
23555
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "general_models" SET "updated_at" = ? WHERE "general_models"."id" = 9[0m [["updated_at", Sun, 16 Mar 2014 19:38:36 UTC +00:00]]
|
23556
|
+
[1m[35m (0.0ms)[0m commit transaction
|
23557
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ?[0m [["auditable_id", 9], ["auditable_type", "GeneralModel"]]
|
23558
|
+
[1m[35m (0.1ms)[0m begin transaction
|
23559
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00]]
|
23560
|
+
[1m[35m (0.2ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 10 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
23561
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "create"], ["auditable_id", 10], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name: MyString\n:settings: MyText\n:position: 1\n:id: 10\n"], ["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 1]]
|
23562
|
+
[1m[35m (0.1ms)[0m commit transaction
|
23563
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
23564
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 10 [["name", "Foo"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00]]
|
23565
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
23566
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 10], ["auditable_type", "GeneralModel"]]
|
23567
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1[0m [["auditable_id", 10], ["auditable_type", "GeneralModel"]]
|
23568
|
+
[1m[35mEspinita::Audit Load (0.1ms)[0m SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 10], ["auditable_type", "GeneralModel"]]
|
23569
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
23570
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00]]
|
23571
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
23572
|
+
[1m[35m (0.0ms)[0m begin transaction
|
23573
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 11 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
23574
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 11], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name: Foo\n"], ["comment", "Some comment"], ["created_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 1]]
|
23575
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 11[0m [["name", "Foo"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00]]
|
23576
|
+
[1m[35m (0.1ms)[0m commit transaction
|
23577
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ?[0m [["auditable_id", 11], ["auditable_type", "GeneralModel"]]
|
23578
|
+
[1m[35mEspinita::Audit Load (0.1ms)[0m SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 11], ["auditable_type", "GeneralModel"]]
|
23579
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1[0m [["auditable_id", 11], ["auditable_type", "GeneralModel"]]
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: espinita
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Michelson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.0
|
19
|
+
version: '4.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.0
|
26
|
+
version: '4.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: request_store
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|