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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 636c8e4a3a3f27aae612db35f608bf6453471aac
4
- data.tar.gz: 9113c3fd416d57f04bfbf980c6aaf6b286bdfd61
3
+ metadata.gz: 100decf1261e0523d0eee544dbf74aec61e1fb7a
4
+ data.tar.gz: b35f69df914a6ec14c157086ca054b3a68a864e8
5
5
  SHA512:
6
- metadata.gz: 6be48d2fbe30d02cd3582ea190b7be166558eadf48170812617a8de1458a2ab0225c7759069190d6eb811a457b7225361baeceb8471b121c809d526ce3d32df9
7
- data.tar.gz: 78c1f012e309dfeca824f60ac58a8394b8bb1dc0c348f2a78e1660ecf838c2148f0b439258ee7c24aa103a0f4665fa77a11621521c660aa1e776a9ce80fd94fe
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.firt.audited_changed #=> {"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]}
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
 
@@ -1,3 +1,3 @@
1
1
  module Espinita
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -23439,3 +23439,141 @@ Completed 200 OK in 110ms (Views: 5.5ms | ActiveRecord: 2.2ms)
23439
23439
   (0.1ms) SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 11], ["auditable_type", "GeneralModel"]]
23440
23440
  Espinita::Audit Load (0.1ms) 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
  Espinita::Audit Load (0.1ms) 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"]]
23442
+  (0.5ms) CREATE 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) 
23443
+  (0.2ms) 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
+  (0.1ms) CREATE INDEX "index_general_models_on_user_id" ON "general_models" ("user_id")
23445
+  (0.2ms) 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
+  (0.1ms) CREATE INDEX "index_espinita_audits_on_auditable_id_and_auditable_type" ON "espinita_audits" ("auditable_id", "auditable_type")
23447
+  (0.3ms) CREATE INDEX "index_espinita_audits_on_user_id_and_user_type" ON "espinita_audits" ("user_id", "user_type")
23448
+  (0.1ms) begin transaction
23449
+ SQL (2.5ms) 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
+  (0.1ms) commit transaction
23451
+  (0.1ms) SELECT COUNT(*) FROM "espinita_audits"
23452
+ Processing by AuditsController#audit as HTML
23453
+  (0.1ms) begin transaction
23454
+ SQL (0.3ms) 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
+  (0.2ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 1 AND "espinita_audits"."auditable_type" = 'GeneralModel'
23456
+ SQL (0.3ms) 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
+ SQL (0.2ms) UPDATE "espinita_audits" SET "updated_at" = ?, "audited_changes" = ? WHERE "espinita_audits"."id" = 1 [["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
+  (0.1ms) commit transaction
23459
+ Rendered text template (0.0ms)
23460
+ Completed 200 OK in 78ms (Views: 4.4ms | ActiveRecord: 1.4ms)
23461
+  (0.1ms) SELECT COUNT(*) FROM "espinita_audits"
23462
+ Espinita::Audit Load (0.2ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
23464
+ Espinita::Audit Load (0.1ms) 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
+  (0.1ms) begin transaction
23466
+ SQL (0.2ms) 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
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 2 AND "espinita_audits"."auditable_type" = 'GeneralModel'
23468
+ SQL (0.2ms) 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
+  (0.1ms) commit transaction
23470
+  (0.1ms) begin transaction
23471
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 2 AND "espinita_audits"."auditable_type" = 'GeneralModel'
23472
+ SQL (0.2ms) 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
+ SQL (0.1ms) UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 2 [["name", "Foo"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00]]
23474
+  (0.1ms) commit transaction
23475
+ Espinita::Audit Load (0.1ms) 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", 2], ["auditable_type", "GeneralModel"]]
23476
+  (0.1ms) begin transaction
23477
+ SQL (0.2ms) 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]]
23478
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 3 AND "espinita_audits"."auditable_type" = 'GeneralModel'
23479
+ SQL (0.2ms) 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", 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
+  (0.1ms) commit transaction
23481
+  (0.1ms) begin transaction
23482
+  (0.2ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 3 AND "espinita_audits"."auditable_type" = 'GeneralModel'
23483
+ SQL (0.3ms) 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", 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
+ SQL (0.2ms) 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
+  (0.1ms) commit transaction
23486
+  (0.1ms) SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 3], ["auditable_type", "GeneralModel"]]
23487
+  (0.1ms) begin transaction
23488
+ SQL (0.2ms) 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
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 4 AND "espinita_audits"."auditable_type" = 'GeneralModel'
23490
+ SQL (0.2ms) 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
+  (0.1ms) commit transaction
23492
+  (0.1ms) begin transaction
23493
+ SQL (0.2ms) UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 4 [["name", "Foo"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00]]
23494
+  (0.1ms) commit transaction
23495
+ Espinita::Audit Load (0.1ms) 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", 4], ["auditable_type", "GeneralModel"]]
23496
+  (0.1ms) begin transaction
23497
+ SQL (0.3ms) 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]]
23498
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 5 AND "espinita_audits"."auditable_type" = 'GeneralModel'
23499
+ SQL (0.2ms) 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", 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
+  (0.1ms) commit transaction
23501
+  (0.1ms) begin transaction
23502
+ SQL (0.2ms) 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
+  (0.0ms) commit transaction
23504
+  (0.1ms) SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 5], ["auditable_type", "GeneralModel"]]
23505
+ Espinita::Audit Load (0.2ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" ASC LIMIT 1 [["auditable_id", 5], ["auditable_type", "GeneralModel"]]
23506
+  (0.1ms) begin transaction
23507
+ SQL (0.2ms) 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]]
23508
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 6 AND "espinita_audits"."auditable_type" = 'GeneralModel'
23509
+ SQL (0.2ms) 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", 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
+  (0.1ms) commit transaction
23511
+  (0.1ms) begin transaction
23512
+  (0.2ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 6 AND "espinita_audits"."auditable_type" = 'GeneralModel'
23513
+ SQL (0.3ms) 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", 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
+ SQL (0.2ms) 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
+  (0.1ms) commit transaction
23516
+  (0.1ms) SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 6], ["auditable_type", "GeneralModel"]]
23517
+ Espinita::Audit Load (0.1ms) 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"]]
23518
+ Espinita::Audit Load (0.1ms) 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
+  (0.1ms) begin transaction
23520
+ SQL (0.3ms) 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
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 7 AND "espinita_audits"."auditable_type" = 'GeneralModel'
23522
+ SQL (0.3ms) 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
+  (0.2ms) commit transaction
23524
+  (0.1ms) begin transaction
23525
+  (0.2ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 7 AND "espinita_audits"."auditable_type" = 'GeneralModel'
23526
+ SQL (0.3ms) 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
+ SQL (0.2ms) UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 7 [["name", "Foo"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00]]
23528
+  (0.1ms) commit transaction
23529
+  (0.1ms) SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 7], ["auditable_type", "GeneralModel"]]
23530
+ Espinita::Audit Load (0.1ms) 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
+ Espinita::Audit Load (0.1ms) 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"]]
23532
+  (0.1ms) begin transaction
23533
+ SQL (0.2ms) 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]]
23534
+  (0.1ms) commit transaction
23535
+  (0.0ms) begin transaction
23536
+ SQL (0.2ms) 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
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 8 AND "espinita_audits"."auditable_type" = 'GeneralModel'
23538
+ SQL (0.2ms) 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
+  (0.1ms) commit transaction
23540
+  (0.1ms) begin transaction
23541
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 8 AND "espinita_audits"."auditable_type" = 'GeneralModel'
23542
+ SQL (0.3ms) 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
+ SQL (0.1ms) UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 8 [["name", "Foo"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00]]
23544
+  (0.1ms) commit transaction
23545
+ Espinita::Audit Load (0.1ms) 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", 8], ["auditable_type", "GeneralModel"]]
23546
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
23547
+ Espinita::Audit Load (0.1ms) 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", 8], ["auditable_type", "GeneralModel"]]
23548
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
23549
+ Espinita::Audit Load (0.1ms) 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", 8], ["auditable_type", "GeneralModel"]]
23550
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
23551
+  (0.1ms) begin transaction
23552
+ SQL (0.2ms) 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
+  (0.1ms) commit transaction
23554
+  (0.1ms) begin transaction
23555
+ SQL (0.2ms) UPDATE "general_models" SET "updated_at" = ? WHERE "general_models"."id" = 9 [["updated_at", Sun, 16 Mar 2014 19:38:36 UTC +00:00]]
23556
+  (0.0ms) commit transaction
23557
+  (0.1ms) SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 9], ["auditable_type", "GeneralModel"]]
23558
+  (0.1ms) begin transaction
23559
+ SQL (0.2ms) 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]]
23560
+  (0.2ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 10 AND "espinita_audits"."auditable_type" = 'GeneralModel'
23561
+ SQL (0.2ms) 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", 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
+  (0.1ms) commit transaction
23563
+  (0.1ms) begin transaction
23564
+ SQL (0.2ms) 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
+  (0.0ms) commit transaction
23566
+  (0.1ms) SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 10], ["auditable_type", "GeneralModel"]]
23567
+ Espinita::Audit Load (0.1ms) 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"]]
23568
+ Espinita::Audit Load (0.1ms) 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
+  (0.1ms) begin transaction
23570
+ SQL (0.2ms) 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
+  (0.1ms) commit transaction
23572
+  (0.0ms) begin transaction
23573
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 11 AND "espinita_audits"."auditable_type" = 'GeneralModel'
23574
+ SQL (0.3ms) 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
+ SQL (0.2ms) UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 11 [["name", "Foo"], ["updated_at", Sat, 15 Mar 2014 19:38:36 UTC +00:00]]
23576
+  (0.1ms) commit transaction
23577
+  (0.1ms) SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 11], ["auditable_type", "GeneralModel"]]
23578
+ Espinita::Audit Load (0.1ms) 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
+ Espinita::Audit Load (0.1ms) 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"]]
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.5
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: 2013-12-31 00:00:00.000000000 Z
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.1.rc3
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.1.rc3
26
+ version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: request_store
29
29
  requirement: !ruby/object:Gem::Requirement