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 CHANGED
@@ -25,7 +25,7 @@ begin
25
25
  require 'jeweler'
26
26
  Jeweler::Tasks.new do |s|
27
27
  s.name = "paths_of_glory"
28
- s.version = "0.1.2"
28
+ s.version = "0.1.3"
29
29
  s.author = "Paul Campbell"
30
30
  s.email = "paul@rslw.com"
31
31
  s.homepage = "http://www.github.com/paulca/paths_of_glory"
@@ -2,6 +2,6 @@ class <%= class_name %>Observer < ActiveRecord::Observer
2
2
  observe :user
3
3
 
4
4
  def after_save(user)
5
- Dedicated.award_achievements_for(user) if ('your conditions here')
5
+ <%= class_name %>.award_achievements_for(user) if ('your conditions here')
6
6
  end
7
7
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{paths_of_glory}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Paul Campbell"]
@@ -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).should match(/GloryObserver < ActiveRecord::Observer/)
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
  Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4260
4260
  Dedicated Create (0.1ms) INSERT 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)
4261
4261
  Achievement Load (0.4ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4262
+ SQL (0.2ms) select sqlite_version(*)
4263
+ SQL (0.5ms)  SELECT name
4264
+ FROM sqlite_master
4265
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
4266
+ 
4267
+ SQL (3.0ms) DROP TABLE "achievements"
4268
+ SQL (2.2ms) CREATE 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') 
4269
+ SQL (3.5ms)  SELECT name
4270
+ FROM sqlite_master
4271
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
4272
+ 
4273
+ SQL (6.6ms) DROP TABLE "users"
4274
+ SQL (17.3ms) CREATE 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') 
4275
+ SQL (0.9ms)  SELECT name
4276
+ FROM sqlite_master
4277
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
4278
+ 
4279
+ SQL (0.3ms) SELECT version FROM "schema_migrations"
4280
+ User Create (0.5ms) INSERT 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')
4281
+ Achievement Load (0.4ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1
4282
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1
4283
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1
4284
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1
4285
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4286
+ User Load (0.6ms) SELECT * FROM "users" WHERE ("users"."id" = 1) 
4287
+ User Create (0.4ms) INSERT 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')
4288
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1
4289
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1
4290
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1
4291
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1
4292
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4293
+ User Load (0.5ms) SELECT * FROM "users" WHERE ("users"."id" = 1) 
4294
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4295
+ Achievement Load (0.3ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4296
+ Achievement Load (0.3ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4297
+ Achievement Load (0.3ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4298
+ User Create (0.5ms) INSERT 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')
4299
+ Achievement Load (0.8ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1
4300
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1
4301
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1
4302
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1
4303
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4304
+ User Load (0.5ms) SELECT * FROM "users" WHERE ("users"."id" = 1) 
4305
+ User Update (0.1ms) UPDATE "users" SET "updated_at" = '2010-05-20 13:38:53', "sign_in_count" = 4 WHERE "id" = 1
4306
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1
4307
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1
4308
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1
4309
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1
4310
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4311
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4312
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4313
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4314
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4315
+ User Create (0.4ms) INSERT 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')
4316
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1
4317
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1
4318
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1
4319
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1
4320
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4321
+ User Load (0.5ms) SELECT * FROM "users" WHERE ("users"."id" = 1) 
4322
+ User Update (0.2ms) UPDATE "users" SET "updated_at" = '2010-05-20 13:38:53', "sign_in_count" = 5 WHERE "id" = 1
4323
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1
4324
+ Dedicated Create (0.2ms) INSERT 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)
4325
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1
4326
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1
4327
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1
4328
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4329
+ Achievement Load (0.6ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4330
+ Achievement Load (0.4ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4331
+ Achievement Load (0.4ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4332
+ Achievement Load (0.4ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4333
+ User Update (0.2ms) UPDATE "users" SET "updated_at" = '2010-05-20 13:38:53', "sign_in_count" = 6 WHERE "id" = 1
4334
+ Achievement Load (0.3ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1
4335
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1
4336
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1
4337
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1
4338
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4339
+ Achievement Load (0.4ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4340
+ Achievement Load (0.4ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4341
+ Achievement Load (0.4ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4342
+ Achievement Load (0.4ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4343
+ User Create (0.4ms) INSERT 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')
4344
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1
4345
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1
4346
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1
4347
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1
4348
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4349
+ User Load (0.5ms) SELECT * FROM "users" WHERE ("users"."id" = 1) 
4350
+ User Update (0.2ms) UPDATE "users" SET "updated_at" = '2010-05-20 13:38:53', "sign_in_count" = 500 WHERE "id" = 1
4351
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1
4352
+ Dedicated Create (0.2ms) INSERT 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)
4353
+ Achievement Load (0.3ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1
4354
+ Dedicated Create (0.1ms) INSERT 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)
4355
+ Achievement Load (0.5ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1
4356
+ Dedicated Create (0.1ms) INSERT 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)
4357
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1
4358
+ Dedicated Create (0.1ms) INSERT 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)
4359
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4360
+ Dedicated Create (0.1ms) INSERT 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)
4361
+ Achievement Load (0.4ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Paul Campbell