bit_core 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: 6fc8f82c0070900575127dc85046ca7f02923e25
4
- data.tar.gz: ebb2257d29c38e76d1aa06bb9b817ecbb57fd2c8
3
+ metadata.gz: 5c312d299908674ded0b913cf0bb19c58e7077fa
4
+ data.tar.gz: 4f75e2099cc24f380dce043e2f5f393c948b5099
5
5
  SHA512:
6
- metadata.gz: 2a35f2bf37f8c18ed4de50b112387bf390ddc06eb689d87862495e3a46c3dad6274c3d43b2171aba55e0995054097f577df2a12472a38db31b19c859c72dc262
7
- data.tar.gz: c3244449083c1ae2e35cb270ee68d16a4514e5819bd722d76a37e0883ec6733eb1670be51f6debc067d59569f1bd23d22718bffb644082bc08b7204ab43ec101
6
+ metadata.gz: 4962013ce991082834db7c7c94a8931482bd363b4926dcb60109b1f7ef5a2e5c9ae308b3345ca30d06034b30df1c6b8482de58284ae85542820347612e12c591
7
+ data.tar.gz: bfd07022e2aee3431b5d9bb3a3814eecdd7253135c43317bcecd88542c4ab2248115cbf9260a70ac9ed559af0c0b84393cc1f3a5b70cdbc591818d3013d531e4
@@ -0,0 +1,6 @@
1
+ module BitCore
2
+ # A Slide with video content.
3
+ class VideoSlide < Slide
4
+ serialize :options
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ class AddOptionsToSlides < ActiveRecord::Migration
2
+ def change
3
+ add_column :bit_core_slides, :options, :text
4
+ end
5
+ end
@@ -1,4 +1,4 @@
1
1
  # nodoc
2
2
  module BitCore
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
4
4
  end
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20140417174159) do
14
+ ActiveRecord::Schema.define(version: 20140620174146) do
15
15
 
16
16
  # These are extensions that must be enabled in order to support this database
17
17
  enable_extension "plpgsql"
@@ -47,6 +47,7 @@ ActiveRecord::Schema.define(version: 20140417174159) do
47
47
  t.boolean "is_title_visible", default: true, null: false
48
48
  t.datetime "created_at"
49
49
  t.datetime "updated_at"
50
+ t.text "options"
50
51
  end
51
52
 
52
53
  add_index "bit_core_slides", ["bit_core_slideshow_id", "position"], name: "bit_core_slide_position", unique: true, using: :btree
@@ -3418,3 +3418,133 @@ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_95
3418
3418
   (0.3ms) ROLLBACK
3419
3419
   (0.2ms) BEGIN
3420
3420
   (0.2ms) ROLLBACK
3421
+  (4.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
3422
+  (2.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3423
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
3424
+ Migrating to CreateBitCoreTools (20140415210052)
3425
+  (0.3ms) BEGIN
3426
+  (4.8ms) 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) 
3427
+  (2.4ms) ALTER TABLE bit_core_tools
3428
+ ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
3429
+ DEFERRABLE INITIALLY IMMEDIATE
3430
+
3431
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415210052"]]
3432
+  (0.7ms) COMMIT
3433
+ Migrating to CreateBitCoreContentModules (20140415211458)
3434
+  (0.3ms) BEGIN
3435
+  (3.9ms) 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)
3436
+  (2.0ms)  ALTER TABLE bit_core_content_modules
3437
+ ADD CONSTRAINT bit_core_content_module_position UNIQUE (bit_core_tool_id, position)
3438
+ DEFERRABLE INITIALLY IMMEDIATE
3439
+ 
3440
+  (3.0ms) ALTER TABLE bit_core_content_modules
3441
+ ADD CONSTRAINT fk_content_modules_tools
3442
+ FOREIGN KEY (bit_core_tool_id)
3443
+ REFERENCES bit_core_tools(id)
3444
+
3445
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415211458"]]
3446
+  (0.7ms) COMMIT
3447
+ Migrating to CreateBitCoreContentProviders (20140415213346)
3448
+  (0.5ms) BEGIN
3449
+  (7.1ms) 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)
3450
+  (2.1ms)  ALTER TABLE bit_core_content_providers
3451
+ ADD CONSTRAINT bit_core_content_provider_position UNIQUE (bit_core_content_module_id, position)
3452
+ DEFERRABLE INITIALLY IMMEDIATE
3453
+ 
3454
+  (2.3ms) ALTER TABLE bit_core_content_providers
3455
+ ADD CONSTRAINT fk_content_providers_modules
3456
+ FOREIGN KEY (bit_core_content_module_id)
3457
+ REFERENCES bit_core_content_modules(id)
3458
+
3459
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415213346"]]
3460
+  (0.7ms) COMMIT
3461
+ Migrating to CreateBitCoreSlideshows (20140417173056)
3462
+  (0.4ms) BEGIN
3463
+  (3.4ms) CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
3464
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417173056"]]
3465
+  (0.5ms) COMMIT
3466
+ Migrating to CreateBitCoreSlides (20140417174159)
3467
+  (0.5ms) BEGIN
3468
+  (7.4ms) 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)
3469
+  (1.9ms)  ALTER TABLE bit_core_slides
3470
+ ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
3471
+ DEFERRABLE INITIALLY IMMEDIATE
3472
+ 
3473
+  (2.0ms) ALTER TABLE bit_core_slides
3474
+ ADD CONSTRAINT fk_slideshows_slides
3475
+ FOREIGN KEY (bit_core_slideshow_id)
3476
+ REFERENCES bit_core_slideshows(id)
3477
+
3478
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417174159"]]
3479
+  (0.6ms) COMMIT
3480
+ Migrating to AddOptionsToSlides (20140620174146)
3481
+  (0.4ms) BEGIN
3482
+  (0.5ms) ALTER TABLE "bit_core_slides" ADD COLUMN "options" text
3483
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620174146"]]
3484
+  (0.4ms) COMMIT
3485
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
3486
+  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL
3487
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_955194" is a system trigger
3488
+ : ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL
3489
+  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER
3490
+  (0.3ms) BEGIN
3491
+ Fixture Delete (0.5ms) DELETE FROM "bit_core_slideshows"
3492
+ Fixture Insert (0.8ms) INSERT INTO "bit_core_slideshows" ("title", "created_at", "updated_at", "id") VALUES ('Slideshow 1', '2014-06-20 17:42:53', '2014-06-20 17:42:53', 504123193)
3493
+ Fixture Delete (0.7ms) DELETE FROM "bit_core_slides"
3494
+ Fixture Insert (1.3ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (1, 'Slide 1', 'lorem...', '2014-06-20 17:42:53', '2014-06-20 17:42:53', 538050605, 504123193)
3495
+ Fixture Insert (0.5ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (2, 'Slide 2', 'lorem...', '2014-06-20 17:42:53', '2014-06-20 17:42:53', 958091673, 504123193)
3496
+ Fixture Insert (0.5ms) INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (3, 'Slide 3', 'lorem...', '2014-06-20 17:42:53', '2014-06-20 17:42:53', 236740868, 504123193)
3497
+  (0.5ms) COMMIT
3498
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL
3499
+ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_955194" is a system trigger
3500
+ : ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL
3501
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER
3502
+  (0.1ms) BEGIN
3503
+ BitCore::Slideshow Load (0.5ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
3504
+  (0.7ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
3505
+ BitCore::Slide Exists (0.7ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 4 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
3506
+  (0.3ms) ROLLBACK
3507
+  (0.2ms) BEGIN
3508
+ BitCore::Slideshow Load (0.4ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
3509
+ BitCore::Slide Load (0.3ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
3510
+  (0.2ms) SAVEPOINT active_record_1
3511
+ SQL (0.3ms) DELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 [["id", 958091673]]
3512
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3513
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position DESC LIMIT 1 [["bit_core_slideshow_id", 504123193]]
3514
+ BitCore::Slide Load (0.7ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."position" = 3 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
3515
+  (0.2ms) SAVEPOINT active_record_1
3516
+ BitCore::Slide Exists (0.6ms) SELECT 1 AS one FROM "bit_core_slides" WHERE ("bit_core_slides"."position" = 2 AND "bit_core_slides"."id" != 236740868 AND "bit_core_slides"."bit_core_slideshow_id" = 504123193) LIMIT 1
3517
+ SQL (0.5ms) UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868 [["position", 2], ["updated_at", "2014-06-20 17:42:53.493964"]]
3518
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3519
+  (0.4ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
3520
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
3521
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
3522
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193]]
3523
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1 [["bit_core_slideshow_id", 504123193]]
3524
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
3525
+ BitCore::Slide Load (0.8ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1 OFFSET 1 [["bit_core_slideshow_id", 504123193]]
3526
+  (0.5ms) ROLLBACK
3527
+  (0.2ms) BEGIN
3528
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
3529
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
3530
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
3531
+ BitCore::Slideshow Load (0.4ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
3532
+  (0.2ms) SAVEPOINT active_record_1
3533
+  (0.3ms) SET CONSTRAINTS bit_core_slide_position DEFERRED
3534
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 236740868]]
3535
+ SQL (0.7ms) UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868 [["position", 1], ["updated_at", "2014-06-20 17:42:53.538960"]]
3536
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 538050605]]
3537
+ SQL (0.6ms) UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 538050605 [["position", 2], ["updated_at", "2014-06-20 17:42:53.541703"]]
3538
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 958091673]]
3539
+ SQL (0.5ms) UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 958091673 [["position", 3], ["updated_at", "2014-06-20 17:42:53.545151"]]
3540
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3541
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 538050605]]
3542
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 958091673]]
3543
+ BitCore::Slide Load (0.6ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 AND "bit_core_slides"."id" = $2 ORDER BY position LIMIT 1 [["bit_core_slideshow_id", 504123193], ["id", 236740868]]
3544
+  (0.2ms) ROLLBACK
3545
+  (0.2ms) BEGIN
3546
+  (0.2ms) ROLLBACK
3547
+  (0.2ms) BEGIN
3548
+  (0.2ms) ROLLBACK
3549
+  (0.1ms) BEGIN
3550
+  (0.1ms) ROLLBACK
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bit_core
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
  - Eric Carty-Fickes
@@ -97,6 +97,7 @@ files:
97
97
  - app/models/bit_core/slide.rb
98
98
  - app/models/bit_core/slideshow.rb
99
99
  - app/models/bit_core/tool.rb
100
+ - app/models/bit_core/video_slide.rb
100
101
  - app/views/layouts/bit_core/application.html.erb
101
102
  - config/routes.rb
102
103
  - config/spring.rb
@@ -105,6 +106,7 @@ files:
105
106
  - db/migrate/20140415213346_create_bit_core_content_providers.rb
106
107
  - db/migrate/20140417173056_create_bit_core_slideshows.rb
107
108
  - db/migrate/20140417174159_create_bit_core_slides.rb
109
+ - db/migrate/20140620174146_add_options_to_slides.rb
108
110
  - lib/bit_core.rb
109
111
  - lib/bit_core/engine.rb
110
112
  - lib/bit_core/version.rb