g5_updatable 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/g5_updatable/location.rb +2 -1
- data/lib/g5_updatable/version.rb +1 -1
- data/spec/dummy/log/test.log +746 -0
- data/spec/models/g5_updatable/location_spec.rb +10 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03bbbe2a39869e50aa5f682c13e57ece6a2ecaae
|
4
|
+
data.tar.gz: d157e9bac448852de34f502ad587c89d5b50e2d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5078737e13d73325f43920c4f276a03655e69b8b0f5de6b6ec3d47cbed049edc506e23f6cb9f955ca6172c9a4a5823d810785e10163a161bd348050a1ee19b8d
|
7
|
+
data.tar.gz: 1c63962a14563eb4b39477c90f2ab69306224965c6a2152d8012b5a813a287a7dff332dcb31dafe8deb71fc4af3c0bd2660ad1451ea0146611f7668cdb712c31
|
@@ -8,7 +8,8 @@ module G5Updatable
|
|
8
8
|
|
9
9
|
scope :by_client_uid, -> (client_uid) { where(client_uid: client_uid) }
|
10
10
|
scope :by_urn, -> (urn) { where(urn: urn) }
|
11
|
-
scope :max_updated_at, -> { maximum(:updated_at) }
|
11
|
+
scope :max_updated_at, -> { maximum(:updated_at) }
|
12
12
|
|
13
|
+
delegate :urn, to: :client, prefix: true, allow_nil: true
|
13
14
|
end
|
14
15
|
end
|
data/lib/g5_updatable/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -14076,3 +14076,749 @@ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.3ms)
|
|
14076
14076
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14077
14077
|
[1m[35m (0.1ms)[0m BEGIN
|
14078
14078
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14079
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14080
|
+
[1m[35m (0.2ms)[0m BEGIN
|
14081
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14082
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 22:59:51.053909"], ["updated_at", "2015-06-10 22:59:51.053909"]]
|
14083
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14084
|
+
[1m[35mG5Updatable::Location Load (0.6ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
|
14085
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14086
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-10 22:59:51.064882"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1135]]
|
14087
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14088
|
+
[1m[35mG5Updatable::Location Load (0.5ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
|
14089
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "g5_updatable_locations"[0m
|
14090
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
14091
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14092
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14093
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 22:59:51.075478"], ["updated_at", "2015-06-10 22:59:51.075478"]]
|
14094
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14095
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1[0m [["uid", "http://example.com/uid"]]
|
14096
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14097
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6[0m [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-10 22:59:51.077434"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1136]]
|
14098
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14099
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')[0m
|
14100
|
+
[1m[35mG5Updatable::Location Load (0.6ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
|
14101
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14102
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14103
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14104
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 22:59:51.082707"], ["updated_at", "2015-06-10 22:59:51.082707"]]
|
14105
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14106
|
+
[1m[35mG5Updatable::Location Load (0.2ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
|
14107
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14108
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-10 22:59:51.084518"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1137]]
|
14109
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14110
|
+
[1m[35mG5Updatable::Location Load (0.2ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
|
14111
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1[0m
|
14112
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14113
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14114
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14115
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 22:59:51.089011"], ["updated_at", "2015-06-10 22:59:51.089011"]]
|
14116
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14117
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1[0m
|
14118
|
+
[1m[35mG5Updatable::Location Load (0.2ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
|
14119
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14120
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2015-06-10 22:59:51.091582"], ["id", 1138]]
|
14121
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14122
|
+
[1m[35mG5Updatable::Location Load (0.2ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
|
14123
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1[0m [["id", 1138]]
|
14124
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14125
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14126
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14127
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "http://example.com/uid"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 22:59:51.096247"], ["updated_at", "2015-06-10 22:59:51.096247"]]
|
14128
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14129
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14130
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 22:59:51.098198"], ["updated_at", "2015-06-10 22:59:51.098198"]]
|
14131
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14132
|
+
[1m[35mG5Updatable::Location Load (0.2ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]
|
14133
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14134
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 1139]]
|
14135
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14136
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]
|
14137
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1[0m [["client_uid", "another_client_uid"]]
|
14138
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14139
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14140
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14141
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 22:59:51.103520"], ["updated_at", "2015-06-10 22:59:51.103520"]]
|
14142
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14143
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1[0m [["uid", "http://example.com/uid"]]
|
14144
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14145
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-10 22:59:51.105306"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 22:59:51.105771"]]
|
14146
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14147
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')[0m
|
14148
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14149
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1[0m [["id", 1141]]
|
14150
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14151
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2[0m [["urn", "urn"], ["client_uid", "client_uid"]]
|
14152
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]
|
14153
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14154
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14155
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1[0m [["uid", "http://example.com/uid"]]
|
14156
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14157
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-10 22:59:51.111349"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 22:59:51.111831"]]
|
14158
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14159
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')[0m
|
14160
|
+
[1m[35mG5Updatable::Location Load (0.2ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
|
14161
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14162
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14163
|
+
[1m[36mG5Updatable::Location Load (0.1ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1[0m [["uid", "http://example.com/uid"]]
|
14164
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14165
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-10 22:59:51.115442"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 22:59:51.115879"]]
|
14166
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14167
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')[0m
|
14168
|
+
[1m[35mG5Updatable::Location Load (0.2ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
|
14169
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1[0m [["name", "Location Name"]]
|
14170
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14171
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14172
|
+
[1m[35mG5Updatable::Location Load (0.1ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
|
14173
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14174
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-10 22:59:51.120165"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 22:59:51.120620"]]
|
14175
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14176
|
+
[1m[35mG5Updatable::Location Load (0.2ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
|
14177
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "g5_updatable_locations"[0m
|
14178
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14179
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14180
|
+
[1m[35mG5Updatable::Location Load (0.1ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
|
14181
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14182
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-10 22:59:51.124439"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 22:59:51.124958"]]
|
14183
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14184
|
+
[1m[35mG5Updatable::Location Load (0.2ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
|
14185
|
+
[1m[36mG5Updatable::Location Load (0.3ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1[0m
|
14186
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14187
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14188
|
+
[1m[35mG5Updatable::Location Load (0.1ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
|
14189
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14190
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-10 22:59:51.128725"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 22:59:51.129196"]]
|
14191
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14192
|
+
[1m[35mG5Updatable::Location Load (0.2ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
|
14193
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1[0m
|
14194
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14195
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14196
|
+
[1m[35mG5Updatable::Location Load (0.1ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
|
14197
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14198
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-10 22:59:51.132821"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 22:59:51.133257"]]
|
14199
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14200
|
+
[1m[35mG5Updatable::Location Load (0.2ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
|
14201
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1[0m
|
14202
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14203
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14204
|
+
[1m[35mG5Updatable::Location Load (0.1ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
|
14205
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14206
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-10 22:59:51.137088"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 22:59:51.137538"]]
|
14207
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14208
|
+
[1m[35mG5Updatable::Location Load (0.2ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
|
14209
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1[0m
|
14210
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14211
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14212
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14213
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14214
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14215
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14216
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14217
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14218
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14219
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14220
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14221
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14222
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14223
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14224
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14225
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14226
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14227
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14228
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14229
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14230
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14231
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14232
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14233
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14234
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14235
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14236
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14237
|
+
[1m[36mSQL (3.8ms)[0m [1mINSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-10 22:59:51.166650"], ["updated_at", "2015-06-10 22:59:51.166650"]]
|
14238
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14239
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14240
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 22:59:51.177998"], ["updated_at", "2015-06-10 22:59:51.177998"]]
|
14241
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14242
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14243
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 22:59:51.180099"], ["updated_at", "2015-06-10 22:59:51.180099"]]
|
14244
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14245
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14246
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-10 22:59:51.181652"], ["updated_at", "2015-06-10 22:59:51.181652"]]
|
14247
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14248
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14249
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 22:59:51.183699"], ["updated_at", "2015-06-10 22:59:51.183699"]]
|
14250
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14251
|
+
Processing by G5Updatable::SyncsController#index as HTML
|
14252
|
+
Parameters: {"urn"=>"g5-c-1234-client"}
|
14253
|
+
[1m[36mG5Updatable::Client Load (0.5ms)[0m [1mSELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1[0m [["urn", "g5-c-1234-client"]]
|
14254
|
+
[1m[35m (0.8ms)[0m SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]
|
14255
|
+
Completed 200 OK in 16ms (Views: 2.1ms | ActiveRecord: 1.4ms)
|
14256
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
14257
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14258
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14259
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-10 22:59:51.206622"], ["updated_at", "2015-06-10 22:59:51.206622"]]
|
14260
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14261
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14262
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 22:59:51.208978"], ["updated_at", "2015-06-10 22:59:51.208978"]]
|
14263
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14264
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14265
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 22:59:51.211198"], ["updated_at", "2015-06-10 22:59:51.211198"]]
|
14266
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14267
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14268
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-10 22:59:51.213679"], ["updated_at", "2015-06-10 22:59:51.213679"]]
|
14269
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14270
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14271
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 22:59:51.215960"], ["updated_at", "2015-06-10 22:59:51.215960"]]
|
14272
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14273
|
+
Processing by G5Updatable::SyncsController#index as HTML
|
14274
|
+
Parameters: {"urn"=>"xxx"}
|
14275
|
+
[1m[35mG5Updatable::Client Load (0.2ms)[0m SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]]
|
14276
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
|
14277
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14278
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14279
|
+
[1m[36mG5Updatable::Client Load (0.3ms)[0m [1mSELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1[0m [["uid", "http://example.com/uid"]]
|
14280
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14281
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-10 22:59:51.222294"], ["updated_at", "2015-06-10 22:59:51.222294"]]
|
14282
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14283
|
+
[1m[36mG5Updatable::Client Load (0.3ms)[0m [1mSELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1[0m
|
14284
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14285
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14286
|
+
[1m[35mG5Updatable::Client Load (0.2ms)[0m SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
|
14287
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14288
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-10 22:59:51.226544"], ["updated_at", "2015-06-10 22:59:51.226544"]]
|
14289
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14290
|
+
[1m[35mG5Updatable::Client Load (0.3ms)[0m SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
|
14291
|
+
[1m[36mG5Updatable::Client Load (0.2ms)[0m [1mSELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1[0m [["name", "Client Name"]]
|
14292
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14293
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14294
|
+
[1m[35mG5Updatable::Client Load (0.2ms)[0m SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
|
14295
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14296
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-10 22:59:51.231417"], ["updated_at", "2015-06-10 22:59:51.231417"]]
|
14297
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14298
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "g5_updatable_clients"
|
14299
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14300
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14301
|
+
[1m[36mG5Updatable::Client Load (0.2ms)[0m [1mSELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1[0m [["uid", "http://example.com/uid"]]
|
14302
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14303
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-10 22:59:51.235279"], ["updated_at", "2015-06-10 22:59:51.235279"]]
|
14304
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14305
|
+
[1m[36mG5Updatable::Client Load (0.3ms)[0m [1mSELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1[0m
|
14306
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14307
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14308
|
+
[1m[35mG5Updatable::Client Load (0.2ms)[0m SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
|
14309
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14310
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-10 22:59:51.239007"], ["updated_at", "2015-06-10 22:59:51.239007"]]
|
14311
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14312
|
+
[1m[35mG5Updatable::Client Load (0.3ms)[0m SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
|
14313
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14314
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14315
|
+
[1m[36mG5Updatable::Client Load (0.2ms)[0m [1mSELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1[0m [["uid", "http://example.com/uid"]]
|
14316
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14317
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-10 22:59:51.242859"], ["updated_at", "2015-06-10 22:59:51.242859"]]
|
14318
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14319
|
+
[1m[36mG5Updatable::Client Load (0.3ms)[0m [1mSELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1[0m
|
14320
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14321
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14322
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14323
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-10 22:59:51.246531"], ["updated_at", "2015-06-10 22:59:51.246531"]]
|
14324
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14325
|
+
[1m[36mG5Updatable::Client Load (0.2ms)[0m [1mSELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1[0m [["uid", "http://example.com/uid"]]
|
14326
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14327
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "properties" = $3, "updated_at" = $4 WHERE "g5_updatable_clients"."id" = $5[0m [["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-06-10 22:59:51.248871"], ["id", 579]]
|
14328
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14329
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "g5_updatable_clients"[0m
|
14330
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14331
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14332
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14333
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-10 22:59:51.252353"], ["updated_at", "2015-06-10 22:59:51.252353"]]
|
14334
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14335
|
+
[1m[36mG5Updatable::Client Load (0.1ms)[0m [1mSELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1[0m [["uid", "http://example.com/uid"]]
|
14336
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
14337
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "properties" = $3, "updated_at" = $4 WHERE "g5_updatable_clients"."id" = $5[0m [["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-06-10 22:59:51.255015"], ["id", 580]]
|
14338
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14339
|
+
[1m[36mG5Updatable::Client Load (0.3ms)[0m [1mSELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1[0m
|
14340
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14341
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14342
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14343
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-10 22:59:51.258566"], ["updated_at", "2015-06-10 22:59:51.258566"]]
|
14344
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14345
|
+
[1m[36mG5Updatable::Client Load (0.1ms)[0m [1mSELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1[0m [["uid", "http://example.com/uid"]]
|
14346
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14347
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "properties" = $3, "updated_at" = $4 WHERE "g5_updatable_clients"."id" = $5[0m [["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-06-10 22:59:51.260934"], ["id", 581]]
|
14348
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14349
|
+
[1m[36mG5Updatable::Client Load (0.3ms)[0m [1mSELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1[0m
|
14350
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14351
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14352
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14353
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"key\":\"value\"}"], ["created_at", "2015-06-10 22:59:51.265144"], ["updated_at", "2015-06-10 22:59:51.265144"]]
|
14354
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14355
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1[0m [["id", 1156]]
|
14356
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14357
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14358
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14359
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14360
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14361
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14362
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14363
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14364
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14365
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-10 22:59:51.272059"], ["updated_at", "2015-06-10 22:59:51.272059"]]
|
14366
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14367
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14368
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 22:59:51.274047"], ["updated_at", "2015-06-10 22:59:51.274047"]]
|
14369
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14370
|
+
[1m[35mG5Updatable::Client Load (0.2ms)[0m SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/clients/g5-c-1234-client"]]
|
14371
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14372
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14373
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14374
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 22:59:51.278712"], ["updated_at", "2015-06-10 22:59:51.278712"]]
|
14375
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14376
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14377
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 22:59:51.281339"], ["updated_at", "2015-06-10 22:59:51.281339"]]
|
14378
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14379
|
+
[1m[36m (0.4ms)[0m [1mSELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"[0m
|
14380
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14381
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14382
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14383
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 22:59:51.285292"], ["updated_at", "2015-06-10 22:59:51.285292"]]
|
14384
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
14385
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14386
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 22:59:51.287844"], ["updated_at", "2015-06-10 22:59:51.287844"]]
|
14387
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14388
|
+
[1m[35mG5Updatable::Location Load (0.2ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]
|
14389
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14390
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14391
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14392
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 22:59:51.291372"], ["updated_at", "2015-06-10 22:59:51.291372"]]
|
14393
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14394
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14395
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 22:59:51.293205"], ["updated_at", "2015-06-10 22:59:51.293205"]]
|
14396
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14397
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1[0m [["client_uid", "http://example.com/clients/g5-c-1234-client"]]
|
14398
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14399
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14400
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14401
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14402
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14403
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14404
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14405
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14406
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14407
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14408
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14409
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 22:59:51.325680"], ["updated_at", "2015-06-10 22:59:51.325680"]]
|
14410
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14411
|
+
Processing by G5Updatable::LocationsController#show as HTML
|
14412
|
+
Parameters: {"urn"=>"g5-cl-1234-location"}
|
14413
|
+
[1m[36mG5Updatable::Location Load (0.3ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1[0m [["urn", "g5-cl-1234-location"]]
|
14414
|
+
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
|
14415
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
14416
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14417
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14418
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 22:59:51.332724"], ["updated_at", "2015-06-10 22:59:51.332724"]]
|
14419
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14420
|
+
Processing by G5Updatable::LocationsController#show as HTML
|
14421
|
+
Parameters: {"urn"=>"g5-cl-1234-location"}
|
14422
|
+
[1m[36mG5Updatable::Location Load (0.3ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1[0m [["urn", "g5-cl-1234-location"]]
|
14423
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.3ms)
|
14424
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14425
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14426
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14427
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14428
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14429
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"key\":\"value\"}"], ["created_at", "2015-06-10 22:59:51.345505"], ["updated_at", "2015-06-10 22:59:51.345505"]]
|
14430
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14431
|
+
[1m[36mG5Updatable::Client Load (0.3ms)[0m [1mSELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1[0m [["id", 583]]
|
14432
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14433
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14434
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14435
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14436
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14437
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14438
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14439
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14440
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14441
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14442
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14443
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14444
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14445
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-10 22:59:51.365944"], ["updated_at", "2015-06-10 22:59:51.365944"]]
|
14446
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14447
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14448
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 22:59:51.368151"], ["updated_at", "2015-06-10 22:59:51.368151"]]
|
14449
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14450
|
+
[1m[35mG5Updatable::Location Load (0.3ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]
|
14451
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14452
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14453
|
+
[1m[35m (0.2ms)[0m BEGIN
|
14454
|
+
[1m[36mG5Updatable::Location Load (0.5ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1[0m [["uid", "http://example.com/uid"]]
|
14455
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
14456
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-10 23:01:00.790821"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 23:01:00.794603"]]
|
14457
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14458
|
+
[1m[36mG5Updatable::Location Load (0.5ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')[0m
|
14459
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "g5_updatable_locations"
|
14460
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14461
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14462
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1[0m [["uid", "http://example.com/uid"]]
|
14463
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14464
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-10 23:01:00.802696"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 23:01:00.803250"]]
|
14465
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14466
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')[0m
|
14467
|
+
[1m[35mG5Updatable::Location Load (0.5ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
|
14468
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
14469
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14470
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1[0m [["uid", "http://example.com/uid"]]
|
14471
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14472
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-10 23:01:00.807542"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 23:01:00.808019"]]
|
14473
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14474
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')[0m
|
14475
|
+
[1m[35mG5Updatable::Location Load (0.2ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
|
14476
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1[0m [["name", "Location Name"]]
|
14477
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14478
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14479
|
+
[1m[35mG5Updatable::Location Load (0.2ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
|
14480
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14481
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-10 23:01:00.812590"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 23:01:00.813031"]]
|
14482
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14483
|
+
[1m[35mG5Updatable::Location Load (0.2ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
|
14484
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1[0m
|
14485
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14486
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14487
|
+
[1m[35mG5Updatable::Location Load (0.2ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
|
14488
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14489
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-10 23:01:00.816667"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 23:01:00.817111"]]
|
14490
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14491
|
+
[1m[35mG5Updatable::Location Load (0.2ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
|
14492
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1[0m
|
14493
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14494
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14495
|
+
[1m[35mG5Updatable::Location Load (0.2ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
|
14496
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14497
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-10 23:01:00.820953"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 23:01:00.821400"]]
|
14498
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14499
|
+
[1m[35mG5Updatable::Location Load (0.2ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
|
14500
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1[0m
|
14501
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14502
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14503
|
+
[1m[35mG5Updatable::Location Load (0.1ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
|
14504
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14505
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-10 23:01:00.824934"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 23:01:00.825375"]]
|
14506
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14507
|
+
[1m[35mG5Updatable::Location Load (0.2ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
|
14508
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1[0m
|
14509
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14510
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14511
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14512
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 23:01:00.829323"], ["updated_at", "2015-06-10 23:01:00.829323"]]
|
14513
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14514
|
+
[1m[36mG5Updatable::Location Load (0.1ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1[0m [["uid", "http://example.com/uid"]]
|
14515
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14516
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "name", "client_uid", "updated_at", "properties", "created_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-10 23:01:00.831278"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 23:01:00.831786"]]
|
14517
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14518
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')[0m
|
14519
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14520
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1[0m [["id", 1174]]
|
14521
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14522
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2[0m [["urn", "urn"], ["client_uid", "client_uid"]]
|
14523
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "dead_urn"], ["client_uid", "client_uid"]]
|
14524
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14525
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14526
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14527
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "another_urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 23:01:00.837795"], ["updated_at", "2015-06-10 23:01:00.837795"]]
|
14528
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14529
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14530
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "http://example.com/uid"], ["urn", "some_urn"], ["client_uid", "another_client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 23:01:00.839780"], ["updated_at", "2015-06-10 23:01:00.839780"]]
|
14531
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14532
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1[0m [["client_uid", "client_uid"]]
|
14533
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14534
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1[0m [["id", 1176]]
|
14535
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14536
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1[0m [["client_uid", "client_uid"]]
|
14537
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]
|
14538
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14539
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14540
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14541
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 23:01:00.844980"], ["updated_at", "2015-06-10 23:01:00.844980"]]
|
14542
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14543
|
+
[1m[35mG5Updatable::Location Load (0.1ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
|
14544
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14545
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-10 23:01:00.846716"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1178]]
|
14546
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14547
|
+
[1m[35mG5Updatable::Location Load (0.2ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
|
14548
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "g5_updatable_locations"[0m
|
14549
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14550
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
14551
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14552
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 23:01:00.852366"], ["updated_at", "2015-06-10 23:01:00.852366"]]
|
14553
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14554
|
+
[1m[36mG5Updatable::Location Load (0.1ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1[0m [["uid", "http://example.com/uid"]]
|
14555
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14556
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6[0m [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-10 23:01:00.854131"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1179]]
|
14557
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14558
|
+
[1m[36mG5Updatable::Location Load (0.3ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')[0m
|
14559
|
+
[1m[35mG5Updatable::Location Load (0.3ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
|
14560
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14561
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14562
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14563
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "old"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 23:01:00.858685"], ["updated_at", "2015-06-10 23:01:00.858685"]]
|
14564
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14565
|
+
[1m[35mG5Updatable::Location Load (0.1ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
|
14566
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14567
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "g5_updatable_locations" SET "urn" = $1, "name" = $2, "client_uid" = $3, "updated_at" = $4, "properties" = $5 WHERE "g5_updatable_locations"."id" = $6 [["urn", "urn"], ["name", "Location Name"], ["client_uid", "client_uid"], ["updated_at", "2015-06-10 23:01:00.860352"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 1180]]
|
14568
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14569
|
+
[1m[35mG5Updatable::Location Load (0.2ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
|
14570
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1[0m
|
14571
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14572
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14573
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14574
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "http://example.com/uid"], ["urn", "urn"], ["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-06-10 23:01:00.865061"], ["updated_at", "2015-06-10 23:01:00.865061"]]
|
14575
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14576
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1[0m
|
14577
|
+
[1m[35mG5Updatable::Location Load (0.1ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
|
14578
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14579
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2015-06-10 23:01:00.867398"], ["id", 1181]]
|
14580
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14581
|
+
[1m[35mG5Updatable::Location Load (0.2ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn')
|
14582
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1[0m [["id", 1181]]
|
14583
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14584
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14585
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14586
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14587
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14588
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14589
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14590
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14591
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14592
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14593
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14594
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14595
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14596
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14597
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14598
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14599
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
14600
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14601
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
14602
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14603
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14604
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14605
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14606
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-10 23:01:00.911447"], ["updated_at", "2015-06-10 23:01:00.911447"]]
|
14607
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14608
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14609
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 23:01:00.913976"], ["updated_at", "2015-06-10 23:01:00.913976"]]
|
14610
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14611
|
+
[1m[35mG5Updatable::Location Load (0.3ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "http://example.com/clients/g5-c-1234-client"]]
|
14612
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14613
|
+
[1m[35m (0.2ms)[0m BEGIN
|
14614
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14615
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14616
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14617
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14618
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14619
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"key\":\"value\"}"], ["created_at", "2015-06-10 23:01:00.932240"], ["updated_at", "2015-06-10 23:01:00.932240"]]
|
14620
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14621
|
+
[1m[35mG5Updatable::Client Load (0.3ms)[0m SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 586]]
|
14622
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14623
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14624
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14625
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14626
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14627
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 23:01:00.937571"], ["updated_at", "2015-06-10 23:01:00.937571"]]
|
14628
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14629
|
+
Processing by G5Updatable::LocationsController#show as HTML
|
14630
|
+
Parameters: {"urn"=>"g5-cl-1234-location"}
|
14631
|
+
[1m[35mG5Updatable::Location Load (0.3ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]]
|
14632
|
+
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
|
14633
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14634
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14635
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14636
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 23:01:00.945354"], ["updated_at", "2015-06-10 23:01:00.945354"]]
|
14637
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14638
|
+
Processing by G5Updatable::LocationsController#show as HTML
|
14639
|
+
Parameters: {"urn"=>"g5-cl-1234-location"}
|
14640
|
+
[1m[35mG5Updatable::Location Load (0.2ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]]
|
14641
|
+
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
14642
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14643
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14644
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
14645
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14646
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14647
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14648
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
14649
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14650
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14651
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14652
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14653
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 23:01:00.970162"], ["updated_at", "2015-06-10 23:01:00.970162"]]
|
14654
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14655
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14656
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 23:01:00.972238"], ["updated_at", "2015-06-10 23:01:00.972238"]]
|
14657
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14658
|
+
[1m[36mG5Updatable::Location Load (0.5ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1[0m [["client_uid", "http://example.com/clients/g5-c-1234-client"]]
|
14659
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
14660
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14661
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14662
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 23:01:00.976761"], ["updated_at", "2015-06-10 23:01:00.976761"]]
|
14663
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14664
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14665
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 23:01:00.979064"], ["updated_at", "2015-06-10 23:01:00.979064"]]
|
14666
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14667
|
+
[1m[35m (0.8ms)[0m SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"
|
14668
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14669
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14670
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14671
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 23:01:00.984350"], ["updated_at", "2015-06-10 23:01:00.984350"]]
|
14672
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14673
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14674
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "another_urn"], ["client_uid", "something_else"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 23:01:00.986629"], ["updated_at", "2015-06-10 23:01:00.986629"]]
|
14675
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14676
|
+
[1m[36mG5Updatable::Location Load (0.2ms)[0m [1mSELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1[0m [["urn", "g5-cl-1234-location"]]
|
14677
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14678
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14679
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14680
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-10 23:01:00.990110"], ["updated_at", "2015-06-10 23:01:00.990110"]]
|
14681
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14682
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14683
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 23:01:00.991979"], ["updated_at", "2015-06-10 23:01:00.991979"]]
|
14684
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14685
|
+
[1m[35mG5Updatable::Client Load (0.3ms)[0m SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/clients/g5-c-1234-client"]]
|
14686
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14687
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14688
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14689
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14690
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14691
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14692
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14693
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"key\":\"value\"}"], ["created_at", "2015-06-10 23:01:01.001648"], ["updated_at", "2015-06-10 23:01:01.001648"]]
|
14694
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14695
|
+
[1m[35mG5Updatable::Location Load (0.2ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 1192]]
|
14696
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14697
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14698
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14699
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14700
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14701
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14702
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14703
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-10 23:01:01.014211"], ["updated_at", "2015-06-10 23:01:01.014211"]]
|
14704
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14705
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14706
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 23:01:01.016625"], ["updated_at", "2015-06-10 23:01:01.016625"]]
|
14707
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14708
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14709
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 23:01:01.019115"], ["updated_at", "2015-06-10 23:01:01.019115"]]
|
14710
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14711
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14712
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-10 23:01:01.021087"], ["updated_at", "2015-06-10 23:01:01.021087"]]
|
14713
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14714
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14715
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 23:01:01.023611"], ["updated_at", "2015-06-10 23:01:01.023611"]]
|
14716
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14717
|
+
Processing by G5Updatable::SyncsController#index as HTML
|
14718
|
+
Parameters: {"urn"=>"xxx"}
|
14719
|
+
[1m[35mG5Updatable::Client Load (0.3ms)[0m SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]]
|
14720
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.3ms)
|
14721
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14722
|
+
[1m[35m (0.2ms)[0m BEGIN
|
14723
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14724
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-10 23:01:01.031912"], ["updated_at", "2015-06-10 23:01:01.031912"]]
|
14725
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14726
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14727
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 23:01:01.034243"], ["updated_at", "2015-06-10 23:01:01.034243"]]
|
14728
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14729
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14730
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 23:01:01.036117"], ["updated_at", "2015-06-10 23:01:01.036117"]]
|
14731
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14732
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14733
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["uid", "http://example.com/clients/g5-c-1234-client"], ["urn", "g5-c-1234-client"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-10 23:01:01.038184"], ["updated_at", "2015-06-10 23:01:01.038184"]]
|
14734
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14735
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14736
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_locations" ("uid", "urn", "client_uid", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["urn", "g5-cl-1234-location"], ["client_uid", "http://example.com/clients/g5-c-1234-client"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-06-10 23:01:01.041278"], ["updated_at", "2015-06-10 23:01:01.041278"]]
|
14737
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14738
|
+
Processing by G5Updatable::SyncsController#index as HTML
|
14739
|
+
Parameters: {"urn"=>"g5-c-1234-client"}
|
14740
|
+
[1m[35mG5Updatable::Client Load (0.3ms)[0m SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]
|
14741
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1[0m [["client_uid", "http://example.com/clients/g5-c-1234-client"]]
|
14742
|
+
Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.5ms)
|
14743
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
14744
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14745
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14746
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-10 23:01:01.049019"], ["updated_at", "2015-06-10 23:01:01.049019"]]
|
14747
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14748
|
+
[1m[36mG5Updatable::Client Load (0.2ms)[0m [1mSELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1[0m [["uid", "http://example.com/uid"]]
|
14749
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14750
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "properties" = $3, "updated_at" = $4 WHERE "g5_updatable_clients"."id" = $5[0m [["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-06-10 23:01:01.051832"], ["id", 592]]
|
14751
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14752
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "g5_updatable_clients"[0m
|
14753
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14754
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14755
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14756
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-10 23:01:01.055363"], ["updated_at", "2015-06-10 23:01:01.055363"]]
|
14757
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14758
|
+
[1m[36mG5Updatable::Client Load (0.2ms)[0m [1mSELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1[0m [["uid", "http://example.com/uid"]]
|
14759
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14760
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "properties" = $3, "updated_at" = $4 WHERE "g5_updatable_clients"."id" = $5[0m [["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-06-10 23:01:01.057696"], ["id", 593]]
|
14761
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14762
|
+
[1m[36mG5Updatable::Client Load (0.3ms)[0m [1mSELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1[0m
|
14763
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14764
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14765
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14766
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["uid", "http://example.com/uid"], ["urn", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-06-10 23:01:01.061746"], ["updated_at", "2015-06-10 23:01:01.061746"]]
|
14767
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14768
|
+
[1m[36mG5Updatable::Client Load (0.3ms)[0m [1mSELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1[0m [["uid", "http://example.com/uid"]]
|
14769
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14770
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "properties" = $3, "updated_at" = $4 WHERE "g5_updatable_clients"."id" = $5[0m [["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-06-10 23:01:01.064320"], ["id", 594]]
|
14771
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14772
|
+
[1m[36mG5Updatable::Client Load (0.3ms)[0m [1mSELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1[0m
|
14773
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14774
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14775
|
+
[1m[35mG5Updatable::Client Load (0.3ms)[0m SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
|
14776
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14777
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-10 23:01:01.068575"], ["updated_at", "2015-06-10 23:01:01.068575"]]
|
14778
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14779
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "g5_updatable_clients"
|
14780
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14781
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14782
|
+
[1m[36mG5Updatable::Client Load (0.3ms)[0m [1mSELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1[0m [["uid", "http://example.com/uid"]]
|
14783
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14784
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-10 23:01:01.072760"], ["updated_at", "2015-06-10 23:01:01.072760"]]
|
14785
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14786
|
+
[1m[36mG5Updatable::Client Load (0.3ms)[0m [1mSELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1[0m
|
14787
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14788
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14789
|
+
[1m[35mG5Updatable::Client Load (0.1ms)[0m SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
|
14790
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14791
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-10 23:01:01.076347"], ["updated_at", "2015-06-10 23:01:01.076347"]]
|
14792
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14793
|
+
[1m[35mG5Updatable::Client Load (0.3ms)[0m SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
|
14794
|
+
[1m[36mG5Updatable::Client Load (0.2ms)[0m [1mSELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1[0m [["name", "Client Name"]]
|
14795
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14796
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14797
|
+
[1m[35mG5Updatable::Client Load (0.1ms)[0m SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
|
14798
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14799
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-10 23:01:01.081062"], ["updated_at", "2015-06-10 23:01:01.081062"]]
|
14800
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14801
|
+
[1m[35mG5Updatable::Client Load (0.3ms)[0m SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
|
14802
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14803
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14804
|
+
[1m[36mG5Updatable::Client Load (0.1ms)[0m [1mSELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1[0m [["uid", "http://example.com/uid"]]
|
14805
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14806
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-10 23:01:01.085232"], ["updated_at", "2015-06-10 23:01:01.085232"]]
|
14807
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14808
|
+
[1m[36mG5Updatable::Client Load (0.3ms)[0m [1mSELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1[0m
|
14809
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
14810
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
14811
|
+
[1m[35mG5Updatable::Client Load (0.1ms)[0m SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
|
14812
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14813
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "g5_updatable_clients" ("uid", "urn", "name", "properties", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["uid", "http://example.com/uid"], ["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["created_at", "2015-06-10 23:01:01.089222"], ["updated_at", "2015-06-10 23:01:01.089222"]]
|
14814
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14815
|
+
[1m[35mG5Updatable::Client Load (0.3ms)[0m SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
|
14816
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14817
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14818
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14819
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14820
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14821
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14822
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
14823
|
+
[1m[35m (0.1ms)[0m BEGIN
|
14824
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
@@ -23,8 +23,17 @@ describe G5Updatable::Location do
|
|
23
23
|
subject { location.client }
|
24
24
|
|
25
25
|
it { should eq(client) }
|
26
|
-
end
|
27
26
|
|
27
|
+
describe "client_urn" do
|
28
|
+
it "delegates client_urn to client" do
|
29
|
+
expect(location.client_urn).to eq(client.urn)
|
30
|
+
end
|
31
|
+
|
32
|
+
it "returns nil if client not found" do
|
33
|
+
expect(create(:location, client_uid: 'madeup').client_urn).to be_nil
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
28
37
|
|
29
38
|
context "scopes" do
|
30
39
|
let!(:location) { FactoryGirl.create(:location) }
|
@@ -47,6 +56,5 @@ describe G5Updatable::Location do
|
|
47
56
|
expect(described_class.by_urn(location.urn)).to eq [location]
|
48
57
|
end
|
49
58
|
end
|
50
|
-
|
51
59
|
end
|
52
60
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: g5_updatable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: g5_foundation_client
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.4.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.4.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: pg
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|