ecm_galleries 0.0.8 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/ecm/galleries/application_resources_controller.rb +5 -12
- data/app/models/ecm/galleries/picture_gallery.rb +10 -0
- data/app/view_helpers/ecm/galleries/galleries_helper.rb +40 -0
- data/config/locales/de.yml +1 -0
- data/config/locales/en.yml +1 -0
- data/lib/ecm/galleries/configuration.rb +1 -0
- data/lib/ecm/galleries/version.rb +1 -1
- data/lib/ecm_galleries.rb +2 -1
- data/lib/generators/ecm/galleries/install/templates/initializer.rb +7 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20181220235639_create_ecm_galleries_picture_galleries.ecm_galleries.rb +12 -0
- data/spec/dummy/db/migrate/20181220235640_create_ecm_galleries_picture_details.ecm_galleries.rb +15 -0
- data/spec/dummy/db/schema.rb +20 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +318 -0
- data/spec/dummy/log/test.log +31 -0
- metadata +24 -9
- data/app/helpers/ecm/galleries/application_helper.rb +0 -7
- data/app/jobs/ecm/galleries/application_job.rb +0 -4
- data/app/mailers/ecm/galleries/application_mailer.rb +0 -6
- data/app/view_helpers/ecm/galleries/view_helper.rb +0 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a41cea942a7d8e289948f111c9ca08da9eae1d806d497718357423903321f6a
|
4
|
+
data.tar.gz: 1b33a9c5d9bdbd8cff89ef9441fcd7d54a775dcf8bad42e85c586c6e36697a35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5d423217c9ab538b611f2092c707728c23584e9589e980eafdd0ba8bfda799ff4245064772cd43260385842613dc499b98175e8b0d9a9752329f4471f81f5db
|
7
|
+
data.tar.gz: aa4dae4b57814f160a7980e18c6ba0809f0a2b73f07cde9ebfefb6d591a91f2ca29c8bca8dab5ae1ec8059a9557f66be19b64c6b9b2157e7cfedee56590110f6
|
@@ -1,18 +1,11 @@
|
|
1
1
|
module Ecm::Galleries
|
2
2
|
class ApplicationResourcesController < Ecm::Galleries::Configuration.base_controller.constantize
|
3
|
-
include ::ResourcesController::
|
4
|
-
include ::ResourcesController::
|
5
|
-
include ::ResourcesController::
|
6
|
-
include ::ResourcesController::
|
7
|
-
include ::ResourcesController::
|
8
|
-
include ::Controller::QueryConditions
|
3
|
+
include Rao::ResourcesController::RestActionsConcern
|
4
|
+
include Rao::ResourcesController::ResourcesConcern
|
5
|
+
include Rao::ResourcesController::RestResourceUrlsConcern
|
6
|
+
include Rao::ResourcesController::ResourceInflectionsConcern
|
7
|
+
include Rao::ResourcesController::LocationHistoryConcern
|
9
8
|
|
10
9
|
helper Twitter::Bootstrap::Components::Rails::V4::ComponentsHelper
|
11
|
-
|
12
|
-
private
|
13
|
-
|
14
|
-
def load_collection_scope
|
15
|
-
add_conditions_from_query(resource_class)
|
16
|
-
end
|
17
10
|
end
|
18
11
|
end
|
@@ -49,5 +49,15 @@ module Ecm::Galleries
|
|
49
49
|
def assets_count
|
50
50
|
assets.count
|
51
51
|
end
|
52
|
+
|
53
|
+
module DisplayCodesConcern
|
54
|
+
extend ActiveSupport::Concern
|
55
|
+
|
56
|
+
def display_code_for_erb
|
57
|
+
"<%= galleries_helper(self).render(name: '#{name}') %>"
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
include DisplayCodesConcern
|
52
62
|
end
|
53
63
|
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
module Ecm
|
2
|
+
module Galleries
|
3
|
+
# Usage:
|
4
|
+
#
|
5
|
+
# # app/controllers/application_vontroller.rb
|
6
|
+
# class ApplicationController < ActionController::Base
|
7
|
+
# view_helper Ecm::Galleries::GalleriesHelper, as: :galleries_helper
|
8
|
+
# # ...
|
9
|
+
# end
|
10
|
+
#
|
11
|
+
# # app/views/home/index.html.haml
|
12
|
+
# = galleries_helper(self).render(name: 'main', variant_options: { combine_options: { resize: "255x255^", extent: "255x255", gravity: "center"} }, show_details: true)
|
13
|
+
#
|
14
|
+
# Default options are taken from Ecm::Galleries::Configuration.galleries_helper_render_default_options.
|
15
|
+
# You can set this option in the initializer.
|
16
|
+
#
|
17
|
+
class GalleriesHelper < ViewHelper::Base
|
18
|
+
def initialize(context)
|
19
|
+
@context = context
|
20
|
+
end
|
21
|
+
|
22
|
+
def render(options = {})
|
23
|
+
options.reverse_merge!(Ecm::Galleries::Configuration.galleries_helper_render_default_options)
|
24
|
+
|
25
|
+
name = options.delete(:name)
|
26
|
+
variant_options = options.delete(:variant_options)
|
27
|
+
show_details = options.delete(:show_details)
|
28
|
+
|
29
|
+
resource = Ecm::Galleries::PictureGallery.where(name: name).first
|
30
|
+
c.render partial: 'ecm/galleries/view_helper/render', locals: { resource: resource, variant_options: variant_options, show_details: show_details }
|
31
|
+
end
|
32
|
+
|
33
|
+
private
|
34
|
+
|
35
|
+
def c
|
36
|
+
@context
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
data/config/locales/de.yml
CHANGED
data/config/locales/en.yml
CHANGED
data/lib/ecm_galleries.rb
CHANGED
@@ -4,4 +4,11 @@ Ecm::Galleries.configure do |config|
|
|
4
4
|
# Default: config.base_controller = '<%= base_controller_class_name %>'
|
5
5
|
#
|
6
6
|
config.base_controller = '<%= base_controller_class_name %>'
|
7
|
+
|
8
|
+
# These options are the defaults that will be applied to when rendering
|
9
|
+
# galleries through the galleries helper.
|
10
|
+
#
|
11
|
+
# Default: config.galleries_helper_render_default_options = { variant_options: {}, show_details: false }
|
12
|
+
#
|
13
|
+
config.galleries_helper_render_default_options = { variant_options: {}, show_details: false }
|
7
14
|
end
|
Binary file
|
data/spec/dummy/db/migrate/20181220235639_create_ecm_galleries_picture_galleries.ecm_galleries.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# This migration comes from ecm_galleries (originally 20180301153325)
|
2
|
+
class CreateEcmGalleriesPictureGalleries < ActiveRecord::Migration[5.2]
|
3
|
+
def change
|
4
|
+
create_table :ecm_galleries_picture_galleries do |t|
|
5
|
+
t.string :name
|
6
|
+
t.timestamp :published_at
|
7
|
+
t.text :description
|
8
|
+
|
9
|
+
t.timestamps
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
data/spec/dummy/db/migrate/20181220235640_create_ecm_galleries_picture_details.ecm_galleries.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# This migration comes from ecm_galleries (originally 20180302082402)
|
2
|
+
class CreateEcmGalleriesPictureDetails < ActiveRecord::Migration[5.2]
|
3
|
+
def change
|
4
|
+
create_table :ecm_galleries_picture_details do |t|
|
5
|
+
t.integer :picture_gallery_id
|
6
|
+
t.integer :asset_id
|
7
|
+
t.string :title
|
8
|
+
t.text :description
|
9
|
+
t.integer :position
|
10
|
+
t.timestamp :published_at
|
11
|
+
|
12
|
+
t.timestamps
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
#
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema.define(version:
|
13
|
+
ActiveRecord::Schema.define(version: 2018_12_20_235640) do
|
14
14
|
|
15
15
|
create_table "active_storage_attachments", force: :cascade do |t|
|
16
16
|
t.string "name", null: false
|
@@ -38,4 +38,23 @@ ActiveRecord::Schema.define(version: 2018_03_01_100352) do
|
|
38
38
|
t.datetime "updated_at", null: false
|
39
39
|
end
|
40
40
|
|
41
|
+
create_table "ecm_galleries_picture_details", force: :cascade do |t|
|
42
|
+
t.integer "picture_gallery_id"
|
43
|
+
t.integer "asset_id"
|
44
|
+
t.string "title"
|
45
|
+
t.text "description"
|
46
|
+
t.integer "position"
|
47
|
+
t.datetime "published_at"
|
48
|
+
t.datetime "created_at", null: false
|
49
|
+
t.datetime "updated_at", null: false
|
50
|
+
end
|
51
|
+
|
52
|
+
create_table "ecm_galleries_picture_galleries", force: :cascade do |t|
|
53
|
+
t.string "name"
|
54
|
+
t.datetime "published_at"
|
55
|
+
t.text "description"
|
56
|
+
t.datetime "created_at", null: false
|
57
|
+
t.datetime "updated_at", null: false
|
58
|
+
end
|
59
|
+
|
41
60
|
end
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -0,0 +1,318 @@
|
|
1
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "active_storage_attachments"[0m
|
2
|
+
↳ db/schema.rb:15
|
3
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4
|
+
↳ db/schema.rb:15
|
5
|
+
[1m[35m (5.1ms)[0m [1m[35mCREATE TABLE "active_storage_attachments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "record_type" varchar NOT NULL, "record_id" integer NOT NULL, "blob_id" integer NOT NULL, "created_at" datetime NOT NULL)[0m
|
6
|
+
↳ db/schema.rb:15
|
7
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")[0m
|
8
|
+
↳ db/schema.rb:15
|
9
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")[0m
|
10
|
+
↳ db/schema.rb:15
|
11
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "active_storage_blobs"[0m
|
12
|
+
↳ db/schema.rb:25
|
13
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE TABLE "active_storage_blobs" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar NOT NULL, "filename" varchar NOT NULL, "content_type" varchar, "metadata" text, "byte_size" bigint NOT NULL, "checksum" varchar NOT NULL, "created_at" datetime NOT NULL)[0m
|
14
|
+
↳ db/schema.rb:25
|
15
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key")[0m
|
16
|
+
↳ db/schema.rb:25
|
17
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "ecm_galleries_collections"[0m
|
18
|
+
↳ db/schema.rb:36
|
19
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE TABLE "ecm_galleries_collections" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
20
|
+
↳ db/schema.rb:36
|
21
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
22
|
+
↳ db/schema.rb:13
|
23
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
24
|
+
↳ db/schema.rb:13
|
25
|
+
[1m[35m (3.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180301100352)[0m
|
26
|
+
↳ db/schema.rb:13
|
27
|
+
[1m[35m (1.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
28
|
+
(20180301100350);
|
29
|
+
|
30
|
+
[0m
|
31
|
+
↳ db/schema.rb:13
|
32
|
+
[1m[35m (2.8ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
33
|
+
↳ db/schema.rb:13
|
34
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
35
|
+
↳ db/schema.rb:13
|
36
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
37
|
+
↳ db/schema.rb:13
|
38
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-12-20 23:54:51.114045"], ["updated_at", "2018-12-20 23:54:51.114045"]]
|
39
|
+
↳ db/schema.rb:13
|
40
|
+
[1m[35m (2.8ms)[0m [1m[36mcommit transaction[0m
|
41
|
+
↳ db/schema.rb:13
|
42
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
43
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
44
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
45
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
46
|
+
[1m[36mActiveRecord::InternalMetadata Update (0.2ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ?[0m [["value", "test"], ["updated_at", "2018-12-20 23:54:51.119712"], ["key", "environment"]]
|
47
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
48
|
+
[1m[35m (2.9ms)[0m [1m[36mcommit transaction[0m
|
49
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
50
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
51
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
52
|
+
[1m[35m (4.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
53
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
54
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
55
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
56
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
57
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
58
|
+
Migrating to CreateActiveStorageTables (20180301100350)
|
59
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
60
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
61
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "active_storage_blobs" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar NOT NULL, "filename" varchar NOT NULL, "content_type" varchar, "metadata" text, "byte_size" bigint NOT NULL, "checksum" varchar NOT NULL, "created_at" datetime NOT NULL)[0m
|
62
|
+
↳ db/migrate/20180301100350_create_active_storage_tables.active_storage.rb:4
|
63
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key")[0m
|
64
|
+
↳ db/migrate/20180301100350_create_active_storage_tables.active_storage.rb:4
|
65
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE TABLE "active_storage_attachments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "record_type" varchar NOT NULL, "record_id" integer NOT NULL, "blob_id" integer NOT NULL, "created_at" datetime NOT NULL)[0m
|
66
|
+
↳ db/migrate/20180301100350_create_active_storage_tables.active_storage.rb:16
|
67
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")[0m
|
68
|
+
↳ db/migrate/20180301100350_create_active_storage_tables.active_storage.rb:16
|
69
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")[0m
|
70
|
+
↳ db/migrate/20180301100350_create_active_storage_tables.active_storage.rb:16
|
71
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180301100350"]]
|
72
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
73
|
+
[1m[35m (3.4ms)[0m [1m[36mcommit transaction[0m
|
74
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
75
|
+
Migrating to CreateEcmGalleriesCollections (20180301100352)
|
76
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
77
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
78
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "ecm_galleries_collections" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
79
|
+
↳ db/migrate/20180301100352_create_ecm_galleries_collections.ecm_galleries.rb:4
|
80
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180301100352"]]
|
81
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
82
|
+
[1m[35m (2.1ms)[0m [1m[36mcommit transaction[0m
|
83
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
84
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
85
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
86
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
87
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
88
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-12-20 23:55:21.757810"], ["updated_at", "2018-12-20 23:55:21.757810"]]
|
89
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
90
|
+
[1m[35m (4.0ms)[0m [1m[36mcommit transaction[0m
|
91
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
92
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
93
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
94
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
95
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
96
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
97
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
98
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
99
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
100
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
101
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
102
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
103
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
104
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
105
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
106
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "active_storage_attachments"[0m
|
107
|
+
↳ db/schema.rb:15
|
108
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
109
|
+
↳ db/schema.rb:15
|
110
|
+
[1m[35m (8.9ms)[0m [1m[35mCREATE TABLE "active_storage_attachments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "record_type" varchar NOT NULL, "record_id" integer NOT NULL, "blob_id" integer NOT NULL, "created_at" datetime NOT NULL)[0m
|
111
|
+
↳ db/schema.rb:15
|
112
|
+
[1m[35m (2.8ms)[0m [1m[35mCREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")[0m
|
113
|
+
↳ db/schema.rb:15
|
114
|
+
[1m[35m (8.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")[0m
|
115
|
+
↳ db/schema.rb:15
|
116
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "active_storage_blobs"[0m
|
117
|
+
↳ db/schema.rb:25
|
118
|
+
[1m[35m (4.3ms)[0m [1m[35mCREATE TABLE "active_storage_blobs" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar NOT NULL, "filename" varchar NOT NULL, "content_type" varchar, "metadata" text, "byte_size" bigint NOT NULL, "checksum" varchar NOT NULL, "created_at" datetime NOT NULL)[0m
|
119
|
+
↳ db/schema.rb:25
|
120
|
+
[1m[35m (6.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key")[0m
|
121
|
+
↳ db/schema.rb:25
|
122
|
+
[1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS "ecm_galleries_collections"[0m
|
123
|
+
↳ db/schema.rb:36
|
124
|
+
[1m[35m (16.0ms)[0m [1m[35mCREATE TABLE "ecm_galleries_collections" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
125
|
+
↳ db/schema.rb:36
|
126
|
+
[1m[35m (3.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
127
|
+
↳ db/schema.rb:13
|
128
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
129
|
+
↳ db/schema.rb:13
|
130
|
+
[1m[35m (10.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180301100352)[0m
|
131
|
+
↳ db/schema.rb:13
|
132
|
+
[1m[35m (5.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
133
|
+
(20180301100350);
|
134
|
+
|
135
|
+
[0m
|
136
|
+
↳ db/schema.rb:13
|
137
|
+
[1m[35m (7.5ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
138
|
+
↳ db/schema.rb:13
|
139
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
140
|
+
↳ db/schema.rb:13
|
141
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
142
|
+
↳ db/schema.rb:13
|
143
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-12-20 23:55:21.889370"], ["updated_at", "2018-12-20 23:55:21.889370"]]
|
144
|
+
↳ db/schema.rb:13
|
145
|
+
[1m[35m (4.7ms)[0m [1m[36mcommit transaction[0m
|
146
|
+
↳ db/schema.rb:13
|
147
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
148
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
149
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
150
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
151
|
+
[1m[36mActiveRecord::InternalMetadata Update (0.2ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ?[0m [["value", "test"], ["updated_at", "2018-12-20 23:55:21.897575"], ["key", "environment"]]
|
152
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
153
|
+
[1m[35m (3.0ms)[0m [1m[36mcommit transaction[0m
|
154
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
155
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
156
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
157
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
158
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
159
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
160
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
161
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
162
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
163
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
164
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
165
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
166
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
167
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
168
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
169
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "active_storage_attachments"[0m
|
170
|
+
↳ db/schema.rb:15
|
171
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
172
|
+
↳ db/schema.rb:15
|
173
|
+
[1m[35m (3.2ms)[0m [1m[35mCREATE TABLE "active_storage_attachments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "record_type" varchar NOT NULL, "record_id" integer NOT NULL, "blob_id" integer NOT NULL, "created_at" datetime NOT NULL)[0m
|
174
|
+
↳ db/schema.rb:15
|
175
|
+
[1m[35m (3.6ms)[0m [1m[35mCREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")[0m
|
176
|
+
↳ db/schema.rb:15
|
177
|
+
[1m[35m (2.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")[0m
|
178
|
+
↳ db/schema.rb:15
|
179
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "active_storage_blobs"[0m
|
180
|
+
↳ db/schema.rb:25
|
181
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE TABLE "active_storage_blobs" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar NOT NULL, "filename" varchar NOT NULL, "content_type" varchar, "metadata" text, "byte_size" bigint NOT NULL, "checksum" varchar NOT NULL, "created_at" datetime NOT NULL)[0m
|
182
|
+
↳ db/schema.rb:25
|
183
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key")[0m
|
184
|
+
↳ db/schema.rb:25
|
185
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "ecm_galleries_collections"[0m
|
186
|
+
↳ db/schema.rb:36
|
187
|
+
[1m[35m (3.1ms)[0m [1m[35mCREATE TABLE "ecm_galleries_collections" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
188
|
+
↳ db/schema.rb:36
|
189
|
+
[1m[35m (3.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
190
|
+
↳ db/schema.rb:13
|
191
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
192
|
+
↳ db/schema.rb:13
|
193
|
+
[1m[35m (6.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180301100352)[0m
|
194
|
+
↳ db/schema.rb:13
|
195
|
+
[1m[35m (9.7ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
196
|
+
(20180301100350);
|
197
|
+
|
198
|
+
[0m
|
199
|
+
↳ db/schema.rb:13
|
200
|
+
[1m[35m (4.6ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
201
|
+
↳ db/schema.rb:13
|
202
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
203
|
+
↳ db/schema.rb:13
|
204
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
205
|
+
↳ db/schema.rb:13
|
206
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-12-20 23:55:58.785793"], ["updated_at", "2018-12-20 23:55:58.785793"]]
|
207
|
+
↳ db/schema.rb:13
|
208
|
+
[1m[35m (4.0ms)[0m [1m[36mcommit transaction[0m
|
209
|
+
↳ db/schema.rb:13
|
210
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
211
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
212
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
213
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
214
|
+
[1m[36mActiveRecord::InternalMetadata Update (0.2ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ?[0m [["value", "test"], ["updated_at", "2018-12-20 23:55:58.795251"], ["key", "environment"]]
|
215
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
216
|
+
[1m[35m (3.3ms)[0m [1m[36mcommit transaction[0m
|
217
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
218
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
219
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
220
|
+
Migrating to CreateEcmGalleriesPictureGalleries (20181220235639)
|
221
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
222
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
223
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
224
|
+
↳ db/migrate/20181220235639_create_ecm_galleries_picture_galleries.ecm_galleries.rb:4
|
225
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE TABLE "ecm_galleries_picture_galleries" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "published_at" datetime, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
226
|
+
↳ db/migrate/20181220235639_create_ecm_galleries_picture_galleries.ecm_galleries.rb:4
|
227
|
+
[1m[36mActiveRecord::SchemaMigration Create (1.0ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20181220235639"]]
|
228
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
229
|
+
[1m[35m (12.5ms)[0m [1m[36mcommit transaction[0m
|
230
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
231
|
+
Migrating to CreateEcmGalleriesPictureDetails (20181220235640)
|
232
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
233
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
234
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "ecm_galleries_picture_details" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "picture_gallery_id" integer, "asset_id" integer, "title" varchar, "description" text, "position" integer, "published_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
235
|
+
↳ db/migrate/20181220235640_create_ecm_galleries_picture_details.ecm_galleries.rb:4
|
236
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20181220235640"]]
|
237
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
238
|
+
[1m[35m (5.8ms)[0m [1m[36mcommit transaction[0m
|
239
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
240
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
241
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
242
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
243
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
244
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
245
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
246
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
247
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
248
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
249
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
250
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
251
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
252
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
253
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
254
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
255
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
256
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
257
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
258
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
259
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
260
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "active_storage_attachments"[0m
|
261
|
+
↳ db/schema.rb:15
|
262
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
263
|
+
↳ db/schema.rb:15
|
264
|
+
[1m[35m (5.9ms)[0m [1m[35mCREATE TABLE "active_storage_attachments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "record_type" varchar NOT NULL, "record_id" integer NOT NULL, "blob_id" integer NOT NULL, "created_at" datetime NOT NULL)[0m
|
265
|
+
↳ db/schema.rb:15
|
266
|
+
[1m[35m (13.9ms)[0m [1m[35mCREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")[0m
|
267
|
+
↳ db/schema.rb:15
|
268
|
+
[1m[35m (5.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")[0m
|
269
|
+
↳ db/schema.rb:15
|
270
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "active_storage_blobs"[0m
|
271
|
+
↳ db/schema.rb:25
|
272
|
+
[1m[35m (6.2ms)[0m [1m[35mCREATE TABLE "active_storage_blobs" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar NOT NULL, "filename" varchar NOT NULL, "content_type" varchar, "metadata" text, "byte_size" bigint NOT NULL, "checksum" varchar NOT NULL, "created_at" datetime NOT NULL)[0m
|
273
|
+
↳ db/schema.rb:25
|
274
|
+
[1m[35m (4.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key")[0m
|
275
|
+
↳ db/schema.rb:25
|
276
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "ecm_galleries_collections"[0m
|
277
|
+
↳ db/schema.rb:36
|
278
|
+
[1m[35m (2.8ms)[0m [1m[35mCREATE TABLE "ecm_galleries_collections" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
279
|
+
↳ db/schema.rb:36
|
280
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "ecm_galleries_picture_details"[0m
|
281
|
+
↳ db/schema.rb:41
|
282
|
+
[1m[35m (3.3ms)[0m [1m[35mCREATE TABLE "ecm_galleries_picture_details" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "picture_gallery_id" integer, "asset_id" integer, "title" varchar, "description" text, "position" integer, "published_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
283
|
+
↳ db/schema.rb:41
|
284
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "ecm_galleries_picture_galleries"[0m
|
285
|
+
↳ db/schema.rb:52
|
286
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "ecm_galleries_picture_galleries" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "published_at" datetime, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
287
|
+
↳ db/schema.rb:52
|
288
|
+
[1m[35m (3.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
289
|
+
↳ db/schema.rb:13
|
290
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
291
|
+
↳ db/schema.rb:13
|
292
|
+
[1m[35m (2.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20181220235640)[0m
|
293
|
+
↳ db/schema.rb:13
|
294
|
+
[1m[35m (2.3ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
295
|
+
(20180301100350),
|
296
|
+
(20180301100352),
|
297
|
+
(20181220235639);
|
298
|
+
|
299
|
+
[0m
|
300
|
+
↳ db/schema.rb:13
|
301
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
302
|
+
↳ db/schema.rb:13
|
303
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
304
|
+
↳ db/schema.rb:13
|
305
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
306
|
+
↳ db/schema.rb:13
|
307
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.1ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-12-20 23:56:40.100398"], ["updated_at", "2018-12-20 23:56:40.100398"]]
|
308
|
+
↳ db/schema.rb:13
|
309
|
+
[1m[35m (2.0ms)[0m [1m[36mcommit transaction[0m
|
310
|
+
↳ db/schema.rb:13
|
311
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
312
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
313
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
314
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
315
|
+
[1m[36mActiveRecord::InternalMetadata Update (0.1ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ?[0m [["value", "test"], ["updated_at", "2018-12-20 23:56:40.104264"], ["key", "environment"]]
|
316
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
317
|
+
[1m[35m (2.0ms)[0m [1m[36mcommit transaction[0m
|
318
|
+
↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
|
@@ -0,0 +1,31 @@
|
|
1
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
4
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
5
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
7
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
8
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
9
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
10
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
11
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
12
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
13
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
14
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
15
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
16
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
17
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
18
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
19
|
+
[1m[36mEcm::Galleries::PictureGallery Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "ecm_galleries_picture_galleries" WHERE "ecm_galleries_picture_galleries"."name" IS NULL LIMIT ?[0m [["LIMIT", 1]]
|
20
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
21
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
22
|
+
[1m[36mEcm::Galleries::PictureGallery Load (0.5ms)[0m [1m[34mSELECT "ecm_galleries_picture_galleries".* FROM "ecm_galleries_picture_galleries" ORDER BY "ecm_galleries_picture_galleries"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
23
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
24
|
+
[1m[36mEcm::Galleries::PictureGallery Create (0.4ms)[0m [1m[32mINSERT INTO "ecm_galleries_picture_galleries" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2018-12-20 23:56:47.392451"], ["updated_at", "2018-12-20 23:56:47.392451"]]
|
25
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
26
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
27
|
+
[1m[36mEcm::Galleries::PictureGallery Update (0.2ms)[0m [1m[33mUPDATE "ecm_galleries_picture_galleries" SET "name" = ?, "updated_at" = ? WHERE "ecm_galleries_picture_galleries"."id" = ?[0m [["name", "an arbitrary value"], ["updated_at", "2018-12-20 23:56:47.394873"], ["id", 1]]
|
28
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
29
|
+
[1m[36mEcm::Galleries::PictureGallery Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "ecm_galleries_picture_galleries" WHERE "ecm_galleries_picture_galleries"."name" = ? LIMIT ?[0m [["name", "an arbitrary value"], ["LIMIT", 1]]
|
30
|
+
[1m[36mEcm::Galleries::PictureGallery Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "ecm_galleries_picture_galleries" WHERE "ecm_galleries_picture_galleries"."name" = ? LIMIT ?[0m [["name", "AN ARBITRARY VALUE"], ["LIMIT", 1]]
|
31
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecm_galleries
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -67,19 +67,33 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: rao-resources_controller
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 0.0.3.pre
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 0.0.3.pre
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rao-view_helper
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.0.3.pre
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.0.3.pre
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: twitter-bootstrap-components-rails
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -266,13 +280,10 @@ files:
|
|
266
280
|
- app/controllers/ecm/galleries/application_controller.rb
|
267
281
|
- app/controllers/ecm/galleries/application_resources_controller.rb
|
268
282
|
- app/controllers/ecm/galleries/picture_galleries_controller.rb
|
269
|
-
- app/helpers/ecm/galleries/application_helper.rb
|
270
|
-
- app/jobs/ecm/galleries/application_job.rb
|
271
|
-
- app/mailers/ecm/galleries/application_mailer.rb
|
272
283
|
- app/models/ecm/galleries/application_record.rb
|
273
284
|
- app/models/ecm/galleries/picture_detail.rb
|
274
285
|
- app/models/ecm/galleries/picture_gallery.rb
|
275
|
-
- app/view_helpers/ecm/galleries/
|
286
|
+
- app/view_helpers/ecm/galleries/galleries_helper.rb
|
276
287
|
- app/views/ecm/galleries/picture_galleries/index.haml
|
277
288
|
- app/views/ecm/galleries/picture_galleries/show.haml
|
278
289
|
- app/views/ecm/galleries/view_helper/_render.html.haml
|
@@ -339,8 +350,12 @@ files:
|
|
339
350
|
- spec/dummy/db/development.sqlite3
|
340
351
|
- spec/dummy/db/migrate/20180301100350_create_active_storage_tables.active_storage.rb
|
341
352
|
- spec/dummy/db/migrate/20180301100352_create_ecm_galleries_collections.ecm_galleries.rb
|
353
|
+
- spec/dummy/db/migrate/20181220235639_create_ecm_galleries_picture_galleries.ecm_galleries.rb
|
354
|
+
- spec/dummy/db/migrate/20181220235640_create_ecm_galleries_picture_details.ecm_galleries.rb
|
342
355
|
- spec/dummy/db/schema.rb
|
343
356
|
- spec/dummy/db/test.sqlite3
|
357
|
+
- spec/dummy/log/development.log
|
358
|
+
- spec/dummy/log/test.log
|
344
359
|
- spec/dummy/package.json
|
345
360
|
- spec/dummy/public/404.html
|
346
361
|
- spec/dummy/public/422.html
|
@@ -1,31 +0,0 @@
|
|
1
|
-
module Ecm
|
2
|
-
module Galleries
|
3
|
-
# Usage:
|
4
|
-
#
|
5
|
-
# # app/views/home/index.html.haml
|
6
|
-
# = ecm_galleries_helper(self).render(name: 'main', variant_options: { combine_options: { resize: "255x255^", extent: "255x255", gravity: "center"} }, show_details: false)
|
7
|
-
#
|
8
|
-
class ViewHelper
|
9
|
-
def initialize(context)
|
10
|
-
@context = context
|
11
|
-
end
|
12
|
-
|
13
|
-
def render(options = {})
|
14
|
-
options.reverse_merge!(variant_options: {}, show_details: true)
|
15
|
-
|
16
|
-
name = options.delete(:name)
|
17
|
-
variant_options = options.delete(:variant_options)
|
18
|
-
show_details = options.delete(:show_details)
|
19
|
-
|
20
|
-
resource = Ecm::Galleries::PictureGallery.where(name: name).first
|
21
|
-
c.render partial: 'ecm/galleries/view_helper/render', locals: { resource: resource, variant_options: variant_options, show_details: show_details }
|
22
|
-
end
|
23
|
-
|
24
|
-
private
|
25
|
-
|
26
|
-
def c
|
27
|
-
@context
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|