bit_player 0.4.0 → 0.4.1

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: e3384be7f326b7aafce86e1e0e79caf1e813a557
4
- data.tar.gz: ede39b3c8e27736a01e50a266112ad6b526632be
3
+ metadata.gz: 4add1d4654b5a4d57dca6c473a53b1f7d4e93b6f
4
+ data.tar.gz: 1380a3380d5898e44514a7f8abf349708d2e5e4b
5
5
  SHA512:
6
- metadata.gz: 3e16bb6ada7edfd397593d3447bbb1d5933ce7a0d5fd9256fd8fc0ebd33243820c3246671ebc57af193cafa5de8b1d727e8afa430d318ccde1b4790d039ddd1f
7
- data.tar.gz: 5051ab184deb2e9d5dec797e4fcd0d699d9115f69ff11e01ddcbfca2247513a5328741b0e66f32acff2a74332f92e1755fbe21529b4a3a499b1ef45ad58774c1
6
+ metadata.gz: 6ae2d3cdca312b704f35d58bbdd81daaeff358452ea764beedbe446e718169c3f25c867f3a2d48541f7e0357d46955382a394c6039a43dd15db3175ee88a95d1
7
+ data.tar.gz: b67e2e259f2d7effe5a241c35371c72c0f8aabc3739159e13a32c7f0444140857fb1be149a4bc7fcf3bb1606e304b3ae00db9efcd27088928b45fadf472f1be7
@@ -1,5 +1,6 @@
1
1
  class BitPlayer::Slideshow < ActiveRecord::Base; end
2
2
  class BitPlayer::Slide < ActiveRecord::Base; end
3
+ class BitPlayer::VideoSlide < BitPlayer::Slide; end
3
4
 
4
5
  class ConvertSlidesSlideshowsToBitCore < ActiveRecord::Migration
5
6
  def up
@@ -7,20 +8,21 @@ class ConvertSlidesSlideshowsToBitCore < ActiveRecord::Migration
7
8
  BitCore::Slideshow.create!(title: slideshow.title, id: slideshow.id)
8
9
  end
9
10
  BitPlayer::Slide.all.each do |slide|
11
+ type = (slide.type || "").gsub(/BitPlayer::VideoSlide/, "BitCore::VideoSlide")
10
12
  BitCore::Slide.create!(
11
13
  title: slide.title,
12
14
  id: slide.id,
13
15
  body: slide.body,
14
16
  position: slide.position,
15
- bit_core_slideshow_id: bit_player_slideshow_id,
16
- type: slide.type,
17
+ bit_core_slideshow_id: slide.bit_player_slideshow_id,
18
+ type: type,
17
19
  options: slide.options,
18
20
  is_title_visible: slide.is_title_visible
19
21
  )
20
22
  end
21
23
  execute <<-SQL
22
24
  ALTER TABLE bit_player_slides
23
- DROP CONSTRAINT fk_slides_slideshows
25
+ DROP CONSTRAINT IF EXISTS fk_slides_slideshows
24
26
  SQL
25
27
 
26
28
  execute <<-SQL
@@ -1,3 +1,3 @@
1
1
  module BitPlayer
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -2656,3 +2656,161 @@ Migrating to ConvertToolsModulesPresentersToBitCore (20140620222851)
2656
2656
   (0.3ms) ROLLBACK
2657
2657
   (0.2ms) BEGIN
2658
2658
   (0.3ms) ROLLBACK
2659
+  (3.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
2660
+  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2661
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2662
+ Migrating to CreateBitPlayerContentModules (20140305200438)
2663
+  (0.3ms) BEGIN
2664
+  (6.1ms) 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) 
2665
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305200438"]]
2666
+  (0.5ms) COMMIT
2667
+ Migrating to CreateBitPlayerContentProviders (20140305201300)
2668
+  (0.3ms) BEGIN
2669
+  (5.0ms) 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) 
2670
+  (1.1ms) CREATE INDEX "content_module_index" ON "bit_player_content_providers" ("bit_player_content_module_id")
2671
+  (4.1ms)  ALTER TABLE bit_player_content_providers
2672
+ ADD CONSTRAINT fk_content_providers_modules
2673
+ FOREIGN KEY (bit_player_content_module_id)
2674
+ REFERENCES bit_player_content_modules(id)
2675
+ 
2676
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305201300"]]
2677
+  (0.8ms) COMMIT
2678
+ Migrating to CreateBitPlayerParticipantStatuses (20140305232705)
2679
+  (0.4ms) BEGIN
2680
+  (3.8ms) 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) 
2681
+  (1.3ms) CREATE INDEX "index_participant_statuses_on_participant_id" ON "bit_player_participant_statuses" ("participant_id")
2682
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305232705"]]
2683
+  (0.6ms) COMMIT
2684
+ Migrating to CreateBitPlayerSlideshows (20140305232706)
2685
+  (0.4ms) BEGIN
2686
+  (4.7ms) CREATE TABLE "bit_player_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
2687
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305232706"]]
2688
+  (0.6ms) COMMIT
2689
+ Migrating to CreateBitPlayerSlides (20140305234327)
2690
+  (0.4ms) BEGIN
2691
+  (5.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)
2692
+  (1.2ms) CREATE INDEX "index_bit_player_slides_on_bit_player_slideshow_id" ON "bit_player_slides" ("bit_player_slideshow_id")
2693
+  (2.0ms) ALTER TABLE bit_player_slides
2694
+ ADD CONSTRAINT fk_slides_slideshows
2695
+ FOREIGN KEY (bit_player_slideshow_id)
2696
+ REFERENCES bit_player_slideshows(id)
2697
+
2698
+  (1.6ms)  ALTER TABLE bit_player_slides
2699
+ ADD CONSTRAINT bit_player_slide_position UNIQUE (bit_player_slideshow_id, position)
2700
+ DEFERRABLE INITIALLY IMMEDIATE
2701
+ 
2702
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305234327"]]
2703
+  (0.5ms) COMMIT
2704
+ Migrating to CreateBitPlayerTools (20140402224913)
2705
+  (0.3ms) BEGIN
2706
+  (3.5ms) 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) 
2707
+  (1.2ms) CREATE UNIQUE INDEX "index_bit_player_tools_on_title" ON "bit_player_tools" ("title")
2708
+  (1.2ms) CREATE UNIQUE INDEX "index_bit_player_tools_on_position" ON "bit_player_tools" ("position")
2709
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140402224913"]]
2710
+  (0.6ms) COMMIT
2711
+ Migrating to ConvertSlidesSlideshowsToBitCore (20140620182756)
2712
+  (0.4ms) BEGIN
2713
+ BitPlayer::Slideshow Load (0.6ms) SELECT "bit_player_slideshows".* FROM "bit_player_slideshows"
2714
+ BitPlayer::Slide Load (0.7ms) SELECT "bit_player_slides".* FROM "bit_player_slides"
2715
+  (1.4ms)  ALTER TABLE bit_player_slides
2716
+ DROP CONSTRAINT IF EXISTS fk_slides_slideshows
2717
+ 
2718
+  (0.6ms) ALTER TABLE bit_player_slides
2719
+ DROP CONSTRAINT IF EXISTS bit_player_slide_position
2720
+
2721
+  (2.7ms) DROP TABLE "bit_player_slides"
2722
+  (1.1ms) DROP TABLE "bit_player_slideshows"
2723
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620182756"]]
2724
+  (1.9ms) COMMIT
2725
+ Migrating to CreateBitCoreTools (20140620222614)
2726
+  (0.3ms) BEGIN
2727
+  (4.2ms) 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)
2728
+  (1.6ms)  ALTER TABLE bit_core_tools
2729
+ ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
2730
+ DEFERRABLE INITIALLY IMMEDIATE
2731
+ 
2732
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222614"]]
2733
+  (0.5ms) COMMIT
2734
+ Migrating to CreateBitCoreContentModules (20140620222615)
2735
+  (0.4ms) BEGIN
2736
+  (4.5ms) 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) 
2737
+  (1.8ms) ALTER TABLE bit_core_content_modules
2738
+ ADD CONSTRAINT bit_core_content_module_position UNIQUE (bit_core_tool_id, position)
2739
+ DEFERRABLE INITIALLY IMMEDIATE
2740
+
2741
+  (2.4ms)  ALTER TABLE bit_core_content_modules
2742
+ ADD CONSTRAINT fk_content_modules_tools
2743
+ FOREIGN KEY (bit_core_tool_id)
2744
+ REFERENCES bit_core_tools(id)
2745
+ 
2746
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222615"]]
2747
+  (0.9ms) COMMIT
2748
+ Migrating to CreateBitCoreContentProviders (20140620222616)
2749
+  (0.5ms) BEGIN
2750
+  (7.8ms) 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) 
2751
+  (2.7ms) ALTER TABLE bit_core_content_providers
2752
+ ADD CONSTRAINT bit_core_content_provider_position UNIQUE (bit_core_content_module_id, position)
2753
+ DEFERRABLE INITIALLY IMMEDIATE
2754
+
2755
+  (3.1ms)  ALTER TABLE bit_core_content_providers
2756
+ ADD CONSTRAINT fk_content_providers_modules
2757
+ FOREIGN KEY (bit_core_content_module_id)
2758
+ REFERENCES bit_core_content_modules(id)
2759
+ 
2760
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222616"]]
2761
+  (0.7ms) COMMIT
2762
+ Migrating to CreateBitCoreSlideshows (20140620222617)
2763
+  (0.6ms) BEGIN
2764
+  (5.1ms) CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
2765
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222617"]]
2766
+  (0.5ms) COMMIT
2767
+ Migrating to CreateBitCoreSlides (20140620222618)
2768
+  (0.5ms) BEGIN
2769
+  (8.3ms) 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) 
2770
+  (2.4ms) ALTER TABLE bit_core_slides
2771
+ ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
2772
+ DEFERRABLE INITIALLY IMMEDIATE
2773
+
2774
+  (2.9ms)  ALTER TABLE bit_core_slides
2775
+ ADD CONSTRAINT fk_slideshows_slides
2776
+ FOREIGN KEY (bit_core_slideshow_id)
2777
+ REFERENCES bit_core_slideshows(id)
2778
+ 
2779
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222618"]]
2780
+  (0.8ms) COMMIT
2781
+ Migrating to AddOptionsToSlides (20140620222619)
2782
+  (0.8ms) BEGIN
2783
+  (1.3ms) ALTER TABLE "bit_core_slides" ADD COLUMN "options" text
2784
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222619"]]
2785
+  (0.8ms) COMMIT
2786
+ Migrating to AddConfigFieldsToProviders (20140620222620)
2787
+  (0.3ms) BEGIN
2788
+  (1.0ms) ALTER TABLE "bit_core_content_providers" ADD COLUMN "template_path" character varying(255)
2789
+  (0.8ms) ALTER TABLE "bit_core_content_providers" ADD COLUMN "data_class_name" character varying(255)
2790
+  (0.8ms) ALTER TABLE "bit_core_content_providers" ADD COLUMN "data_attributes" text
2791
+  (0.7ms) ALTER TABLE "bit_core_content_providers" ADD COLUMN "show_next_nav" boolean
2792
+  (0.7ms) ALTER TABLE "bit_core_content_providers" ADD COLUMN "locals" text
2793
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222620"]]
2794
+  (0.6ms) COMMIT
2795
+ Migrating to ConvertToolsModulesPresentersToBitCore (20140620222851)
2796
+  (0.4ms) BEGIN
2797
+ BitPlayer::Tool Load (1.2ms) SELECT "bit_player_tools".* FROM "bit_player_tools"
2798
+ BitPlayer::ContentModule Load (0.8ms) SELECT "bit_player_content_modules".* FROM "bit_player_content_modules"
2799
+ BitPlayer::ContentProvider Load (0.9ms) SELECT "bit_player_content_providers".* FROM "bit_player_content_providers"
2800
+  (0.4ms) ALTER TABLE bit_player_content_modules
2801
+ DROP CONSTRAINT IF EXISTS fk_content_modules_tools
2802
+
2803
+  (1.3ms)  ALTER TABLE bit_player_content_providers
2804
+ DROP CONSTRAINT IF EXISTS fk_content_providers_modules
2805
+ 
2806
+  (2.5ms) DROP TABLE "bit_player_tools"
2807
+  (2.7ms) DROP TABLE "bit_player_content_modules"
2808
+  (3.0ms) DROP TABLE "bit_player_content_providers"
2809
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620222851"]]
2810
+  (3.0ms) COMMIT
2811
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2812
+  (0.3ms) BEGIN
2813
+ BitCore::ContentModule Load (1.9ms) 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
2814
+  (0.3ms) ROLLBACK
2815
+  (0.2ms) BEGIN
2816
+  (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.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Carty-Fickes