bit_player 0.2.1 → 0.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: f806ad2075790f0b9af775ed8bf348c0846a3574
4
- data.tar.gz: 0c91209536fe8ec0e55054e701292608c2064214
3
+ metadata.gz: 2192d34937b1e8c8161a9d98d66ec88188843873
4
+ data.tar.gz: 904c71b1cd880b82d05e6c049c1267677945fa04
5
5
  SHA512:
6
- metadata.gz: 2ad608329d23c898ebb1e82b67e0e04a83fb9fa65e6e5773fc5e262533bcd126d55093bee8fd6895d6432d6f8beabfc053c32fd43fe0dca56f8f0b34db4486fa
7
- data.tar.gz: 1f08e49720820c4d6ded571b6b0217945bb12113403a73b6a06517f56bdc110d6eeba837b77145bc08465b851154438767393cea0eb5feb6148c3640eff49c40
6
+ metadata.gz: ded9d01a56e56947892c12909c139a9b9951cc700d9c8cd49b9d9f129f03d7ea3c103e6398b5c0b59211286602b09e395407d1ae6e5cab174cfa7c4b32431aee
7
+ data.tar.gz: 849597e183fac5c2eeaee54e135fb4a97942af0a397919bb18709a8939bba13e34544b35a7d8dd0fdabe50a467ba37e94478ed4bd185fd6a1aedc1f651a60a46
@@ -22,5 +22,15 @@ module BitPlayer
22
22
  def provider_exists?(position)
23
23
  content_providers.exists?(position: position)
24
24
  end
25
+
26
+ def add_content_provider(type)
27
+ content_providers.create(type: type, position: last_position + 1)
28
+ end
29
+
30
+ private
31
+
32
+ def last_position
33
+ content_providers.order(:position).last.try(:position) || 0
34
+ end
25
35
  end
26
36
  end
@@ -9,5 +9,15 @@ module BitPlayer
9
9
  validates :title, presence: true
10
10
  validates :position, uniqueness: true
11
11
  validates :is_home, inclusion: { in: [true, false] }
12
+
13
+ def add_module(title)
14
+ content_modules.create(title: title, position: last_position + 1)
15
+ end
16
+
17
+ private
18
+
19
+ def last_position
20
+ content_modules.order(:position).last.try(:position) || 0
21
+ end
12
22
  end
13
23
  end
@@ -1,3 +1,3 @@
1
1
  module BitPlayer
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -1836,3 +1836,214 @@ PG::InsufficientPrivilege: ERROR: permission denied: "RI_ConstraintTrigger_c_23
1836
1836
  BitPlayer::ContentModule Load (0.6ms) SELECT "bit_player_content_modules".* FROM "bit_player_content_modules" WHERE "bit_player_content_modules"."id" = $1 LIMIT 1 [["id", 437912910]]
1837
1837
  BitPlayer::ContentProvider Load (0.8ms) SELECT "bit_player_content_providers".* FROM "bit_player_content_providers" WHERE "bit_player_content_providers"."bit_player_content_module_id" = $1 AND "bit_player_content_providers"."position" = 8 ORDER BY "bit_player_content_providers"."id" ASC LIMIT 1 [["bit_player_content_module_id", 437912910]]
1838
1838
   (0.2ms) ROLLBACK
1839
+ ActiveRecord::SchemaMigration Load (1.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
1840
+ PG::InsufficientPrivilege: ERROR: permission denied for relation schema_migrations
1841
+ : SELECT "schema_migrations".* FROM "schema_migrations"
1842
+  (2.5ms) 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_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1843
+ PG::InsufficientPrivilege: ERROR: must be owner of relation schema_migrations
1844
+ : 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_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1845
+  (0.9ms) 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_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
1846
+ PG::InsufficientPrivilege: ERROR: must be owner of relation schema_migrations
1847
+ : 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_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
1848
+  (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_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1849
+ PG::InsufficientPrivilege: ERROR: must be owner of relation schema_migrations
1850
+ : 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_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1851
+  (0.4ms) 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_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
1852
+ PG::InsufficientPrivilege: ERROR: must be owner of relation schema_migrations
1853
+ : 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_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
1854
+  (0.3ms) 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_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1855
+ PG::InsufficientPrivilege: ERROR: must be owner of relation schema_migrations
1856
+ : 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_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1857
+  (0.3ms) 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_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
1858
+ PG::InsufficientPrivilege: ERROR: must be owner of relation schema_migrations
1859
+ : 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_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
1860
+  (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_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1861
+ PG::InsufficientPrivilege: ERROR: must be owner of relation schema_migrations
1862
+ : 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_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1863
+  (0.4ms) 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_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
1864
+ PG::InsufficientPrivilege: ERROR: must be owner of relation schema_migrations
1865
+ : 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_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
1866
+  (0.3ms) 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_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1867
+ PG::InsufficientPrivilege: ERROR: must be owner of relation schema_migrations
1868
+ : 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_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1869
+  (0.3ms) 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_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
1870
+ PG::InsufficientPrivilege: ERROR: must be owner of relation schema_migrations
1871
+ : 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_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
1872
+  (0.3ms) 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_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1873
+ PG::InsufficientPrivilege: ERROR: must be owner of relation schema_migrations
1874
+ : 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_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1875
+  (0.3ms) 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_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
1876
+ PG::InsufficientPrivilege: ERROR: must be owner of relation schema_migrations
1877
+ : 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_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
1878
+  (0.3ms) 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_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1879
+ PG::InsufficientPrivilege: ERROR: must be owner of relation schema_migrations
1880
+ : 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_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1881
+  (0.3ms) 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_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
1882
+ PG::InsufficientPrivilege: ERROR: must be owner of relation schema_migrations
1883
+ : 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_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
1884
+  (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_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1885
+ PG::InsufficientPrivilege: ERROR: must be owner of relation schema_migrations
1886
+ : 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_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1887
+  (0.3ms) 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_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
1888
+ PG::InsufficientPrivilege: ERROR: must be owner of relation schema_migrations
1889
+ : 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_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
1890
+  (0.4ms) 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_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1891
+ PG::InsufficientPrivilege: ERROR: must be owner of relation schema_migrations
1892
+ : 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_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1893
+  (0.3ms) 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_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
1894
+ PG::InsufficientPrivilege: ERROR: must be owner of relation schema_migrations
1895
+ : 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_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
1896
+  (0.3ms) 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_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1897
+ PG::InsufficientPrivilege: ERROR: must be owner of relation schema_migrations
1898
+ : 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_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1899
+  (0.3ms) 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_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
1900
+ PG::InsufficientPrivilege: ERROR: must be owner of relation schema_migrations
1901
+ : 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_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
1902
+  (0.3ms) 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_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1903
+ PG::InsufficientPrivilege: ERROR: must be owner of relation schema_migrations
1904
+ : 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_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" DISABLE TRIGGER ALL
1905
+  (0.3ms) 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_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
1906
+ PG::InsufficientPrivilege: ERROR: must be owner of relation schema_migrations
1907
+ : 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_slideshows" DISABLE TRIGGER USER;ALTER TABLE "bit_core_slides" DISABLE TRIGGER USER
1908
+  (0.3ms) 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_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1909
+ PG::InsufficientPrivilege: ERROR: must be owner of relation schema_migrations
1910
+ : 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_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_core_slides" ENABLE TRIGGER ALL
1911
+  (0.4ms) 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_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
1912
+ PG::InsufficientPrivilege: ERROR: must be owner of relation schema_migrations
1913
+ : 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_slideshows" ENABLE TRIGGER USER;ALTER TABLE "bit_core_slides" ENABLE TRIGGER USER
1914
+  (0.1ms) BEGIN
1915
+  (0.3ms) ROLLBACK
1916
+  (0.2ms) BEGIN
1917
+ PG::UndefinedTable: ERROR: relation "bit_player_tools" does not exist
1918
+ LINE 5: WHERE a.attrelid = '"bit_player_tools"'::regc...
1919
+ ^
1920
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
1921
+ pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
1922
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
1923
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
1924
+ WHERE a.attrelid = '"bit_player_tools"'::regclass
1925
+ AND a.attnum > 0 AND NOT a.attisdropped
1926
+ ORDER BY a.attnum
1927
+
1928
+  (0.2ms) ROLLBACK
1929
+  (9.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
1930
+  (5.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1931
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
1932
+ Migrating to CreateBitPlayerContentModules (20140305231316)
1933
+  (0.3ms) BEGIN
1934
+  (10.7ms) 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) 
1935
+ SQL (1.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305231316"]]
1936
+  (0.5ms) COMMIT
1937
+ Migrating to CreateBitPlayerContentProviders (20140305231317)
1938
+  (0.3ms) BEGIN
1939
+  (4.9ms) 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) 
1940
+  (1.1ms) CREATE INDEX "content_module_index" ON "bit_player_content_providers" ("bit_player_content_module_id")
1941
+  (6.8ms)  ALTER TABLE bit_player_content_providers
1942
+ ADD CONSTRAINT fk_content_providers_modules
1943
+ FOREIGN KEY (bit_player_content_module_id)
1944
+ REFERENCES bit_player_content_modules(id)
1945
+ 
1946
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305231317"]]
1947
+  (0.8ms) COMMIT
1948
+ Migrating to CreateBitPlayerParticipantStatuses (20140305233110)
1949
+  (0.4ms) BEGIN
1950
+  (3.3ms) 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) 
1951
+  (1.2ms) CREATE INDEX "index_participant_statuses_on_participant_id" ON "bit_player_participant_statuses" ("participant_id")
1952
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305233110"]]
1953
+  (0.5ms) COMMIT
1954
+ Migrating to CreateBitPlayerSlideshows (20140305234757)
1955
+  (0.3ms) BEGIN
1956
+  (4.0ms) CREATE TABLE "bit_player_slideshows" ("id" serial primary key, "title" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp)
1957
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140305234757"]]
1958
+  (0.5ms) COMMIT
1959
+ Migrating to CreateBitPlayerSlides (20140306000537)
1960
+  (0.3ms) BEGIN
1961
+  (6.1ms) 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)
1962
+  (1.1ms) CREATE INDEX "index_bit_player_slides_on_bit_player_slideshow_id" ON "bit_player_slides" ("bit_player_slideshow_id")
1963
+  (1.9ms) ALTER TABLE bit_player_slides
1964
+ ADD CONSTRAINT fk_slides_slideshows
1965
+ FOREIGN KEY (bit_player_slideshow_id)
1966
+ REFERENCES bit_player_slideshows(id)
1967
+
1968
+  (1.7ms)  ALTER TABLE bit_player_slides
1969
+ ADD CONSTRAINT bit_player_slide_position UNIQUE (bit_player_slideshow_id, position)
1970
+ DEFERRABLE INITIALLY IMMEDIATE
1971
+ 
1972
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140306000537"]]
1973
+  (0.6ms) COMMIT
1974
+ Migrating to CreateBitPlayerTools (20140407201524)
1975
+  (0.4ms) BEGIN
1976
+  (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) 
1977
+  (1.2ms) CREATE UNIQUE INDEX "index_bit_player_tools_on_title" ON "bit_player_tools" ("title")
1978
+  (1.2ms) CREATE UNIQUE INDEX "index_bit_player_tools_on_position" ON "bit_player_tools" ("position")
1979
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140407201524"]]
1980
+  (0.5ms) COMMIT
1981
+ Migrating to ChangeModuleContextToTool (20140407201525)
1982
+  (0.3ms) BEGIN
1983
+  (0.6ms) ALTER TABLE "bit_player_content_modules" ADD COLUMN "bit_player_tool_id" integer
1984
+ BitPlayer::ContentModule Load (0.4ms) SELECT "bit_player_content_modules".* FROM "bit_player_content_modules"
1985
+  (0.4ms) ALTER TABLE "bit_player_content_modules" ALTER "bit_player_tool_id" SET NOT NULL
1986
+  (0.9ms) ALTER TABLE "bit_player_content_modules" DROP "context"
1987
+  (2.3ms)  ALTER TABLE bit_player_content_modules
1988
+ ADD CONSTRAINT fk_content_modules_tools
1989
+ FOREIGN KEY (bit_player_tool_id)
1990
+ REFERENCES bit_player_tools(id)
1991
+ 
1992
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140407201525"]]
1993
+  (0.5ms) COMMIT
1994
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1995
+  (3.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_participant_statuses" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_slides" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_content_modules" DISABLE TRIGGER ALL
1996
+  (0.3ms) BEGIN
1997
+ Fixture Delete (0.9ms) DELETE FROM "bit_player_slideshows"
1998
+ Fixture Insert (0.8ms) INSERT INTO "bit_player_slideshows" ("title", "created_at", "updated_at", "id") VALUES ('Slideshow 1', '2014-04-24 16:47:07', '2014-04-24 16:47:07', 504123193)
1999
+ Fixture Delete (2.6ms) DELETE FROM "bit_player_slides"
2000
+ Fixture Insert (0.9ms) INSERT INTO "bit_player_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_player_slideshow_id") VALUES (1, 'Slide 1', 'lorem...', '2014-04-24 16:47:07', '2014-04-24 16:47:07', 538050605, 504123193)
2001
+ Fixture Insert (0.5ms) INSERT INTO "bit_player_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_player_slideshow_id") VALUES (2, 'Slide 2', 'lorem...', '2014-04-24 16:47:07', '2014-04-24 16:47:07', 958091673, 504123193)
2002
+ Fixture Insert (0.3ms) INSERT INTO "bit_player_slides" ("position", "title", "body", "created_at", "updated_at", "id", "bit_player_slideshow_id") VALUES (3, 'Slide 3', 'lorem...', '2014-04-24 16:47:07', '2014-04-24 16:47:07', 236740868, 504123193)
2003
+  (0.5ms) COMMIT
2004
+  (1.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_participant_statuses" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_slides" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_content_modules" ENABLE TRIGGER ALL
2005
+  (0.1ms) BEGIN
2006
+  (0.3ms) ROLLBACK
2007
+  (0.1ms) BEGIN
2008
+  (0.2ms) ROLLBACK
2009
+  (0.1ms) BEGIN
2010
+  (0.1ms) ROLLBACK
2011
+  (0.1ms) BEGIN
2012
+ BitPlayer::Slide Load (1.5ms) SELECT "bit_player_slides".* FROM "bit_player_slides" WHERE "bit_player_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
2013
+ BitPlayer::Slide Load (0.6ms) SELECT "bit_player_slides".* FROM "bit_player_slides" WHERE "bit_player_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
2014
+ BitPlayer::Slide Load (0.6ms) SELECT "bit_player_slides".* FROM "bit_player_slides" WHERE "bit_player_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
2015
+  (1.0ms) SAVEPOINT active_record_1
2016
+  (0.3ms) SET CONSTRAINTS bit_player_slide_position DEFERRED
2017
+ SQL (0.6ms) UPDATE "bit_player_slides" SET "position" = 1 WHERE "bit_player_slides"."id" = 236740868
2018
+ SQL (0.4ms) UPDATE "bit_player_slides" SET "position" = 2 WHERE "bit_player_slides"."id" = 538050605
2019
+ SQL (0.4ms) UPDATE "bit_player_slides" SET "position" = 3 WHERE "bit_player_slides"."id" = 958091673
2020
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2021
+ BitPlayer::Slide Load (0.4ms) SELECT "bit_player_slides".* FROM "bit_player_slides" WHERE "bit_player_slides"."id" = $1 LIMIT 1 [["id", 538050605]]
2022
+ BitPlayer::Slide Load (0.4ms) SELECT "bit_player_slides".* FROM "bit_player_slides" WHERE "bit_player_slides"."id" = $1 LIMIT 1 [["id", 958091673]]
2023
+ BitPlayer::Slide Load (0.4ms) SELECT "bit_player_slides".* FROM "bit_player_slides" WHERE "bit_player_slides"."id" = $1 LIMIT 1 [["id", 236740868]]
2024
+  (0.2ms) ROLLBACK
2025
+  (1.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_content_providers" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_participant_statuses" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_slideshows" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_slides" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_tools" DISABLE TRIGGER ALL;ALTER TABLE "bit_player_content_modules" DISABLE TRIGGER ALL
2026
+  (0.3ms) BEGIN
2027
+ Fixture Delete (0.6ms) DELETE FROM "bit_player_tools"
2028
+ Fixture Insert (0.8ms) INSERT INTO "bit_player_tools" ("title", "created_at", "updated_at", "id") VALUES ('Home', '2014-04-24 16:47:07', '2014-04-24 16:47:07', 836111569)
2029
+ Fixture Delete (0.4ms) DELETE FROM "bit_player_content_modules"
2030
+ Fixture Insert (2.4ms) INSERT INTO "bit_player_content_modules" ("title", "position", "created_at", "updated_at", "id", "bit_player_tool_id") VALUES ('Landing', 1, '2014-04-24 16:47:07', '2014-04-24 16:47:07', 437912910, 836111569)
2031
+ Fixture Insert (0.4ms) INSERT INTO "bit_player_content_modules" ("title", "position", "created_at", "updated_at", "id", "bit_player_tool_id") VALUES ('But wait, there''s more', 2, '2014-04-24 16:47:07', '2014-04-24 16:47:07', 511237275, 836111569)
2032
+ Fixture Delete (0.6ms) DELETE FROM "bit_player_content_providers"
2033
+ Fixture Insert (2.6ms) INSERT INTO "bit_player_content_providers" ("position", "type", "created_at", "updated_at", "id", "bit_player_content_module_id") VALUES (1, 'BitPlayer::ContentProviders::SlideshowProvider', '2014-04-24 16:47:07', '2014-04-24 16:47:07', 555816777, 437912910)
2034
+ Fixture Insert (0.5ms) INSERT INTO "bit_player_content_providers" ("position", "type", "created_at", "updated_at", "id", "bit_player_content_module_id") VALUES (1, 'BitPlayer::ContentProviders::SlideshowProvider', '2014-04-24 16:47:07', '2014-04-24 16:47:07', 46790607, 511237275)
2035
+  (0.5ms) COMMIT
2036
+  (1.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_content_providers" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_participant_statuses" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_slideshows" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_slides" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_tools" ENABLE TRIGGER ALL;ALTER TABLE "bit_player_content_modules" ENABLE TRIGGER ALL
2037
+  (0.3ms) BEGIN
2038
+ BitPlayer::ContentModule Load (1.1ms) SELECT "bit_player_content_modules".* FROM "bit_player_content_modules" WHERE "bit_player_content_modules"."id" = $1 LIMIT 1 [["id", 437912910]]
2039
+ BitPlayer::ContentProvider Load (1.5ms) SELECT "bit_player_content_providers".* FROM "bit_player_content_providers" WHERE "bit_player_content_providers"."bit_player_content_module_id" = $1 AND "bit_player_content_providers"."position" = 1 ORDER BY "bit_player_content_providers"."id" ASC LIMIT 1 [["bit_player_content_module_id", 437912910]]
2040
+  (0.3ms) ROLLBACK
2041
+  (0.2ms) BEGIN
2042
+ BitPlayer::ContentModule Load (0.5ms) SELECT "bit_player_content_modules".* FROM "bit_player_content_modules" WHERE "bit_player_content_modules"."id" = $1 LIMIT 1 [["id", 437912910]]
2043
+ BitPlayer::ContentProvider Load (0.8ms) SELECT "bit_player_content_providers".* FROM "bit_player_content_providers" WHERE "bit_player_content_providers"."bit_player_content_module_id" = $1 AND "bit_player_content_providers"."position" = 8 ORDER BY "bit_player_content_providers"."id" ASC LIMIT 1 [["bit_player_content_module_id", 437912910]]
2044
+  (0.2ms) ROLLBACK
2045
+  (0.1ms) BEGIN
2046
+  (0.2ms) ROLLBACK
2047
+  (0.2ms) BEGIN
2048
+ BitPlayer::ContentModule Load (0.6ms) SELECT "bit_player_content_modules".* FROM "bit_player_content_modules" WHERE "bit_player_content_modules"."bit_player_tool_id" = 1 AND "bit_player_content_modules"."position" = 1 ORDER BY "bit_player_content_modules"."id" ASC LIMIT 1
2049
+  (0.3ms) ROLLBACK
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bit_player
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.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-04-10 00:00:00.000000000 Z
11
+ date: 2014-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails