bookingsync-engine 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bookingsync/engine/model.rb +4 -0
- data/lib/bookingsync/engine/version.rb +1 -1
- data/spec/dummy/log/development.log +8 -0
- data/spec/dummy/log/test.log +187 -0
- data/spec/models/account_spec.rb +4 -0
- data/spec/spec_helper.rb +1 -0
- metadata +17 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a10061247d2013c20e5e267dc1fa12dce0bba2fb
|
|
4
|
+
data.tar.gz: c902d94c3da6c8294010f2d489038574b118fcef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 97d7a3ffe1aa7a996bc9da865392ad442701c82de557b6e8808259447a2cfccfab379fa802f8bf00ad19a37e8a5b3fe756526835c6ce3e0f83efc6d0dd0b3e7b
|
|
7
|
+
data.tar.gz: 5bfa84883d6cc90649e41e0d62a3adb068466770502857f2c4a6d6736744382c850558cb9632550f0776b20ce6df5aaa2edf058ae73774073892364b85bd184d
|
|
@@ -512,3 +512,11 @@
|
|
|
512
512
|
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
|
513
513
|
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140522110454')[0m
|
|
514
514
|
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140522110326')
|
|
515
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "provider" varchar(255), "uid" integer, "name" varchar(255), "oauth_access_token" varchar(255), "oauth_refresh_token" varchar(255), "oauth_expires_at" varchar(255)) [0m
|
|
516
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
|
517
|
+
[1m[36m (1.0ms)[0m [1mCREATE INDEX "index_accounts_on_uid" ON "accounts" ("uid")[0m
|
|
518
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
|
519
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
520
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
|
521
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140522110454')[0m
|
|
522
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140522110326')
|
data/spec/dummy/log/test.log
CHANGED
|
@@ -7336,3 +7336,190 @@ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
|
|
|
7336
7336
|
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
7337
7337
|
[1m[35m (0.0ms)[0m begin transaction
|
|
7338
7338
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
7339
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
7340
|
+
Processing by AuthenticatedController#index as JS
|
|
7341
|
+
Rendered text template (0.0ms)
|
|
7342
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
|
7343
|
+
Completed 401 Unauthorized in 6ms (Views: 6.2ms | ActiveRecord: 0.0ms)
|
|
7344
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
7345
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
7346
|
+
Processing by AuthenticatedController#index as JS
|
|
7347
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
|
7348
|
+
Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
|
7349
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
7350
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
7351
|
+
Processing by AuthenticatedController#index as HTML
|
|
7352
|
+
Redirected to http://test.host/auth/bookingsync/?account_id=
|
|
7353
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
|
7354
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
|
7355
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
7356
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
7357
|
+
Processing by AuthenticatedController#index as HTML
|
|
7358
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
|
7359
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
|
7360
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
7361
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
7362
|
+
Processing by SessionsController#create as HTML
|
|
7363
|
+
Parameters: {"provider"=>"bookingsync"}
|
|
7364
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
|
7365
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
7366
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
|
7367
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-21 22:27:09.307624"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 22:27:09.307624"]]
|
|
7368
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
7369
|
+
Redirected to http://test.host/
|
|
7370
|
+
Completed 302 Found in 25ms (ActiveRecord: 1.5ms)
|
|
7371
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
|
7372
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
7373
|
+
Processing by SessionsController#create as HTML
|
|
7374
|
+
Parameters: {"provider"=>"bookingsync"}
|
|
7375
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
|
7376
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
7377
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
|
7378
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-21 22:27:09.313166"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 22:27:09.313166"]]
|
|
7379
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
7380
|
+
Redirected to http://test.host/
|
|
7381
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
|
7382
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
|
7383
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
7384
|
+
Processing by SessionsController#create as HTML
|
|
7385
|
+
Parameters: {"provider"=>"bookingsync"}
|
|
7386
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
|
7387
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
7388
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
|
7389
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-21 22:27:09.316699"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 22:27:09.316699"]]
|
|
7390
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
7391
|
+
Redirected to http://test.host/admin
|
|
7392
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
|
7393
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
7394
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
7395
|
+
Processing by SessionsController#destroy as HTML
|
|
7396
|
+
Redirected to http://test.host/signed_out
|
|
7397
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
|
7398
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
7399
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
7400
|
+
Processing by SessionsController#destroy as HTML
|
|
7401
|
+
Redirected to http://test.host/
|
|
7402
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
|
7403
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
7404
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
7405
|
+
Processing by SessionsController#failure as HTML
|
|
7406
|
+
Completed 200 OK in 2ms (Views: 2.3ms | ActiveRecord: 0.0ms)
|
|
7407
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
7408
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
7409
|
+
Processing by SessionsController#failure as HTML
|
|
7410
|
+
Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
|
|
7411
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
7412
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
7413
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
7414
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
7415
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1[0m
|
|
7416
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
7417
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-21 22:27:09.336665"], ["uid", 0], ["updated_at", "2014-11-21 22:27:09.336665"]]
|
|
7418
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
7419
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1[0m
|
|
7420
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
|
|
7421
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
7422
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
7423
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
7424
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
|
7425
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-21 22:27:09.346455"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-21 22:27:09.346455"]]
|
|
7426
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
7427
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
|
|
7428
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
|
7429
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
7430
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
|
7431
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-21 22:27:09.350630"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 22:27:09.350630"]]
|
|
7432
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
7433
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
|
|
7434
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
7435
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
7436
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
7437
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
|
7438
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-21 22:27:09.354448"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-21 22:27:09.354448"]]
|
|
7439
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
7440
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
|
7441
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
7442
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
|
7443
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-21 22:27:09.355947"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 22:27:09.355947"]]
|
|
7444
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
7445
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
7446
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
7447
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
7448
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
|
7449
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-21 22:27:09.358004"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-21 22:27:09.358004"]]
|
|
7450
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
7451
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
|
7452
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
7453
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
|
7454
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-21 22:27:09.359284"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 22:27:09.359284"]]
|
|
7455
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
7456
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
7457
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
7458
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
7459
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
|
7460
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-21 22:27:09.361258"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-21 22:27:09.361258"]]
|
|
7461
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
7462
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
|
7463
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
7464
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
|
7465
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-21 22:27:09.362894"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 22:27:09.362894"]]
|
|
7466
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
7467
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
|
7468
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
7469
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
7470
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
|
7471
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-21 22:27:09.365187"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-21 22:27:09.365187"]]
|
|
7472
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
7473
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
7474
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
|
7475
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-21 22:27:09.366286"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 22:27:09.366286"]]
|
|
7476
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
7477
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
|
7478
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
7479
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
|
|
7480
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-21 22:27:09.368479"]]
|
|
7481
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
7482
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
|
7483
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
7484
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
7485
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
|
7486
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-21 22:27:09.370973"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-21 22:27:09.370973"]]
|
|
7487
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
7488
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
7489
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
|
7490
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-21 22:27:09.372306"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 22:27:09.372306"]]
|
|
7491
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
7492
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
|
7493
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
7494
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
|
|
7495
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-21 22:27:09.373815"]]
|
|
7496
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
7497
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
|
7498
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
7499
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
7500
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
7501
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
|
7502
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-21 22:27:09.376125"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2014-11-21 22:27:09.376125"]]
|
|
7503
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
7504
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
7505
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
|
7506
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-21 22:27:09.377146"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2014-11-21 22:27:09.377146"]]
|
|
7507
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
7508
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
|
7509
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
7510
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
|
|
7511
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "accounts" SET "name" = ?, "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 2[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["updated_at", "2014-11-21 22:27:09.378512"]]
|
|
7512
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
7513
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
|
7514
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
|
7515
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
7516
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
7517
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1[0m
|
|
7518
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-21 22:27:09.380596"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2014-11-21 22:27:09.380596"]]
|
|
7519
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
7520
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
7521
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1[0m
|
|
7522
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2014-11-21 22:27:09.381541"]]
|
|
7523
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
7524
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
|
|
7525
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
data/spec/models/account_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bookingsync-engine
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sebastien Grosjean
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-11-
|
|
12
|
+
date: 2014-11-21 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
@@ -123,6 +123,20 @@ dependencies:
|
|
|
123
123
|
- - ">="
|
|
124
124
|
- !ruby/object:Gem::Version
|
|
125
125
|
version: '0'
|
|
126
|
+
- !ruby/object:Gem::Dependency
|
|
127
|
+
name: shoulda-matchers
|
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
|
129
|
+
requirements:
|
|
130
|
+
- - ">="
|
|
131
|
+
- !ruby/object:Gem::Version
|
|
132
|
+
version: '0'
|
|
133
|
+
type: :development
|
|
134
|
+
prerelease: false
|
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
136
|
+
requirements:
|
|
137
|
+
- - ">="
|
|
138
|
+
- !ruby/object:Gem::Version
|
|
139
|
+
version: '0'
|
|
126
140
|
description: A Rails engine to simplify integration with BookingSync API
|
|
127
141
|
email:
|
|
128
142
|
- dev@bookingsync.com
|
|
@@ -212,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
212
226
|
version: '0'
|
|
213
227
|
requirements: []
|
|
214
228
|
rubyforge_project:
|
|
215
|
-
rubygems_version: 2.
|
|
229
|
+
rubygems_version: 2.4.4
|
|
216
230
|
signing_key:
|
|
217
231
|
specification_version: 4
|
|
218
232
|
summary: A Rails engine to simplify integration with BookingSync API
|