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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 891c45df1c1f05d91208724b5a833fc18280e301
|
4
|
+
data.tar.gz: da5946aa160baa19c36367fa2dd31e72f269cfdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
data/lib/bit_player/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -2814,3 +2814,161 @@ Migrating to ConvertToolsModulesPresentersToBitCore (20140620222851)
|
|
2814
2814
|
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2815
2815
|
[1m[35m (0.2ms)[0m BEGIN
|
2816
2816
|
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2817
|
+
[1m[36m (3.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
2818
|
+
[1m[35m (2.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
2819
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2820
|
+
Migrating to CreateBitPlayerContentModules (20140305200438)
|
2821
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2822
|
+
[1m[36m (6.4ms)[0m [1mCREATE 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) [0m
|
2823
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305200438"]]
|
2824
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
2825
|
+
Migrating to CreateBitPlayerContentProviders (20140305201300)
|
2826
|
+
[1m[35m (0.4ms)[0m BEGIN
|
2827
|
+
[1m[36m (5.4ms)[0m [1mCREATE 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) [0m
|
2828
|
+
[1m[35m (1.3ms)[0m CREATE INDEX "content_module_index" ON "bit_player_content_providers" ("bit_player_content_module_id")
|
2829
|
+
[1m[36m (3.1ms)[0m [1m 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
|
+
[0m
|
2834
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305201300"]]
|
2835
|
+
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
|
2836
|
+
Migrating to CreateBitPlayerParticipantStatuses (20140305232705)
|
2837
|
+
[1m[35m (0.4ms)[0m BEGIN
|
2838
|
+
[1m[36m (4.1ms)[0m [1mCREATE 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) [0m
|
2839
|
+
[1m[35m (1.3ms)[0m CREATE INDEX "index_participant_statuses_on_participant_id" ON "bit_player_participant_statuses" ("participant_id")
|
2840
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140305232705"]]
|
2841
|
+
[1m[35m (0.5ms)[0m COMMIT
|
2842
|
+
Migrating to CreateBitPlayerSlideshows (20140305232706)
|
2843
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
2844
|
+
[1m[35m (3.9ms)[0m CREATE TABLE "bit_player_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
|
2845
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140305232706"]]
|
2846
|
+
[1m[35m (0.5ms)[0m COMMIT
|
2847
|
+
Migrating to CreateBitPlayerSlides (20140305234327)
|
2848
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
2849
|
+
[1m[35m (7.7ms)[0m 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
|
+
[1m[36m (1.8ms)[0m [1mCREATE INDEX "index_bit_player_slides_on_bit_player_slideshow_id" ON "bit_player_slides" ("bit_player_slideshow_id")[0m
|
2851
|
+
[1m[35m (3.2ms)[0m 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
|
+
[1m[36m (2.0ms)[0m [1m ALTER TABLE bit_player_slides
|
2857
|
+
ADD CONSTRAINT bit_player_slide_position UNIQUE (bit_player_slideshow_id, position)
|
2858
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
2859
|
+
[0m
|
2860
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305234327"]]
|
2861
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
2862
|
+
Migrating to CreateBitPlayerTools (20140402224913)
|
2863
|
+
[1m[35m (0.5ms)[0m BEGIN
|
2864
|
+
[1m[36m (4.0ms)[0m [1mCREATE 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) [0m
|
2865
|
+
[1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "index_bit_player_tools_on_title" ON "bit_player_tools" ("title")
|
2866
|
+
[1m[36m (1.3ms)[0m [1mCREATE UNIQUE INDEX "index_bit_player_tools_on_position" ON "bit_player_tools" ("position")[0m
|
2867
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140402224913"]]
|
2868
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
2869
|
+
Migrating to ConvertSlidesSlideshowsToBitCore (20140620182756)
|
2870
|
+
[1m[35m (0.4ms)[0m BEGIN
|
2871
|
+
[1m[36mBitPlayer::Slideshow Load (0.6ms)[0m [1mSELECT "bit_player_slideshows".* FROM "bit_player_slideshows"[0m
|
2872
|
+
[1m[35mBitPlayer::Slide Load (0.7ms)[0m SELECT "bit_player_slides".* FROM "bit_player_slides"
|
2873
|
+
[1m[36m (1.3ms)[0m [1m ALTER TABLE bit_player_slides
|
2874
|
+
DROP CONSTRAINT IF EXISTS fk_slides_slideshows
|
2875
|
+
[0m
|
2876
|
+
[1m[35m (0.6ms)[0m ALTER TABLE bit_player_slides
|
2877
|
+
DROP CONSTRAINT IF EXISTS bit_player_slide_position
|
2878
|
+
|
2879
|
+
[1m[36m (2.5ms)[0m [1mDROP TABLE "bit_player_slides"[0m
|
2880
|
+
[1m[35m (1.2ms)[0m DROP TABLE "bit_player_slideshows"
|
2881
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140620182756"]]
|
2882
|
+
[1m[35m (2.1ms)[0m COMMIT
|
2883
|
+
Migrating to CreateBitCoreTools (20140620222614)
|
2884
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2885
|
+
[1m[35m (5.5ms)[0m 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
|
+
[1m[36m (2.4ms)[0m [1m ALTER TABLE bit_core_tools
|
2887
|
+
ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
|
2888
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
2889
|
+
[0m
|
2890
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222614"]]
|
2891
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
2892
|
+
Migrating to CreateBitCoreContentModules (20140620222615)
|
2893
|
+
[1m[35m (0.4ms)[0m BEGIN
|
2894
|
+
[1m[36m (5.1ms)[0m [1mCREATE 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) [0m
|
2895
|
+
[1m[35m (1.7ms)[0m 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
|
+
[1m[36m (2.1ms)[0m [1m 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
|
+
[0m
|
2904
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222615"]]
|
2905
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
2906
|
+
Migrating to CreateBitCoreContentProviders (20140620222616)
|
2907
|
+
[1m[35m (0.4ms)[0m BEGIN
|
2908
|
+
[1m[36m (5.0ms)[0m [1mCREATE 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) [0m
|
2909
|
+
[1m[35m (1.7ms)[0m 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
|
+
[1m[36m (2.0ms)[0m [1m 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
|
+
[0m
|
2918
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222616"]]
|
2919
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
2920
|
+
Migrating to CreateBitCoreSlideshows (20140620222617)
|
2921
|
+
[1m[35m (0.5ms)[0m BEGIN
|
2922
|
+
[1m[36m (5.5ms)[0m [1mCREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp) [0m
|
2923
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222617"]]
|
2924
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
2925
|
+
Migrating to CreateBitCoreSlides (20140620222618)
|
2926
|
+
[1m[35m (0.5ms)[0m BEGIN
|
2927
|
+
[1m[36m (8.5ms)[0m [1mCREATE 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) [0m
|
2928
|
+
[1m[35m (2.5ms)[0m ALTER TABLE bit_core_slides
|
2929
|
+
ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
|
2930
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
2931
|
+
|
2932
|
+
[1m[36m (3.0ms)[0m [1m 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
|
+
[0m
|
2937
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222618"]]
|
2938
|
+
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
|
2939
|
+
Migrating to AddOptionsToSlides (20140620222619)
|
2940
|
+
[1m[35m (0.5ms)[0m BEGIN
|
2941
|
+
[1m[36m (0.8ms)[0m [1mALTER TABLE "bit_core_slides" ADD COLUMN "options" text[0m
|
2942
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222619"]]
|
2943
|
+
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
|
2944
|
+
Migrating to AddConfigFieldsToProviders (20140620222620)
|
2945
|
+
[1m[35m (0.3ms)[0m BEGIN
|
2946
|
+
[1m[36m (1.0ms)[0m [1mALTER TABLE "bit_core_content_providers" ADD COLUMN "template_path" character varying(255)[0m
|
2947
|
+
[1m[35m (0.8ms)[0m ALTER TABLE "bit_core_content_providers" ADD COLUMN "data_class_name" character varying(255)
|
2948
|
+
[1m[36m (0.7ms)[0m [1mALTER TABLE "bit_core_content_providers" ADD COLUMN "data_attributes" text[0m
|
2949
|
+
[1m[35m (0.9ms)[0m ALTER TABLE "bit_core_content_providers" ADD COLUMN "show_next_nav" boolean
|
2950
|
+
[1m[36m (0.9ms)[0m [1mALTER TABLE "bit_core_content_providers" ADD COLUMN "locals" text[0m
|
2951
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222620"]]
|
2952
|
+
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
|
2953
|
+
Migrating to ConvertToolsModulesPresentersToBitCore (20140620222851)
|
2954
|
+
[1m[35m (0.3ms)[0m BEGIN
|
2955
|
+
[1m[36mBitPlayer::Tool Load (1.2ms)[0m [1mSELECT "bit_player_tools".* FROM "bit_player_tools"[0m
|
2956
|
+
[1m[35mBitPlayer::ContentModule Load (0.8ms)[0m SELECT "bit_player_content_modules".* FROM "bit_player_content_modules"
|
2957
|
+
[1m[36mBitPlayer::ContentProvider Load (1.0ms)[0m [1mSELECT "bit_player_content_providers".* FROM "bit_player_content_providers"[0m
|
2958
|
+
[1m[35m (0.4ms)[0m ALTER TABLE bit_player_content_modules
|
2959
|
+
DROP CONSTRAINT IF EXISTS fk_content_modules_tools
|
2960
|
+
|
2961
|
+
[1m[36m (1.3ms)[0m [1m ALTER TABLE bit_player_content_providers
|
2962
|
+
DROP CONSTRAINT IF EXISTS fk_content_providers_modules
|
2963
|
+
[0m
|
2964
|
+
[1m[35m (2.5ms)[0m DROP TABLE "bit_player_tools"
|
2965
|
+
[1m[36m (2.7ms)[0m [1mDROP TABLE "bit_player_content_modules"[0m
|
2966
|
+
[1m[35m (2.9ms)[0m DROP TABLE "bit_player_content_providers"
|
2967
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140620222851"]]
|
2968
|
+
[1m[35m (3.2ms)[0m COMMIT
|
2969
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2970
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2971
|
+
[1m[35mBitCore::ContentModule Load (1.7ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2973
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2974
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|