guts 1.1.0 → 1.1.1

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: 063c0b3b58da97d22e317a13b8006598714521a7
4
- data.tar.gz: 3b4ebab95d68a24f2cbdb17d5735e7ddafafe1d2
3
+ metadata.gz: e563792bea97bf6bd51688272ab164b9715a8204
4
+ data.tar.gz: fe934a1ace2151c86b6adc94dab872c6b486dfb5
5
5
  SHA512:
6
- metadata.gz: 57470bdd62efc910d7b6dc8aa58023b076f923700867b6cdcc7893b54aa50a9f857b55d77608ace0e5674f3bf6f7789cdf7c786afd5ef5e309c6ec940a0b3081
7
- data.tar.gz: 139c7cb51ca0b79f9a6b1c14ac57d22c1c3832600a568e9975f05f2ea67d67f0266cbe39416713093b34306b70fb472f7cc465a088a0e7c219f8274335e696d2
6
+ metadata.gz: 4482f996dd7378c2b4acfadfdfe7f634e0a84a25bf14e7493aab0a61892786bee45fb3622544554be1741dca1d7817442a0561670726258bb6f45a98c7090a21
7
+ data.tar.gz: 0258d2c7c05e66694424cabb06919cc71ecee427b2d19c0f106c64efa6b68f0ec06f3ab19c42c9228ae8a749bf6e4d86efa2b310c95d5f2a844304a128fce0ab
@@ -1,3 +1,7 @@
1
+ # Version 1.1.1
2
+
3
+ + Fixed issue where migration for adding `site_id` failed due to invalid scope
4
+
1
5
  # Version 1.1.0
2
6
 
3
7
  + Added multisite support. See `doc/extra/multisite.md` and PR [#1][]
data/README.md CHANGED
@@ -15,7 +15,7 @@ This engine is simply released to provide a basic, but full-featured CMS solutio
15
15
  Include the gem in your `Gemfile`:
16
16
 
17
17
  ``` ruby
18
- gem 'guts', "~> 1.0"
18
+ gem 'guts', "~> 1.1"
19
19
  # or for master: gem "guts", git: "git@github.com:tyler-king/guts.git"
20
20
  ```
21
21
 
@@ -1,13 +1,21 @@
1
1
  class AddSiteToGuts < ActiveRecord::Migration
2
2
  def change
3
- add_reference :guts_types, :site, index: true, foreign_key: true
4
- add_reference :guts_categories, :site, index: true, foreign_key: true
5
- add_reference :guts_contents, :site, index: true, foreign_key: true
6
- add_reference :guts_navigations, :site, index: true, foreign_key: true
7
- add_reference :guts_navigation_items, :site, index: true, foreign_key: true
8
- add_reference :guts_metafields, :site, index: true, foreign_key: true
9
- add_reference :guts_trackers, :site, index: true, foreign_key: true
10
- add_reference :guts_options, :site, index: true, foreign_key: true
11
- add_reference :guts_media, :site, index: true, foreign_key: true
3
+ tables = [
4
+ :guts_types,
5
+ :guts_categories,
6
+ :guts_contents,
7
+ :guts_navigations,
8
+ :guts_navigation_items,
9
+ :guts_metafields,
10
+ :guts_trackers,
11
+ :guts_options,
12
+ :guts_media
13
+ ]
14
+
15
+ tables.each do |table|
16
+ change_table table do |t|
17
+ t.references :site, index: true
18
+ end
19
+ end
12
20
  end
13
21
  end
@@ -1,5 +1,5 @@
1
1
  # Guts' module namespace
2
2
  module Guts
3
3
  # Current Guts version
4
- VERSION = '1.1.0'.freeze
4
+ VERSION = '1.1.1'.freeze
5
5
  end
Binary file
@@ -661716,3 +661716,575 @@ Guts::SiteTest: test_should_not_create_without_name_or_domain
661716
661716
  Guts::SiteTest: test_should_be_trackable
661717
661717
  ----------------------------------------
661718
661718
   (0.0ms) rollback transaction
661719
+  (1.1ms) CREATE TABLE "friendly_id_slugs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar NOT NULL, "sluggable_id" integer NOT NULL, "sluggable_type" varchar(50), "scope" varchar, "created_at" datetime) 
661720
+  (0.5ms) select sqlite_version(*)
661721
+  (1.0ms) CREATE UNIQUE INDEX "index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope" ON "friendly_id_slugs" ("slug", "sluggable_type", "scope")
661722
+  (0.2ms) SELECT sql
661723
+ FROM sqlite_master
661724
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'
661725
+ UNION ALL
661726
+ SELECT sql
661727
+ FROM sqlite_temp_master
661728
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'
661729
+
661730
+  (1.0ms) CREATE INDEX "index_friendly_id_slugs_on_slug_and_sluggable_type" ON "friendly_id_slugs" ("slug", "sluggable_type")
661731
+  (0.1ms) SELECT sql
661732
+ FROM sqlite_master
661733
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'
661734
+ UNION ALL
661735
+ SELECT sql
661736
+ FROM sqlite_temp_master
661737
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'
661738
+
661739
+  (0.1ms)  SELECT sql
661740
+ FROM sqlite_master
661741
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'
661742
+ UNION ALL
661743
+ SELECT sql
661744
+ FROM sqlite_temp_master
661745
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'
661746
+ 
661747
+  (0.9ms) CREATE INDEX "index_friendly_id_slugs_on_sluggable_id" ON "friendly_id_slugs" ("sluggable_id")
661748
+  (0.2ms)  SELECT sql
661749
+ FROM sqlite_master
661750
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
661751
+ UNION ALL
661752
+ SELECT sql
661753
+ FROM sqlite_temp_master
661754
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
661755
+ 
661756
+  (0.1ms) SELECT sql
661757
+ FROM sqlite_master
661758
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'
661759
+ UNION ALL
661760
+ SELECT sql
661761
+ FROM sqlite_temp_master
661762
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'
661763
+
661764
+  (0.1ms)  SELECT sql
661765
+ FROM sqlite_master
661766
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'
661767
+ UNION ALL
661768
+ SELECT sql
661769
+ FROM sqlite_temp_master
661770
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'
661771
+ 
661772
+  (10.1ms) CREATE INDEX "index_friendly_id_slugs_on_sluggable_type" ON "friendly_id_slugs" ("sluggable_type")
661773
+  (0.8ms) CREATE TABLE "guts_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "slug" varchar, "metafields" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "site_id" integer) 
661774
+  (1.0ms) CREATE INDEX "index_guts_categories_on_site_id" ON "guts_categories" ("site_id")
661775
+  (0.1ms)  SELECT sql
661776
+ FROM sqlite_master
661777
+ WHERE name='index_guts_categories_on_site_id' AND type='index'
661778
+ UNION ALL
661779
+ SELECT sql
661780
+ FROM sqlite_temp_master
661781
+ WHERE name='index_guts_categories_on_site_id' AND type='index'
661782
+ 
661783
+  (0.9ms) CREATE UNIQUE INDEX "index_guts_categories_on_slug" ON "guts_categories" ("slug")
661784
+  (0.8ms) CREATE TABLE "guts_categorizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "content_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
661785
+  (1.0ms) CREATE TABLE "guts_contents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "slug" varchar, "tags" text, "content" text, "visible" integer(1) DEFAULT 1, "type_id" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "site_id" integer)
661786
+  (0.8ms) CREATE INDEX "index_guts_contents_on_site_id" ON "guts_contents" ("site_id")
661787
+  (0.1ms) SELECT sql
661788
+ FROM sqlite_master
661789
+ WHERE name='index_guts_contents_on_site_id' AND type='index'
661790
+ UNION ALL
661791
+ SELECT sql
661792
+ FROM sqlite_temp_master
661793
+ WHERE name='index_guts_contents_on_site_id' AND type='index'
661794
+
661795
+  (0.8ms) CREATE UNIQUE INDEX "index_guts_contents_on_slug" ON "guts_contents" ("slug")
661796
+  (0.8ms) CREATE TABLE "guts_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "slug" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
661797
+  (0.8ms) CREATE UNIQUE INDEX "index_guts_groups_on_slug" ON "guts_groups" ("slug")
661798
+  (0.9ms) CREATE TABLE "guts_media" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "tags" text, "position" integer DEFAULT 0, "filable_id" integer, "filable_type" varchar, "caption" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "file_file_name" varchar, "file_content_type" varchar, "file_file_size" integer, "file_updated_at" datetime, "site_id" integer)
661799
+  (0.8ms) CREATE INDEX "index_guts_media_on_filable_type_and_filable_id" ON "guts_media" ("filable_type", "filable_id")
661800
+  (0.1ms) SELECT sql
661801
+ FROM sqlite_master
661802
+ WHERE name='index_guts_media_on_filable_type_and_filable_id' AND type='index'
661803
+ UNION ALL
661804
+ SELECT sql
661805
+ FROM sqlite_temp_master
661806
+ WHERE name='index_guts_media_on_filable_type_and_filable_id' AND type='index'
661807
+
661808
+  (0.9ms) CREATE INDEX "index_guts_media_on_site_id" ON "guts_media" ("site_id")
661809
+  (0.9ms) CREATE TABLE "guts_metafields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar, "value" text, "fieldable_id" integer, "fieldable_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "site_id" integer)
661810
+  (0.8ms) CREATE INDEX "index_guts_metafields_on_fieldable_type_and_fieldable_id" ON "guts_metafields" ("fieldable_type", "fieldable_id")
661811
+  (0.2ms) SELECT sql
661812
+ FROM sqlite_master
661813
+ WHERE name='index_guts_metafields_on_fieldable_type_and_fieldable_id' AND type='index'
661814
+ UNION ALL
661815
+ SELECT sql
661816
+ FROM sqlite_temp_master
661817
+ WHERE name='index_guts_metafields_on_fieldable_type_and_fieldable_id' AND type='index'
661818
+
661819
+  (1.2ms) CREATE INDEX "index_guts_metafields_on_site_id" ON "guts_metafields" ("site_id")
661820
+  (1.0ms) CREATE TABLE "guts_navigation_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "custom" varchar, "position" integer DEFAULT 0, "navigatable_id" integer, "navigatable_type" varchar, "navigation_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "site_id" integer)
661821
+  (0.8ms) CREATE INDEX "index_nav_items_on_nav_with_type_and_id" ON "guts_navigation_items" ("navigatable_type", "navigatable_id")
661822
+  (0.1ms) SELECT sql
661823
+ FROM sqlite_master
661824
+ WHERE name='index_nav_items_on_nav_with_type_and_id' AND type='index'
661825
+ UNION ALL
661826
+ SELECT sql
661827
+ FROM sqlite_temp_master
661828
+ WHERE name='index_nav_items_on_nav_with_type_and_id' AND type='index'
661829
+
661830
+  (0.7ms) CREATE INDEX "index_guts_navigation_items_on_site_id" ON "guts_navigation_items" ("site_id")
661831
+  (0.8ms) CREATE TABLE "guts_navigations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "slug" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "site_id" integer)
661832
+  (0.8ms) CREATE INDEX "index_guts_navigations_on_site_id" ON "guts_navigations" ("site_id")
661833
+  (0.1ms) SELECT sql
661834
+ FROM sqlite_master
661835
+ WHERE name='index_guts_navigations_on_site_id' AND type='index'
661836
+ UNION ALL
661837
+ SELECT sql
661838
+ FROM sqlite_temp_master
661839
+ WHERE name='index_guts_navigations_on_site_id' AND type='index'
661840
+
661841
+  (0.8ms) CREATE UNIQUE INDEX "index_guts_navigations_on_slug" ON "guts_navigations" ("slug")
661842
+  (0.8ms) CREATE TABLE "guts_options" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar, "value" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "site_id" integer)
661843
+  (0.8ms) CREATE INDEX "index_guts_options_on_site_id" ON "guts_options" ("site_id")
661844
+  (0.8ms) CREATE TABLE "guts_sites" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "domain" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "default" boolean DEFAULT 'f')
661845
+  (0.9ms) CREATE TABLE "guts_trackers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "object_id" integer, "object_type" varchar, "params" text, "action" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "site_id" integer) 
661846
+  (0.7ms) CREATE INDEX "index_guts_trackers_on_object_type_and_object_id" ON "guts_trackers" ("object_type", "object_id")
661847
+  (0.1ms)  SELECT sql
661848
+ FROM sqlite_master
661849
+ WHERE name='index_guts_trackers_on_object_type_and_object_id' AND type='index'
661850
+ UNION ALL
661851
+ SELECT sql
661852
+ FROM sqlite_temp_master
661853
+ WHERE name='index_guts_trackers_on_object_type_and_object_id' AND type='index'
661854
+ 
661855
+  (0.8ms) CREATE INDEX "index_guts_trackers_on_site_id" ON "guts_trackers" ("site_id")
661856
+  (0.9ms) CREATE TABLE "guts_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "slug" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "site_id" integer) 
661857
+  (0.7ms) CREATE INDEX "index_guts_types_on_site_id" ON "guts_types" ("site_id")
661858
+  (0.1ms)  SELECT sql
661859
+ FROM sqlite_master
661860
+ WHERE name='index_guts_types_on_site_id' AND type='index'
661861
+ UNION ALL
661862
+ SELECT sql
661863
+ FROM sqlite_temp_master
661864
+ WHERE name='index_guts_types_on_site_id' AND type='index'
661865
+ 
661866
+  (0.9ms) CREATE UNIQUE INDEX "index_guts_types_on_slug" ON "guts_types" ("slug")
661867
+  (0.9ms) CREATE TABLE "guts_user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "group_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
661868
+  (0.8ms) CREATE TABLE "guts_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "password_digest" varchar, "password_token" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
661869
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
661870
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
661871
+  (0.1ms) SELECT version FROM "schema_migrations"
661872
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160410203608')
661873
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
661874
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
661875
+ Migrating to CreateFriendlyIdSlugs (20160309030231)
661876
+  (0.1ms) begin transaction
661877
+  (0.1ms) CREATE TABLE "friendly_id_slugs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar NOT NULL, "sluggable_id" integer NOT NULL, "sluggable_type" varchar(50), "scope" varchar, "created_at" datetime) 
661878
+  (0.1ms) rollback transaction
661879
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
661880
+  (0.1ms) select sqlite_version(*)
661881
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
661882
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
661883
+ Migrating to CreateFriendlyIdSlugs (20160309030231)
661884
+  (0.1ms) begin transaction
661885
+  (0.4ms) CREATE TABLE "friendly_id_slugs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar NOT NULL, "sluggable_id" integer NOT NULL, "sluggable_type" varchar(50), "scope" varchar, "created_at" datetime)
661886
+  (0.1ms) CREATE INDEX "index_friendly_id_slugs_on_sluggable_id" ON "friendly_id_slugs" ("sluggable_id")
661887
+  (0.1ms) SELECT sql
661888
+ FROM sqlite_master
661889
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
661890
+ UNION ALL
661891
+ SELECT sql
661892
+ FROM sqlite_temp_master
661893
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
661894
+
661895
+  (0.1ms) CREATE INDEX "index_friendly_id_slugs_on_slug_and_sluggable_type" ON "friendly_id_slugs" ("slug", "sluggable_type")
661896
+  (0.0ms) SELECT sql
661897
+ FROM sqlite_master
661898
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'
661899
+ UNION ALL
661900
+ SELECT sql
661901
+ FROM sqlite_temp_master
661902
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'
661903
+
661904
+  (0.0ms)  SELECT sql
661905
+ FROM sqlite_master
661906
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
661907
+ UNION ALL
661908
+ SELECT sql
661909
+ FROM sqlite_temp_master
661910
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
661911
+ 
661912
+  (0.4ms) CREATE UNIQUE INDEX "index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope" ON "friendly_id_slugs" ("slug", "sluggable_type", "scope")
661913
+  (0.1ms)  SELECT sql
661914
+ FROM sqlite_master
661915
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'
661916
+ UNION ALL
661917
+ SELECT sql
661918
+ FROM sqlite_temp_master
661919
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'
661920
+ 
661921
+  (0.1ms) SELECT sql
661922
+ FROM sqlite_master
661923
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'
661924
+ UNION ALL
661925
+ SELECT sql
661926
+ FROM sqlite_temp_master
661927
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'
661928
+
661929
+  (0.0ms)  SELECT sql
661930
+ FROM sqlite_master
661931
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
661932
+ UNION ALL
661933
+ SELECT sql
661934
+ FROM sqlite_temp_master
661935
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
661936
+ 
661937
+  (0.1ms) CREATE INDEX "index_friendly_id_slugs_on_sluggable_type" ON "friendly_id_slugs" ("sluggable_type")
661938
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030231"]]
661939
+  (1.0ms) commit transaction
661940
+ Migrating to CreateGutsTypes (20160309030232)
661941
+  (0.1ms) begin transaction
661942
+  (0.3ms) CREATE TABLE "guts_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "slug" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
661943
+  (0.4ms) CREATE UNIQUE INDEX "index_guts_types_on_slug" ON "guts_types" ("slug")
661944
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030232"]]
661945
+  (0.9ms) commit transaction
661946
+ Migrating to CreateGutsUsers (20160309030233)
661947
+  (0.1ms) begin transaction
661948
+  (0.9ms) CREATE TABLE "guts_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "password_digest" varchar, "password_token" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
661949
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030233"]]
661950
+  (0.8ms) commit transaction
661951
+ Migrating to CreateGutsGroups (20160309030234)
661952
+  (0.1ms) begin transaction
661953
+  (0.4ms) CREATE TABLE "guts_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "slug" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
661954
+  (0.3ms) CREATE UNIQUE INDEX "index_guts_groups_on_slug" ON "guts_groups" ("slug")
661955
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030234"]]
661956
+  (0.9ms) commit transaction
661957
+ Migrating to CreateGutsUserGroups (20160309030235)
661958
+  (0.1ms) begin transaction
661959
+  (0.3ms) CREATE TABLE "guts_user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "group_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
661960
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030235"]]
661961
+  (0.8ms) commit transaction
661962
+ Migrating to CreateGutsCategories (20160309030236)
661963
+  (0.1ms) begin transaction
661964
+  (0.3ms) CREATE TABLE "guts_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "slug" varchar, "metafields" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
661965
+  (0.3ms) CREATE UNIQUE INDEX "index_guts_categories_on_slug" ON "guts_categories" ("slug")
661966
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030236"]]
661967
+  (1.1ms) commit transaction
661968
+ Migrating to CreateGutsContents (20160309030237)
661969
+  (0.2ms) begin transaction
661970
+  (0.9ms) CREATE TABLE "guts_contents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "slug" varchar, "tags" text, "content" text, "visible" integer(1) DEFAULT 1, "type_id" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
661971
+  (4.0ms) CREATE UNIQUE INDEX "index_guts_contents_on_slug" ON "guts_contents" ("slug")
661972
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030237"]]
661973
+  (1.3ms) commit transaction
661974
+ Migrating to CreateGutsCategorizations (20160309030238)
661975
+  (0.1ms) begin transaction
661976
+  (1.4ms) CREATE TABLE "guts_categorizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "content_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
661977
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030238"]]
661978
+  (1.1ms) commit transaction
661979
+ Migrating to CreateGutsMedia (20160309030239)
661980
+  (0.3ms) begin transaction
661981
+  (0.9ms) CREATE TABLE "guts_media" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "tags" text, "position" integer DEFAULT 0, "filable_id" integer, "filable_type" varchar, "caption" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
661982
+  (0.3ms) CREATE INDEX "index_guts_media_on_filable_type_and_filable_id" ON "guts_media" ("filable_type", "filable_id")
661983
+  (0.6ms) ALTER TABLE "guts_media" ADD "file_file_name" varchar
661984
+  (0.4ms) ALTER TABLE "guts_media" ADD "file_content_type" varchar
661985
+  (0.1ms) ALTER TABLE "guts_media" ADD "file_file_size" integer
661986
+  (0.1ms) ALTER TABLE "guts_media" ADD "file_updated_at" datetime
661987
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030239"]]
661988
+  (1.2ms) commit transaction
661989
+ Migrating to CreateGutsNavigations (20160309030240)
661990
+  (0.1ms) begin transaction
661991
+  (0.3ms) CREATE TABLE "guts_navigations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "slug" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
661992
+  (0.3ms) CREATE UNIQUE INDEX "index_guts_navigations_on_slug" ON "guts_navigations" ("slug")
661993
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030240"]]
661994
+  (0.9ms) commit transaction
661995
+ Migrating to CreateGutsNavigationItems (20160309030241)
661996
+  (0.1ms) begin transaction
661997
+  (0.3ms) CREATE TABLE "guts_navigation_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "custom" varchar, "position" integer DEFAULT 0, "navigatable_id" integer, "navigatable_type" varchar, "navigation_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
661998
+  (0.1ms) CREATE INDEX "index_nav_items_on_nav_with_type_and_id" ON "guts_navigation_items" ("navigatable_type", "navigatable_id")
661999
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030241"]]
662000
+  (0.8ms) commit transaction
662001
+ Migrating to CreateGutsMetafields (20160309030242)
662002
+  (0.1ms) begin transaction
662003
+  (0.4ms) CREATE TABLE "guts_metafields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar, "value" text, "fieldable_id" integer, "fieldable_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
662004
+  (0.1ms) CREATE INDEX "index_guts_metafields_on_fieldable_type_and_fieldable_id" ON "guts_metafields" ("fieldable_type", "fieldable_id")
662005
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030242"]]
662006
+  (0.8ms) commit transaction
662007
+ Migrating to CreateGutsTrackers (20160309030243)
662008
+  (0.1ms) begin transaction
662009
+  (0.5ms) CREATE TABLE "guts_trackers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "object_id" integer, "object_type" varchar, "params" text, "action" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
662010
+  (0.3ms) CREATE INDEX "index_guts_trackers_on_object_type_and_object_id" ON "guts_trackers" ("object_type", "object_id")
662011
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030243"]]
662012
+  (1.0ms) commit transaction
662013
+ Migrating to CreateGutsOptions (20160309030244)
662014
+  (0.1ms) begin transaction
662015
+  (0.4ms) CREATE TABLE "guts_options" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar, "value" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
662016
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030244"]]
662017
+  (0.9ms) commit transaction
662018
+ Migrating to CreateGutsSites (20160410200029)
662019
+  (0.1ms) begin transaction
662020
+  (0.4ms) CREATE TABLE "guts_sites" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "domain" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
662021
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160410200029"]]
662022
+  (1.1ms) commit transaction
662023
+ Migrating to AddSiteToGuts (20160410200459)
662024
+  (0.4ms) begin transaction
662025
+  (1.2ms) ALTER TABLE "guts_types" ADD "site_id" integer
662026
+  (0.3ms) SELECT sql
662027
+ FROM sqlite_master
662028
+ WHERE name='index_guts_types_on_slug' AND type='index'
662029
+ UNION ALL
662030
+ SELECT sql
662031
+ FROM sqlite_temp_master
662032
+ WHERE name='index_guts_types_on_slug' AND type='index'
662033
+
662034
+  (0.6ms) CREATE INDEX "index_guts_types_on_site_id" ON "guts_types" ("site_id")
662035
+  (0.2ms) ALTER TABLE "guts_categories" ADD "site_id" integer
662036
+  (0.1ms)  SELECT sql
662037
+ FROM sqlite_master
662038
+ WHERE name='index_guts_categories_on_slug' AND type='index'
662039
+ UNION ALL
662040
+ SELECT sql
662041
+ FROM sqlite_temp_master
662042
+ WHERE name='index_guts_categories_on_slug' AND type='index'
662043
+ 
662044
+  (0.1ms) CREATE INDEX "index_guts_categories_on_site_id" ON "guts_categories" ("site_id")
662045
+  (0.2ms) ALTER TABLE "guts_contents" ADD "site_id" integer
662046
+  (0.1ms) SELECT sql
662047
+ FROM sqlite_master
662048
+ WHERE name='index_guts_contents_on_slug' AND type='index'
662049
+ UNION ALL
662050
+ SELECT sql
662051
+ FROM sqlite_temp_master
662052
+ WHERE name='index_guts_contents_on_slug' AND type='index'
662053
+
662054
+  (0.1ms) CREATE INDEX "index_guts_contents_on_site_id" ON "guts_contents" ("site_id")
662055
+  (0.2ms) ALTER TABLE "guts_navigations" ADD "site_id" integer
662056
+  (0.1ms)  SELECT sql
662057
+ FROM sqlite_master
662058
+ WHERE name='index_guts_navigations_on_slug' AND type='index'
662059
+ UNION ALL
662060
+ SELECT sql
662061
+ FROM sqlite_temp_master
662062
+ WHERE name='index_guts_navigations_on_slug' AND type='index'
662063
+ 
662064
+  (0.1ms) CREATE INDEX "index_guts_navigations_on_site_id" ON "guts_navigations" ("site_id")
662065
+  (0.2ms) ALTER TABLE "guts_navigation_items" ADD "site_id" integer
662066
+  (0.1ms) SELECT sql
662067
+ FROM sqlite_master
662068
+ WHERE name='index_nav_items_on_nav_with_type_and_id' AND type='index'
662069
+ UNION ALL
662070
+ SELECT sql
662071
+ FROM sqlite_temp_master
662072
+ WHERE name='index_nav_items_on_nav_with_type_and_id' AND type='index'
662073
+
662074
+  (0.9ms) CREATE INDEX "index_guts_navigation_items_on_site_id" ON "guts_navigation_items" ("site_id")
662075
+  (0.2ms) ALTER TABLE "guts_metafields" ADD "site_id" integer
662076
+  (0.1ms)  SELECT sql
662077
+ FROM sqlite_master
662078
+ WHERE name='index_guts_metafields_on_fieldable_type_and_fieldable_id' AND type='index'
662079
+ UNION ALL
662080
+ SELECT sql
662081
+ FROM sqlite_temp_master
662082
+ WHERE name='index_guts_metafields_on_fieldable_type_and_fieldable_id' AND type='index'
662083
+ 
662084
+  (0.1ms) CREATE INDEX "index_guts_metafields_on_site_id" ON "guts_metafields" ("site_id")
662085
+  (0.1ms) ALTER TABLE "guts_trackers" ADD "site_id" integer
662086
+  (0.1ms) SELECT sql
662087
+ FROM sqlite_master
662088
+ WHERE name='index_guts_trackers_on_object_type_and_object_id' AND type='index'
662089
+ UNION ALL
662090
+ SELECT sql
662091
+ FROM sqlite_temp_master
662092
+ WHERE name='index_guts_trackers_on_object_type_and_object_id' AND type='index'
662093
+
662094
+  (0.1ms) CREATE INDEX "index_guts_trackers_on_site_id" ON "guts_trackers" ("site_id")
662095
+  (0.3ms) ALTER TABLE "guts_options" ADD "site_id" integer
662096
+  (0.1ms) CREATE INDEX "index_guts_options_on_site_id" ON "guts_options" ("site_id")
662097
+  (0.2ms) ALTER TABLE "guts_media" ADD "site_id" integer
662098
+  (0.1ms)  SELECT sql
662099
+ FROM sqlite_master
662100
+ WHERE name='index_guts_media_on_filable_type_and_filable_id' AND type='index'
662101
+ UNION ALL
662102
+ SELECT sql
662103
+ FROM sqlite_temp_master
662104
+ WHERE name='index_guts_media_on_filable_type_and_filable_id' AND type='index'
662105
+ 
662106
+  (0.1ms) CREATE INDEX "index_guts_media_on_site_id" ON "guts_media" ("site_id")
662107
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160410200459"]]
662108
+  (0.8ms) commit transaction
662109
+ Migrating to AddDefaultToGutsSites (20160410203608)
662110
+  (0.1ms) begin transaction
662111
+  (0.5ms) ALTER TABLE "guts_sites" ADD "default" boolean DEFAULT 0
662112
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160410203608"]]
662113
+  (0.7ms) commit transaction
662114
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
662115
+  (0.1ms) SELECT sql
662116
+ FROM sqlite_master
662117
+ WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index'
662118
+ UNION ALL
662119
+ SELECT sql
662120
+ FROM sqlite_temp_master
662121
+ WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index'
662122
+
662123
+  (0.1ms)  SELECT sql
662124
+ FROM sqlite_master
662125
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'
662126
+ UNION ALL
662127
+ SELECT sql
662128
+ FROM sqlite_temp_master
662129
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'
662130
+ 
662131
+  (0.1ms) SELECT sql
662132
+ FROM sqlite_master
662133
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'
662134
+ UNION ALL
662135
+ SELECT sql
662136
+ FROM sqlite_temp_master
662137
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'
662138
+
662139
+  (0.1ms)  SELECT sql
662140
+ FROM sqlite_master
662141
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
662142
+ UNION ALL
662143
+ SELECT sql
662144
+ FROM sqlite_temp_master
662145
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
662146
+ 
662147
+  (0.1ms) SELECT sql
662148
+ FROM sqlite_master
662149
+ WHERE name='index_guts_categories_on_site_id' AND type='index'
662150
+ UNION ALL
662151
+ SELECT sql
662152
+ FROM sqlite_temp_master
662153
+ WHERE name='index_guts_categories_on_site_id' AND type='index'
662154
+
662155
+  (0.1ms)  SELECT sql
662156
+ FROM sqlite_master
662157
+ WHERE name='index_guts_categories_on_slug' AND type='index'
662158
+ UNION ALL
662159
+ SELECT sql
662160
+ FROM sqlite_temp_master
662161
+ WHERE name='index_guts_categories_on_slug' AND type='index'
662162
+ 
662163
+  (0.1ms) SELECT sql
662164
+ FROM sqlite_master
662165
+ WHERE name='index_guts_contents_on_site_id' AND type='index'
662166
+ UNION ALL
662167
+ SELECT sql
662168
+ FROM sqlite_temp_master
662169
+ WHERE name='index_guts_contents_on_site_id' AND type='index'
662170
+
662171
+  (0.1ms)  SELECT sql
662172
+ FROM sqlite_master
662173
+ WHERE name='index_guts_contents_on_slug' AND type='index'
662174
+ UNION ALL
662175
+ SELECT sql
662176
+ FROM sqlite_temp_master
662177
+ WHERE name='index_guts_contents_on_slug' AND type='index'
662178
+ 
662179
+  (0.1ms) SELECT sql
662180
+ FROM sqlite_master
662181
+ WHERE name='index_guts_groups_on_slug' AND type='index'
662182
+ UNION ALL
662183
+ SELECT sql
662184
+ FROM sqlite_temp_master
662185
+ WHERE name='index_guts_groups_on_slug' AND type='index'
662186
+
662187
+  (0.1ms)  SELECT sql
662188
+ FROM sqlite_master
662189
+ WHERE name='index_guts_media_on_site_id' AND type='index'
662190
+ UNION ALL
662191
+ SELECT sql
662192
+ FROM sqlite_temp_master
662193
+ WHERE name='index_guts_media_on_site_id' AND type='index'
662194
+ 
662195
+  (0.1ms) SELECT sql
662196
+ FROM sqlite_master
662197
+ WHERE name='index_guts_media_on_filable_type_and_filable_id' AND type='index'
662198
+ UNION ALL
662199
+ SELECT sql
662200
+ FROM sqlite_temp_master
662201
+ WHERE name='index_guts_media_on_filable_type_and_filable_id' AND type='index'
662202
+
662203
+  (0.1ms)  SELECT sql
662204
+ FROM sqlite_master
662205
+ WHERE name='index_guts_metafields_on_site_id' AND type='index'
662206
+ UNION ALL
662207
+ SELECT sql
662208
+ FROM sqlite_temp_master
662209
+ WHERE name='index_guts_metafields_on_site_id' AND type='index'
662210
+ 
662211
+  (0.1ms) SELECT sql
662212
+ FROM sqlite_master
662213
+ WHERE name='index_guts_metafields_on_fieldable_type_and_fieldable_id' AND type='index'
662214
+ UNION ALL
662215
+ SELECT sql
662216
+ FROM sqlite_temp_master
662217
+ WHERE name='index_guts_metafields_on_fieldable_type_and_fieldable_id' AND type='index'
662218
+
662219
+  (1.6ms)  SELECT sql
662220
+ FROM sqlite_master
662221
+ WHERE name='index_guts_navigation_items_on_site_id' AND type='index'
662222
+ UNION ALL
662223
+ SELECT sql
662224
+ FROM sqlite_temp_master
662225
+ WHERE name='index_guts_navigation_items_on_site_id' AND type='index'
662226
+ 
662227
+  (0.1ms) SELECT sql
662228
+ FROM sqlite_master
662229
+ WHERE name='index_nav_items_on_nav_with_type_and_id' AND type='index'
662230
+ UNION ALL
662231
+ SELECT sql
662232
+ FROM sqlite_temp_master
662233
+ WHERE name='index_nav_items_on_nav_with_type_and_id' AND type='index'
662234
+
662235
+  (0.1ms)  SELECT sql
662236
+ FROM sqlite_master
662237
+ WHERE name='index_guts_navigations_on_site_id' AND type='index'
662238
+ UNION ALL
662239
+ SELECT sql
662240
+ FROM sqlite_temp_master
662241
+ WHERE name='index_guts_navigations_on_site_id' AND type='index'
662242
+ 
662243
+  (0.1ms) SELECT sql
662244
+ FROM sqlite_master
662245
+ WHERE name='index_guts_navigations_on_slug' AND type='index'
662246
+ UNION ALL
662247
+ SELECT sql
662248
+ FROM sqlite_temp_master
662249
+ WHERE name='index_guts_navigations_on_slug' AND type='index'
662250
+
662251
+  (0.1ms)  SELECT sql
662252
+ FROM sqlite_master
662253
+ WHERE name='index_guts_options_on_site_id' AND type='index'
662254
+ UNION ALL
662255
+ SELECT sql
662256
+ FROM sqlite_temp_master
662257
+ WHERE name='index_guts_options_on_site_id' AND type='index'
662258
+ 
662259
+  (0.1ms) SELECT sql
662260
+ FROM sqlite_master
662261
+ WHERE name='index_guts_trackers_on_site_id' AND type='index'
662262
+ UNION ALL
662263
+ SELECT sql
662264
+ FROM sqlite_temp_master
662265
+ WHERE name='index_guts_trackers_on_site_id' AND type='index'
662266
+
662267
+  (0.1ms)  SELECT sql
662268
+ FROM sqlite_master
662269
+ WHERE name='index_guts_trackers_on_object_type_and_object_id' AND type='index'
662270
+ UNION ALL
662271
+ SELECT sql
662272
+ FROM sqlite_temp_master
662273
+ WHERE name='index_guts_trackers_on_object_type_and_object_id' AND type='index'
662274
+ 
662275
+  (0.1ms) SELECT sql
662276
+ FROM sqlite_master
662277
+ WHERE name='index_guts_types_on_site_id' AND type='index'
662278
+ UNION ALL
662279
+ SELECT sql
662280
+ FROM sqlite_temp_master
662281
+ WHERE name='index_guts_types_on_site_id' AND type='index'
662282
+
662283
+  (0.1ms)  SELECT sql
662284
+ FROM sqlite_master
662285
+ WHERE name='index_guts_types_on_slug' AND type='index'
662286
+ UNION ALL
662287
+ SELECT sql
662288
+ FROM sqlite_temp_master
662289
+ WHERE name='index_guts_types_on_slug' AND type='index'
662290
+ 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler King
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-18 00:00:00.000000000 Z
11
+ date: 2016-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails