bookingsync-engine 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/routes.rb +1 -1
- data/lib/bookingsync/engine/version.rb +1 -1
- data/spec/dummy/log/test.log +892 -0
- data/spec/routing/oauth_routing_spec.rb +7 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f4553c2aa2d33fff7c7e4682e1b798942337185
|
4
|
+
data.tar.gz: b0601325fb091cf3245eced3569f2d4d003b1605
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a7a8ba13b2292f623347ddb0a07c2a65af71fff6da88d60721f14f951c68c91cce45ae32708762fe64137d5008b36cb4e4ac9461c7fec9b3f175a1e89715067
|
7
|
+
data.tar.gz: 7a63be0dcbff43a7aaf6d7cc66cbef937d2445e42e4a59af56ce6f4df667f2c14d86fedaa5452ca0eb59e6cd7341ce2e1112b1ddcb28ed7cb89a6e43a93ff76e
|
data/config/routes.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -1108,3 +1108,895 @@ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
|
1108
1108
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1109
1109
|
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
|
1110
1110
|
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1111
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1112
|
+
Processing by SessionsController#destroy as HTML
|
1113
|
+
Redirected to http://test.host/
|
1114
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
1115
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1116
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1117
|
+
Processing by SessionsController#destroy as HTML
|
1118
|
+
Redirected to http://test.host/signed_out
|
1119
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
1120
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1121
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1122
|
+
Processing by SessionsController#create as HTML
|
1123
|
+
Parameters: {"provider"=>"bookingsync"}
|
1124
|
+
[1m[35mAccount Load (0.4ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1125
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1126
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1127
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-13 11:59:22.264039"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.264039"]]
|
1128
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1129
|
+
Redirected to http://test.host/
|
1130
|
+
Completed 302 Found in 21ms (ActiveRecord: 2.4ms)
|
1131
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
1132
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1133
|
+
Processing by SessionsController#create as HTML
|
1134
|
+
Parameters: {"provider"=>"bookingsync"}
|
1135
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1136
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1137
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1138
|
+
[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", "2015-02-13 11:59:22.268374"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.268374"]]
|
1139
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1140
|
+
Redirected to http://test.host/
|
1141
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
|
1142
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1143
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1144
|
+
Processing by SessionsController#create as HTML
|
1145
|
+
Parameters: {"provider"=>"bookingsync"}
|
1146
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1147
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1148
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1149
|
+
[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", "2015-02-13 11:59:22.270992"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.270992"]]
|
1150
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1151
|
+
Redirected to http://test.host/admin
|
1152
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
|
1153
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
1154
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1155
|
+
Processing by SessionsController#failure as HTML
|
1156
|
+
Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms)
|
1157
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1158
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1159
|
+
Processing by SessionsController#failure as HTML
|
1160
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
1161
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1162
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1163
|
+
Processing by AuthenticatedController#index as HTML
|
1164
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
1165
|
+
Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
|
1166
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1167
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1168
|
+
Processing by AuthenticatedController#index as HTML
|
1169
|
+
Redirected to http://test.host/auth/bookingsync/?account_id=
|
1170
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
1171
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
1172
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1173
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1174
|
+
Processing by AuthenticatedController#index as JS
|
1175
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
1176
|
+
Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
1177
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1178
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1179
|
+
Processing by AuthenticatedController#index as JS
|
1180
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
1181
|
+
Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
1182
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1183
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1184
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1185
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
1186
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 11:59:22.292671"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 11:59:22.292671"]]
|
1187
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1188
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1189
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1190
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 11:59:22.293954"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.293954"]]
|
1191
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1192
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1193
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1194
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
|
1195
|
+
[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", "2015-02-13 11:59:22.295857"]]
|
1196
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1197
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1198
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1199
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1200
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
1201
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.298619"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 11:59:22.298619"]]
|
1202
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1203
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1204
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1205
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.299478"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.299478"]]
|
1206
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1207
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1208
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1209
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
|
1210
|
+
[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", "2015-02-13 11:59:22.300610"]]
|
1211
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1212
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
1213
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1214
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1215
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1216
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
1217
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.302465"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 11:59:22.302465"]]
|
1218
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1219
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1220
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1221
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.303256"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.303256"]]
|
1222
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1223
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1224
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1225
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
|
1226
|
+
[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", "2015-02-13 11:59:22.304308"]]
|
1227
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1228
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
1229
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1230
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1231
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1232
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
1233
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.306309"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 11:59:22.306309"]]
|
1234
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1235
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "accounts"
|
1236
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1237
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1238
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1239
|
+
[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", "2015-02-13 11:59:22.309457"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.309457"]]
|
1240
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1241
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "accounts"
|
1242
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
1243
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1244
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1245
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
1246
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 11:59:22.311448"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 11:59:22.311448"]]
|
1247
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1248
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1249
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1250
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1251
|
+
[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", "2015-02-13 11:59:22.312447"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.312447"]]
|
1252
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1253
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1254
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1255
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1256
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
1257
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.314257"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 11:59:22.314257"]]
|
1258
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1259
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1260
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1261
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1262
|
+
[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", "2015-02-13 11:59:22.315304"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.315304"]]
|
1263
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1264
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1265
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1266
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1267
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
1268
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 11:59:22.317159"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 11:59:22.317159"]]
|
1269
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1270
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1271
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1272
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1273
|
+
[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", "2015-02-13 11:59:22.318174"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.318174"]]
|
1274
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1275
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1276
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1277
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1
|
1278
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1279
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-13 11:59:22.322566"], ["uid", 0], ["updated_at", "2015-02-13 11:59:22.322566"]]
|
1280
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1281
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
|
1282
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1[0m
|
1283
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1284
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1285
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1286
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1287
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1288
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1289
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.335773"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423915162], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.335773"]]
|
1290
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1291
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1292
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1293
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1294
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1295
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.338284"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423742362"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.338284"]]
|
1296
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1297
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1298
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
|
1299
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1424001562"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 11:59:22.339133"]]
|
1300
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1301
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1302
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1303
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1304
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1305
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 11:59:22.341119"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423742362"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 11:59:22.341119"]]
|
1306
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1307
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1308
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
|
1309
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1424001562"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 11:59:22.342036"]]
|
1310
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1311
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
|
1312
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
1313
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1314
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1315
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1
|
1316
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-13 11:59:22.344110"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-13 11:59:22.344110"]]
|
1317
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1318
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1319
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1
|
1320
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1[0m [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-13 11:59:22.344871"]]
|
1321
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1322
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1323
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1324
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1325
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1326
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1327
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1328
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1329
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1330
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1331
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1332
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1333
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1334
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1335
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1336
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1337
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1338
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1339
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1340
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1341
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1342
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1343
|
+
Processing by AuthenticatedController#index as HTML
|
1344
|
+
Rendered text template (0.0ms)
|
1345
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
1346
|
+
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)
|
1347
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1348
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1349
|
+
Processing by AuthenticatedController#index as HTML
|
1350
|
+
Redirected to http://test.host/auth/bookingsync/?account_id=
|
1351
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
1352
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
1353
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1354
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1355
|
+
Processing by AuthenticatedController#index as JS
|
1356
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
1357
|
+
Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
1358
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1359
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1360
|
+
Processing by AuthenticatedController#index as JS
|
1361
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
1362
|
+
Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
1363
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1364
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1365
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1366
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1367
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1
|
1368
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1369
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-13 12:01:28.774397"], ["uid", 0], ["updated_at", "2015-02-13 12:01:28.774397"]]
|
1370
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1371
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
|
1372
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1[0m
|
1373
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1374
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1375
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1376
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1377
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.786845"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423915288], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.786845"]]
|
1378
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1379
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1380
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1381
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1382
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1383
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.789217"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423742488"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.789217"]]
|
1384
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1385
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1386
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
|
1387
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1424001688"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 12:01:28.790583"]]
|
1388
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1389
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1390
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1391
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1392
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1393
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.793031"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423742488"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.793031"]]
|
1394
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1395
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1396
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
|
1397
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1424001688"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 12:01:28.794056"]]
|
1398
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1399
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
|
1400
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
1401
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1402
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1403
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1
|
1404
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:01:28.796286"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-13 12:01:28.796286"]]
|
1405
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1406
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1407
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1
|
1408
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1[0m [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-13 12:01:28.797089"]]
|
1409
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1410
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1411
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1412
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1413
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1414
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
1415
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.799331"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:01:28.799331"]]
|
1416
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1417
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1418
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1419
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.800178"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.800178"]]
|
1420
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1421
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1422
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1423
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
|
1424
|
+
[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", "2015-02-13 12:01:28.802970"]]
|
1425
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1426
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
1427
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1428
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1429
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
1430
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:01:28.805072"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:01:28.805072"]]
|
1431
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1432
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1433
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1434
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:01:28.805863"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.805863"]]
|
1435
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1436
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1437
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1438
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
|
1439
|
+
[1m[35mSQL (0.0ms)[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", "2015-02-13 12:01:28.807089"]]
|
1440
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1441
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
|
1442
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
1443
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1444
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1445
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
1446
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:01:28.808819"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:01:28.808819"]]
|
1447
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1448
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1449
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1450
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:01:28.809568"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.809568"]]
|
1451
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1452
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1453
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1454
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
|
1455
|
+
[1m[35mSQL (0.0ms)[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", "2015-02-13 12:01:28.810660"]]
|
1456
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1457
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
|
1458
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
1459
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1460
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1461
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
1462
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:01:28.812450"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:01:28.812450"]]
|
1463
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1464
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
|
1465
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1466
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1467
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1468
|
+
[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", "2015-02-13 12:01:28.814921"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.814921"]]
|
1469
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1470
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
|
1471
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1472
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1473
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1474
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
1475
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.816968"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:01:28.816968"]]
|
1476
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1477
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1478
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1479
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1480
|
+
[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", "2015-02-13 12:01:28.817994"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.817994"]]
|
1481
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1482
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
1483
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1484
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1485
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
1486
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:01:28.819868"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:01:28.819868"]]
|
1487
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1488
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1489
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1490
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1491
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "accounts" ("created_at", "name", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.820945"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.820945"]]
|
1492
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1493
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1494
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1495
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1496
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
1497
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:01:28.823262"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:01:28.823262"]]
|
1498
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1499
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1500
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1501
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1502
|
+
[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", "2015-02-13 12:01:28.824310"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.824310"]]
|
1503
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1504
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
1505
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1506
|
+
Processing by SessionsController#create as HTML
|
1507
|
+
Parameters: {"provider"=>"bookingsync"}
|
1508
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1509
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1510
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1511
|
+
[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", "2015-02-13 12:01:28.828089"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.828089"]]
|
1512
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1513
|
+
Redirected to http://test.host/
|
1514
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
|
1515
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1516
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1517
|
+
Processing by SessionsController#create as HTML
|
1518
|
+
Parameters: {"provider"=>"bookingsync"}
|
1519
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1520
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1521
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1522
|
+
[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", "2015-02-13 12:01:28.831108"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.831108"]]
|
1523
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1524
|
+
Redirected to http://test.host/admin
|
1525
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
|
1526
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
1527
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1528
|
+
Processing by SessionsController#create as HTML
|
1529
|
+
Parameters: {"provider"=>"bookingsync"}
|
1530
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1531
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1532
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1533
|
+
[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", "2015-02-13 12:01:28.833999"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:01:28.833999"]]
|
1534
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1535
|
+
Redirected to http://test.host/
|
1536
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
|
1537
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1538
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1539
|
+
Processing by SessionsController#failure as HTML
|
1540
|
+
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
|
1541
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1542
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1543
|
+
Processing by SessionsController#failure as HTML
|
1544
|
+
Completed 200 OK in 0ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
1545
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1546
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1547
|
+
Processing by SessionsController#destroy as HTML
|
1548
|
+
Redirected to http://test.host/
|
1549
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
1550
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1551
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1552
|
+
Processing by SessionsController#destroy as HTML
|
1553
|
+
Redirected to http://test.host/signed_out
|
1554
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
1555
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1556
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1557
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1558
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1559
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1560
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1561
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1562
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1563
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1564
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1565
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1566
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1567
|
+
Processing by SessionsController#destroy as HTML
|
1568
|
+
Redirected to http://test.host/signed_out
|
1569
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
1570
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1571
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1572
|
+
Processing by SessionsController#destroy as HTML
|
1573
|
+
Redirected to http://test.host/
|
1574
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
1575
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1576
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1577
|
+
Processing by SessionsController#failure as HTML
|
1578
|
+
Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)
|
1579
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1580
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1581
|
+
Processing by SessionsController#failure as HTML
|
1582
|
+
Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
1583
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1584
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1585
|
+
Processing by SessionsController#create as HTML
|
1586
|
+
Parameters: {"provider"=>"bookingsync"}
|
1587
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1588
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1589
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1590
|
+
[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", "2015-02-13 12:02:14.045860"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.045860"]]
|
1591
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1592
|
+
Redirected to http://test.host/
|
1593
|
+
Completed 302 Found in 14ms (ActiveRecord: 1.1ms)
|
1594
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
1595
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1596
|
+
Processing by SessionsController#create as HTML
|
1597
|
+
Parameters: {"provider"=>"bookingsync"}
|
1598
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1599
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1600
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1601
|
+
[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", "2015-02-13 12:02:14.049656"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.049656"]]
|
1602
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1603
|
+
Redirected to http://test.host/admin
|
1604
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
|
1605
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1606
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1607
|
+
Processing by SessionsController#create as HTML
|
1608
|
+
Parameters: {"provider"=>"bookingsync"}
|
1609
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1610
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1611
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1612
|
+
[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", "2015-02-13 12:02:14.052702"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.052702"]]
|
1613
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1614
|
+
Redirected to http://test.host/
|
1615
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
1616
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
1617
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1618
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1619
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1620
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1621
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1
|
1622
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:02:14.058887"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-13 12:02:14.058887"]]
|
1623
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1624
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1625
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1
|
1626
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1[0m [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-13 12:02:14.060317"]]
|
1627
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1628
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1629
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1630
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1631
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1632
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
1633
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.062778"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:14.062778"]]
|
1634
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1635
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "accounts"
|
1636
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1637
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1638
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1639
|
+
[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", "2015-02-13 12:02:14.065358"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.065358"]]
|
1640
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1641
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "accounts"
|
1642
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
1643
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1644
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1645
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
1646
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:02:14.067402"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:14.067402"]]
|
1647
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1648
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1649
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1650
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1651
|
+
[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", "2015-02-13 12:02:14.068405"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.068405"]]
|
1652
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1653
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1654
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1655
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1656
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
1657
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.070233"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:14.070233"]]
|
1658
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1659
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1660
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1661
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1662
|
+
[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", "2015-02-13 12:02:14.071246"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.071246"]]
|
1663
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1664
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1665
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1666
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1667
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
1668
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:02:14.073056"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:14.073056"]]
|
1669
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1670
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1671
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1672
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1673
|
+
[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", "2015-02-13 12:02:14.074071"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.074071"]]
|
1674
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1675
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1676
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1677
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1678
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
1679
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.075880"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:14.075880"]]
|
1680
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1681
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1682
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1683
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.076650"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.076650"]]
|
1684
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1685
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1686
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1687
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
|
1688
|
+
[1m[36mSQL (0.1ms)[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", "2015-02-13 12:02:14.077739"]]
|
1689
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1690
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
1691
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1692
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1693
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
1694
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:02:14.079500"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:14.079500"]]
|
1695
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1696
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1697
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1698
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:02:14.080291"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.080291"]]
|
1699
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1700
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1701
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1702
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
|
1703
|
+
[1m[35mSQL (0.0ms)[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", "2015-02-13 12:02:14.081434"]]
|
1704
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1705
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
|
1706
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1707
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1708
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1709
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
1710
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:02:14.083272"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:14.083272"]]
|
1711
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1712
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1713
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1714
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:02:14.084049"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.084049"]]
|
1715
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1716
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1717
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1718
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
|
1719
|
+
[1m[35mSQL (0.0ms)[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", "2015-02-13 12:02:14.085230"]]
|
1720
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1721
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
|
1722
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
1723
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1724
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1725
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1726
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:02:14.087480"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423742534"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.087480"]]
|
1727
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1728
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1729
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1
|
1730
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1[0m [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1424001734"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 12:02:14.088451"]]
|
1731
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1732
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1733
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1734
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1735
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1736
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1737
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.090795"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423742534"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.090795"]]
|
1738
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1739
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1740
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
|
1741
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1424001734"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 12:02:14.091595"]]
|
1742
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1743
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1744
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1745
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1746
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1747
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:14.093361"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423915334], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 12:02:14.093361"]]
|
1748
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1749
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1750
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1751
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1
|
1752
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1753
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-13 12:02:14.096394"], ["uid", 0], ["updated_at", "2015-02-13 12:02:14.096394"]]
|
1754
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1755
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
|
1756
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1[0m
|
1757
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1758
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1759
|
+
Processing by AuthenticatedController#index as JS
|
1760
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
1761
|
+
Completed 401 Unauthorized in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
|
1762
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1763
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1764
|
+
Processing by AuthenticatedController#index as JS
|
1765
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
1766
|
+
Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
1767
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1768
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1769
|
+
Processing by AuthenticatedController#index as HTML
|
1770
|
+
Redirected to http://test.host/auth/bookingsync/?account_id=
|
1771
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
1772
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
1773
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1774
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1775
|
+
Processing by AuthenticatedController#index as HTML
|
1776
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
1777
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
1778
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1779
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1780
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1781
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1782
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.232195"], ["oauth_access_token", "token"], ["oauth_expires_at", 1423915347], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.232195"]]
|
1783
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1784
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1785
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1786
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1787
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1788
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.239404"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423742547"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.239404"]]
|
1789
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1790
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1791
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
|
1792
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1424001747"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 12:02:27.240802"]]
|
1793
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1794
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1795
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1796
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1797
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1798
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "uid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.243029"], ["oauth_access_token", "token"], ["oauth_expires_at", "1423742547"], ["oauth_refresh_token", "refresh_token"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.243029"]]
|
1799
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1800
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1801
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 1) LIMIT 1[0m
|
1802
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1 [["oauth_access_token", "refreshed_token"], ["oauth_expires_at", "1424001747"], ["oauth_refresh_token", "refreshed_refresh_token"], ["updated_at", "2015-02-13 12:02:27.244054"]]
|
1803
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1804
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 1]]
|
1805
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1806
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1807
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1808
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1809
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1810
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" IS NULL LIMIT 1
|
1811
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "oauth_access_token", "oauth_expires_at", "oauth_refresh_token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:02:27.249614"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires"], ["oauth_refresh_token", "refresh"], ["updated_at", "2015-02-13 12:02:27.249614"]]
|
1812
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1813
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1814
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" IS NULL AND "accounts"."id" != 1) LIMIT 1
|
1815
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "accounts" SET "oauth_access_token" = ?, "oauth_expires_at" = ?, "oauth_refresh_token" = ?, "updated_at" = ? WHERE "accounts"."id" = 1[0m [["oauth_access_token", nil], ["oauth_expires_at", nil], ["oauth_refresh_token", nil], ["updated_at", "2015-02-13 12:02:27.250423"]]
|
1816
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1817
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1818
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1819
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1820
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1821
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
1822
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.252443"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:27.252443"]]
|
1823
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1824
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1825
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1826
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.253255"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.253255"]]
|
1827
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1828
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1829
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1830
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1
|
1831
|
+
[1m[36mSQL (0.1ms)[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", "2015-02-13 12:02:27.255950"]]
|
1832
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1833
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1834
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1835
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1836
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
1837
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:02:27.258039"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:27.258039"]]
|
1838
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1839
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1840
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1841
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:02:27.258805"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.258805"]]
|
1842
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1843
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1844
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1845
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
|
1846
|
+
[1m[35mSQL (0.0ms)[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", "2015-02-13 12:02:27.259907"]]
|
1847
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1848
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
|
1849
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1850
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1851
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1852
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
1853
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:02:27.261710"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:27.261710"]]
|
1854
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1855
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1856
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1857
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:02:27.262482"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.262482"]]
|
1858
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1859
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1860
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1861
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."uid" = 123 AND "accounts"."id" != 2) LIMIT 1[0m
|
1862
|
+
[1m[35mSQL (0.0ms)[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", "2015-02-13 12:02:27.263567"]]
|
1863
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1864
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
|
1865
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
1866
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1867
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1868
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
1869
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:02:27.265373"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:27.265373"]]
|
1870
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1871
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
|
1872
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1873
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1874
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1875
|
+
[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", "2015-02-13 12:02:27.267722"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.267722"]]
|
1876
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1877
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
|
1878
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1879
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1880
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1881
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
1882
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.269947"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:27.269947"]]
|
1883
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1884
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1885
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1886
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1887
|
+
[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", "2015-02-13 12:02:27.270974"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.270974"]]
|
1888
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1889
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1890
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1891
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1892
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1
|
1893
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-13 12:02:27.272800"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:27.272800"]]
|
1894
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1895
|
+
[1m[36mAccount Load (0.0ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1896
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1897
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1898
|
+
[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", "2015-02-13 12:02:27.273814"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.273814"]]
|
1899
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1900
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1901
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1902
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1903
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 456 LIMIT 1[0m
|
1904
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("created_at", "provider", "uid", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-13 12:02:27.275580"], ["provider", "bookingsync"], ["uid", 456], ["updated_at", "2015-02-13 12:02:27.275580"]]
|
1905
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1906
|
+
[1m[35mAccount Load (0.0ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1907
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1908
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1909
|
+
[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", "2015-02-13 12:02:27.276599"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.276599"]]
|
1910
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1911
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
1912
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1913
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1[0m
|
1914
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1915
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("created_at", "uid", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-02-13 12:02:27.279909"], ["uid", 0], ["updated_at", "2015-02-13 12:02:27.279909"]]
|
1916
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1917
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1[0m
|
1918
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 0 LIMIT 1
|
1919
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
1920
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1921
|
+
Processing by SessionsController#failure as HTML
|
1922
|
+
Rendered /Users/grk/code/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.1ms)
|
1923
|
+
Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)
|
1924
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1925
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1926
|
+
Processing by SessionsController#failure as HTML
|
1927
|
+
Completed 200 OK in 0ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
1928
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1929
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1930
|
+
Processing by SessionsController#destroy as HTML
|
1931
|
+
Redirected to http://test.host/
|
1932
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
1933
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1934
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1935
|
+
Processing by SessionsController#destroy as HTML
|
1936
|
+
Redirected to http://test.host/signed_out
|
1937
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
1938
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1939
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1940
|
+
Processing by SessionsController#create as HTML
|
1941
|
+
Parameters: {"provider"=>"bookingsync"}
|
1942
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1943
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1944
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1945
|
+
[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", "2015-02-13 12:02:27.300142"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.300142"]]
|
1946
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1947
|
+
Redirected to http://test.host/admin
|
1948
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
1949
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1950
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1951
|
+
Processing by SessionsController#create as HTML
|
1952
|
+
Parameters: {"provider"=>"bookingsync"}
|
1953
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1
|
1954
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1955
|
+
[1m[35mAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1
|
1956
|
+
[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", "2015-02-13 12:02:27.302981"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.302981"]]
|
1957
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1958
|
+
Redirected to http://test.host/
|
1959
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
|
1960
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
1961
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1962
|
+
Processing by SessionsController#create as HTML
|
1963
|
+
Parameters: {"provider"=>"bookingsync"}
|
1964
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."uid" = 123 AND "accounts"."provider" = 'bookingsync' LIMIT 1[0m
|
1965
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1966
|
+
[1m[36mAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."uid" = 123 LIMIT 1[0m
|
1967
|
+
[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", "2015-02-13 12:02:27.305763"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_expires_at", "expires at"], ["oauth_refresh_token", "refresh token"], ["provider", "bookingsync"], ["uid", 123], ["updated_at", "2015-02-13 12:02:27.305763"]]
|
1968
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1969
|
+
Redirected to http://test.host/
|
1970
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
|
1971
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1972
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1973
|
+
Processing by AuthenticatedController#index as HTML
|
1974
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
1975
|
+
Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
|
1976
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1977
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1978
|
+
Processing by AuthenticatedController#index as HTML
|
1979
|
+
Redirected to http://test.host/auth/bookingsync/?account_id=
|
1980
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
1981
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
1982
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1983
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1984
|
+
Processing by AuthenticatedController#index as JS
|
1985
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
1986
|
+
Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
1987
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1988
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1989
|
+
Processing by AuthenticatedController#index as JS
|
1990
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
1991
|
+
Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
1992
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1993
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1994
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1995
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1996
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1997
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1998
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1999
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2000
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2001
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2002
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
@@ -2,9 +2,13 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe 'oauth routing', type: :routing do
|
4
4
|
routes { BookingSync::Engine.routes }
|
5
|
-
it 'has a auth callback route' do
|
6
|
-
expect(get: '/auth/
|
7
|
-
|
5
|
+
it 'has a bookingsync auth callback route' do
|
6
|
+
expect(get: '/auth/bookingsync/callback').to route_to(controller: 'sessions', action: 'create')
|
7
|
+
end
|
8
|
+
|
9
|
+
it "doesn't capture auth callback routes for other providers" do
|
10
|
+
expect(get: '/auth/facebook/callback').to_not route_to(controller: 'sessions',
|
11
|
+
action: 'create')
|
8
12
|
end
|
9
13
|
|
10
14
|
it 'has a auth failure route' do
|
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.4.
|
4
|
+
version: 0.4.4
|
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: 2015-02-
|
12
|
+
date: 2015-02-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|