g5_updatable 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39a571cc047013031bbb850d7f67c41f670f3538
4
- data.tar.gz: 1b56bc2c70bb0eb86fda031069cbcb1c11f76f52
3
+ metadata.gz: 89ae34e96c35d1f57e40e37756079bd3b0fa3146
4
+ data.tar.gz: 3cf149bee21432142152f26bbc5781f018228d40
5
5
  SHA512:
6
- metadata.gz: 9e8198dc412ba81cf5b4190e1a2bcd8e28203e29ed98e69136f5e7615b5ade82cd569a67545a104f7ee3c011b33b777c0bf1548c38e1ed8b676a3985548a0828
7
- data.tar.gz: 0967808276864d27301e51554bfc23055d92273d8dee4eb1f1065e8f2328944a651873e7dd16ea91810af2bb6281a991fbb651493b29f291a6a6c35550b8d24c
6
+ metadata.gz: de8d2b835f0557baeb0f614d0766eee3f172978d7158ce43a0696ba04af885000df4ea538adcf8ace6f70a69886a3617c5cbe398721a7a207e42beda5bc93d6c
7
+ data.tar.gz: 661135e1007c78e41b493b4f9fb456fc622d8139fbb9da2fa3a962066fbda918614138f4d49073993fcda3a5a499fc0eb36ebece7e36ff91f4b4c6eebbee3a81
@@ -1,5 +1,5 @@
1
1
  module G5Updatable
2
- class ApplicationController < ActionController::Base
2
+ class BaseUpdatableController < ActionController::Base
3
3
  skip_before_filter :authenticate_user!
4
4
  skip_before_filter :verify_authenticity_token
5
5
  end
@@ -1,4 +1,4 @@
1
- class G5Updatable::FeedController < ApplicationController
1
+ class G5Updatable::FeedController < G5Updatable::BaseUpdatableController
2
2
  def update
3
3
  G5Updatable::ClientFeedProcessor.new(params[:client_uid]).work
4
4
  render json: {}, status: :ok
@@ -1,4 +1,4 @@
1
- class G5Updatable::LocationsController < ApplicationController
1
+ class G5Updatable::LocationsController < G5Updatable::BaseUpdatableController
2
2
  def show
3
3
  @location = G5Updatable::Location.find_by_urn(params[:urn])
4
4
  render json: @location
@@ -1,4 +1,4 @@
1
1
  module G5Updatable
2
- module ApplicationHelper
2
+ module BaseUpdatableHelper
3
3
  end
4
4
  end
@@ -1,3 +1,3 @@
1
1
  module G5Updatable
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
@@ -12625,3 +12625,255 @@ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
12625
12625
   (0.1ms) ROLLBACK
12626
12626
   (0.1ms) BEGIN
12627
12627
   (0.1ms) ROLLBACK
12628
+ ActiveRecord::SchemaMigration Load (6.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
12629
+  (0.1ms) BEGIN
12630
+  (0.1ms) ROLLBACK
12631
+  (0.0ms) BEGIN
12632
+  (0.1ms) SAVEPOINT active_record_1
12633
+ SQL (7.1ms) INSERT INTO "g5_updatable_locations" ("client_uid", "created_at", "name", "properties", "uid", "updated_at", "urn") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["client_uid", "http://example.com/clients/g5-c-1234-client"], ["created_at", "2015-03-10 18:20:31.790276"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["updated_at", "2015-03-10 18:20:31.790276"], ["urn", "g5-cl-1234-location"]]
12634
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12635
+ Processing by G5Updatable::LocationsController#show as HTML
12636
+ Parameters: {"urn"=>"g5-cl-1234-location"}
12637
+ G5Updatable::Location Load (6.9ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1
12638
+ Completed 200 OK in 11ms (Views: 0.4ms | ActiveRecord: 6.9ms)
12639
+  (0.2ms) ROLLBACK
12640
+  (0.0ms) BEGIN
12641
+  (0.0ms) SAVEPOINT active_record_1
12642
+ SQL (0.2ms) INSERT INTO "g5_updatable_locations" ("client_uid", "created_at", "name", "properties", "uid", "updated_at", "urn") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["client_uid", "http://example.com/clients/g5-c-1234-client"], ["created_at", "2015-03-10 18:20:31.816721"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["updated_at", "2015-03-10 18:20:31.816721"], ["urn", "g5-cl-1234-location"]]
12643
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12644
+ Processing by G5Updatable::LocationsController#show as HTML
12645
+ Parameters: {"urn"=>"g5-cl-1234-location"}
12646
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."urn" = 'g5-cl-1234-location' LIMIT 1
12647
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
12648
+  (0.1ms) ROLLBACK
12649
+  (0.0ms) BEGIN
12650
+  (0.1ms) ROLLBACK
12651
+  (0.0ms) BEGIN
12652
+  (0.1ms) ROLLBACK
12653
+  (0.0ms) BEGIN
12654
+  (0.0ms) ROLLBACK
12655
+  (0.0ms) BEGIN
12656
+  (0.0ms) SAVEPOINT active_record_1
12657
+ SQL (0.5ms) INSERT INTO "g5_updatable_clients" ("created_at", "name", "properties", "uid", "updated_at", "urn") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-10 18:20:31.833487"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["uid", "http://example.com/clients/g5-c-1234-client"], ["updated_at", "2015-03-10 18:20:31.833487"], ["urn", "g5-c-1234-client"]]
12658
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12659
+  (0.0ms) SAVEPOINT active_record_1
12660
+ SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("client_uid", "created_at", "name", "properties", "uid", "updated_at", "urn") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["client_uid", "http://example.com/clients/g5-c-1234-client"], ["created_at", "2015-03-10 18:20:31.835131"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["updated_at", "2015-03-10 18:20:31.835131"], ["urn", "g5-cl-1234-location"]]
12661
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12662
+ G5Updatable::Location Load (0.1ms) 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"]]
12663
+  (0.1ms) ROLLBACK
12664
+  (0.1ms) BEGIN
12665
+  (0.0ms) SAVEPOINT active_record_1
12666
+ SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("created_at", "name", "properties", "uid", "updated_at", "urn") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-10 18:20:31.844442"], ["name", "test client"], ["properties", "{\"key\":\"value\"}"], ["uid", "http://example.com/clients/g5-c-1234-client"], ["updated_at", "2015-03-10 18:20:31.844442"], ["urn", "g5-c-1234-client"]]
12667
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12668
+ G5Updatable::Client Load (0.4ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."id" = $1 LIMIT 1 [["id", 110]]
12669
+  (0.1ms) ROLLBACK
12670
+  (0.0ms) BEGIN
12671
+  (0.1ms) ROLLBACK
12672
+  (0.0ms) BEGIN
12673
+  (0.0ms) ROLLBACK
12674
+  (0.0ms) BEGIN
12675
+  (0.1ms) ROLLBACK
12676
+  (0.0ms) BEGIN
12677
+  (0.0ms) ROLLBACK
12678
+  (0.0ms) BEGIN
12679
+  (0.1ms) ROLLBACK
12680
+  (0.0ms) BEGIN
12681
+  (0.0ms) ROLLBACK
12682
+  (0.0ms) BEGIN
12683
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = 'http://example.com/uid' LIMIT 1
12684
+  (0.0ms) SAVEPOINT active_record_1
12685
+ SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("client_uid", "created_at", "name", "properties", "uid", "updated_at", "urn") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["client_uid", "client_uid"], ["created_at", "2015-03-10 18:20:31.853070"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["uid", "http://example.com/uid"], ["updated_at", "2015-03-10 18:20:31.853070"], ["urn", "urn"]]
12686
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12687
+  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"
12688
+  (0.1ms) ROLLBACK
12689
+  (0.0ms) BEGIN
12690
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = 'http://example.com/uid' LIMIT 1
12691
+  (0.0ms) SAVEPOINT active_record_1
12692
+ SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("client_uid", "created_at", "name", "properties", "uid", "updated_at", "urn") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["client_uid", "client_uid"], ["created_at", "2015-03-10 18:20:31.855309"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["uid", "http://example.com/uid"], ["updated_at", "2015-03-10 18:20:31.855309"], ["urn", "urn"]]
12693
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12694
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
12695
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."name" = 'Location Name' LIMIT 1
12696
+  (0.1ms) ROLLBACK
12697
+  (0.0ms) BEGIN
12698
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = 'http://example.com/uid' LIMIT 1
12699
+  (0.0ms) SAVEPOINT active_record_1
12700
+ SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("client_uid", "created_at", "name", "properties", "uid", "updated_at", "urn") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["client_uid", "client_uid"], ["created_at", "2015-03-10 18:20:31.857899"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["uid", "http://example.com/uid"], ["updated_at", "2015-03-10 18:20:31.857899"], ["urn", "urn"]]
12701
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12702
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
12703
+  (0.1ms) ROLLBACK
12704
+  (0.1ms) BEGIN
12705
+ G5Updatable::Location Load (0.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = 'http://example.com/uid' LIMIT 1
12706
+  (0.0ms) SAVEPOINT active_record_1
12707
+ SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("client_uid", "created_at", "name", "properties", "uid", "updated_at", "urn") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["client_uid", "client_uid"], ["created_at", "2015-03-10 18:20:31.859965"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["uid", "http://example.com/uid"], ["updated_at", "2015-03-10 18:20:31.859965"], ["urn", "urn"]]
12708
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12709
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
12710
+  (0.1ms) ROLLBACK
12711
+  (0.0ms) BEGIN
12712
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = 'http://example.com/uid' LIMIT 1
12713
+  (0.0ms) SAVEPOINT active_record_1
12714
+ SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("client_uid", "created_at", "name", "properties", "uid", "updated_at", "urn") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["client_uid", "client_uid"], ["created_at", "2015-03-10 18:20:31.861976"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["uid", "http://example.com/uid"], ["updated_at", "2015-03-10 18:20:31.861976"], ["urn", "urn"]]
12715
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12716
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
12717
+  (0.1ms) ROLLBACK
12718
+  (0.0ms) BEGIN
12719
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = 'http://example.com/uid' LIMIT 1
12720
+  (0.0ms) SAVEPOINT active_record_1
12721
+ SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("client_uid", "created_at", "name", "properties", "uid", "updated_at", "urn") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["client_uid", "client_uid"], ["created_at", "2015-03-10 18:20:31.864188"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["uid", "http://example.com/uid"], ["updated_at", "2015-03-10 18:20:31.864188"], ["urn", "urn"]]
12722
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12723
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
12724
+  (0.1ms) ROLLBACK
12725
+  (0.0ms) BEGIN
12726
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = 'http://example.com/uid' LIMIT 1
12727
+  (0.0ms) SAVEPOINT active_record_1
12728
+ SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("client_uid", "created_at", "name", "properties", "uid", "updated_at", "urn") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["client_uid", "client_uid"], ["created_at", "2015-03-10 18:20:31.866129"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["uid", "http://example.com/uid"], ["updated_at", "2015-03-10 18:20:31.866129"], ["urn", "urn"]]
12729
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12730
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
12731
+  (0.0ms) ROLLBACK
12732
+  (0.0ms) BEGIN
12733
+  (0.1ms) SAVEPOINT active_record_1
12734
+ SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("client_uid", "created_at", "name", "properties", "uid", "updated_at", "urn") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["client_uid", "http://example.com/clients/g5-c-1234-client"], ["created_at", "2015-03-10 18:20:31.867891"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["uid", "http://example.com/uid"], ["updated_at", "2015-03-10 18:20:31.867891"], ["urn", "old"]]
12735
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12736
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = 'http://example.com/uid' LIMIT 1
12737
+  (0.0ms) SAVEPOINT active_record_1
12738
+ SQL (0.1ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "name" = $2, "properties" = $3, "updated_at" = $4, "urn" = $5 WHERE "g5_updatable_locations"."id" = 138 [["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["updated_at", "2015-03-10 18:20:31.869077"], ["urn", "urn"]]
12739
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12740
+  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_locations"
12741
+  (0.1ms) ROLLBACK
12742
+  (0.0ms) BEGIN
12743
+  (0.0ms) SAVEPOINT active_record_1
12744
+ SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("client_uid", "created_at", "name", "properties", "uid", "updated_at", "urn") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["client_uid", "http://example.com/clients/g5-c-1234-client"], ["created_at", "2015-03-10 18:20:31.871569"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["uid", "http://example.com/uid"], ["updated_at", "2015-03-10 18:20:31.871569"], ["urn", "old"]]
12745
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12746
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = 'http://example.com/uid' LIMIT 1
12747
+  (0.0ms) SAVEPOINT active_record_1
12748
+ SQL (0.1ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "name" = $2, "properties" = $3, "updated_at" = $4, "urn" = $5 WHERE "g5_updatable_locations"."id" = 139 [["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["updated_at", "2015-03-10 18:20:31.872817"], ["urn", "urn"]]
12749
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12750
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
12751
+  (0.1ms) ROLLBACK
12752
+  (0.0ms) BEGIN
12753
+  (0.0ms) SAVEPOINT active_record_1
12754
+ SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("client_uid", "created_at", "name", "properties", "uid", "updated_at", "urn") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["client_uid", "http://example.com/clients/g5-c-1234-client"], ["created_at", "2015-03-10 18:20:31.874678"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["uid", "http://example.com/uid"], ["updated_at", "2015-03-10 18:20:31.874678"], ["urn", "old"]]
12755
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12756
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."uid" = 'http://example.com/uid' LIMIT 1
12757
+  (0.0ms) SAVEPOINT active_record_1
12758
+ SQL (0.1ms) UPDATE "g5_updatable_locations" SET "client_uid" = $1, "name" = $2, "properties" = $3, "updated_at" = $4, "urn" = $5 WHERE "g5_updatable_locations"."id" = 140 [["client_uid", "client_uid"], ["name", "Location Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"client_uid\":\"client_uid\",\"name\":\"Location Name\"}"], ["updated_at", "2015-03-10 18:20:31.875847"], ["urn", "urn"]]
12759
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12760
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" ORDER BY "g5_updatable_locations"."id" ASC LIMIT 1
12761
+  (0.1ms) ROLLBACK
12762
+  (0.0ms) BEGIN
12763
+  (0.0ms) ROLLBACK
12764
+  (0.0ms) BEGIN
12765
+  (0.1ms) ROLLBACK
12766
+  (0.0ms) BEGIN
12767
+  (0.0ms) ROLLBACK
12768
+  (0.0ms) BEGIN
12769
+  (0.0ms) ROLLBACK
12770
+  (0.0ms) BEGIN
12771
+  (0.0ms) SAVEPOINT active_record_1
12772
+ SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("created_at", "name", "properties", "uid", "updated_at", "urn") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-10 18:20:31.887624"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["uid", "http://example.com/clients/g5-c-1234-client"], ["updated_at", "2015-03-10 18:20:31.887624"], ["urn", "g5-c-1234-client"]]
12773
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12774
+  (0.0ms) SAVEPOINT active_record_1
12775
+ SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("client_uid", "created_at", "name", "properties", "uid", "updated_at", "urn") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["client_uid", "http://example.com/clients/g5-c-1234-client"], ["created_at", "2015-03-10 18:20:31.888797"], ["name", "test location"], ["properties", "{\"domain\":\"http://myloc.com\"}"], ["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["updated_at", "2015-03-10 18:20:31.888797"], ["urn", "g5-cl-1234-location"]]
12776
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12777
+ G5Updatable::Client Load (0.1ms) 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"]]
12778
+  (0.1ms) ROLLBACK
12779
+  (0.0ms) BEGIN
12780
+  (0.0ms) SAVEPOINT active_record_1
12781
+ SQL (0.1ms) INSERT INTO "g5_updatable_locations" ("client_uid", "created_at", "name", "properties", "uid", "updated_at", "urn") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["client_uid", "http://example.com/clients/g5-c-1234-client"], ["created_at", "2015-03-10 18:20:31.893770"], ["name", "test location"], ["properties", "{\"key\":\"value\"}"], ["uid", "http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location"], ["updated_at", "2015-03-10 18:20:31.893770"], ["urn", "g5-cl-1234-location"]]
12782
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12783
+ G5Updatable::Location Load (0.1ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations" WHERE "g5_updatable_locations"."id" = $1 LIMIT 1 [["id", 142]]
12784
+  (0.1ms) ROLLBACK
12785
+  (0.0ms) BEGIN
12786
+  (0.0ms) ROLLBACK
12787
+  (0.0ms) BEGIN
12788
+  (0.1ms) ROLLBACK
12789
+  (0.0ms) BEGIN
12790
+  (0.0ms) ROLLBACK
12791
+  (0.0ms) BEGIN
12792
+ G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1
12793
+  (0.0ms) SAVEPOINT active_record_1
12794
+ SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("created_at", "name", "properties", "uid", "updated_at", "urn") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-10 18:20:31.900372"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["uid", "http://example.com/uid"], ["updated_at", "2015-03-10 18:20:31.900372"], ["urn", "urn"]]
12795
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12796
+  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"
12797
+  (0.1ms) ROLLBACK
12798
+  (0.0ms) BEGIN
12799
+ G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1
12800
+  (0.0ms) SAVEPOINT active_record_1
12801
+ SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("created_at", "name", "properties", "uid", "updated_at", "urn") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-10 18:20:31.902518"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["uid", "http://example.com/uid"], ["updated_at", "2015-03-10 18:20:31.902518"], ["urn", "urn"]]
12802
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12803
+ G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
12804
+ G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."name" = 'Client Name' LIMIT 1
12805
+  (0.1ms) ROLLBACK
12806
+  (0.1ms) BEGIN
12807
+ G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1
12808
+  (0.0ms) SAVEPOINT active_record_1
12809
+ SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("created_at", "name", "properties", "uid", "updated_at", "urn") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-10 18:20:31.905181"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["uid", "http://example.com/uid"], ["updated_at", "2015-03-10 18:20:31.905181"], ["urn", "urn"]]
12810
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12811
+ G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
12812
+  (0.1ms) ROLLBACK
12813
+  (0.0ms) BEGIN
12814
+ G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1
12815
+  (0.0ms) SAVEPOINT active_record_1
12816
+ SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("created_at", "name", "properties", "uid", "updated_at", "urn") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-10 18:20:31.907365"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["uid", "http://example.com/uid"], ["updated_at", "2015-03-10 18:20:31.907365"], ["urn", "urn"]]
12817
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12818
+ G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
12819
+  (0.1ms) ROLLBACK
12820
+  (0.1ms) BEGIN
12821
+ G5Updatable::Client Load (0.3ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1
12822
+  (0.1ms) SAVEPOINT active_record_1
12823
+ SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("created_at", "name", "properties", "uid", "updated_at", "urn") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-10 18:20:31.910092"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["uid", "http://example.com/uid"], ["updated_at", "2015-03-10 18:20:31.910092"], ["urn", "urn"]]
12824
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12825
+ G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
12826
+  (0.1ms) ROLLBACK
12827
+  (0.1ms) BEGIN
12828
+ G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1
12829
+  (0.1ms) SAVEPOINT active_record_1
12830
+ SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("created_at", "name", "properties", "uid", "updated_at", "urn") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-10 18:20:31.914027"], ["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["uid", "http://example.com/uid"], ["updated_at", "2015-03-10 18:20:31.914027"], ["urn", "urn"]]
12831
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12832
+ G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
12833
+  (0.1ms) ROLLBACK
12834
+  (0.0ms) BEGIN
12835
+  (0.1ms) SAVEPOINT active_record_1
12836
+ SQL (0.2ms) INSERT INTO "g5_updatable_clients" ("created_at", "name", "properties", "uid", "updated_at", "urn") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-10 18:20:31.917269"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["uid", "http://example.com/uid"], ["updated_at", "2015-03-10 18:20:31.917269"], ["urn", "old"]]
12837
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12838
+ G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1
12839
+  (0.1ms) SAVEPOINT active_record_1
12840
+ SQL (0.2ms) UPDATE "g5_updatable_clients" SET "name" = $1, "properties" = $2, "updated_at" = $3, "urn" = $4 WHERE "g5_updatable_clients"."id" = 118 [["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-03-10 18:20:31.919057"], ["urn", "urn"]]
12841
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12842
+  (0.1ms) SELECT COUNT(*) FROM "g5_updatable_clients"
12843
+  (0.1ms) ROLLBACK
12844
+  (0.0ms) BEGIN
12845
+  (0.1ms) SAVEPOINT active_record_1
12846
+ SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("created_at", "name", "properties", "uid", "updated_at", "urn") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-10 18:20:31.921625"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["uid", "http://example.com/uid"], ["updated_at", "2015-03-10 18:20:31.921625"], ["urn", "old"]]
12847
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12848
+ G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1
12849
+  (0.0ms) SAVEPOINT active_record_1
12850
+ SQL (0.1ms) UPDATE "g5_updatable_clients" SET "name" = $1, "properties" = $2, "updated_at" = $3, "urn" = $4 WHERE "g5_updatable_clients"."id" = 119 [["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-03-10 18:20:31.923262"], ["urn", "urn"]]
12851
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12852
+ G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
12853
+  (0.1ms) ROLLBACK
12854
+  (0.0ms) BEGIN
12855
+  (0.1ms) SAVEPOINT active_record_1
12856
+ SQL (0.1ms) INSERT INTO "g5_updatable_clients" ("created_at", "name", "properties", "uid", "updated_at", "urn") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-10 18:20:31.925656"], ["name", "test client"], ["properties", "{\"city\":\"Test Client\"}"], ["uid", "http://example.com/uid"], ["updated_at", "2015-03-10 18:20:31.925656"], ["urn", "old"]]
12857
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12858
+ G5Updatable::Client Load (0.2ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" WHERE "g5_updatable_clients"."uid" = 'http://example.com/uid' LIMIT 1
12859
+  (0.0ms) SAVEPOINT active_record_1
12860
+ SQL (0.1ms) UPDATE "g5_updatable_clients" SET "name" = $1, "properties" = $2, "updated_at" = $3, "urn" = $4 WHERE "g5_updatable_clients"."id" = 120 [["name", "Client Name"], ["properties", "{\"uid\":\"http://example.com/uid\",\"urn\":\"urn\",\"name\":\"Client Name\"}"], ["updated_at", "2015-03-10 18:20:31.927160"], ["urn", "urn"]]
12861
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12862
+ G5Updatable::Client Load (0.1ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients" ORDER BY "g5_updatable_clients"."id" ASC LIMIT 1
12863
+  (0.1ms) ROLLBACK
12864
+  (0.0ms) BEGIN
12865
+  (0.1ms) ROLLBACK
12866
+  (0.0ms) BEGIN
12867
+  (0.1ms) ROLLBACK
12868
+  (0.0ms) BEGIN
12869
+  (0.0ms) ROLLBACK
12870
+  (0.0ms) BEGIN
12871
+  (0.1ms) ROLLBACK
12872
+  (0.0ms) BEGIN
12873
+  (0.1ms) ROLLBACK
12874
+  (0.0ms) BEGIN
12875
+  (0.1ms) ROLLBACK
12876
+  (0.0ms) BEGIN
12877
+  (0.0ms) ROLLBACK
12878
+  (0.0ms) BEGIN
12879
+  (0.1ms) 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.4.1
4
+ version: 0.4.2
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-03-05 00:00:00.000000000 Z
11
+ date: 2015-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -152,14 +152,14 @@ files:
152
152
  - app/concerns/g5_updatable/belongs_to_location.rb
153
153
  - app/concerns/g5_updatable/first_class_properties.rb
154
154
  - app/concerns/g5_updatable/urn_as_parameter.rb
155
- - app/controllers/g5_updatable/application_controller.rb
155
+ - app/controllers/g5_updatable/base_updatable_controller.rb
156
156
  - app/controllers/g5_updatable/feed_controller.rb
157
157
  - app/controllers/g5_updatable/locations_controller.rb
158
- - app/helpers/g5_updatable/application_helper.rb
158
+ - app/helpers/g5_updatable/base_updatable_helper.rb
159
159
  - app/models/g5_updatable/client.rb
160
160
  - app/models/g5_updatable/location.rb
161
161
  - app/serializers/g5_updatable/location_serializer.rb
162
- - app/views/layouts/g5_updatable/application.html.erb
162
+ - app/views/layouts/g5_updatable/base_updatable.html.erb
163
163
  - config/routes.rb
164
164
  - db/migrate/20140709222005_create_g5_updatable_clients_and_locations.rb
165
165
  - db/migrate/20141030211945_create_integration_setting.rb