authlogic_facebook_shim 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- authlogic_facebook_shim (0.4.0)
4
+ authlogic_facebook_shim (0.5.1)
5
5
  authlogic (~> 3.0)
6
6
 
7
7
  GEM
@@ -37,7 +37,7 @@ GEM
37
37
  multi_json (~> 1.0)
38
38
  addressable (2.2.6)
39
39
  arel (2.2.1)
40
- authlogic (3.0.3)
40
+ authlogic (3.1.0)
41
41
  activerecord (>= 3.0.7)
42
42
  activerecord (>= 3.0.7)
43
43
  builder (3.0.0)
@@ -45,10 +45,10 @@ GEM
45
45
  faraday (0.7.5)
46
46
  addressable (~> 2.2.6)
47
47
  multipart-post (~> 1.1.3)
48
- rack (>= 1.1.0, < 2)
48
+ rack (< 2, >= 1.1.0)
49
49
  hike (1.2.1)
50
50
  i18n (0.6.0)
51
- json (1.6.1)
51
+ json (1.6.3)
52
52
  koala (1.2.1)
53
53
  faraday (~> 0.7.0)
54
54
  multi_json (~> 1.0)
@@ -57,8 +57,8 @@ GEM
57
57
  mime-types (~> 1.16)
58
58
  treetop (~> 1.4.8)
59
59
  mime-types (1.17.2)
60
- minitest (2.8.1)
61
- multi_json (1.0.3)
60
+ minitest (2.9.1)
61
+ multi_json (1.0.4)
62
62
  multipart-post (1.1.4)
63
63
  override (0.0.10)
64
64
  polyglot (0.3.3)
@@ -93,7 +93,7 @@ GEM
93
93
  hike (~> 1.2)
94
94
  rack (~> 1.0)
95
95
  tilt (!= 1.3.0, ~> 1.1)
96
- sqlite3 (1.3.4)
96
+ sqlite3 (1.3.5)
97
97
  thor (0.14.6)
98
98
  tilt (1.3.3)
99
99
  treetop (1.4.10)
@@ -12,7 +12,8 @@ module AuthlogicFacebookShim
12
12
  user_info = oauth.get_user_from_cookie(controller.cookies)
13
13
  end
14
14
  OpenStruct.new( user_info ) if user_info
15
-
15
+ rescue Koala::Facebook::APIError
16
+ nil
16
17
  end
17
18
  end
18
19
 
@@ -1,3 +1,3 @@
1
1
  module AuthlogicFacebookShim
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
@@ -1384,3 +1384,61 @@ Migrating to CreateUsers (20101217000008)
1384
1384
   (0.1ms) UPDATE "users" SET "login_count" = 1, "current_login_at" = '2011-12-13 22:14:15.268187', "current_login_ip" = '1.1.1.1', "last_request_at" = '2011-12-13 22:14:15.268404', "perishable_token" = 'WrobOHEJ6GczZIEq72nR', "updated_at" = '2011-12-13 22:14:15.269103', "lock_version" = 1 WHERE ("users"."id" = 3 AND "users"."lock_version" = 0)
1385
1385
   (0.1ms) UPDATE "users" SET "perishable_token" = 'VGmuut4JhgIxbLItkf2B', "updated_at" = '2011-12-13 22:14:15.272839', "lock_version" = 2 WHERE ("users"."id" = 3 AND "users"."lock_version" = 1)
1386
1386
   (0.1ms) UPDATE "users" SET "login_count" = 2, "last_login_at" = '2011-12-13 22:14:15.268187', "current_login_at" = '2011-12-13 22:14:15.274920', "last_login_ip" = '1.1.1.1', "last_request_at" = '2011-12-13 22:14:15.275527', "perishable_token" = 'InNZ7YbWxRyWgCMTicO', "updated_at" = '2011-12-13 22:14:15.276338', "lock_version" = 3 WHERE ("users"."id" = 3 AND "users"."lock_version" = 2)
1387
+  (0.1ms) select sqlite_version(*)
1388
+  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
1389
+  (0.0ms) PRAGMA index_list("schema_migrations")
1390
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1391
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1392
+ Migrating to CreateUsers (20101217000008)
1393
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "lock_version" integer DEFAULT 0, "company_id" integer, "login" varchar(255), "crypted_password" varchar(255), "password_salt" varchar(255), "persistence_token" varchar(255), "single_access_token" varchar(255), "perishable_token" varchar(255), "email" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "login_count" integer DEFAULT 0 NOT NULL, "failed_login_count" integer DEFAULT 0 NOT NULL, "last_request_at" datetime, "current_login_at" datetime, "last_login_at" datetime, "current_login_ip" varchar(255), "last_login_ip" varchar(255), "active" boolean DEFAULT 't', "approved" boolean DEFAULT 't', "confirmed" boolean DEFAULT 't', "facebook_uid" varchar(255))
1394
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101217000008')
1395
+  (0.1ms) SELECT 1 FROM "users" WHERE "users"."persistence_token" = '4b9911154b44453619ef29420dec6d1d67fc99c33d03e6907a3d9fb5269e2a706741c2b3132d52e773a7d88809d673268a2f9d18bb4def59971cb3d26d141ea7' LIMIT 1
1396
+  (0.1ms) SELECT 1 FROM "users" WHERE "users"."single_access_token" = 'aVXjlpW5jUs4V19IRzp' LIMIT 1
1397
+ SQL (2.5ms) INSERT INTO "users" ("active", "approved", "company_id", "confirmed", "created_at", "crypted_password", "current_login_at", "current_login_ip", "email", "facebook_uid", "failed_login_count", "first_name", "last_login_at", "last_login_ip", "last_name", "last_request_at", "lock_version", "login", "login_count", "password_salt", "perishable_token", "persistence_token", "single_access_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["active", true], ["approved", true], ["company_id", nil], ["confirmed", true], ["created_at", Wed, 14 Dec 2011 05:27:51 UTC +00:00], ["crypted_password", nil], ["current_login_at", nil], ["current_login_ip", nil], ["email", nil], ["facebook_uid", nil], ["failed_login_count", 0], ["first_name", nil], ["last_login_at", nil], ["last_login_ip", nil], ["last_name", nil], ["last_request_at", nil], ["lock_version", 0], ["login", nil], ["login_count", 0], ["password_salt", nil], ["perishable_token", "U3uMDRr8xmoVmsM62Y"], ["persistence_token", "4b9911154b44453619ef29420dec6d1d67fc99c33d03e6907a3d9fb5269e2a706741c2b3132d52e773a7d88809d673268a2f9d18bb4def59971cb3d26d141ea7"], ["single_access_token", "aVXjlpW5jUs4V19IRzp"], ["updated_at", Wed, 14 Dec 2011 05:27:51 UTC +00:00]]
1398
+  (0.2ms) UPDATE "users" SET "login_count" = 1, "current_login_at" = '2011-12-14 05:27:51.546023', "current_login_ip" = '1.1.1.1', "last_request_at" = '2011-12-14 05:27:51.546244', "perishable_token" = 'tuQlV7duFesiUQpZPKSp', "updated_at" = '2011-12-14 05:27:51.547325', "lock_version" = 1 WHERE ("users"."id" = 1 AND "users"."lock_version" = 0)
1399
+  (0.2ms) SELECT 1 FROM "users" WHERE "users"."persistence_token" = '4135ec8f2ed81375cd0861e9faf52dec8bca91a0fcc830711db3e3a7db5edc81e40a925ddc871b3370875caab9ce665d0f22b2846d3576ae11002922a8c99673' LIMIT 1
1400
+  (0.1ms) SELECT 1 FROM "users" WHERE "users"."single_access_token" = 'MmU1WjP9SYqXcbvbWB' LIMIT 1
1401
+ SQL (2.4ms) INSERT INTO "users" ("active", "approved", "company_id", "confirmed", "created_at", "crypted_password", "current_login_at", "current_login_ip", "email", "facebook_uid", "failed_login_count", "first_name", "last_login_at", "last_login_ip", "last_name", "last_request_at", "lock_version", "login", "login_count", "password_salt", "perishable_token", "persistence_token", "single_access_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["active", true], ["approved", true], ["company_id", nil], ["confirmed", true], ["created_at", Wed, 14 Dec 2011 05:27:51 UTC +00:00], ["crypted_password", nil], ["current_login_at", nil], ["current_login_ip", nil], ["email", nil], ["facebook_uid", nil], ["failed_login_count", 0], ["first_name", nil], ["last_login_at", nil], ["last_login_ip", nil], ["last_name", nil], ["last_request_at", nil], ["lock_version", 0], ["login", nil], ["login_count", 0], ["password_salt", nil], ["perishable_token", "RDYFbO3qqeCeegeh0HK"], ["persistence_token", "4135ec8f2ed81375cd0861e9faf52dec8bca91a0fcc830711db3e3a7db5edc81e40a925ddc871b3370875caab9ce665d0f22b2846d3576ae11002922a8c99673"], ["single_access_token", "MmU1WjP9SYqXcbvbWB"], ["updated_at", Wed, 14 Dec 2011 05:27:51 UTC +00:00]]
1402
+  (0.1ms) UPDATE "users" SET "login_count" = 1, "current_login_at" = '2011-12-14 05:27:51.610719', "current_login_ip" = '1.1.1.1', "last_request_at" = '2011-12-14 05:27:51.610937', "perishable_token" = '5zCo3dXxAQw6aZeldhL', "updated_at" = '2011-12-14 05:27:51.611647', "lock_version" = 1 WHERE ("users"."id" = 2 AND "users"."lock_version" = 0)
1403
+ SQL (2.5ms) INSERT INTO "users" ("active", "approved", "company_id", "confirmed", "created_at", "crypted_password", "current_login_at", "current_login_ip", "email", "facebook_uid", "failed_login_count", "first_name", "last_login_at", "last_login_ip", "last_name", "last_request_at", "lock_version", "login", "login_count", "password_salt", "perishable_token", "persistence_token", "single_access_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["active", true], ["approved", true], ["company_id", nil], ["confirmed", true], ["created_at", Wed, 14 Dec 2011 05:27:51 UTC +00:00], ["crypted_password", nil], ["current_login_at", nil], ["current_login_ip", nil], ["email", nil], ["facebook_uid", nil], ["failed_login_count", 0], ["first_name", nil], ["last_login_at", nil], ["last_login_ip", nil], ["last_name", nil], ["last_request_at", nil], ["lock_version", 0], ["login", nil], ["login_count", 0], ["password_salt", nil], ["perishable_token", "DfZFETx7OssKno4Twi5u"], ["persistence_token", nil], ["single_access_token", nil], ["updated_at", Wed, 14 Dec 2011 05:27:51 UTC +00:00]]
1404
+  (0.1ms) UPDATE "users" SET "login_count" = 1, "current_login_at" = '2011-12-14 05:27:51.624568', "current_login_ip" = '1.1.1.1', "last_request_at" = '2011-12-14 05:27:51.624787', "perishable_token" = 'YLrrLknEHmTgevPzNms', "updated_at" = '2011-12-14 05:27:51.625490', "lock_version" = 1 WHERE ("users"."id" = 3 AND "users"."lock_version" = 0)
1405
+  (0.1ms) UPDATE "users" SET "perishable_token" = 'Mc7uiRcR0YrrPkNfQHU', "updated_at" = '2011-12-14 05:27:51.629135', "lock_version" = 2 WHERE ("users"."id" = 3 AND "users"."lock_version" = 1)
1406
+  (0.1ms) UPDATE "users" SET "login_count" = 2, "last_login_at" = '2011-12-14 05:27:51.624568', "current_login_at" = '2011-12-14 05:27:51.631167', "last_login_ip" = '1.1.1.1', "last_request_at" = '2011-12-14 05:27:51.631584', "perishable_token" = '1J14M8CcjSqTkmn6ssPw', "updated_at" = '2011-12-14 05:27:51.632350', "lock_version" = 3 WHERE ("users"."id" = 3 AND "users"."lock_version" = 2)
1407
+  (0.1ms) select sqlite_version(*)
1408
+  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
1409
+  (0.0ms) PRAGMA index_list("schema_migrations")
1410
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1411
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1412
+ Migrating to CreateUsers (20101217000008)
1413
+  (0.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "lock_version" integer DEFAULT 0, "company_id" integer, "login" varchar(255), "crypted_password" varchar(255), "password_salt" varchar(255), "persistence_token" varchar(255), "single_access_token" varchar(255), "perishable_token" varchar(255), "email" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "login_count" integer DEFAULT 0 NOT NULL, "failed_login_count" integer DEFAULT 0 NOT NULL, "last_request_at" datetime, "current_login_at" datetime, "last_login_at" datetime, "current_login_ip" varchar(255), "last_login_ip" varchar(255), "active" boolean DEFAULT 't', "approved" boolean DEFAULT 't', "confirmed" boolean DEFAULT 't', "facebook_uid" varchar(255))
1414
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101217000008')
1415
+  (0.2ms) SELECT 1 FROM "users" WHERE "users"."persistence_token" = 'cff1b8f8906c9ce6b0ca59c0fdc77541ffa39b66cd0495ec5f2a6d6f58bcd7a85d29959c66c230d2b0823d153d3cedc5e0772d802a593138f427afe2e87b5cf1' LIMIT 1
1416
+  (0.1ms) SELECT 1 FROM "users" WHERE "users"."single_access_token" = 'uV7BM2FXsOlBaHHjVrPa' LIMIT 1
1417
+ SQL (2.8ms) INSERT INTO "users" ("active", "approved", "company_id", "confirmed", "created_at", "crypted_password", "current_login_at", "current_login_ip", "email", "facebook_uid", "failed_login_count", "first_name", "last_login_at", "last_login_ip", "last_name", "last_request_at", "lock_version", "login", "login_count", "password_salt", "perishable_token", "persistence_token", "single_access_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["active", true], ["approved", true], ["company_id", nil], ["confirmed", true], ["created_at", Wed, 14 Dec 2011 05:29:40 UTC +00:00], ["crypted_password", nil], ["current_login_at", nil], ["current_login_ip", nil], ["email", nil], ["facebook_uid", nil], ["failed_login_count", 0], ["first_name", nil], ["last_login_at", nil], ["last_login_ip", nil], ["last_name", nil], ["last_request_at", nil], ["lock_version", 0], ["login", nil], ["login_count", 0], ["password_salt", nil], ["perishable_token", "3DA7EBNBi2H9A3Sday3"], ["persistence_token", "cff1b8f8906c9ce6b0ca59c0fdc77541ffa39b66cd0495ec5f2a6d6f58bcd7a85d29959c66c230d2b0823d153d3cedc5e0772d802a593138f427afe2e87b5cf1"], ["single_access_token", "uV7BM2FXsOlBaHHjVrPa"], ["updated_at", Wed, 14 Dec 2011 05:29:40 UTC +00:00]]
1418
+  (0.2ms) UPDATE "users" SET "login_count" = 1, "current_login_at" = '2011-12-14 05:29:40.910831', "current_login_ip" = '1.1.1.1', "last_request_at" = '2011-12-14 05:29:40.911069', "perishable_token" = 'shiTOYeIhbAvtk9RfI', "updated_at" = '2011-12-14 05:29:40.912163', "lock_version" = 1 WHERE ("users"."id" = 1 AND "users"."lock_version" = 0)
1419
+  (0.2ms) SELECT 1 FROM "users" WHERE "users"."persistence_token" = '0a53879402e7af4f16b3de97a5c230c385d658d40d14fad281aa548e5f8168caae714259fb3fe0dbc3a391a3ae253865680a3561c242c1c16b80dde42459a51f' LIMIT 1
1420
+  (0.1ms) SELECT 1 FROM "users" WHERE "users"."single_access_token" = 'sN85gW4leKlBIQ2BInT3' LIMIT 1
1421
+ SQL (2.4ms) INSERT INTO "users" ("active", "approved", "company_id", "confirmed", "created_at", "crypted_password", "current_login_at", "current_login_ip", "email", "facebook_uid", "failed_login_count", "first_name", "last_login_at", "last_login_ip", "last_name", "last_request_at", "lock_version", "login", "login_count", "password_salt", "perishable_token", "persistence_token", "single_access_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["active", true], ["approved", true], ["company_id", nil], ["confirmed", true], ["created_at", Wed, 14 Dec 2011 05:29:40 UTC +00:00], ["crypted_password", nil], ["current_login_at", nil], ["current_login_ip", nil], ["email", nil], ["facebook_uid", nil], ["failed_login_count", 0], ["first_name", nil], ["last_login_at", nil], ["last_login_ip", nil], ["last_name", nil], ["last_request_at", nil], ["lock_version", 0], ["login", nil], ["login_count", 0], ["password_salt", nil], ["perishable_token", "QINaRZg5lS11pcg1BeYb"], ["persistence_token", "0a53879402e7af4f16b3de97a5c230c385d658d40d14fad281aa548e5f8168caae714259fb3fe0dbc3a391a3ae253865680a3561c242c1c16b80dde42459a51f"], ["single_access_token", "sN85gW4leKlBIQ2BInT3"], ["updated_at", Wed, 14 Dec 2011 05:29:40 UTC +00:00]]
1422
+  (0.1ms) UPDATE "users" SET "login_count" = 1, "current_login_at" = '2011-12-14 05:29:40.978382', "current_login_ip" = '1.1.1.1', "last_request_at" = '2011-12-14 05:29:40.978618', "perishable_token" = '7blTLnYfmouwFMc8ZzD', "updated_at" = '2011-12-14 05:29:40.979325', "lock_version" = 1 WHERE ("users"."id" = 2 AND "users"."lock_version" = 0)
1423
+ SQL (2.5ms) INSERT INTO "users" ("active", "approved", "company_id", "confirmed", "created_at", "crypted_password", "current_login_at", "current_login_ip", "email", "facebook_uid", "failed_login_count", "first_name", "last_login_at", "last_login_ip", "last_name", "last_request_at", "lock_version", "login", "login_count", "password_salt", "perishable_token", "persistence_token", "single_access_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["active", true], ["approved", true], ["company_id", nil], ["confirmed", true], ["created_at", Wed, 14 Dec 2011 05:29:40 UTC +00:00], ["crypted_password", nil], ["current_login_at", nil], ["current_login_ip", nil], ["email", nil], ["facebook_uid", nil], ["failed_login_count", 0], ["first_name", nil], ["last_login_at", nil], ["last_login_ip", nil], ["last_name", nil], ["last_request_at", nil], ["lock_version", 0], ["login", nil], ["login_count", 0], ["password_salt", nil], ["perishable_token", "xpUhbSfopLD6MsHWzIG"], ["persistence_token", nil], ["single_access_token", nil], ["updated_at", Wed, 14 Dec 2011 05:29:40 UTC +00:00]]
1424
+  (0.1ms) UPDATE "users" SET "login_count" = 1, "current_login_at" = '2011-12-14 05:29:40.992865', "current_login_ip" = '1.1.1.1', "last_request_at" = '2011-12-14 05:29:40.993098', "perishable_token" = 'etugFtiHLapWGcBWSamm', "updated_at" = '2011-12-14 05:29:40.993815', "lock_version" = 1 WHERE ("users"."id" = 3 AND "users"."lock_version" = 0)
1425
+  (0.1ms) UPDATE "users" SET "perishable_token" = 'ZuPwR4Z86TS8dnadg', "updated_at" = '2011-12-14 05:29:40.997567', "lock_version" = 2 WHERE ("users"."id" = 3 AND "users"."lock_version" = 1)
1426
+  (0.1ms) UPDATE "users" SET "login_count" = 2, "last_login_at" = '2011-12-14 05:29:40.992865', "current_login_at" = '2011-12-14 05:29:40.999658', "last_login_ip" = '1.1.1.1', "last_request_at" = '2011-12-14 05:29:41.000089', "perishable_token" = '2l4cdwsBMtVKdJ1XM8Zq', "updated_at" = '2011-12-14 05:29:41.000869', "lock_version" = 3 WHERE ("users"."id" = 3 AND "users"."lock_version" = 2)
1427
+  (0.1ms) select sqlite_version(*)
1428
+  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
1429
+  (0.0ms) PRAGMA index_list("schema_migrations")
1430
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1431
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1432
+ Migrating to CreateUsers (20101217000008)
1433
+  (0.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "lock_version" integer DEFAULT 0, "company_id" integer, "login" varchar(255), "crypted_password" varchar(255), "password_salt" varchar(255), "persistence_token" varchar(255), "single_access_token" varchar(255), "perishable_token" varchar(255), "email" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "login_count" integer DEFAULT 0 NOT NULL, "failed_login_count" integer DEFAULT 0 NOT NULL, "last_request_at" datetime, "current_login_at" datetime, "last_login_at" datetime, "current_login_ip" varchar(255), "last_login_ip" varchar(255), "active" boolean DEFAULT 't', "approved" boolean DEFAULT 't', "confirmed" boolean DEFAULT 't', "facebook_uid" varchar(255))
1434
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20101217000008')
1435
+  (0.2ms) SELECT 1 FROM "users" WHERE "users"."persistence_token" = '3919f8a06fa5b52d6873e05576d3a7b7e99203553f5b332bd3559b8651f104bec67255acc2dc4181b238de1cdadf62704326d89ea9c525266f5e04d3471074aa' LIMIT 1
1436
+  (0.1ms) SELECT 1 FROM "users" WHERE "users"."single_access_token" = '4mlkqn4CT26F9nTk6yl' LIMIT 1
1437
+ SQL (3.0ms) INSERT INTO "users" ("active", "approved", "company_id", "confirmed", "created_at", "crypted_password", "current_login_at", "current_login_ip", "email", "facebook_uid", "failed_login_count", "first_name", "last_login_at", "last_login_ip", "last_name", "last_request_at", "lock_version", "login", "login_count", "password_salt", "perishable_token", "persistence_token", "single_access_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["active", true], ["approved", true], ["company_id", nil], ["confirmed", true], ["created_at", Wed, 14 Dec 2011 05:32:30 UTC +00:00], ["crypted_password", nil], ["current_login_at", nil], ["current_login_ip", nil], ["email", nil], ["facebook_uid", nil], ["failed_login_count", 0], ["first_name", nil], ["last_login_at", nil], ["last_login_ip", nil], ["last_name", nil], ["last_request_at", nil], ["lock_version", 0], ["login", nil], ["login_count", 0], ["password_salt", nil], ["perishable_token", "hwq0ComHntpvotEoPO17"], ["persistence_token", "3919f8a06fa5b52d6873e05576d3a7b7e99203553f5b332bd3559b8651f104bec67255acc2dc4181b238de1cdadf62704326d89ea9c525266f5e04d3471074aa"], ["single_access_token", "4mlkqn4CT26F9nTk6yl"], ["updated_at", Wed, 14 Dec 2011 05:32:30 UTC +00:00]]
1438
+  (0.2ms) UPDATE "users" SET "login_count" = 1, "current_login_at" = '2011-12-14 05:32:30.806358', "current_login_ip" = '1.1.1.1', "last_request_at" = '2011-12-14 05:32:30.806625', "perishable_token" = 'Km5mkC0fpr2ZUe4r9Od', "updated_at" = '2011-12-14 05:32:30.807951', "lock_version" = 1 WHERE ("users"."id" = 1 AND "users"."lock_version" = 0)
1439
+  (0.2ms) SELECT 1 FROM "users" WHERE "users"."persistence_token" = '745c5238b081c306d5a137396083cf783493665ad31426b7903e52ba0f491bcc4829bcc91cf45757d39b8069caf30e648d028efdb7c5a087c592ada0866cd192' LIMIT 1
1440
+  (0.1ms) SELECT 1 FROM "users" WHERE "users"."single_access_token" = 'qjhp4y8okjTws0HTlMee' LIMIT 1
1441
+ SQL (2.4ms) INSERT INTO "users" ("active", "approved", "company_id", "confirmed", "created_at", "crypted_password", "current_login_at", "current_login_ip", "email", "facebook_uid", "failed_login_count", "first_name", "last_login_at", "last_login_ip", "last_name", "last_request_at", "lock_version", "login", "login_count", "password_salt", "perishable_token", "persistence_token", "single_access_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["active", true], ["approved", true], ["company_id", nil], ["confirmed", true], ["created_at", Wed, 14 Dec 2011 05:32:30 UTC +00:00], ["crypted_password", nil], ["current_login_at", nil], ["current_login_ip", nil], ["email", nil], ["facebook_uid", nil], ["failed_login_count", 0], ["first_name", nil], ["last_login_at", nil], ["last_login_ip", nil], ["last_name", nil], ["last_request_at", nil], ["lock_version", 0], ["login", nil], ["login_count", 0], ["password_salt", nil], ["perishable_token", "hti0yEL1e7OJPkYcud"], ["persistence_token", "745c5238b081c306d5a137396083cf783493665ad31426b7903e52ba0f491bcc4829bcc91cf45757d39b8069caf30e648d028efdb7c5a087c592ada0866cd192"], ["single_access_token", "qjhp4y8okjTws0HTlMee"], ["updated_at", Wed, 14 Dec 2011 05:32:30 UTC +00:00]]
1442
+  (0.1ms) UPDATE "users" SET "login_count" = 1, "current_login_at" = '2011-12-14 05:32:30.875372', "current_login_ip" = '1.1.1.1', "last_request_at" = '2011-12-14 05:32:30.875592', "perishable_token" = 'Hv7FlGQqNLbr6UCeNyw', "updated_at" = '2011-12-14 05:32:30.876306', "lock_version" = 1 WHERE ("users"."id" = 2 AND "users"."lock_version" = 0)
1443
+ SQL (2.5ms) INSERT INTO "users" ("active", "approved", "company_id", "confirmed", "created_at", "crypted_password", "current_login_at", "current_login_ip", "email", "facebook_uid", "failed_login_count", "first_name", "last_login_at", "last_login_ip", "last_name", "last_request_at", "lock_version", "login", "login_count", "password_salt", "perishable_token", "persistence_token", "single_access_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["active", true], ["approved", true], ["company_id", nil], ["confirmed", true], ["created_at", Wed, 14 Dec 2011 05:32:30 UTC +00:00], ["crypted_password", nil], ["current_login_at", nil], ["current_login_ip", nil], ["email", nil], ["facebook_uid", nil], ["failed_login_count", 0], ["first_name", nil], ["last_login_at", nil], ["last_login_ip", nil], ["last_name", nil], ["last_request_at", nil], ["lock_version", 0], ["login", nil], ["login_count", 0], ["password_salt", nil], ["perishable_token", "6BFCMNjHtPhqI2Xgr4"], ["persistence_token", nil], ["single_access_token", nil], ["updated_at", Wed, 14 Dec 2011 05:32:30 UTC +00:00]]
1444
+  (0.1ms) UPDATE "users" SET "login_count" = 1, "current_login_at" = '2011-12-14 05:32:30.889736', "current_login_ip" = '1.1.1.1', "last_request_at" = '2011-12-14 05:32:30.889968', "perishable_token" = 'GY1dZk3XrFwxp7FXuvhv', "updated_at" = '2011-12-14 05:32:30.890680', "lock_version" = 1 WHERE ("users"."id" = 3 AND "users"."lock_version" = 0)
@@ -148,6 +148,19 @@ describe AuthlogicFacebookShim::Adapters::KoalaAdapter do
148
148
 
149
149
  end
150
150
 
151
+ describe "with expired facebook cookie" do
152
+
153
+ before do
154
+ @oauth.expect :respond_to?, :true, [:get_user_info_from_cookie]
155
+ override @oauth, :get_user_info_from_cookie => lambda { |cookies| raise Koala::Facebook::APIError.new('expired') }
156
+ end
157
+
158
+ it "should return nil" do
159
+ @session.facebook_session.must_be_nil
160
+ end
161
+
162
+ end
163
+
151
164
  end
152
165
 
153
166
  describe "facebook_session?" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authlogic_facebook_shim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-11-26 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: authlogic
16
- requirement: &2156316240 !ruby/object:Gem::Requirement
16
+ requirement: &2157500500 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2156316240
24
+ version_requirements: *2157500500
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rails
27
- requirement: &2156315740 !ruby/object:Gem::Requirement
27
+ requirement: &2157500000 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '3.0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *2156315740
35
+ version_requirements: *2157500000
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: minitest
38
- requirement: &2156315280 !ruby/object:Gem::Requirement
38
+ requirement: &2157499540 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '2'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *2156315280
46
+ version_requirements: *2157499540
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: override
49
- requirement: &2156314900 !ruby/object:Gem::Requirement
49
+ requirement: &2157499160 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *2156314900
57
+ version_requirements: *2157499160
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: sqlite3
60
- requirement: &2156314440 !ruby/object:Gem::Requirement
60
+ requirement: &2157498700 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *2156314440
68
+ version_requirements: *2157498700
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: koala
71
- requirement: &2156314020 !ruby/object:Gem::Requirement
71
+ requirement: &2157498280 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *2156314020
79
+ version_requirements: *2157498280
80
80
  description: Authlogic extension to support Facebook OAuth2 javascript sessions. Currently
81
81
  requires koala but is easily extended for other facebook api wrappers.
82
82
  email: james2mccarthy@gmail.com