bit_core 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/bit_core/slideshow.rb +14 -0
- data/lib/bit_core/version.rb +1 -1
- data/spec/dummy/log/test.log +185 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7dc65a6336c3fbf1b6f52e199fcabba11d8de689
|
4
|
+
data.tar.gz: 0bce9de93ebeca1748aabfe663f81c154b3c807e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b75787f8d115b7b5e00407dca882948b6b4679dd3e48797c694921d073ee9f65d94b3b55d8bf1f003de8a3f3aee5105e5efb6bbe87b3b492d66b19104b69dec8
|
7
|
+
data.tar.gz: 39b70d596a1d230bd64d1242a6d48519e747257a3c45b451c3afa4aed09795eaaaf3e438468d47893c03679049f5bdaf4d9533bb3abe8a94009bcdd8dd8eec78
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require "redcarpet"
|
2
|
+
|
1
3
|
module BitCore
|
2
4
|
# A collection of ordered Slides.
|
3
5
|
class Slideshow < ActiveRecord::Base
|
@@ -15,6 +17,18 @@ module BitCore
|
|
15
17
|
|
16
18
|
accepts_nested_attributes_for :slides
|
17
19
|
|
20
|
+
def pretty_title
|
21
|
+
return "" if title.nil?
|
22
|
+
|
23
|
+
Redcarpet::Markdown.new(
|
24
|
+
Redcarpet::Render::HTML.new(
|
25
|
+
filter_html: true,
|
26
|
+
safe_links_only: true
|
27
|
+
),
|
28
|
+
space_after_headers: true
|
29
|
+
).render(title).html_safe
|
30
|
+
end
|
31
|
+
|
18
32
|
def add(slide_params)
|
19
33
|
slide = slides.build(slide_params)
|
20
34
|
slide.position = slides.count + 1
|
data/lib/bit_core/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -7676,3 +7676,188 @@ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_15
|
|
7676
7676
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7677
7677
|
[1m[35m (0.1ms)[0m BEGIN
|
7678
7678
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7679
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7680
|
+
PG::InsufficientPrivilege: ERROR: permission denied for relation schema_migrations
|
7681
|
+
: SELECT "schema_migrations".* FROM "schema_migrations"
|
7682
|
+
[1m[36m (11.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
7683
|
+
[1m[35m (5.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
7684
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7685
|
+
Migrating to CreateBitCoreTools (20140415210052)
|
7686
|
+
[1m[35m (0.3ms)[0m BEGIN
|
7687
|
+
[1m[36m (8.7ms)[0m [1mCREATE 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) [0m
|
7688
|
+
[1m[35m (3.1ms)[0m ALTER TABLE bit_core_tools
|
7689
|
+
ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
|
7690
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
7691
|
+
|
7692
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415210052"]]
|
7693
|
+
[1m[35m (0.6ms)[0m COMMIT
|
7694
|
+
Migrating to CreateBitCoreContentModules (20140415211458)
|
7695
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
7696
|
+
[1m[35m (3.8ms)[0m 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)
|
7697
|
+
[1m[36m (2.2ms)[0m [1m ALTER TABLE bit_core_content_modules
|
7698
|
+
ADD CONSTRAINT bit_core_content_module_position UNIQUE (bit_core_tool_id, position)
|
7699
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
7700
|
+
[0m
|
7701
|
+
[1m[35m (3.0ms)[0m ALTER TABLE bit_core_content_modules
|
7702
|
+
ADD CONSTRAINT fk_content_modules_tools
|
7703
|
+
FOREIGN KEY (bit_core_tool_id)
|
7704
|
+
REFERENCES bit_core_tools(id)
|
7705
|
+
|
7706
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415211458"]]
|
7707
|
+
[1m[35m (0.6ms)[0m COMMIT
|
7708
|
+
Migrating to CreateBitCoreContentProviders (20140415213346)
|
7709
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
7710
|
+
[1m[35m (4.9ms)[0m 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)
|
7711
|
+
[1m[36m (1.5ms)[0m [1m ALTER TABLE bit_core_content_providers
|
7712
|
+
ADD CONSTRAINT bit_core_content_provider_position UNIQUE (bit_core_content_module_id, position)
|
7713
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
7714
|
+
[0m
|
7715
|
+
[1m[35m (2.0ms)[0m ALTER TABLE bit_core_content_providers
|
7716
|
+
ADD CONSTRAINT fk_content_providers_modules
|
7717
|
+
FOREIGN KEY (bit_core_content_module_id)
|
7718
|
+
REFERENCES bit_core_content_modules(id)
|
7719
|
+
|
7720
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140415213346"]]
|
7721
|
+
[1m[35m (0.6ms)[0m COMMIT
|
7722
|
+
Migrating to CreateBitCoreSlideshows (20140417173056)
|
7723
|
+
[1m[36m (0.8ms)[0m [1mBEGIN[0m
|
7724
|
+
[1m[35m (5.1ms)[0m CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
|
7725
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417173056"]]
|
7726
|
+
[1m[35m (0.6ms)[0m COMMIT
|
7727
|
+
Migrating to CreateBitCoreSlides (20140417174159)
|
7728
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
7729
|
+
[1m[35m (5.6ms)[0m 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)
|
7730
|
+
[1m[36m (1.5ms)[0m [1m ALTER TABLE bit_core_slides
|
7731
|
+
ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
|
7732
|
+
DEFERRABLE INITIALLY IMMEDIATE
|
7733
|
+
[0m
|
7734
|
+
[1m[35m (2.6ms)[0m ALTER TABLE bit_core_slides
|
7735
|
+
ADD CONSTRAINT fk_slideshows_slides
|
7736
|
+
FOREIGN KEY (bit_core_slideshow_id)
|
7737
|
+
REFERENCES bit_core_slideshows(id)
|
7738
|
+
|
7739
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140417174159"]]
|
7740
|
+
[1m[35m (0.6ms)[0m COMMIT
|
7741
|
+
Migrating to AddOptionsToSlides (20140620174146)
|
7742
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
7743
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "bit_core_slides" ADD COLUMN "options" text
|
7744
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140620174146"]]
|
7745
|
+
[1m[35m (0.4ms)[0m COMMIT
|
7746
|
+
Migrating to AddConfigFieldsToProviders (20140620174147)
|
7747
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
7748
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "bit_core_content_providers" ADD COLUMN "template_path" character varying(255)
|
7749
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "bit_core_content_providers" ADD COLUMN "data_class_name" character varying(255)[0m
|
7750
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "bit_core_content_providers" ADD COLUMN "data_attributes" text
|
7751
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "bit_core_content_providers" ADD COLUMN "show_next_nav" boolean[0m
|
7752
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "bit_core_content_providers" ADD COLUMN "locals" text
|
7753
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140620174147"]]
|
7754
|
+
[1m[35m (0.3ms)[0m COMMIT
|
7755
|
+
Migrating to AddTypeToContentModules (20140625133118)
|
7756
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
7757
|
+
[1m[35m (2.1ms)[0m ALTER TABLE "bit_core_content_modules" ADD COLUMN "type" character varying(255)
|
7758
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140625133118"]]
|
7759
|
+
[1m[35m (0.4ms)[0m COMMIT
|
7760
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7761
|
+
[1m[36m (0.9ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL[0m
|
7762
|
+
PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_4738204" is a system trigger
|
7763
|
+
: ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL
|
7764
|
+
[1m[35m (0.7ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER
|
7765
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
7766
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "bit_core_tools"
|
7767
|
+
[1m[36mFixture Insert (1.2ms)[0m [1mINSERT INTO "bit_core_tools" ("title", "created_at", "updated_at", "id") VALUES ('Home', '2014-08-25 16:53:01', '2014-08-25 16:53:01', 836111569)[0m
|
7768
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "bit_core_content_modules"
|
7769
|
+
[1m[36mFixture Insert (1.1ms)[0m [1mINSERT INTO "bit_core_content_modules" ("title", "position", "created_at", "updated_at", "id", "bit_core_tool_id") VALUES ('Landing', 1, '2014-08-25 16:53:01', '2014-08-25 16:53:01', 437912910, 836111569)[0m
|
7770
|
+
[1m[35mFixture Insert (0.4ms)[0m INSERT INTO "bit_core_content_modules" ("title", "position", "created_at", "updated_at", "id", "bit_core_tool_id") VALUES ('But wait, there''s more', 2, '2014-08-25 16:53:01', '2014-08-25 16:53:01', 511237275, 836111569)
|
7771
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "bit_core_content_providers"[0m
|
7772
|
+
[1m[35mFixture Insert (1.1ms)[0m INSERT INTO "bit_core_content_providers" ("position", "type", "created_at", "updated_at", "id", "bit_core_content_module_id") VALUES (1, 'BitCore::ContentProviders::SlideshowProvider', '2014-08-25 16:53:01', '2014-08-25 16:53:01', 555816777, 437912910)
|
7773
|
+
[1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "bit_core_content_providers" ("position", "type", "created_at", "updated_at", "id", "bit_core_content_module_id") VALUES (1, 'BitCore::ContentProviders::SlideshowProvider', '2014-08-25 16:53:01', '2014-08-25 16:53:01', 46790607, 511237275)[0m
|
7774
|
+
[1m[35m (0.5ms)[0m COMMIT
|
7775
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL[0m
|
7776
|
+
PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_4738204" is a system trigger
|
7777
|
+
: ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL
|
7778
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER
|
7779
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
7780
|
+
[1m[35mBitCore::ContentModule Load (0.5ms)[0m SELECT "bit_core_content_modules".* FROM "bit_core_content_modules" WHERE "bit_core_content_modules"."id" = $1 LIMIT 1 [["id", 437912910]]
|
7781
|
+
[1m[36mBitCore::ContentProvider Load (0.7ms)[0m [1mSELECT "bit_core_content_providers".* FROM "bit_core_content_providers" WHERE "bit_core_content_providers"."bit_core_content_module_id" = $1 AND "bit_core_content_providers"."position" = 8 ORDER BY "bit_core_content_providers"."id" ASC LIMIT 1[0m [["bit_core_content_module_id", 437912910]]
|
7782
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
7783
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
7784
|
+
[1m[35mBitCore::ContentModule Load (0.4ms)[0m SELECT "bit_core_content_modules".* FROM "bit_core_content_modules" WHERE "bit_core_content_modules"."id" = $1 LIMIT 1 [["id", 437912910]]
|
7785
|
+
[1m[36mBitCore::ContentProvider Load (0.5ms)[0m [1mSELECT "bit_core_content_providers".* FROM "bit_core_content_providers" WHERE "bit_core_content_providers"."bit_core_content_module_id" = $1 AND "bit_core_content_providers"."position" = 1 ORDER BY "bit_core_content_providers"."id" ASC LIMIT 1[0m [["bit_core_content_module_id", 437912910]]
|
7786
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
7787
|
+
[1m[36m (0.5ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL[0m
|
7788
|
+
PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_4738204" is a system trigger
|
7789
|
+
: ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER ALL
|
7790
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER USER;ALTER TABLE "bit_core_tools" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" DISABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" DISABLE TRIGGER USER
|
7791
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
7792
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "bit_core_slideshows"
|
7793
|
+
[1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "bit_core_slideshows" ("title", "created_at", "updated_at", "id") VALUES ('Slideshow 1', '2014-08-25 16:53:02', '2014-08-25 16:53:02', 504123193)[0m
|
7794
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "bit_core_slides"
|
7795
|
+
[1m[36mFixture Insert (1.0ms)[0m [1mINSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (1, 'Slide 1', 'lorem...', '2014-08-25 16:53:02', '2014-08-25 16:53:02', 538050605, 504123193)[0m
|
7796
|
+
[1m[35mFixture Insert (0.4ms)[0m INSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (2, 'Slide 2', 'lorem...', '2014-08-25 16:53:02', '2014-08-25 16:53:02', 958091673, 504123193)
|
7797
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "bit_core_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_core_slideshow_id") VALUES (3, 'Slide 3', 'lorem...', '2014-08-25 16:53:02', '2014-08-25 16:53:02', 236740868, 504123193)[0m
|
7798
|
+
[1m[35m (0.5ms)[0m COMMIT
|
7799
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL[0m
|
7800
|
+
PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_4738204" is a system trigger
|
7801
|
+
: ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER ALL
|
7802
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER USER;ALTER TABLE "bit_core_tools" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_modules" ENABLE TRIGGER USER;ALTER TABLE "bit_core_content_providers" ENABLE TRIGGER USER
|
7803
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
7804
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
7805
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
7806
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
7807
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7808
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
7809
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7810
|
+
[1m[35mBitCore::ContentProvider Exists (0.5ms)[0m SELECT 1 AS one FROM "bit_core_content_providers" WHERE ("bit_core_content_providers"."position" = 1 AND "bit_core_content_providers"."bit_core_content_module_id" IS NULL) LIMIT 1
|
7811
|
+
[1m[36mBitCore::ContentProvider Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "bit_core_content_providers" WHERE ("bit_core_content_providers"."position" = 1 AND "bit_core_content_providers"."bit_core_content_module_id" IS NULL) LIMIT 1[0m
|
7812
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
7813
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7814
|
+
[1m[35mBitCore::ContentProvider Exists (0.5ms)[0m SELECT 1 AS one FROM "bit_core_content_providers" WHERE ("bit_core_content_providers"."position" = 1 AND "bit_core_content_providers"."bit_core_content_module_id" IS NULL) LIMIT 1
|
7815
|
+
[1m[36mBitCore::ContentProvider Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "bit_core_content_providers" WHERE ("bit_core_content_providers"."position" = 1 AND "bit_core_content_providers"."bit_core_content_module_id" IS NULL) LIMIT 1[0m
|
7816
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
7817
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7818
|
+
[1m[35mBitCore::ContentProvider Exists (0.6ms)[0m SELECT 1 AS one FROM "bit_core_content_providers" WHERE ("bit_core_content_providers"."position" = 1 AND "bit_core_content_providers"."bit_core_content_module_id" IS NULL) LIMIT 1
|
7819
|
+
[1m[36mBitCore::ContentProvider Exists (0.9ms)[0m [1mSELECT 1 AS one FROM "bit_core_content_providers" WHERE ("bit_core_content_providers"."position" = 1 AND "bit_core_content_providers"."bit_core_content_module_id" IS NULL) LIMIT 1[0m
|
7820
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
7821
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7822
|
+
[1m[35mBitCore::Slideshow Load (0.6ms)[0m SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
|
7823
|
+
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1[0m [["bit_core_slideshow_id", 504123193]]
|
7824
|
+
[1m[35mBitCore::Slide Exists (0.6ms)[0m 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
|
7825
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
7826
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7827
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 538050605]]
|
7828
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
|
7829
|
+
[1m[36mBitCore::Slide Load (0.3ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 236740868]]
|
7830
|
+
[1m[35mBitCore::Slideshow Load (0.3ms)[0m SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
|
7831
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
7832
|
+
[1m[35m (0.3ms)[0m SET CONSTRAINTS bit_core_slide_position DEFERRED
|
7833
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "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[0m [["bit_core_slideshow_id", 504123193], ["id", 236740868]]
|
7834
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868 [["position", 1], ["updated_at", "2014-08-25 16:53:02.126901"]]
|
7835
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "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[0m [["bit_core_slideshow_id", 504123193], ["id", 538050605]]
|
7836
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 538050605 [["position", 2], ["updated_at", "2014-08-25 16:53:02.130108"]]
|
7837
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "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[0m [["bit_core_slideshow_id", 504123193], ["id", 958091673]]
|
7838
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 958091673 [["position", 3], ["updated_at", "2014-08-25 16:53:02.132557"]]
|
7839
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7840
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m 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]]
|
7841
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "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[0m [["bit_core_slideshow_id", 504123193], ["id", 958091673]]
|
7842
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m 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]]
|
7843
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
7844
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7845
|
+
[1m[36mBitCore::Slideshow Load (0.3ms)[0m [1mSELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1[0m [["id", 504123193]]
|
7846
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
|
7847
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7848
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 [["id", 958091673]]
|
7849
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7850
|
+
[1m[35mBitCore::Slide Load (0.4ms)[0m 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]]
|
7851
|
+
[1m[36mBitCore::Slide Load (0.4ms)[0m [1mSELECT "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[0m [["bit_core_slideshow_id", 504123193]]
|
7852
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
7853
|
+
[1m[36mBitCore::Slide Exists (0.6ms)[0m [1mSELECT 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[0m
|
7854
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "bit_core_slides" SET "position" = $1, "updated_at" = $2 WHERE "bit_core_slides"."id" = 236740868 [["position", 2], ["updated_at", "2014-08-25 16:53:02.146707"]]
|
7855
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7856
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
|
7857
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1[0m [["bit_core_slideshow_id", 504123193]]
|
7858
|
+
[1m[35mBitCore::Slide Load (0.9ms)[0m SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
|
7859
|
+
[1m[36mBitCore::Slide Load (1.4ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 ORDER BY position LIMIT 1[0m [["bit_core_slideshow_id", 504123193]]
|
7860
|
+
[1m[35mBitCore::Slide Load (0.6ms)[0m 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]]
|
7861
|
+
[1m[36mBitCore::Slide Load (0.5ms)[0m [1mSELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1[0m [["id", 236740868]]
|
7862
|
+
[1m[35mBitCore::Slide Load (0.6ms)[0m 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]]
|
7863
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bit_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Carty-Fickes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|