bit_core 1.2.1 → 1.2.2

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: 7b6043b98fb0fe82d9004e6ea1b9a55222aa4348
4
- data.tar.gz: b0f2c3c86049ec592ecd593490ddfd5e6b51b6b1
3
+ metadata.gz: 7dc65a6336c3fbf1b6f52e199fcabba11d8de689
4
+ data.tar.gz: 0bce9de93ebeca1748aabfe663f81c154b3c807e
5
5
  SHA512:
6
- metadata.gz: 8415346437cb714f816f7464bfee83970919625a06d3353cc002578ac4faa331750ccf7cd44cf30b56159bd9c68e68c23de1292162a06a3e5ccc26dcac155c7f
7
- data.tar.gz: 35da3aa2c00d2ffb5beec4e828eea9d9456ea3d8685d8e96580ff71326c866db27c95d75886acf55e7896408d5d6f9db1cf326b17b951cc05902a3f0e321b794
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
@@ -1,4 +1,4 @@
1
1
  # nodoc
2
2
  module BitCore
3
- VERSION = "1.2.1"
3
+ VERSION = "1.2.2"
4
4
  end
@@ -7676,3 +7676,188 @@ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_a_15
7676
7676
   (0.1ms) ROLLBACK
7677
7677
   (0.1ms) BEGIN
7678
7678
   (0.1ms) ROLLBACK
7679
+ ActiveRecord::SchemaMigration Load (2.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
7680
+ PG::InsufficientPrivilege: ERROR: permission denied for relation schema_migrations
7681
+ : SELECT "schema_migrations".* FROM "schema_migrations"
7682
+  (11.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
7683
+  (5.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7684
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
7685
+ Migrating to CreateBitCoreTools (20140415210052)
7686
+  (0.3ms) BEGIN
7687
+  (8.7ms) 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) 
7688
+  (3.1ms) ALTER TABLE bit_core_tools
7689
+ ADD CONSTRAINT bit_core_tool_position UNIQUE (position)
7690
+ DEFERRABLE INITIALLY IMMEDIATE
7691
+
7692
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415210052"]]
7693
+  (0.6ms) COMMIT
7694
+ Migrating to CreateBitCoreContentModules (20140415211458)
7695
+  (0.3ms) BEGIN
7696
+  (3.8ms) 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
+  (2.2ms)  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
+ 
7701
+  (3.0ms) 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
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415211458"]]
7707
+  (0.6ms) COMMIT
7708
+ Migrating to CreateBitCoreContentProviders (20140415213346)
7709
+  (0.5ms) BEGIN
7710
+  (4.9ms) 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
+  (1.5ms)  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
+ 
7715
+  (2.0ms) 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
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140415213346"]]
7721
+  (0.6ms) COMMIT
7722
+ Migrating to CreateBitCoreSlideshows (20140417173056)
7723
+  (0.8ms) BEGIN
7724
+  (5.1ms) CREATE TABLE "bit_core_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
7725
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417173056"]]
7726
+  (0.6ms) COMMIT
7727
+ Migrating to CreateBitCoreSlides (20140417174159)
7728
+  (0.4ms) BEGIN
7729
+  (5.6ms) 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
+  (1.5ms)  ALTER TABLE bit_core_slides
7731
+ ADD CONSTRAINT bit_core_slide_position UNIQUE (bit_core_slideshow_id, position)
7732
+ DEFERRABLE INITIALLY IMMEDIATE
7733
+ 
7734
+  (2.6ms) 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
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140417174159"]]
7740
+  (0.6ms) COMMIT
7741
+ Migrating to AddOptionsToSlides (20140620174146)
7742
+  (0.4ms) BEGIN
7743
+  (0.6ms) ALTER TABLE "bit_core_slides" ADD COLUMN "options" text
7744
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620174146"]]
7745
+  (0.4ms) COMMIT
7746
+ Migrating to AddConfigFieldsToProviders (20140620174147)
7747
+  (0.2ms) BEGIN
7748
+  (0.6ms) ALTER TABLE "bit_core_content_providers" ADD COLUMN "template_path" character varying(255)
7749
+  (0.4ms) ALTER TABLE "bit_core_content_providers" ADD COLUMN "data_class_name" character varying(255)
7750
+  (0.3ms) ALTER TABLE "bit_core_content_providers" ADD COLUMN "data_attributes" text
7751
+  (0.3ms) ALTER TABLE "bit_core_content_providers" ADD COLUMN "show_next_nav" boolean
7752
+  (0.3ms) ALTER TABLE "bit_core_content_providers" ADD COLUMN "locals" text
7753
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140620174147"]]
7754
+  (0.3ms) COMMIT
7755
+ Migrating to AddTypeToContentModules (20140625133118)
7756
+  (0.2ms) BEGIN
7757
+  (2.1ms) ALTER TABLE "bit_core_content_modules" ADD COLUMN "type" character varying(255)
7758
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140625133118"]]
7759
+  (0.4ms) COMMIT
7760
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
7761
+  (0.9ms) 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
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
+  (0.7ms) 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
+  (0.3ms) BEGIN
7766
+ Fixture Delete (0.6ms) DELETE FROM "bit_core_tools"
7767
+ Fixture Insert (1.2ms) INSERT 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)
7768
+ Fixture Delete (0.5ms) DELETE FROM "bit_core_content_modules"
7769
+ Fixture Insert (1.1ms) INSERT 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)
7770
+ Fixture Insert (0.4ms) 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
+ Fixture Delete (0.8ms) DELETE FROM "bit_core_content_providers"
7772
+ Fixture Insert (1.1ms) 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
+ Fixture Insert (0.6ms) 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', 46790607, 511237275)
7774
+  (0.5ms) COMMIT
7775
+  (0.4ms) 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
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
+  (0.4ms) 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
+  (0.2ms) BEGIN
7780
+ BitCore::ContentModule Load (0.5ms) SELECT "bit_core_content_modules".* FROM "bit_core_content_modules" WHERE "bit_core_content_modules"."id" = $1 LIMIT 1 [["id", 437912910]]
7781
+ BitCore::ContentProvider Load (0.7ms) SELECT "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 [["bit_core_content_module_id", 437912910]]
7782
+  (0.3ms) ROLLBACK
7783
+  (0.2ms) BEGIN
7784
+ BitCore::ContentModule Load (0.4ms) SELECT "bit_core_content_modules".* FROM "bit_core_content_modules" WHERE "bit_core_content_modules"."id" = $1 LIMIT 1 [["id", 437912910]]
7785
+ BitCore::ContentProvider Load (0.5ms) SELECT "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 [["bit_core_content_module_id", 437912910]]
7786
+  (0.3ms) ROLLBACK
7787
+  (0.5ms) 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
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
+  (0.4ms) 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
+  (0.2ms) BEGIN
7792
+ Fixture Delete (0.5ms) DELETE FROM "bit_core_slideshows"
7793
+ Fixture Insert (0.6ms) INSERT 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)
7794
+ Fixture Delete (0.6ms) DELETE FROM "bit_core_slides"
7795
+ Fixture Insert (1.0ms) INSERT 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)
7796
+ Fixture Insert (0.4ms) 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
+ Fixture Insert (0.4ms) INSERT 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)
7798
+  (0.5ms) COMMIT
7799
+  (0.4ms) 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
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
+  (0.5ms) 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
+  (0.2ms) BEGIN
7804
+  (0.3ms) ROLLBACK
7805
+  (0.2ms) BEGIN
7806
+  (0.3ms) ROLLBACK
7807
+  (0.1ms) BEGIN
7808
+  (0.2ms) ROLLBACK
7809
+  (0.1ms) BEGIN
7810
+ BitCore::ContentProvider Exists (0.5ms) 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
+ BitCore::ContentProvider Exists (0.5ms) 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
7812
+  (0.3ms) ROLLBACK
7813
+  (0.1ms) BEGIN
7814
+ BitCore::ContentProvider Exists (0.5ms) 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
+ BitCore::ContentProvider Exists (0.5ms) 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
7816
+  (0.2ms) ROLLBACK
7817
+  (0.1ms) BEGIN
7818
+ BitCore::ContentProvider Exists (0.6ms) 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
+ BitCore::ContentProvider Exists (0.9ms) 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
7820
+  (0.3ms) ROLLBACK
7821
+  (0.1ms) BEGIN
7822
+ BitCore::Slideshow Load (0.6ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
7823
+  (0.7ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
7824
+ BitCore::Slide Exists (0.6ms) 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
+  (0.2ms) ROLLBACK
7826
+  (0.1ms) BEGIN
7827
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
7828
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
7829
+ BitCore::Slide Load (0.3ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
7830
+ BitCore::Slideshow Load (0.3ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
7831
+  (0.2ms) SAVEPOINT active_record_1
7832
+  (0.3ms) SET CONSTRAINTS bit_core_slide_position DEFERRED
7833
+ BitCore::Slide Load (0.4ms) 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]]
7834
+ SQL (0.5ms) 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
+ BitCore::Slide Load (0.4ms) 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]]
7836
+ SQL (0.4ms) 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
+ BitCore::Slide Load (0.4ms) 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]]
7838
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7840
+ BitCore::Slide Load (0.4ms) 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
+ 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]]
7842
+ BitCore::Slide Load (0.4ms) 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
+  (0.2ms) ROLLBACK
7844
+  (0.1ms) BEGIN
7845
+ BitCore::Slideshow Load (0.3ms) SELECT "bit_core_slideshows".* FROM "bit_core_slideshows" WHERE "bit_core_slideshows"."id" = $1 LIMIT 1 [["id", 504123193]]
7846
+ BitCore::Slide Load (0.4ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
7847
+  (0.1ms) SAVEPOINT active_record_1
7848
+ SQL (0.3ms) DELETE FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 [["id", 958091673]]
7849
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7850
+ 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]]
7851
+ BitCore::Slide Load (0.4ms) 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]]
7852
+  (0.2ms) SAVEPOINT active_record_1
7853
+ 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
7854
+ SQL (0.5ms) 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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7856
+  (0.4ms) SELECT COUNT(*) FROM "bit_core_slides" WHERE "bit_core_slides"."bit_core_slideshow_id" = $1 [["bit_core_slideshow_id", 504123193]]
7857
+ BitCore::Slide Load (0.5ms) 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]]
7858
+ BitCore::Slide Load (0.9ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
7859
+ BitCore::Slide Load (1.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]]
7860
+ BitCore::Slide Load (0.6ms) 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
+ BitCore::Slide Load (0.5ms) SELECT "bit_core_slides".* FROM "bit_core_slides" WHERE "bit_core_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
7862
+ BitCore::Slide Load (0.6ms) 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
+  (0.2ms) ROLLBACK
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.1
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-07-02 00:00:00.000000000 Z
11
+ date: 2014-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails