bit_player 0.4.1 → 0.4.2

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: 4add1d4654b5a4d57dca6c473a53b1f7d4e93b6f
4
- data.tar.gz: 1380a3380d5898e44514a7f8abf349708d2e5e4b
3
+ metadata.gz: 891c45df1c1f05d91208724b5a833fc18280e301
4
+ data.tar.gz: da5946aa160baa19c36367fa2dd31e72f269cfdf
5
5
  SHA512:
6
- metadata.gz: 6ae2d3cdca312b704f35d58bbdd81daaeff358452ea764beedbe446e718169c3f25c867f3a2d48541f7e0357d46955382a394c6039a43dd15db3175ee88a95d1
7
- data.tar.gz: b67e2e259f2d7effe5a241c35371c72c0f8aabc3739159e13a32c7f0444140857fb1be149a4bc7fcf3bb1606e304b3ae00db9efcd27088928b45fadf472f1be7
6
+ metadata.gz: 9fa8f8a3df8b226f291cbd4515345664d869c5161f4f7ad251c35a6c986fdbcfe827723efa5c931317a451c7e8dab9101a5a547a0891b2b1bb10e00fa47fc36b
7
+ data.tar.gz: aa32f6b2398e27e457dbe5f2d84677a91203f135065ba169c68b05e55a9e9e288c9274e282960e2dd332318885bafe9e5dda83e226dba12255bd13713c3ecfca
@@ -1,18 +1,20 @@
1
1
  class BitPlayer::Tool < ActiveRecord::Base; end
2
2
  class BitPlayer::ContentModule < ActiveRecord::Base; end
3
3
  class BitPlayer::ContentProvider < ActiveRecord::Base; end
4
+ class BitPlayer::ContentProviders::SlideshowProvider < BitPlayer::ContentProvider; end
4
5
 
5
6
  class ConvertToolsModulesPresentersToBitCore < ActiveRecord::Migration
6
7
  def up
7
8
  BitPlayer::Tool.all.each do |tool|
8
9
  BitCore::Tool.create!(
10
+ id: tool.id,
9
11
  title: tool.title,
10
- position: tool.position,
11
- is_home: tool.is_home
12
+ position: tool.position
12
13
  )
13
14
  end
14
15
  BitPlayer::ContentModule.all.each do |mod|
15
16
  BitCore::ContentModule.create!(
17
+ id: mod.id,
16
18
  title: mod.title,
17
19
  bit_core_tool_id: mod.bit_player_tool_id,
18
20
  position: mod.position
@@ -24,7 +26,9 @@ class ConvertToolsModulesPresentersToBitCore < ActiveRecord::Migration
24
26
  type = "BitCore::ContentProviders::SlideshowProvider"
25
27
  end
26
28
  BitCore::ContentProvider.create!(
29
+ id: pro.id,
27
30
  type: type,
31
+ show_next_nav: (type == "BitCore::ContentProviders::SlideshowProvider" ? true : pro.show_nav_link?),
28
32
  source_content_type: pro.source_content_type,
29
33
  source_content_id: pro.source_content_id,
30
34
  bit_core_content_module_id: pro.bit_player_content_module_id,
@@ -1,3 +1,3 @@
1
1
  module BitPlayer
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
@@ -2814,3 +2814,161 @@ Migrating to ConvertToolsModulesPresentersToBitCore (20140620222851)
2814
2814
   (0.3ms) ROLLBACK
2815
2815
   (0.2ms) BEGIN
2816
2816
   (0.2ms) ROLLBACK
2817
+  (3.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
2818
+  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2819
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
2820
+ Migrating to CreateBitPlayerContentModules (20140305200438)
2821
+  (0.2ms) BEGIN
2822
+  (6.4ms) CREATE TABLE "bit_player_content_modules" ("id" serial primary key, "title" character varying(255) NOT NULL, "context" character varying(255) NOT NULL, "position" integer DEFAULT 1 NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
2823
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305200438"]]
2824
+  (0.6ms) COMMIT
2825
+ Migrating to CreateBitPlayerContentProviders (20140305201300)
2826
+  (0.4ms) BEGIN
2827
+  (5.4ms) CREATE TABLE "bit_player_content_providers" ("id" serial primary key, "type" character varying(255) NOT NULL, "source_content_type" character varying(255), "source_content_id" integer, "bit_player_content_module_id" integer NOT NULL, "position" integer DEFAULT 1 NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
2828
+  (1.3ms) CREATE INDEX "content_module_index" ON "bit_player_content_providers" ("bit_player_content_module_id")
2829
+  (3.1ms)  ALTER TABLE bit_player_content_providers
2830
+ ADD CONSTRAINT fk_content_providers_modules
2831
+ FOREIGN KEY (bit_player_content_module_id)
2832
+ REFERENCES bit_player_content_modules(id)
2833
+ 
2834
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305201300"]]
2835
+  (0.8ms) COMMIT
2836
+ Migrating to CreateBitPlayerParticipantStatuses (20140305232705)
2837
+  (0.4ms) BEGIN
2838
+  (4.1ms) CREATE TABLE "bit_player_participant_statuses" ("id" serial primary key, "context" character varying(255), "module_position" integer, "provider_position" integer, "content_position" integer, "participant_id" integer NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
2839
+  (1.3ms) CREATE INDEX "index_participant_statuses_on_participant_id" ON "bit_player_participant_statuses" ("participant_id")
2840
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305232705"]]
2841
+  (0.5ms) COMMIT
2842
+ Migrating to CreateBitPlayerSlideshows (20140305232706)
2843
+  (0.4ms) BEGIN
2844
+  (3.9ms) CREATE TABLE "bit_player_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2845
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305232706"]]
2846
+  (0.5ms) COMMIT
2847
+ Migrating to CreateBitPlayerSlides (20140305234327)
2848
+  (0.4ms) BEGIN
2849
+  (7.7ms) CREATE TABLE "bit_player_slides" ("id" serial primary key, "title" character varying(255), "body" text NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_player_slideshow_id" integer NOT NULL, "type" character varying(255), "options" text, "is_title_visible" boolean DEFAULT 't' NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2850
+  (1.8ms) CREATE INDEX "index_bit_player_slides_on_bit_player_slideshow_id" ON "bit_player_slides" ("bit_player_slideshow_id")
2851
+  (3.2ms) ALTER TABLE bit_player_slides
2852
+ ADD CONSTRAINT fk_slides_slideshows
2853
+ FOREIGN KEY (bit_player_slideshow_id)
2854
+ REFERENCES bit_player_slideshows(id)
2855
+
2856
+  (2.0ms)  ALTER TABLE bit_player_slides
2857
+ ADD CONSTRAINT bit_player_slide_position UNIQUE (bit_player_slideshow_id, position)
2858
+ DEFERRABLE INITIALLY IMMEDIATE
2859
+ 
2860
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305234327"]]
2861
+  (0.6ms) COMMIT
2862
+ Migrating to CreateBitPlayerTools (20140402224913)
2863
+  (0.5ms) BEGIN
2864
+  (4.0ms) CREATE TABLE "bit_player_tools" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer, "is_home" boolean DEFAULT 'f' NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
2865
+  (1.2ms) CREATE UNIQUE INDEX "index_bit_player_tools_on_title" ON "bit_player_tools" ("title")
2866
+  (1.3ms) CREATE UNIQUE INDEX "index_bit_player_tools_on_position" ON "bit_player_tools" ("position")
2867
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140402224913"]]
2868
+  (0.5ms) COMMIT
2869
+ Migrating to ConvertSlidesSlideshowsToBitCore (20140620182756)
2870
+  (0.4ms) BEGIN
2871
+ BitPlayer::Slideshow Load (0.6ms) SELECT "bit_player_slideshows".* FROM "bit_player_slideshows"
2872
+ BitPlayer::Slide Load (0.7ms) SELECT "bit_player_slides".* FROM "bit_player_slides"
2873
+  (1.3ms)  ALTER TABLE bit_player_slides
2874
+ DROP CONSTRAINT IF EXISTS fk_slides_slideshows
2875
+ 
2876
+  (0.6ms) ALTER TABLE bit_player_slides
2877
+ DROP CONSTRAINT IF EXISTS bit_player_slide_position
2878
+
2879
+  (2.5ms) DROP TABLE "bit_player_slides"
2880
+  (1.2ms) DROP TABLE "bit_player_slideshows"
2881
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620182756"]]
2882
+  (2.1ms) COMMIT
2883
+ Migrating to CreateBitCoreTools (20140620222614)
2884
+  (0.3ms) BEGIN
2885
+  (5.5ms) CREATE TABLE "bit_core_tools" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 0 NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2886
+  (2.4ms)  ALTER TABLE bit_core_tools
2887
+ ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
2888
+ DEFERRABLE INITIALLY IMMEDIATE
2889
+ 
2890
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222614"]]
2891
+  (0.5ms) COMMIT
2892
+ Migrating to CreateBitCoreContentModules (20140620222615)
2893
+  (0.4ms) BEGIN
2894
+  (5.1ms) CREATE TABLE "bit_core_content_modules" ("id" serial primary key, "title" character varying(255) NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_tool_id" integer NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
2895
+  (1.7ms) ALTER TABLE bit_core_content_modules
2896
+ ADD CONSTRAINT bit_core_content_module_position UNIQUE (bit_core_tool_id, position)
2897
+ DEFERRABLE INITIALLY IMMEDIATE
2898
+
2899
+  (2.1ms)  ALTER TABLE bit_core_content_modules
2900
+ ADD CONSTRAINT fk_content_modules_tools
2901
+ FOREIGN KEY (bit_core_tool_id)
2902
+ REFERENCES bit_core_tools(id)
2903
+ 
2904
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222615"]]
2905
+  (0.5ms) COMMIT
2906
+ Migrating to CreateBitCoreContentProviders (20140620222616)
2907
+  (0.4ms) BEGIN
2908
+  (5.0ms) CREATE TABLE "bit_core_content_providers" ("id" serial primary key, "type" character varying(255) NOT NULL, "source_content_type" character varying(255), "source_content_id" integer, "bit_core_content_module_id" integer NOT NULL, "position" integer DEFAULT 1 NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
2909
+  (1.7ms) ALTER TABLE bit_core_content_providers
2910
+ ADD CONSTRAINT bit_core_content_provider_position UNIQUE (bit_core_content_module_id, position)
2911
+ DEFERRABLE INITIALLY IMMEDIATE
2912
+
2913
+  (2.0ms)  ALTER TABLE bit_core_content_providers
2914
+ ADD CONSTRAINT fk_content_providers_modules
2915
+ FOREIGN KEY (bit_core_content_module_id)
2916
+ REFERENCES bit_core_content_modules(id)
2917
+ 
2918
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222616"]]
2919
+  (0.6ms) COMMIT
2920
+ Migrating to CreateBitCoreSlideshows (20140620222617)
2921
+  (0.5ms) BEGIN
2922
+  (5.5ms) CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
2923
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222617"]]
2924
+  (0.6ms) COMMIT
2925
+ Migrating to CreateBitCoreSlides (20140620222618)
2926
+  (0.5ms) BEGIN
2927
+  (8.5ms) CREATE TABLE "bit_core_slides" ("id" serial primary key, "title" character varying(255) NOT NULL, "body" text NOT NULL, "position" integer DEFAULT 1 NOT NULL, "bit_core_slideshow_id" integer NOT NULL, "type" character varying(255), "is_title_visible" boolean DEFAULT 't' NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
2928
+  (2.5ms) ALTER TABLE bit_core_slides
2929
+ ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
2930
+ DEFERRABLE INITIALLY IMMEDIATE
2931
+
2932
+  (3.0ms)  ALTER TABLE bit_core_slides
2933
+ ADD CONSTRAINT fk_slideshows_slides
2934
+ FOREIGN KEY (bit_core_slideshow_id)
2935
+ REFERENCES bit_core_slideshows(id)
2936
+ 
2937
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222618"]]
2938
+  (0.9ms) COMMIT
2939
+ Migrating to AddOptionsToSlides (20140620222619)
2940
+  (0.5ms) BEGIN
2941
+  (0.8ms) ALTER TABLE "bit_core_slides" ADD COLUMN "options" text
2942
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222619"]]
2943
+  (0.8ms) COMMIT
2944
+ Migrating to AddConfigFieldsToProviders (20140620222620)
2945
+  (0.3ms) BEGIN
2946
+  (1.0ms) ALTER TABLE "bit_core_content_providers" ADD COLUMN "template_path" character varying(255)
2947
+  (0.8ms) ALTER TABLE "bit_core_content_providers" ADD COLUMN "data_class_name" character varying(255)
2948
+  (0.7ms) ALTER TABLE "bit_core_content_providers" ADD COLUMN "data_attributes" text
2949
+  (0.9ms) ALTER TABLE "bit_core_content_providers" ADD COLUMN "show_next_nav" boolean
2950
+  (0.9ms) ALTER TABLE "bit_core_content_providers" ADD COLUMN "locals" text
2951
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222620"]]
2952
+  (0.7ms) COMMIT
2953
+ Migrating to ConvertToolsModulesPresentersToBitCore (20140620222851)
2954
+  (0.3ms) BEGIN
2955
+ BitPlayer::Tool Load (1.2ms) SELECT "bit_player_tools".* FROM "bit_player_tools"
2956
+ BitPlayer::ContentModule Load (0.8ms) SELECT "bit_player_content_modules".* FROM "bit_player_content_modules"
2957
+ BitPlayer::ContentProvider Load (1.0ms) SELECT "bit_player_content_providers".* FROM "bit_player_content_providers"
2958
+  (0.4ms) ALTER TABLE bit_player_content_modules
2959
+ DROP CONSTRAINT IF EXISTS fk_content_modules_tools
2960
+
2961
+  (1.3ms)  ALTER TABLE bit_player_content_providers
2962
+ DROP CONSTRAINT IF EXISTS fk_content_providers_modules
2963
+ 
2964
+  (2.5ms) DROP TABLE "bit_player_tools"
2965
+  (2.7ms) DROP TABLE "bit_player_content_modules"
2966
+  (2.9ms) DROP TABLE "bit_player_content_providers"
2967
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222851"]]
2968
+  (3.2ms) COMMIT
2969
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
2970
+  (0.2ms) BEGIN
2971
+ BitCore::ContentModule Load (1.7ms) SELECT "bit_core_content_modules".* FROM "bit_core_content_modules" WHERE "bit_core_content_modules"."bit_core_tool_id" = 1 AND "bit_core_content_modules"."position" = 1 ORDER BY "bit_core_content_modules"."id" ASC LIMIT 1
2972
+  (0.3ms) ROLLBACK
2973
+  (0.2ms) BEGIN
2974
+  (0.2ms) ROLLBACK
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bit_player
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
  - Eric Carty-Fickes