paths_of_glory 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/generators/achievement/templates/achievement_observer.rb +1 -1
- data/paths_of_glory.gemspec +1 -1
- data/spec/achievement_generator_spec.rb +3 -1
- data/spec/debug.log +100 -0
- metadata +2 -2
data/Rakefile
CHANGED
data/paths_of_glory.gemspec
CHANGED
@@ -30,7 +30,9 @@ describe AchievementGenerator do
|
|
30
30
|
end
|
31
31
|
|
32
32
|
it "should make them beautiful" do
|
33
|
-
File.read(observer_file)
|
33
|
+
generated_code = File.read(observer_file)
|
34
|
+
generated_code.should match(/GloryObserver < ActiveRecord::Observer/)
|
35
|
+
generated_code.should match(/Glory\.award/)
|
34
36
|
end
|
35
37
|
|
36
38
|
|
data/spec/debug.log
CHANGED
@@ -4259,3 +4259,103 @@
|
|
4259
4259
|
[4;36;1mAchievement Load (0.1ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4260
4260
|
[4;35;1mDedicated Create (0.1ms)[0m [0mINSERT INTO "achievements" ("created_at", "updated_at", "level", "notified", "type", "user_id") VALUES('2010-05-20 13:33:52', '2010-05-20 13:33:52', 5, 'f', 'Dedicated', 1)[0m
|
4261
4261
|
[4;36;1mAchievement Load (0.4ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1[0m
|
4262
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
4263
|
+
[4;35;1mSQL (0.5ms)[0m [0m SELECT name
|
4264
|
+
FROM sqlite_master
|
4265
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
4266
|
+
[0m
|
4267
|
+
[4;36;1mSQL (3.0ms)[0m [0;1mDROP TABLE "achievements"[0m
|
4268
|
+
[4;35;1mSQL (2.2ms)[0m [0mCREATE TABLE "achievements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "level" integer, "user_id" integer, "created_at" datetime, "updated_at" datetime, "notified" boolean DEFAULT 'f') [0m
|
4269
|
+
[4;36;1mSQL (3.5ms)[0m [0;1m SELECT name
|
4270
|
+
FROM sqlite_master
|
4271
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
4272
|
+
[0m
|
4273
|
+
[4;35;1mSQL (6.6ms)[0m [0mDROP TABLE "users"[0m
|
4274
|
+
[4;36;1mSQL (17.3ms)[0m [0;1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) NOT NULL, "encrypted_password" varchar(40) NOT NULL, "password_salt" varchar(255) NOT NULL, "confirmation_token" varchar(20), "confirmed_at" datetime, "confirmation_sent_at" datetime, "reset_password_token" varchar(20), "remember_token" varchar(20), "remember_created_at" datetime, "sign_in_count" integer, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "failed_attempts" integer DEFAULT 0, "unlock_token" varchar(20), "locked_at" datetime, "created_at" datetime, "updated_at" datetime, "password_set" boolean DEFAULT 'f') [0m
|
4275
|
+
[4;35;1mSQL (0.9ms)[0m [0m SELECT name
|
4276
|
+
FROM sqlite_master
|
4277
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
4278
|
+
[0m
|
4279
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT version FROM "schema_migrations"[0m
|
4280
|
+
[4;35;1mUser Create (0.5ms)[0m [0mINSERT INTO "users" ("encrypted_password", "failed_attempts", "created_at", "confirmation_sent_at", "last_sign_in_ip", "updated_at", "last_sign_in_at", "sign_in_count", "password_salt", "reset_password_token", "remember_token", "current_sign_in_ip", "confirmation_token", "remember_created_at", "current_sign_in_at", "locked_at", "email", "confirmed_at", "unlock_token", "password_set") VALUES('blah', 0, '2010-05-20 13:38:53', NULL, NULL, '2010-05-20 13:38:53', NULL, 2, 'are you joking?', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'joe@king.com', NULL, NULL, 'f')[0m
|
4281
|
+
[4;36;1mAchievement Load (0.4ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4282
|
+
[4;35;1mAchievement Load (0.2ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4283
|
+
[4;36;1mAchievement Load (0.1ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4284
|
+
[4;35;1mAchievement Load (0.2ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4285
|
+
[4;36;1mAchievement Load (0.2ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4286
|
+
[4;35;1mUser Load (0.6ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = 1) [0m
|
4287
|
+
[4;36;1mUser Create (0.4ms)[0m [0;1mINSERT INTO "users" ("encrypted_password", "failed_attempts", "created_at", "confirmation_sent_at", "last_sign_in_ip", "updated_at", "last_sign_in_at", "sign_in_count", "password_salt", "reset_password_token", "remember_token", "current_sign_in_ip", "confirmation_token", "remember_created_at", "current_sign_in_at", "locked_at", "email", "confirmed_at", "unlock_token", "password_set") VALUES('blah', 0, '2010-05-20 13:38:53', NULL, NULL, '2010-05-20 13:38:53', NULL, 2, 'are you joking?', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'joe@king.com', NULL, NULL, 'f')[0m
|
4288
|
+
[4;35;1mAchievement Load (0.2ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4289
|
+
[4;36;1mAchievement Load (0.2ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4290
|
+
[4;35;1mAchievement Load (0.1ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4291
|
+
[4;36;1mAchievement Load (0.2ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4292
|
+
[4;35;1mAchievement Load (0.1ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4293
|
+
[4;36;1mUser Load (0.5ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = 1) [0m
|
4294
|
+
[4;35;1mAchievement Load (0.2ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1[0m
|
4295
|
+
[4;36;1mAchievement Load (0.3ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1[0m
|
4296
|
+
[4;35;1mAchievement Load (0.3ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1[0m
|
4297
|
+
[4;36;1mAchievement Load (0.3ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1[0m
|
4298
|
+
[4;35;1mUser Create (0.5ms)[0m [0mINSERT INTO "users" ("encrypted_password", "failed_attempts", "created_at", "confirmation_sent_at", "last_sign_in_ip", "updated_at", "last_sign_in_at", "sign_in_count", "password_salt", "reset_password_token", "remember_token", "current_sign_in_ip", "confirmation_token", "remember_created_at", "current_sign_in_at", "locked_at", "email", "confirmed_at", "unlock_token", "password_set") VALUES('blah', 0, '2010-05-20 13:38:53', NULL, NULL, '2010-05-20 13:38:53', NULL, 2, 'are you joking?', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'joe@king.com', NULL, NULL, 'f')[0m
|
4299
|
+
[4;36;1mAchievement Load (0.8ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4300
|
+
[4;35;1mAchievement Load (0.2ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4301
|
+
[4;36;1mAchievement Load (0.2ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4302
|
+
[4;35;1mAchievement Load (0.2ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4303
|
+
[4;36;1mAchievement Load (0.1ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4304
|
+
[4;35;1mUser Load (0.5ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = 1) [0m
|
4305
|
+
[4;36;1mUser Update (0.1ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-05-20 13:38:53', "sign_in_count" = 4 WHERE "id" = 1[0m
|
4306
|
+
[4;35;1mAchievement Load (0.1ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4307
|
+
[4;36;1mAchievement Load (0.1ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4308
|
+
[4;35;1mAchievement Load (0.1ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4309
|
+
[4;36;1mAchievement Load (0.1ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4310
|
+
[4;35;1mAchievement Load (0.1ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4311
|
+
[4;36;1mAchievement Load (0.2ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1[0m
|
4312
|
+
[4;35;1mAchievement Load (0.1ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1[0m
|
4313
|
+
[4;36;1mAchievement Load (0.2ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1[0m
|
4314
|
+
[4;35;1mAchievement Load (0.2ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1[0m
|
4315
|
+
[4;36;1mUser Create (0.4ms)[0m [0;1mINSERT INTO "users" ("encrypted_password", "failed_attempts", "created_at", "confirmation_sent_at", "last_sign_in_ip", "updated_at", "last_sign_in_at", "sign_in_count", "password_salt", "reset_password_token", "remember_token", "current_sign_in_ip", "confirmation_token", "remember_created_at", "current_sign_in_at", "locked_at", "email", "confirmed_at", "unlock_token", "password_set") VALUES('blah', 0, '2010-05-20 13:38:53', NULL, NULL, '2010-05-20 13:38:53', NULL, 2, 'are you joking?', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'joe@king.com', NULL, NULL, 'f')[0m
|
4316
|
+
[4;35;1mAchievement Load (0.2ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4317
|
+
[4;36;1mAchievement Load (0.2ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4318
|
+
[4;35;1mAchievement Load (0.1ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4319
|
+
[4;36;1mAchievement Load (0.1ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4320
|
+
[4;35;1mAchievement Load (0.2ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4321
|
+
[4;36;1mUser Load (0.5ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = 1) [0m
|
4322
|
+
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-05-20 13:38:53', "sign_in_count" = 5 WHERE "id" = 1[0m
|
4323
|
+
[4;36;1mAchievement Load (0.2ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4324
|
+
[4;35;1mDedicated Create (0.2ms)[0m [0mINSERT INTO "achievements" ("created_at", "updated_at", "level", "notified", "type", "user_id") VALUES('2010-05-20 13:38:53', '2010-05-20 13:38:53', 1, 'f', 'Dedicated', 1)[0m
|
4325
|
+
[4;36;1mAchievement Load (0.2ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4326
|
+
[4;35;1mAchievement Load (0.1ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4327
|
+
[4;36;1mAchievement Load (0.1ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4328
|
+
[4;35;1mAchievement Load (0.1ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4329
|
+
[4;36;1mAchievement Load (0.6ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1[0m
|
4330
|
+
[4;35;1mAchievement Load (0.4ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1[0m
|
4331
|
+
[4;36;1mAchievement Load (0.4ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1[0m
|
4332
|
+
[4;35;1mAchievement Load (0.4ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1[0m
|
4333
|
+
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-05-20 13:38:53', "sign_in_count" = 6 WHERE "id" = 1[0m
|
4334
|
+
[4;35;1mAchievement Load (0.3ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4335
|
+
[4;36;1mAchievement Load (0.1ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4336
|
+
[4;35;1mAchievement Load (0.2ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4337
|
+
[4;36;1mAchievement Load (0.1ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4338
|
+
[4;35;1mAchievement Load (0.1ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4339
|
+
[4;36;1mAchievement Load (0.4ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1[0m
|
4340
|
+
[4;35;1mAchievement Load (0.4ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1[0m
|
4341
|
+
[4;36;1mAchievement Load (0.4ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1[0m
|
4342
|
+
[4;35;1mAchievement Load (0.4ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1[0m
|
4343
|
+
[4;36;1mUser Create (0.4ms)[0m [0;1mINSERT INTO "users" ("encrypted_password", "failed_attempts", "created_at", "confirmation_sent_at", "last_sign_in_ip", "updated_at", "last_sign_in_at", "sign_in_count", "password_salt", "reset_password_token", "remember_token", "current_sign_in_ip", "confirmation_token", "remember_created_at", "current_sign_in_at", "locked_at", "email", "confirmed_at", "unlock_token", "password_set") VALUES('blah', 0, '2010-05-20 13:38:53', NULL, NULL, '2010-05-20 13:38:53', NULL, 2, 'are you joking?', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'joe@king.com', NULL, NULL, 'f')[0m
|
4344
|
+
[4;35;1mAchievement Load (0.2ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4345
|
+
[4;36;1mAchievement Load (0.1ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4346
|
+
[4;35;1mAchievement Load (0.1ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4347
|
+
[4;36;1mAchievement Load (0.1ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4348
|
+
[4;35;1mAchievement Load (0.1ms)[0m [0mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4349
|
+
[4;36;1mUser Load (0.5ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = 1) [0m
|
4350
|
+
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-05-20 13:38:53', "sign_in_count" = 500 WHERE "id" = 1[0m
|
4351
|
+
[4;36;1mAchievement Load (0.1ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4352
|
+
[4;35;1mDedicated Create (0.2ms)[0m [0mINSERT INTO "achievements" ("created_at", "updated_at", "level", "notified", "type", "user_id") VALUES('2010-05-20 13:38:53', '2010-05-20 13:38:53', 1, 'f', 'Dedicated', 1)[0m
|
4353
|
+
[4;36;1mAchievement Load (0.3ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4354
|
+
[4;35;1mDedicated Create (0.1ms)[0m [0mINSERT INTO "achievements" ("created_at", "updated_at", "level", "notified", "type", "user_id") VALUES('2010-05-20 13:38:53', '2010-05-20 13:38:53', 2, 'f', 'Dedicated', 1)[0m
|
4355
|
+
[4;36;1mAchievement Load (0.5ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4356
|
+
[4;35;1mDedicated Create (0.1ms)[0m [0mINSERT INTO "achievements" ("created_at", "updated_at", "level", "notified", "type", "user_id") VALUES('2010-05-20 13:38:53', '2010-05-20 13:38:53', 3, 'f', 'Dedicated', 1)[0m
|
4357
|
+
[4;36;1mAchievement Load (0.1ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4358
|
+
[4;35;1mDedicated Create (0.1ms)[0m [0mINSERT INTO "achievements" ("created_at", "updated_at", "level", "notified", "type", "user_id") VALUES('2010-05-20 13:38:53', '2010-05-20 13:38:53', 4, 'f', 'Dedicated', 1)[0m
|
4359
|
+
[4;36;1mAchievement Load (0.1ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1[0m
|
4360
|
+
[4;35;1mDedicated Create (0.1ms)[0m [0mINSERT INTO "achievements" ("created_at", "updated_at", "level", "notified", "type", "user_id") VALUES('2010-05-20 13:38:53', '2010-05-20 13:38:53', 5, 'f', 'Dedicated', 1)[0m
|
4361
|
+
[4;36;1mAchievement Load (0.4ms)[0m [0;1mSELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1[0m
|