bookingsync-engine 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/bookingsync/engine/version.rb +1 -1
- data/spec/dummy/log/development.log +25 -0
- data/spec/dummy/log/test.log +472 -0
- metadata +35 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eaa9ea497804f5d7b45a0f417ce6c0a48e9072c0
|
4
|
+
data.tar.gz: 7266930fcf0b9c2090db06eff5a4c390a7c6b3cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcba45975f5ca64f115729cd77082b1e9e9e74ae2a516dde0da8b2bc84bd0590c4fa3525889be538ce1becb7c0569de122000c97d74b78d2df344becd5130393
|
7
|
+
data.tar.gz: d4224704091d92d5d8c40c32660210a31e9ec5aa5b15468f5155e91480e2c2562d59d643aefd37b86c0f021320a684403ad1ac76d3771fe79687798f7fc9b3ec
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
## Requirements
|
7
7
|
|
8
|
-
This engine requires Rails `>= 4.
|
8
|
+
This engine requires Rails `>= 4.2.0` and Ruby `>= 2.2.0`.
|
9
9
|
|
10
10
|
## Documentation
|
11
11
|
|
@@ -13,7 +13,7 @@ This engine requires Rails `>= 4.1.0` and Ruby `>= 2.0.0`.
|
|
13
13
|
|
14
14
|
## Installation
|
15
15
|
|
16
|
-
BookingSync Engine works with Rails 4.
|
16
|
+
BookingSync Engine works with Rails 4.2 onwards and Ruby 2.2 onwards. To get started, add it to your Gemfile with:
|
17
17
|
|
18
18
|
```ruby
|
19
19
|
gem 'bookingsync-engine'
|
@@ -0,0 +1,25 @@
|
|
1
|
+
[1m[36m (9.2ms)[0m [1mCREATE TABLE "accounts" ("id" serial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying) [0m
|
2
|
+
[1m[35m (1.2ms)[0m CREATE INDEX "index_accounts_on_synced_id" ON "accounts" USING btree ("synced_id")
|
3
|
+
[1m[36m (2.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
4
|
+
[1m[35m (1.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
5
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
6
|
+
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
|
7
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140522110326')[0m
|
8
|
+
[1m[35m (8.3ms)[0m CREATE TABLE "accounts" ("id" serial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying)
|
9
|
+
[1m[36m (1.3ms)[0m [1mCREATE INDEX "index_accounts_on_synced_id" ON "accounts" USING btree ("synced_id")[0m
|
10
|
+
[1m[35m (3.4ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
11
|
+
[1m[36m (1.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
12
|
+
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
13
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140522110454')[0m
|
14
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140522110326')
|
15
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
16
|
+
[1m[36m (113.6ms)[0m [1mDROP DATABASE IF EXISTS "bookingsync_engine_test"[0m
|
17
|
+
[1m[35m (261.8ms)[0m CREATE DATABASE "bookingsync_engine_test" ENCODING = 'unicode'
|
18
|
+
[1m[36m (6.5ms)[0m [1mCREATE TABLE "accounts" ("id" serial primary key, "created_at" timestamp, "updated_at" timestamp, "provider" character varying, "synced_id" integer, "name" character varying, "oauth_access_token" character varying, "oauth_refresh_token" character varying, "oauth_expires_at" character varying) [0m
|
19
|
+
[1m[35m (1.3ms)[0m CREATE INDEX "index_accounts_on_synced_id" ON "accounts" USING btree ("synced_id")
|
20
|
+
[1m[36m (3.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
21
|
+
[1m[35m (1.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
22
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
23
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140522110454')
|
24
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140522110326')[0m
|
25
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
@@ -0,0 +1,472 @@
|
|
1
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
2
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
4
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
5
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
6
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
7
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
10
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
11
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
12
|
+
Processing by SessionsController#destroy as HTML
|
13
|
+
Redirected to http://test.host/signed_out
|
14
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
15
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
16
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
17
|
+
Processing by SessionsController#destroy as HTML
|
18
|
+
Redirected to http://test.host/
|
19
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
20
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
21
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
22
|
+
Processing by SessionsController#create as HTML
|
23
|
+
Parameters: {"provider"=>"bookingsync"}
|
24
|
+
[1m[35mAccount Load (0.5ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
25
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
26
|
+
[1m[35mAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
27
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:39:34.097391"], ["updated_at", "2017-04-26 15:39:34.097391"]]
|
28
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
29
|
+
Redirected to http://test.host/admin
|
30
|
+
Completed 302 Found in 31ms (ActiveRecord: 4.8ms)
|
31
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
32
|
+
[1m[35m (0.0ms)[0m BEGIN
|
33
|
+
Processing by SessionsController#create as HTML
|
34
|
+
Parameters: {"provider"=>"bookingsync"}
|
35
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
36
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
37
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
38
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:39:34.104015"], ["updated_at", "2017-04-26 15:39:34.104015"]]
|
39
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
40
|
+
Redirected to http://test.host/
|
41
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
|
42
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
43
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
44
|
+
Processing by SessionsController#create as HTML
|
45
|
+
Parameters: {"provider"=>"bookingsync"}
|
46
|
+
[1m[35mAccount Load (0.2ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
47
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
48
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
49
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:39:34.110597"], ["updated_at", "2017-04-26 15:39:34.110597"]]
|
50
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
51
|
+
Redirected to http://test.host/
|
52
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
|
53
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
54
|
+
[1m[35m (0.0ms)[0m BEGIN
|
55
|
+
Processing by SessionsController#failure as HTML
|
56
|
+
Rendered /var/www/bookingsync/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms)
|
57
|
+
Completed 200 OK in 5ms (Views: 5.3ms | ActiveRecord: 0.0ms)
|
58
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
59
|
+
[1m[35m (0.0ms)[0m BEGIN
|
60
|
+
Processing by SessionsController#failure as HTML
|
61
|
+
Rendered /var/www/bookingsync/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms)
|
62
|
+
Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
|
63
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
64
|
+
[1m[35m (0.2ms)[0m BEGIN
|
65
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
66
|
+
[1m[35mAccount Exists (0.6ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
67
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1493307574"], ["created_at", "2017-04-26 15:39:34.126702"], ["updated_at", "2017-04-26 15:39:34.126702"]]
|
68
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
69
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
70
|
+
[1m[35m (0.0ms)[0m BEGIN
|
71
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
72
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1493134774"], ["created_at", "2017-04-26 15:39:34.131460"], ["updated_at", "2017-04-26 15:39:34.131460"]]
|
73
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
74
|
+
[1m[35m (0.0ms)[0m BEGIN
|
75
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
76
|
+
[1m[35mAccount Exists (0.5ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 5) LIMIT 1
|
77
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5[0m [["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1493393974"], ["updated_at", "2017-04-26 15:39:34.149332"], ["id", 5]]
|
78
|
+
[1m[35m (1.3ms)[0m COMMIT
|
79
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
80
|
+
[1m[35mAccount Load (0.2ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 5]]
|
81
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts"[0m
|
82
|
+
[1m[35m (0.0ms)[0m BEGIN
|
83
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "accounts" WHERE "accounts"."id" = $1[0m [["id", 5]]
|
84
|
+
[1m[35m (0.3ms)[0m COMMIT
|
85
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
86
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
87
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1493134774"], ["created_at", "2017-04-26 15:39:34.157104"], ["updated_at", "2017-04-26 15:39:34.157104"]]
|
88
|
+
[1m[35m (0.3ms)[0m COMMIT
|
89
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
90
|
+
[1m[35mAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 6) LIMIT 1
|
91
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5[0m [["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1493393974"], ["updated_at", "2017-04-26 15:39:34.161035"], ["id", 6]]
|
92
|
+
[1m[35m (0.3ms)[0m COMMIT
|
93
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts"[0m
|
94
|
+
[1m[35m (0.0ms)[0m BEGIN
|
95
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "accounts" WHERE "accounts"."id" = $1[0m [["id", 6]]
|
96
|
+
[1m[35m (0.2ms)[0m COMMIT
|
97
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
98
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
99
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
100
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
101
|
+
[1m[36mAccount Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT 1[0m
|
102
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"], ["created_at", "2017-04-26 15:39:34.196953"], ["updated_at", "2017-04-26 15:39:34.196953"]]
|
103
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
104
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
105
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" IS NULL AND "accounts"."id" != 7) LIMIT 1[0m
|
106
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", "2017-04-26 15:39:34.199160"], ["id", 7]]
|
107
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
108
|
+
[1m[35mAccount Load (0.4ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 7]]
|
109
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
110
|
+
[1m[35m (0.0ms)[0m BEGIN
|
111
|
+
[1m[36mAccount Load (0.4ms)[0m [1mSELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1[0m
|
112
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
113
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2017-04-26 15:39:34.207528"], ["updated_at", "2017-04-26 15:39:34.207528"]]
|
114
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
115
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
116
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "synced_id" = $1, "updated_at" = $2 WHERE "accounts"."id" = $3 [["synced_id", 0], ["updated_at", "2017-04-26 15:39:34.209310"], ["id", 8]]
|
117
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
118
|
+
[1m[35mAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 0 LIMIT 1
|
119
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
120
|
+
[1m[35m (0.0ms)[0m BEGIN
|
121
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
122
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1
|
123
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:39:34.219445"], ["updated_at", "2017-04-26 15:39:34.219445"]]
|
124
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
125
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
|
126
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
127
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
128
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
129
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:39:34.224876"], ["updated_at", "2017-04-26 15:39:34.224876"]]
|
130
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
131
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "accounts"[0m
|
132
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
133
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
134
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
135
|
+
[1m[36mAccount Exists (1.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1[0m
|
136
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:39:34.235230"], ["updated_at", "2017-04-26 15:39:34.235230"]]
|
137
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
138
|
+
[1m[35mAccount Load (0.2ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
139
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
140
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
141
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:39:34.238252"], ["updated_at", "2017-04-26 15:39:34.238252"]]
|
142
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
143
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
144
|
+
[1m[35m (0.0ms)[0m BEGIN
|
145
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
146
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1
|
147
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:39:34.241211"], ["updated_at", "2017-04-26 15:39:34.241211"]]
|
148
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
149
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
150
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
151
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
152
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:39:34.243552"], ["updated_at", "2017-04-26 15:39:34.243552"]]
|
153
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
154
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
155
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
156
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
157
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1[0m
|
158
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:39:34.247047"], ["updated_at", "2017-04-26 15:39:34.247047"]]
|
159
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
160
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
161
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
162
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
163
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:39:34.249351"], ["updated_at", "2017-04-26 15:39:34.249351"]]
|
164
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
165
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
166
|
+
[1m[35m (0.0ms)[0m BEGIN
|
167
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
168
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1
|
169
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:39:34.252257"], ["updated_at", "2017-04-26 15:39:34.252257"]]
|
170
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
171
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
172
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
173
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-04-26 15:39:34.253789"], ["updated_at", "2017-04-26 15:39:34.253789"]]
|
174
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
175
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
176
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
177
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 18) LIMIT 1[0m
|
178
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2017-04-26 15:39:34.255910"], ["id", 18]]
|
179
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
180
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
181
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
182
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
183
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1[0m
|
184
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:39:34.258865"], ["updated_at", "2017-04-26 15:39:34.258865"]]
|
185
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
186
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
187
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
188
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-04-26 15:39:34.260527"], ["updated_at", "2017-04-26 15:39:34.260527"]]
|
189
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
190
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
191
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
192
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 20) LIMIT 1
|
193
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2017-04-26 15:39:34.262841"], ["id", 20]]
|
194
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
195
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1[0m [["id", 20]]
|
196
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
197
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
198
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
199
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1[0m
|
200
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:39:34.266246"], ["updated_at", "2017-04-26 15:39:34.266246"]]
|
201
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
202
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
203
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
204
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-04-26 15:39:34.267796"], ["updated_at", "2017-04-26 15:39:34.267796"]]
|
205
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
207
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 22) LIMIT 1
|
209
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2017-04-26 15:39:34.270013"], ["id", 22]]
|
210
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
211
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1[0m [["id", 22]]
|
212
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
213
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
214
|
+
Processing by AuthenticatedController#index as HTML
|
215
|
+
Rendered text template (0.0ms)
|
216
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
217
|
+
Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
|
218
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
219
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
220
|
+
Processing by AuthenticatedController#index as HTML
|
221
|
+
Redirected to http://test.host/auth/bookingsync/?account_id=
|
222
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
223
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
224
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
225
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
226
|
+
Processing by AuthenticatedController#index as JS
|
227
|
+
Rendered text template (0.0ms)
|
228
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
229
|
+
Completed 401 Unauthorized in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
230
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
231
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
232
|
+
Processing by AuthenticatedController#index as JS
|
233
|
+
Rendered text template (0.0ms)
|
234
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
235
|
+
Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
236
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
237
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
238
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
239
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
240
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
241
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
242
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
243
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
244
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
245
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
246
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
247
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
248
|
+
Processing by SessionsController#create as HTML
|
249
|
+
Parameters: {"provider"=>"bookingsync"}
|
250
|
+
[1m[35mAccount Load (0.4ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
251
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
252
|
+
[1m[35mAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
253
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:41:50.571200"], ["updated_at", "2017-04-26 15:41:50.571200"]]
|
254
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
255
|
+
Redirected to http://test.host/
|
256
|
+
Completed 302 Found in 33ms (ActiveRecord: 4.5ms)
|
257
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
258
|
+
[1m[35m (0.0ms)[0m BEGIN
|
259
|
+
Processing by SessionsController#create as HTML
|
260
|
+
Parameters: {"provider"=>"bookingsync"}
|
261
|
+
[1m[36mAccount Load (0.3ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
262
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
263
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
264
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:41:50.580496"], ["updated_at", "2017-04-26 15:41:50.580496"]]
|
265
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
266
|
+
Redirected to http://test.host/
|
267
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
|
268
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
269
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
270
|
+
Processing by SessionsController#create as HTML
|
271
|
+
Parameters: {"provider"=>"bookingsync"}
|
272
|
+
[1m[35mAccount Load (0.3ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
273
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
274
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
275
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:41:50.588669"], ["updated_at", "2017-04-26 15:41:50.588669"]]
|
276
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
277
|
+
Redirected to http://test.host/admin
|
278
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
|
279
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
280
|
+
[1m[35m (0.0ms)[0m BEGIN
|
281
|
+
Processing by SessionsController#failure as HTML
|
282
|
+
Rendered /var/www/bookingsync/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.2ms)
|
283
|
+
Completed 200 OK in 12ms (Views: 11.7ms | ActiveRecord: 0.0ms)
|
284
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
285
|
+
[1m[35m (0.0ms)[0m BEGIN
|
286
|
+
Processing by SessionsController#failure as HTML
|
287
|
+
Rendered /var/www/bookingsync/bookingsync-engine/app/views/sessions/failure.html.erb within layouts/application (0.0ms)
|
288
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
289
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
290
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291
|
+
Processing by SessionsController#destroy as HTML
|
292
|
+
Redirected to http://test.host/signed_out
|
293
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
294
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
295
|
+
[1m[35m (0.0ms)[0m BEGIN
|
296
|
+
Processing by SessionsController#destroy as HTML
|
297
|
+
Redirected to http://test.host/
|
298
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
299
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
300
|
+
[1m[35m (0.0ms)[0m BEGIN
|
301
|
+
Processing by AuthenticatedController#index as HTML
|
302
|
+
Redirected to http://test.host/auth/bookingsync/?account_id=
|
303
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
304
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
305
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
306
|
+
[1m[35m (0.0ms)[0m BEGIN
|
307
|
+
Processing by AuthenticatedController#index as HTML
|
308
|
+
Rendered text template (0.0ms)
|
309
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
310
|
+
Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)
|
311
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
312
|
+
[1m[35m (0.0ms)[0m BEGIN
|
313
|
+
Processing by AuthenticatedController#index as JS
|
314
|
+
Rendered text template (0.0ms)
|
315
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
316
|
+
Completed 401 Unauthorized in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
317
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
318
|
+
[1m[35m (0.0ms)[0m BEGIN
|
319
|
+
Processing by AuthenticatedController#index as JS
|
320
|
+
Rendered text template (0.0ms)
|
321
|
+
Filter chain halted as :authenticate_account! rendered or redirected
|
322
|
+
Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
323
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
324
|
+
[1m[35m (0.0ms)[0m BEGIN
|
325
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
326
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
327
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1493307710"], ["created_at", "2017-04-26 15:41:50.641220"], ["updated_at", "2017-04-26 15:41:50.641220"]]
|
328
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
329
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
330
|
+
[1m[35m (0.0ms)[0m BEGIN
|
331
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
332
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1493134910"], ["created_at", "2017-04-26 15:41:50.644766"], ["updated_at", "2017-04-26 15:41:50.644766"]]
|
333
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
334
|
+
[1m[35m (0.1ms)[0m BEGIN
|
335
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
336
|
+
[1m[35mAccount Exists (0.6ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 5) LIMIT 1
|
337
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5[0m [["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1493394110"], ["updated_at", "2017-04-26 15:41:50.665555"], ["id", 5]]
|
338
|
+
[1m[35m (0.4ms)[0m COMMIT
|
339
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
340
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 5]]
|
341
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts"[0m
|
342
|
+
[1m[35m (0.0ms)[0m BEGIN
|
343
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "accounts" WHERE "accounts"."id" = $1[0m [["id", 5]]
|
344
|
+
[1m[35m (0.3ms)[0m COMMIT
|
345
|
+
[1m[36m (0.8ms)[0m [1mBEGIN[0m
|
346
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
347
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "accounts" ("synced_id", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["synced_id", 123], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh_token"], ["oauth_expires_at", "1493134910"], ["created_at", "2017-04-26 15:41:50.674111"], ["updated_at", "2017-04-26 15:41:50.674111"]]
|
348
|
+
[1m[35m (0.3ms)[0m COMMIT
|
349
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
350
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 6) LIMIT 1
|
351
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5[0m [["oauth_access_token", "refreshed_token"], ["oauth_refresh_token", "refreshed_refresh_token"], ["oauth_expires_at", "1493394110"], ["updated_at", "2017-04-26 15:41:50.677690"], ["id", 6]]
|
352
|
+
[1m[35m (0.3ms)[0m COMMIT
|
353
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts"[0m
|
354
|
+
[1m[35m (0.0ms)[0m BEGIN
|
355
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "accounts" WHERE "accounts"."id" = $1[0m [["id", 6]]
|
356
|
+
[1m[35m (0.2ms)[0m COMMIT
|
357
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
358
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
359
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" IS NULL LIMIT 1[0m
|
360
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["oauth_access_token", "token"], ["oauth_refresh_token", "refresh"], ["oauth_expires_at", "expires"], ["created_at", "2017-04-26 15:41:50.682399"], ["updated_at", "2017-04-26 15:41:50.682399"]]
|
361
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
362
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
363
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" IS NULL AND "accounts"."id" != 7) LIMIT 1[0m
|
364
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "accounts" SET "oauth_access_token" = $1, "oauth_refresh_token" = $2, "oauth_expires_at" = $3, "updated_at" = $4 WHERE "accounts"."id" = $5 [["oauth_access_token", nil], ["oauth_refresh_token", nil], ["oauth_expires_at", nil], ["updated_at", "2017-04-26 15:41:50.684651"], ["id", 7]]
|
365
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
366
|
+
[1m[35mAccount Load (0.3ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 7]]
|
367
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
368
|
+
[1m[35m (0.0ms)[0m BEGIN
|
369
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
370
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1
|
371
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:41:50.688553"], ["updated_at", "2017-04-26 15:41:50.688553"]]
|
372
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
373
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
374
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
375
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-04-26 15:41:50.690386"], ["updated_at", "2017-04-26 15:41:50.690386"]]
|
376
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
377
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
378
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
379
|
+
[1m[36mAccount Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 9) LIMIT 1[0m
|
380
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6 [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2017-04-26 15:41:50.693897"], ["id", 9]]
|
381
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
382
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
383
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
384
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
385
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1[0m
|
386
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:41:50.697394"], ["updated_at", "2017-04-26 15:41:50.697394"]]
|
387
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
388
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
389
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
390
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-04-26 15:41:50.699294"], ["updated_at", "2017-04-26 15:41:50.699294"]]
|
391
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
392
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
393
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
394
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 11) LIMIT 1
|
395
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2017-04-26 15:41:50.701687"], ["id", 11]]
|
396
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
397
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1[0m [["id", 11]]
|
398
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
399
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
400
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
401
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1[0m
|
402
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:41:50.705088"], ["updated_at", "2017-04-26 15:41:50.705088"]]
|
403
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
404
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
405
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
406
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 123], ["created_at", "2017-04-26 15:41:50.707575"], ["updated_at", "2017-04-26 15:41:50.707575"]]
|
407
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
408
|
+
[1m[35mAccount Load (0.3ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
409
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
410
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE ("accounts"."synced_id" = 123 AND "accounts"."id" != 13) LIMIT 1
|
411
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "accounts" SET "name" = $1, "oauth_access_token" = $2, "oauth_refresh_token" = $3, "oauth_expires_at" = $4, "updated_at" = $5 WHERE "accounts"."id" = $6[0m [["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["updated_at", "2017-04-26 15:41:50.710236"], ["id", 13]]
|
412
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
413
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1[0m [["id", 13]]
|
414
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
415
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
416
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
417
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1[0m
|
418
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:41:50.713940"], ["updated_at", "2017-04-26 15:41:50.713940"]]
|
419
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
420
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "accounts"
|
421
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
422
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
423
|
+
[1m[36mAccount Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
424
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:41:50.719135"], ["updated_at", "2017-04-26 15:41:50.719135"]]
|
425
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
426
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "accounts"
|
427
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
428
|
+
[1m[35m (0.0ms)[0m BEGIN
|
429
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
430
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1
|
431
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:41:50.722421"], ["updated_at", "2017-04-26 15:41:50.722421"]]
|
432
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
433
|
+
[1m[36mAccount Load (0.2ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
434
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
435
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
436
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:41:50.725478"], ["updated_at", "2017-04-26 15:41:50.725478"]]
|
437
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
438
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
439
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
440
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
441
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1[0m
|
442
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:41:50.728489"], ["updated_at", "2017-04-26 15:41:50.728489"]]
|
443
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
444
|
+
[1m[35mAccount Load (0.1ms)[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1 [["synced_id", 123], ["provider", "bookingsync"]]
|
445
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
446
|
+
[1m[35mAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1
|
447
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:41:50.730739"], ["updated_at", "2017-04-26 15:41:50.730739"]]
|
448
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
449
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
450
|
+
[1m[35m (0.0ms)[0m BEGIN
|
451
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
452
|
+
[1m[35mAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 456 LIMIT 1
|
453
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "accounts" ("provider", "synced_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["provider", "bookingsync"], ["synced_id", 456], ["created_at", "2017-04-26 15:41:50.733205"], ["updated_at", "2017-04-26 15:41:50.733205"]]
|
454
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
455
|
+
[1m[36mAccount Load (0.1ms)[0m [1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."synced_id" = $1 AND "accounts"."provider" = $2 LIMIT 1[0m [["synced_id", 123], ["provider", "bookingsync"]]
|
456
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
457
|
+
[1m[36mAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 123 LIMIT 1[0m
|
458
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "accounts" ("synced_id", "provider", "name", "oauth_access_token", "oauth_refresh_token", "oauth_expires_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["synced_id", 123], ["provider", "bookingsync"], ["name", "business name"], ["oauth_access_token", "token"], ["oauth_refresh_token", "refresh token"], ["oauth_expires_at", "expires at"], ["created_at", "2017-04-26 15:41:50.735450"], ["updated_at", "2017-04-26 15:41:50.735450"]]
|
459
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
460
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
461
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
462
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
463
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
464
|
+
[1m[35mAccount Load (0.4ms)[0m SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT 1
|
465
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
466
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "accounts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2017-04-26 15:41:50.771537"], ["updated_at", "2017-04-26 15:41:50.771537"]]
|
467
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
468
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
469
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "accounts" SET "synced_id" = $1, "updated_at" = $2 WHERE "accounts"."id" = $3[0m [["synced_id", 0], ["updated_at", "2017-04-26 15:41:50.773121"], ["id", 22]]
|
470
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
471
|
+
[1m[36mAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "accounts" WHERE "accounts"."synced_id" = 0 LIMIT 1[0m
|
472
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
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: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastien Grosjean
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 4.
|
20
|
+
version: 4.2.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 4.
|
27
|
+
version: 4.2.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: omniauth-bookingsync
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -197,6 +197,8 @@ files:
|
|
197
197
|
- spec/dummy/db/migrate/20140522110326_create_accounts.rb
|
198
198
|
- spec/dummy/db/migrate/20140522110454_add_o_auth_fields_to_accounts.rb
|
199
199
|
- spec/dummy/db/schema.rb
|
200
|
+
- spec/dummy/log/development.log
|
201
|
+
- spec/dummy/log/test.log
|
200
202
|
- spec/dummy/public/404.html
|
201
203
|
- spec/dummy/public/422.html
|
202
204
|
- spec/dummy/public/500.html
|
@@ -226,53 +228,55 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
228
|
version: '0'
|
227
229
|
requirements: []
|
228
230
|
rubyforge_project:
|
229
|
-
rubygems_version: 2.5.
|
231
|
+
rubygems_version: 2.5.2
|
230
232
|
signing_key:
|
231
233
|
specification_version: 4
|
232
234
|
summary: A Rails engine to simplify integration with BookingSync API
|
233
235
|
test_files:
|
236
|
+
- spec/fixtures/accounts.yml
|
237
|
+
- spec/models/account_spec.rb
|
238
|
+
- spec/routing/oauth_routing_spec.rb
|
239
|
+
- spec/spec_helper.rb
|
234
240
|
- spec/controllers/authenticated_controller_spec.rb
|
235
241
|
- spec/controllers/sessions_controller_spec.rb
|
236
|
-
- spec/dummy/
|
242
|
+
- spec/dummy/bin/bundle
|
243
|
+
- spec/dummy/bin/rails
|
244
|
+
- spec/dummy/bin/rake
|
237
245
|
- spec/dummy/app/assets/stylesheets/application.css
|
238
|
-
- spec/dummy/app/
|
246
|
+
- spec/dummy/app/assets/javascripts/application.js
|
247
|
+
- spec/dummy/app/models/account.rb
|
248
|
+
- spec/dummy/app/helpers/application_helper.rb
|
239
249
|
- spec/dummy/app/controllers/authenticated_controller.rb
|
250
|
+
- spec/dummy/app/controllers/application_controller.rb
|
240
251
|
- spec/dummy/app/controllers/home_controller.rb
|
241
|
-
- spec/dummy/app/helpers/application_helper.rb
|
242
|
-
- spec/dummy/app/models/account.rb
|
243
252
|
- spec/dummy/app/views/layouts/application.html.erb
|
244
|
-
- spec/dummy/
|
245
|
-
- spec/dummy/
|
246
|
-
- spec/dummy/bin/rake
|
247
|
-
- spec/dummy/config/application.rb
|
248
|
-
- spec/dummy/config/boot.rb
|
249
|
-
- spec/dummy/config/database.yml
|
250
|
-
- spec/dummy/config/database.yml.travis
|
253
|
+
- spec/dummy/config.ru
|
254
|
+
- spec/dummy/Rakefile
|
251
255
|
- spec/dummy/config/environment.rb
|
256
|
+
- spec/dummy/config/routes.rb
|
257
|
+
- spec/dummy/config/locales/en.yml
|
258
|
+
- spec/dummy/config/database.yml.travis
|
252
259
|
- spec/dummy/config/environments/development.rb
|
253
|
-
- spec/dummy/config/environments/production.rb
|
254
260
|
- spec/dummy/config/environments/test.rb
|
261
|
+
- spec/dummy/config/environments/production.rb
|
262
|
+
- spec/dummy/config/boot.rb
|
263
|
+
- spec/dummy/config/database.yml
|
264
|
+
- spec/dummy/config/initializers/inflections.rb
|
255
265
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
266
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
267
|
+
- spec/dummy/config/initializers/session_store.rb
|
268
|
+
- spec/dummy/config/initializers/secret_token.rb
|
256
269
|
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
257
|
-
- spec/dummy/config/initializers/inflections.rb
|
258
270
|
- spec/dummy/config/initializers/mime_types.rb
|
259
|
-
- spec/dummy/config/
|
260
|
-
- spec/dummy/
|
261
|
-
- spec/dummy/
|
262
|
-
- spec/dummy/
|
263
|
-
- spec/dummy/
|
264
|
-
- spec/dummy/config.ru
|
271
|
+
- spec/dummy/config/application.rb
|
272
|
+
- spec/dummy/log/development.log
|
273
|
+
- spec/dummy/log/test.log
|
274
|
+
- spec/dummy/README.rdoc
|
275
|
+
- spec/dummy/db/schema.rb
|
265
276
|
- spec/dummy/db/migrate/20140522110326_create_accounts.rb
|
266
277
|
- spec/dummy/db/migrate/20140522110454_add_o_auth_fields_to_accounts.rb
|
267
|
-
- spec/dummy/db/schema.rb
|
268
278
|
- spec/dummy/public/404.html
|
269
|
-
- spec/dummy/public/422.html
|
270
279
|
- spec/dummy/public/500.html
|
271
280
|
- spec/dummy/public/favicon.ico
|
272
|
-
- spec/dummy/
|
273
|
-
- spec/dummy/README.rdoc
|
274
|
-
- spec/fixtures/accounts.yml
|
275
|
-
- spec/models/account_spec.rb
|
276
|
-
- spec/routing/oauth_routing_spec.rb
|
277
|
-
- spec/spec_helper.rb
|
281
|
+
- spec/dummy/public/422.html
|
278
282
|
- spec/support/omniauth.rb
|