g5_updatable 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 063dfb513857c34a5c119760fe7356611098d689
4
- data.tar.gz: b640eaad04c4f0d1c7ecccc9f59dba3fef8de6ce
3
+ metadata.gz: b3f217930a98d0426de2adc2d6f084c04f119f77
4
+ data.tar.gz: d64405973f1a794c1e32f45777574cd0924838f6
5
5
  SHA512:
6
- metadata.gz: 172fb541c6105111bf4b2dc98f9d8e1f5da89a09082c3c7ff53affba4e63bcfebd596fa9f46814103eb863298270b5c60c522b7ecbc51f5b17cc380fc053383f
7
- data.tar.gz: e6b075a773dff3de310f179052aa4f6e41d385d0054ff2aeb843cce6e2cf3f443b180b42929bc567ee01f5126bbec9422acce8e421f14127b30cc71e66da6705
6
+ metadata.gz: e9ddc9bfddb27697bc2b565878ed4f8867dabbd7674da26cec3c088313e7b3ee0648708d0b217c28cf8618b4250f94b9877558b2a3eb28c0c680b9f192f7baa4
7
+ data.tar.gz: 97d41ba4fcafa58e0300bf2139f9582d62b3abe84c9b9dc5a23a8c2f454ba5f57b3d1a3b3a51ed4c063b624077ce87365f85de7d27361921f372118464691fe9
@@ -162,6 +162,7 @@ FactoryGirl.define do
162
162
  longitude -84.6620322
163
163
  go_squared_site_token nil
164
164
  thumbnail_url "/images/thumb/missing.png"
165
+ thumbnail_url_300px "/images/thumb/missing.png"
165
166
 
166
167
  initialize_with do
167
168
  attrs = {}
@@ -1,3 +1,3 @@
1
1
  module G5Updatable
2
- VERSION = "0.8.0"
2
+ VERSION = "0.9.0"
3
3
  end
@@ -3192,3 +3192,465 @@ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.5ms)
3192
3192
   (0.3ms) ROLLBACK
3193
3193
   (0.3ms) BEGIN
3194
3194
   (0.3ms) ROLLBACK
3195
+ ActiveRecord::SchemaMigration Load (38.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
3196
+  (0.4ms) BEGIN
3197
+  (0.4ms) SAVEPOINT active_record_1
3198
+ SQL (59.7ms) 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", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-07-22 02:26:57.067637"], ["updated_at", "2015-07-22 02:26:57.067637"]]
3199
+  (0.4ms) RELEASE SAVEPOINT active_record_1
3200
+ G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
3201
+  (0.3ms) SAVEPOINT active_record_1
3202
+ SQL (0.4ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "properties" = $3, "updated_at" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-07-22 02:26:57.168037"], ["id", 89]]
3203
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3204
+  (14.7ms) SELECT COUNT(*) FROM "g5_updatable_clients"
3205
+  (0.5ms) ROLLBACK
3206
+  (0.9ms) BEGIN
3207
+  (0.4ms) SAVEPOINT active_record_1
3208
+ SQL (0.5ms) 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", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-07-22 02:26:57.203445"], ["updated_at", "2015-07-22 02:26:57.203445"]]
3209
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3210
+ G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
3211
+  (0.3ms) SAVEPOINT active_record_1
3212
+ SQL (0.4ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "properties" = $3, "updated_at" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-07-22 02:26:57.207506"], ["id", 90]]
3213
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3214
+ G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
3215
+  (0.5ms) ROLLBACK
3216
+  (0.3ms) BEGIN
3217
+  (0.3ms) SAVEPOINT active_record_1
3218
+ SQL (0.5ms) 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", "old"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["created_at", "2015-07-22 02:26:57.213805"], ["updated_at", "2015-07-22 02:26:57.213805"]]
3219
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3220
+ G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
3221
+  (0.2ms) SAVEPOINT active_record_1
3222
+ SQL (0.4ms) UPDATE "g5_updatable_clients" SET "urn" = $1, "name" = $2, "properties" = $3, "updated_at" = $4 WHERE "g5_updatable_clients"."id" = $5 [["urn", "urn"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-07-22 02:26:57.217715"], ["id", 91]]
3223
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3224
+ G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
3225
+  (0.3ms) ROLLBACK
3226
+  (0.2ms) BEGIN
3227
+ G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
3228
+  (0.2ms) SAVEPOINT active_record_1
3229
+ SQL (0.4ms) 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-07-22 02:26:57.224252"], ["updated_at", "2015-07-22 02:26:57.224252"]]
3230
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3231
+ G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
3232
+  (0.3ms) ROLLBACK
3233
+  (0.2ms) BEGIN
3234
+ G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
3235
+  (0.2ms) SAVEPOINT active_record_1
3236
+ SQL (0.4ms) 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-07-22 02:26:57.230464"], ["updated_at", "2015-07-22 02:26:57.230464"]]
3237
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3238
+  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_clients"
3239
+  (0.2ms) ROLLBACK
3240
+  (0.3ms) BEGIN
3241
+ G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
3242
+  (0.3ms) SAVEPOINT active_record_1
3243
+ SQL (0.4ms) 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-07-22 02:26:57.237409"], ["updated_at", "2015-07-22 02:26:57.237409"]]
3244
+  (0.4ms) RELEASE SAVEPOINT active_record_1
3245
+ G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
3246
+ G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = $1 LIMIT 1 [["name", "Client Name"]]
3247
+  (0.2ms) ROLLBACK
3248
+  (0.3ms) BEGIN
3249
+ G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
3250
+  (0.3ms) SAVEPOINT active_record_1
3251
+ SQL (0.4ms) 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-07-22 02:26:57.247933"], ["updated_at", "2015-07-22 02:26:57.247933"]]
3252
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3253
+ G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
3254
+  (0.3ms) ROLLBACK
3255
+  (0.3ms) BEGIN
3256
+ G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
3257
+  (0.3ms) SAVEPOINT active_record_1
3258
+ SQL (0.4ms) 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-07-22 02:26:57.255841"], ["updated_at", "2015-07-22 02:26:57.255841"]]
3259
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3260
+ G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
3261
+  (0.3ms) ROLLBACK
3262
+  (0.2ms) BEGIN
3263
+ G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
3264
+  (0.6ms) SAVEPOINT active_record_1
3265
+ SQL (0.4ms) 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-07-22 02:26:57.273566"], ["updated_at", "2015-07-22 02:26:57.273566"]]
3266
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3267
+ G5Updatable::Client Load (0.6ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
3268
+  (0.6ms) ROLLBACK
3269
+  (0.4ms) BEGIN
3270
+  (0.4ms) ROLLBACK
3271
+  (0.2ms) BEGIN
3272
+  (0.3ms) ROLLBACK
3273
+  (0.2ms) BEGIN
3274
+  (0.2ms) ROLLBACK
3275
+  (0.3ms) BEGIN
3276
+  (0.3ms) SAVEPOINT active_record_1
3277
+ SQL (0.4ms) 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-07-22 02:26:57.312737"], ["updated_at", "2015-07-22 02:26:57.312737"]]
3278
+  (0.4ms) RELEASE SAVEPOINT active_record_1
3279
+ G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 98]]
3280
+  (0.3ms) ROLLBACK
3281
+  (0.2ms) BEGIN
3282
+  (0.3ms) ROLLBACK
3283
+  (0.3ms) BEGIN
3284
+  (0.5ms) ROLLBACK
3285
+  (0.3ms) BEGIN
3286
+  (0.3ms) SAVEPOINT active_record_1
3287
+ SQL (0.5ms) 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-07-22 02:26:57.338314"], ["updated_at", "2015-07-22 02:26:57.338314"]]
3288
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3289
+  (0.4ms) SAVEPOINT active_record_1
3290
+ SQL (15.8ms) 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-07-22 02:26:57.347464"], ["updated_at", "2015-07-22 02:26:57.347464"]]
3291
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3292
+ G5Updatable::Location Load (0.4ms) 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"]]
3293
+  (0.3ms) ROLLBACK
3294
+  (0.2ms) BEGIN
3295
+  (0.3ms) ROLLBACK
3296
+  (0.2ms) BEGIN
3297
+  (0.3ms) ROLLBACK
3298
+  (0.3ms) BEGIN
3299
+  (0.3ms) ROLLBACK
3300
+  (0.2ms) BEGIN
3301
+  (0.3ms) ROLLBACK
3302
+  (0.2ms) BEGIN
3303
+  (0.3ms) ROLLBACK
3304
+  (0.2ms) BEGIN
3305
+  (0.4ms) ROLLBACK
3306
+  (0.2ms) BEGIN
3307
+  (0.3ms) ROLLBACK
3308
+  (0.2ms) BEGIN
3309
+  (0.2ms) ROLLBACK
3310
+  (0.2ms) BEGIN
3311
+  (0.3ms) ROLLBACK
3312
+  (0.5ms) BEGIN
3313
+  (0.2ms) ROLLBACK
3314
+  (0.2ms) BEGIN
3315
+  (0.2ms) ROLLBACK
3316
+  (0.2ms) BEGIN
3317
+  (0.3ms) ROLLBACK
3318
+  (0.2ms) BEGIN
3319
+  (0.3ms) ROLLBACK
3320
+  (0.2ms) BEGIN
3321
+  (0.3ms) SAVEPOINT active_record_1
3322
+ SQL (0.5ms) 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-07-22 02:26:57.440529"], ["updated_at", "2015-07-22 02:26:57.440529"]]
3323
+  (0.4ms) RELEASE SAVEPOINT active_record_1
3324
+  (0.4ms) SAVEPOINT active_record_1
3325
+ SQL (0.4ms) 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-07-22 02:26:57.447462"], ["updated_at", "2015-07-22 02:26:57.447462"]]
3326
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3327
+  (0.3ms) SAVEPOINT active_record_1
3328
+ SQL (0.3ms) 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-07-22 02:26:57.450569"], ["updated_at", "2015-07-22 02:26:57.450569"]]
3329
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3330
+  (0.2ms) SAVEPOINT active_record_1
3331
+ SQL (0.3ms) 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-07-22 02:26:57.453208"], ["updated_at", "2015-07-22 02:26:57.453208"]]
3332
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3333
+  (0.2ms) SAVEPOINT active_record_1
3334
+ SQL (0.4ms) 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-07-22 02:26:57.455863"], ["updated_at", "2015-07-22 02:26:57.455863"]]
3335
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3336
+ Processing by G5Updatable::SyncsController#index as HTML
3337
+ Parameters: {"urn"=>"xxx"}
3338
+ G5Updatable::Client Load (0.5ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "xxx"]]
3339
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.5ms)
3340
+  (0.3ms) ROLLBACK
3341
+  (0.3ms) BEGIN
3342
+  (0.3ms) SAVEPOINT active_record_1
3343
+ SQL (0.5ms) 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-07-22 02:26:57.467495"], ["updated_at", "2015-07-22 02:26:57.467495"]]
3344
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3345
+  (0.3ms) SAVEPOINT active_record_1
3346
+ SQL (0.4ms) 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-07-22 02:26:57.470840"], ["updated_at", "2015-07-22 02:26:57.470840"]]
3347
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3348
+  (0.2ms) SAVEPOINT active_record_1
3349
+ SQL (0.3ms) 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-07-22 02:26:57.473622"], ["updated_at", "2015-07-22 02:26:57.473622"]]
3350
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3351
+  (0.2ms) SAVEPOINT active_record_1
3352
+ SQL (0.3ms) 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-07-22 02:26:57.475831"], ["updated_at", "2015-07-22 02:26:57.475831"]]
3353
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3354
+  (0.3ms) SAVEPOINT active_record_1
3355
+ SQL (0.4ms) 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-07-22 02:26:57.478626"], ["updated_at", "2015-07-22 02:26:57.478626"]]
3356
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3357
+ Processing by G5Updatable::SyncsController#index as HTML
3358
+ Parameters: {"urn"=>"g5-c-1234-client"}
3359
+ G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."urn" = $1 LIMIT 1 [["urn", "g5-c-1234-client"]]
3360
+  (0.4ms) 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"]]
3361
+ Completed 200 OK in 15ms (Views: 10.8ms | ActiveRecord: 0.8ms)
3362
+  (0.4ms) ROLLBACK
3363
+  (0.2ms) BEGIN
3364
+  (0.3ms) ROLLBACK
3365
+  (0.2ms) BEGIN
3366
+  (0.4ms) SAVEPOINT active_record_1
3367
+ SQL (0.5ms) 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-07-22 02:26:57.518378"], ["updated_at", "2015-07-22 02:26:57.518378"]]
3368
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3369
+  (0.3ms) SAVEPOINT active_record_1
3370
+ SQL (0.4ms) 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-07-22 02:26:57.522019"], ["updated_at", "2015-07-22 02:26:57.522019"]]
3371
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3372
+ G5Updatable::Client Load (0.4ms) 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"]]
3373
+  (0.4ms) ROLLBACK
3374
+  (0.3ms) BEGIN
3375
+  (0.2ms) SAVEPOINT active_record_1
3376
+ SQL (0.5ms) 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", "madeup"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.529275"], ["updated_at", "2015-07-22 02:26:57.529275"]]
3377
+  (0.7ms) RELEASE SAVEPOINT active_record_1
3378
+ G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = $1 LIMIT 1 [["uid", "madeup"]]
3379
+  (0.2ms) ROLLBACK
3380
+  (0.3ms) BEGIN
3381
+  (0.2ms) SAVEPOINT active_record_1
3382
+ SQL (0.4ms) 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-07-22 02:26:57.534844"], ["updated_at", "2015-07-22 02:26:57.534844"]]
3383
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3384
+  (0.3ms) SAVEPOINT active_record_1
3385
+ SQL (0.3ms) 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-07-22 02:26:57.537821"], ["updated_at", "2015-07-22 02:26:57.537821"]]
3386
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3387
+ G5Updatable::Client Load (0.3ms) 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"]]
3388
+  (0.2ms) ROLLBACK
3389
+  (0.2ms) BEGIN
3390
+  (0.3ms) ROLLBACK
3391
+  (0.3ms) BEGIN
3392
+  (0.3ms) ROLLBACK
3393
+  (0.2ms) BEGIN
3394
+  (0.2ms) SAVEPOINT active_record_1
3395
+ SQL (0.4ms) 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-07-22 02:26:57.547422"], ["updated_at", "2015-07-22 02:26:57.547422"]]
3396
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3397
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 294]]
3398
+  (0.3ms) ROLLBACK
3399
+  (0.3ms) BEGIN
3400
+  (0.4ms) ROLLBACK
3401
+  (0.3ms) BEGIN
3402
+  (0.3ms) ROLLBACK
3403
+  (0.4ms) BEGIN
3404
+  (0.3ms) ROLLBACK
3405
+  (0.2ms) BEGIN
3406
+  (0.3ms) SAVEPOINT active_record_1
3407
+ SQL (0.4ms) 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-07-22 02:26:57.575329"], ["updated_at", "2015-07-22 02:26:57.575329"]]
3408
+  (0.6ms) RELEASE SAVEPOINT active_record_1
3409
+  (0.3ms) SAVEPOINT active_record_1
3410
+ SQL (0.5ms) 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-07-22 02:26:57.612254"], ["updated_at", "2015-07-22 02:26:57.612254"]]
3411
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3412
+  (0.5ms) SELECT MAX("g5_updatable_locations"."updated_at") FROM "g5_updatable_locations"
3413
+  (0.3ms) ROLLBACK
3414
+  (0.3ms) BEGIN
3415
+  (0.2ms) SAVEPOINT active_record_1
3416
+ SQL (0.4ms) 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-07-22 02:26:57.617900"], ["updated_at", "2015-07-22 02:26:57.617900"]]
3417
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3418
+  (0.3ms) SAVEPOINT active_record_1
3419
+ SQL (0.4ms) 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-07-22 02:26:57.620927"], ["updated_at", "2015-07-22 02:26:57.620927"]]
3420
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3421
+ G5Updatable::Location Load (0.3ms) 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"]]
3422
+  (0.2ms) ROLLBACK
3423
+  (0.2ms) BEGIN
3424
+  (0.2ms) SAVEPOINT active_record_1
3425
+ SQL (0.4ms) 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-07-22 02:26:57.626796"], ["updated_at", "2015-07-22 02:26:57.626796"]]
3426
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3427
+  (0.3ms) SAVEPOINT active_record_1
3428
+ SQL (0.4ms) 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-07-22 02:26:57.629861"], ["updated_at", "2015-07-22 02:26:57.629861"]]
3429
+  (0.9ms) RELEASE SAVEPOINT active_record_1
3430
+ G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 [["urn", "g5-cl-1234-location"]]
3431
+  (0.2ms) ROLLBACK
3432
+  (0.3ms) BEGIN
3433
+  (0.3ms) ROLLBACK
3434
+  (0.3ms) BEGIN
3435
+  (0.3ms) SAVEPOINT active_record_1
3436
+ SQL (0.5ms) 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-07-22 02:26:57.638613"], ["updated_at", "2015-07-22 02:26:57.638613"]]
3437
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3438
+ Processing by G5Updatable::LocationsController#show as HTML
3439
+ Parameters: {"urn"=>"g5-cl-1234-location"}
3440
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]]
3441
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
3442
+  (0.4ms) ROLLBACK
3443
+  (0.2ms) BEGIN
3444
+  (0.3ms) SAVEPOINT active_record_1
3445
+ SQL (0.5ms) 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-07-22 02:26:57.647509"], ["updated_at", "2015-07-22 02:26:57.647509"]]
3446
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3447
+ Processing by G5Updatable::LocationsController#show as HTML
3448
+ Parameters: {"urn"=>"g5-cl-1234-location"}
3449
+ G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 LIMIT 1 [["urn", "g5-cl-1234-location"]]
3450
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.6ms)
3451
+  (0.3ms) ROLLBACK
3452
+  (0.2ms) BEGIN
3453
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
3454
+  (0.3ms) SAVEPOINT active_record_1
3455
+ SQL (0.4ms) 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-07-22 02:26:57.655950"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-07-22 02:26:57.656956"]]
3456
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3457
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]
3458
+ G5Updatable::Location Load (0.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
3459
+  (0.3ms) ROLLBACK
3460
+  (0.4ms) BEGIN
3461
+  (0.2ms) ROLLBACK
3462
+  (0.4ms) BEGIN
3463
+  (0.3ms) SAVEPOINT active_record_1
3464
+ SQL (0.5ms) 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-07-22 02:26:57.670168"], ["updated_at", "2015-07-22 02:26:57.670168"]]
3465
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3466
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
3467
+  (0.2ms) SAVEPOINT active_record_1
3468
+ SQL (0.4ms) 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-07-22 02:26:57.673926"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 304]]
3469
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3470
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]
3471
+  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations"
3472
+  (0.4ms) ROLLBACK
3473
+  (0.2ms) BEGIN
3474
+  (0.3ms) SAVEPOINT active_record_1
3475
+ SQL (0.4ms) 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-07-22 02:26:57.681854"], ["updated_at", "2015-07-22 02:26:57.681854"]]
3476
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3477
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
3478
+  (0.3ms) SAVEPOINT active_record_1
3479
+ SQL (0.5ms) 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-07-22 02:26:57.684855"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 305]]
3480
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3481
+ G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]
3482
+ G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1
3483
+  (0.3ms) ROLLBACK
3484
+  (0.4ms) BEGIN
3485
+  (0.3ms) SAVEPOINT active_record_1
3486
+ SQL (0.8ms) 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-07-22 02:26:57.693894"], ["updated_at", "2015-07-22 02:26:57.693894"]]
3487
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3488
+ G5Updatable::Location Load (0.7ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
3489
+  (0.3ms) SAVEPOINT active_record_1
3490
+ SQL (0.7ms) 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-07-22 02:26:57.697881"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 306]]
3491
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3492
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]
3493
+ G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1
3494
+  (0.3ms) ROLLBACK
3495
+  (0.2ms) BEGIN
3496
+  (0.3ms) SAVEPOINT active_record_1
3497
+ SQL (0.5ms) 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-07-22 02:26:57.707142"], ["updated_at", "2015-07-22 02:26:57.707142"]]
3498
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3499
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
3500
+  (1.9ms) SAVEPOINT active_record_1
3501
+ SQL (0.5ms) 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-07-22 02:26:57.710251"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 307]]
3502
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3503
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]
3504
+  (0.2ms) SAVEPOINT active_record_1
3505
+ SQL (0.3ms) 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-07-22 02:26:57.716721"], ["updated_at", "2015-07-22 02:26:57.716721"]]
3506
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3507
+  (0.2ms) SAVEPOINT active_record_1
3508
+ SQL (0.4ms) 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-07-22 02:26:57.719236"], ["updated_at", "2015-07-22 02:26:57.719236"]]
3509
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3510
+ G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 106]]
3511
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 308]]
3512
+  (0.2ms) ROLLBACK
3513
+  (0.2ms) BEGIN
3514
+  (0.3ms) SAVEPOINT active_record_1
3515
+ SQL (0.4ms) 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", "another_uid"], ["urn", "dead_urn"], ["client_uid", "client_uid"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["created_at", "2015-07-22 02:26:57.724860"], ["updated_at", "2015-07-22 02:26:57.724860"]]
3516
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3517
+ G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
3518
+  (0.2ms) SAVEPOINT active_record_1
3519
+ SQL (0.4ms) 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-07-22 02:26:57.727698"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-07-22 02:26:57.728582"]]
3520
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3521
+ G5Updatable::Location Load (1.5ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]
3522
+  (0.3ms) SAVEPOINT active_record_1
3523
+ SQL (0.2ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 309]]
3524
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3525
+  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = $1 AND "g5_updatable_locations"."client_uid" = $2 [["urn", "urn"], ["client_uid", "client_uid"]]
3526
+  (0.3ms) 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"]]
3527
+  (0.3ms) ROLLBACK
3528
+  (0.3ms) BEGIN
3529
+  (0.3ms) SAVEPOINT active_record_1
3530
+ SQL (0.5ms) 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-07-22 02:26:57.739368"], ["updated_at", "2015-07-22 02:26:57.739368"]]
3531
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3532
+  (0.3ms) SAVEPOINT active_record_1
3533
+ SQL (0.6ms) 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-07-22 02:26:57.742384"], ["updated_at", "2015-07-22 02:26:57.742384"]]
3534
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3535
+ G5Updatable::Location Load (0.6ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]
3536
+  (0.3ms) SAVEPOINT active_record_1
3537
+ SQL (0.6ms) DELETE FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 [["id", 311]]
3538
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3539
+  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]
3540
+  (0.3ms) SELECT COUNT(*) FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."client_uid" = $1 [["client_uid", "another_client_uid"]]
3541
+  (0.2ms) ROLLBACK
3542
+  (0.2ms) BEGIN
3543
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
3544
+  (0.3ms) SAVEPOINT active_record_1
3545
+ SQL (0.5ms) 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-07-22 02:26:57.752913"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-07-22 02:26:57.753852"]]
3546
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3547
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]
3548
+ G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1
3549
+  (0.2ms) ROLLBACK
3550
+  (0.3ms) BEGIN
3551
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
3552
+  (0.2ms) SAVEPOINT active_record_1
3553
+ SQL (0.5ms) 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-07-22 02:26:57.760829"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-07-22 02:26:57.761796"]]
3554
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3555
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]
3556
+  (0.4ms) SELECT COUNT(*) FROM "g5_updatable_locations"
3557
+  (0.3ms) ROLLBACK
3558
+  (0.2ms) BEGIN
3559
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
3560
+  (0.3ms) SAVEPOINT active_record_1
3561
+ SQL (0.4ms) 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-07-22 02:26:57.768077"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-07-22 02:26:57.768954"]]
3562
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3563
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]
3564
+ G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1
3565
+ G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = $1 LIMIT 1 [["name", "Location Name"]]
3566
+  (0.2ms) ROLLBACK
3567
+  (0.3ms) BEGIN
3568
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
3569
+  (0.3ms) SAVEPOINT active_record_1
3570
+ SQL (1.1ms) 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-07-22 02:26:57.776992"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-07-22 02:26:57.777921"]]
3571
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3572
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]
3573
+ G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1
3574
+  (0.2ms) ROLLBACK
3575
+  (0.3ms) BEGIN
3576
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
3577
+  (0.2ms) SAVEPOINT active_record_1
3578
+ SQL (0.4ms) 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-07-22 02:26:57.785385"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-07-22 02:26:57.786247"]]
3579
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3580
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]
3581
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1
3582
+  (0.2ms) ROLLBACK
3583
+  (0.4ms) BEGIN
3584
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
3585
+  (0.3ms) SAVEPOINT active_record_1
3586
+ SQL (0.4ms) 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-07-22 02:26:57.792255"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-07-22 02:26:57.793186"]]
3587
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3588
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]
3589
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1
3590
+  (0.2ms) ROLLBACK
3591
+  (0.2ms) BEGIN
3592
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
3593
+  (0.2ms) SAVEPOINT active_record_1
3594
+ SQL (0.8ms) 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-07-22 02:26:57.799218"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-07-22 02:26:57.800031"]]
3595
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3596
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]
3597
+  (0.3ms) SAVEPOINT active_record_1
3598
+ SQL (0.4ms) 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-07-22 02:26:57.804074"], ["updated_at", "2015-07-22 02:26:57.804074"]]
3599
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3600
+  (0.3ms) SAVEPOINT active_record_1
3601
+ SQL (0.4ms) 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-07-22 02:26:57.806857"], ["updated_at", "2015-07-22 02:26:57.806857"]]
3602
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3603
+ G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 107]]
3604
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 320]]
3605
+  (0.4ms) ROLLBACK
3606
+  (0.2ms) BEGIN
3607
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
3608
+  (0.2ms) SAVEPOINT active_record_1
3609
+ SQL (0.4ms) 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-07-22 02:26:57.813361"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["created_at", "2015-07-22 02:26:57.814207"]]
3610
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3611
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]
3612
+ G5Updatable::Location Load (0.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1
3613
+  (0.2ms) ROLLBACK
3614
+  (0.2ms) BEGIN
3615
+  (0.3ms) SAVEPOINT active_record_1
3616
+ SQL (0.4ms) 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-07-22 02:26:57.820938"], ["updated_at", "2015-07-22 02:26:57.820938"]]
3617
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3618
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
3619
+  (0.2ms) SAVEPOINT active_record_1
3620
+ SQL (0.5ms) 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-07-22 02:26:57.825267"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["id", 322]]
3621
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3622
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]
3623
+  (0.5ms) ROLLBACK
3624
+  (0.2ms) BEGIN
3625
+  (0.3ms) SAVEPOINT active_record_1
3626
+ SQL (0.5ms) 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", "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-07-22 02:26:57.834773"], ["updated_at", "2015-07-22 02:26:57.834773"]]
3627
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3628
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1
3629
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
3630
+  (0.2ms) SAVEPOINT active_record_1
3631
+ SQL (0.3ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2015-07-22 02:26:57.840208"], ["id", 323]]
3632
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3633
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]
3634
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 323]]
3635
+  (0.2ms) ROLLBACK
3636
+  (0.3ms) BEGIN
3637
+  (0.3ms) SAVEPOINT active_record_1
3638
+ SQL (0.4ms) 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", "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-07-22 02:26:57.847855"], ["updated_at", "2015-07-22 02:26:57.847855"]]
3639
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3640
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" DESC LIMIT 1
3641
+ G5Updatable::Location Load (0.3ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = $1 LIMIT 1 [["uid", "http://example.com/uid"]]
3642
+  (0.2ms) SAVEPOINT active_record_1
3643
+ SQL (0.4ms) UPDATE "g5_updatable_locations" SET "updated_at" = $1 WHERE "g5_updatable_locations"."id" = $2 [["updated_at", "2015-07-22 02:26:57.852612"], ["id", 324]]
3644
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3645
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE ("g5_updatable_locations"."urn" != 'urn') AND "g5_updatable_locations"."client_uid" = $1 [["client_uid", "client_uid"]]
3646
+  (0.2ms) SAVEPOINT active_record_1
3647
+ SQL (0.3ms) 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-07-22 02:26:57.856947"], ["updated_at", "2015-07-22 02:26:57.856947"]]
3648
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3649
+  (0.4ms) SAVEPOINT active_record_1
3650
+ SQL (0.5ms) 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-07-22 02:26:57.859427"], ["updated_at", "2015-07-22 02:26:57.859427"]]
3651
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3652
+ G5Updatable::Client Load (0.6ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 108]]
3653
+ G5Updatable::Location Load (1.4ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 325]]
3654
+  (0.4ms) ROLLBACK
3655
+  (0.3ms) BEGIN
3656
+  (0.3ms) ROLLBACK
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.8.0
4
+ version: 0.9.0
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-06-25 00:00:00.000000000 Z
11
+ date: 2015-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails