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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f0970d658f195ce01d29f0c363a7571bdb68c575f8dc96bb7073287e359cc94
4
- data.tar.gz: 9db33cc929d72de106829af5fffbcbff98ad1d4161fa5963f1af95a9f0b4e2b1
3
+ metadata.gz: 4a41cea942a7d8e289948f111c9ca08da9eae1d806d497718357423903321f6a
4
+ data.tar.gz: 1b33a9c5d9bdbd8cff89ef9441fcd7d54a775dcf8bad42e85c586c6e36697a35
5
5
  SHA512:
6
- metadata.gz: 21ff78567e85d30987d327ac8d63856dbba80f121582e46d935d6839d9997c87906e1f6ebf65d2698674e7ff033a359c0221219b3fe9e3574640b68ad725ce01
7
- data.tar.gz: 12f648e6023408a082543b1f3ee8ab9538e00a69b9e6b891715a407b60bd8b4b5caaac5f46ac49976cc6a4fb8123dc06a5faa1e0e6fbdcd85837d6a542b36a0d
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::RestActions
4
- include ::ResourcesController::Resources
5
- include ::ResourcesController::RestResourceUrls
6
- include ::ResourcesController::ResourceInflections
7
- include ::ResourcesController::LocationHistory
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
@@ -16,6 +16,7 @@ de:
16
16
  name: Name
17
17
  description: Beschreibung
18
18
  picture_details_count: Bilder
19
+ preview: Vorschau
19
20
  published: Veröffentlicht
20
21
  published_at: Veröffentlicht am
21
22
  created_at: Erstellt am
@@ -16,6 +16,7 @@ en:
16
16
  name: Name
17
17
  description: Description
18
18
  picture_details_count: Pictures
19
+ preview: Preview
19
20
  published: Published
20
21
  published_at: Published at
21
22
  created_at: Created at
@@ -5,5 +5,6 @@ module Ecm::Galleries
5
5
  end
6
6
 
7
7
  mattr_accessor(:base_controller) { '::FrontendController' }
8
+ mattr_accessor(:galleries_helper_render_default_options) { { variant_options: {}, show_details: false } }
8
9
  end
9
10
  end
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module Galleries
3
- VERSION = '0.0.8'.freeze
3
+ VERSION = '0.1.0'.freeze
4
4
  end
5
5
  end
data/lib/ecm_galleries.rb CHANGED
@@ -1,7 +1,8 @@
1
1
  require 'acts_as_list'
2
2
  require 'acts_as_published'
3
3
  require 'route_translator'
4
- require 'rails-add_ons'
4
+ require 'rao-resources_controller'
5
+ require 'rao-view_helper'
5
6
  require 'twitter-bootstrap-components-rails'
6
7
 
7
8
  require 'ecm/galleries/configuration'
@@ -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
@@ -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
@@ -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
@@ -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: 2018_03_01_100352) do
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
Binary file
@@ -0,0 +1,318 @@
1
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_attachments"
2
+ ↳ db/schema.rb:15
3
+  (0.1ms) SELECT sqlite_version(*)
4
+ ↳ db/schema.rb:15
5
+  (5.1ms) CREATE 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)
6
+ ↳ db/schema.rb:15
7
+  (2.0ms) CREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")
8
+ ↳ db/schema.rb:15
9
+  (2.3ms) CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")
10
+ ↳ db/schema.rb:15
11
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_blobs"
12
+ ↳ db/schema.rb:25
13
+  (2.1ms) CREATE 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)
14
+ ↳ db/schema.rb:25
15
+  (2.1ms) CREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key")
16
+ ↳ db/schema.rb:25
17
+  (0.1ms) DROP TABLE IF EXISTS "ecm_galleries_collections"
18
+ ↳ db/schema.rb:36
19
+  (2.0ms) CREATE TABLE "ecm_galleries_collections" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
20
+ ↳ db/schema.rb:36
21
+  (2.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
22
+ ↳ db/schema.rb:13
23
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
24
+ ↳ db/schema.rb:13
25
+  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES (20180301100352)
26
+ ↳ db/schema.rb:13
27
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES
28
+ (20180301100350);
29
+
30
+ 
31
+ ↳ db/schema.rb:13
32
+  (2.8ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
33
+ ↳ db/schema.rb:13
34
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
35
+ ↳ db/schema.rb:13
36
+  (0.0ms) begin transaction
37
+ ↳ db/schema.rb:13
38
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (2.8ms) commit transaction
41
+ ↳ db/schema.rb:13
42
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
43
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
44
+  (0.1ms) begin transaction
45
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
46
+ ActiveRecord::InternalMetadata Update (0.2ms) UPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ? [["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
+  (2.9ms) commit transaction
49
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
50
+  (0.1ms) SELECT sqlite_version(*)
51
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
52
+  (4.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
53
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
54
+  (2.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
55
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
56
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
57
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
58
+ Migrating to CreateActiveStorageTables (20180301100350)
59
+  (0.0ms) begin transaction
60
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
61
+  (0.3ms) CREATE 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)
62
+ ↳ db/migrate/20180301100350_create_active_storage_tables.active_storage.rb:4
63
+  (0.2ms) CREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key")
64
+ ↳ db/migrate/20180301100350_create_active_storage_tables.active_storage.rb:4
65
+  (0.1ms) CREATE 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)
66
+ ↳ db/migrate/20180301100350_create_active_storage_tables.active_storage.rb:16
67
+  (0.1ms) CREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")
68
+ ↳ db/migrate/20180301100350_create_active_storage_tables.active_storage.rb:16
69
+  (0.1ms) CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")
70
+ ↳ db/migrate/20180301100350_create_active_storage_tables.active_storage.rb:16
71
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180301100350"]]
72
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
73
+  (3.4ms) commit transaction
74
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
75
+ Migrating to CreateEcmGalleriesCollections (20180301100352)
76
+  (0.0ms) begin transaction
77
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
78
+  (0.2ms) CREATE TABLE "ecm_galleries_collections" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
79
+ ↳ db/migrate/20180301100352_create_ecm_galleries_collections.ecm_galleries.rb:4
80
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180301100352"]]
81
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
82
+  (2.1ms) commit transaction
83
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
84
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
85
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
86
+  (0.1ms) begin transaction
87
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
88
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (4.0ms) commit transaction
91
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
92
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
93
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
94
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
95
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
96
+  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
97
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
98
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
99
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
100
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
101
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
102
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
103
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
104
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
105
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
106
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_attachments"
107
+ ↳ db/schema.rb:15
108
+  (0.1ms) SELECT sqlite_version(*)
109
+ ↳ db/schema.rb:15
110
+  (8.9ms) CREATE 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)
111
+ ↳ db/schema.rb:15
112
+  (2.8ms) CREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")
113
+ ↳ db/schema.rb:15
114
+  (8.6ms) CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")
115
+ ↳ db/schema.rb:15
116
+  (0.2ms) DROP TABLE IF EXISTS "active_storage_blobs"
117
+ ↳ db/schema.rb:25
118
+  (4.3ms) CREATE 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)
119
+ ↳ db/schema.rb:25
120
+  (6.4ms) CREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key")
121
+ ↳ db/schema.rb:25
122
+  (0.4ms) DROP TABLE IF EXISTS "ecm_galleries_collections"
123
+ ↳ db/schema.rb:36
124
+  (16.0ms) CREATE TABLE "ecm_galleries_collections" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
125
+ ↳ db/schema.rb:36
126
+  (3.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
127
+ ↳ db/schema.rb:13
128
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
129
+ ↳ db/schema.rb:13
130
+  (10.8ms) INSERT INTO "schema_migrations" (version) VALUES (20180301100352)
131
+ ↳ db/schema.rb:13
132
+  (5.6ms) INSERT INTO "schema_migrations" (version) VALUES
133
+ (20180301100350);
134
+
135
+ 
136
+ ↳ db/schema.rb:13
137
+  (7.5ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
138
+ ↳ db/schema.rb:13
139
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
140
+ ↳ db/schema.rb:13
141
+  (0.0ms) begin transaction
142
+ ↳ db/schema.rb:13
143
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (4.7ms) commit transaction
146
+ ↳ db/schema.rb:13
147
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
148
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
149
+  (0.1ms) begin transaction
150
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
151
+ ActiveRecord::InternalMetadata Update (0.2ms) UPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ? [["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
+  (3.0ms) commit transaction
154
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
155
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
156
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
157
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
158
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
159
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
160
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
161
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
162
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
163
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
164
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
165
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
166
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
167
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
168
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
169
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_attachments"
170
+ ↳ db/schema.rb:15
171
+  (0.1ms) SELECT sqlite_version(*)
172
+ ↳ db/schema.rb:15
173
+  (3.2ms) CREATE 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)
174
+ ↳ db/schema.rb:15
175
+  (3.6ms) CREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")
176
+ ↳ db/schema.rb:15
177
+  (2.5ms) CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")
178
+ ↳ db/schema.rb:15
179
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_blobs"
180
+ ↳ db/schema.rb:25
181
+  (2.2ms) CREATE 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)
182
+ ↳ db/schema.rb:25
183
+  (2.1ms) CREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key")
184
+ ↳ db/schema.rb:25
185
+  (0.1ms) DROP TABLE IF EXISTS "ecm_galleries_collections"
186
+ ↳ db/schema.rb:36
187
+  (3.1ms) CREATE TABLE "ecm_galleries_collections" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
188
+ ↳ db/schema.rb:36
189
+  (3.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
190
+ ↳ db/schema.rb:13
191
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
192
+ ↳ db/schema.rb:13
193
+  (6.9ms) INSERT INTO "schema_migrations" (version) VALUES (20180301100352)
194
+ ↳ db/schema.rb:13
195
+  (9.7ms) INSERT INTO "schema_migrations" (version) VALUES
196
+ (20180301100350);
197
+
198
+ 
199
+ ↳ db/schema.rb:13
200
+  (4.6ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
201
+ ↳ db/schema.rb:13
202
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
203
+ ↳ db/schema.rb:13
204
+  (0.2ms) begin transaction
205
+ ↳ db/schema.rb:13
206
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (4.0ms) commit transaction
209
+ ↳ db/schema.rb:13
210
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
211
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
212
+  (0.1ms) begin transaction
213
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
214
+ ActiveRecord::InternalMetadata Update (0.2ms) UPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ? [["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
+  (3.3ms) commit transaction
217
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
218
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
219
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
220
+ Migrating to CreateEcmGalleriesPictureGalleries (20181220235639)
221
+  (0.2ms) begin transaction
222
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
223
+  (0.3ms) SELECT sqlite_version(*)
224
+ ↳ db/migrate/20181220235639_create_ecm_galleries_picture_galleries.ecm_galleries.rb:4
225
+  (0.5ms) CREATE 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)
226
+ ↳ db/migrate/20181220235639_create_ecm_galleries_picture_galleries.ecm_galleries.rb:4
227
+ ActiveRecord::SchemaMigration Create (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20181220235639"]]
228
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
229
+  (12.5ms) commit transaction
230
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
231
+ Migrating to CreateEcmGalleriesPictureDetails (20181220235640)
232
+  (0.1ms) begin transaction
233
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
234
+  (0.4ms) CREATE 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)
235
+ ↳ db/migrate/20181220235640_create_ecm_galleries_picture_details.ecm_galleries.rb:4
236
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20181220235640"]]
237
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
238
+  (5.8ms) commit transaction
239
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
240
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
241
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
242
+  (0.1ms) begin transaction
243
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
244
+  (0.1ms) commit transaction
245
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
246
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
247
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
248
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
249
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
250
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
251
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
252
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
253
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
254
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
255
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
256
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
257
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
258
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
259
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
260
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_attachments"
261
+ ↳ db/schema.rb:15
262
+  (0.2ms) SELECT sqlite_version(*)
263
+ ↳ db/schema.rb:15
264
+  (5.9ms) CREATE 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)
265
+ ↳ db/schema.rb:15
266
+  (13.9ms) CREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")
267
+ ↳ db/schema.rb:15
268
+  (5.0ms) CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")
269
+ ↳ db/schema.rb:15
270
+  (0.2ms) DROP TABLE IF EXISTS "active_storage_blobs"
271
+ ↳ db/schema.rb:25
272
+  (6.2ms) CREATE 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)
273
+ ↳ db/schema.rb:25
274
+  (4.3ms) CREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key")
275
+ ↳ db/schema.rb:25
276
+  (0.2ms) DROP TABLE IF EXISTS "ecm_galleries_collections"
277
+ ↳ db/schema.rb:36
278
+  (2.8ms) CREATE TABLE "ecm_galleries_collections" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
279
+ ↳ db/schema.rb:36
280
+  (0.2ms) DROP TABLE IF EXISTS "ecm_galleries_picture_details"
281
+ ↳ db/schema.rb:41
282
+  (3.3ms) CREATE 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)
283
+ ↳ db/schema.rb:41
284
+  (0.1ms) DROP TABLE IF EXISTS "ecm_galleries_picture_galleries"
285
+ ↳ db/schema.rb:52
286
+  (4.0ms) CREATE 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)
287
+ ↳ db/schema.rb:52
288
+  (3.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
289
+ ↳ db/schema.rb:13
290
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
291
+ ↳ db/schema.rb:13
292
+  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES (20181220235640)
293
+ ↳ db/schema.rb:13
294
+  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES
295
+ (20180301100350),
296
+ (20180301100352),
297
+ (20181220235639);
298
+
299
+ 
300
+ ↳ db/schema.rb:13
301
+  (2.2ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
302
+ ↳ db/schema.rb:13
303
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
304
+ ↳ db/schema.rb:13
305
+  (0.0ms) begin transaction
306
+ ↳ db/schema.rb:13
307
+ ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (2.0ms) commit transaction
310
+ ↳ db/schema.rb:13
311
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
312
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
313
+  (0.0ms) begin transaction
314
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
315
+ ActiveRecord::InternalMetadata Update (0.1ms) UPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ? [["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
+  (2.0ms) commit transaction
318
+ ↳ /home/vagrant/.rvm/gems/ruby-2.5.0@rails-5-2-0rc1/bin/rake:23
@@ -0,0 +1,31 @@
1
+  (0.1ms) begin transaction
2
+  (0.1ms) rollback transaction
3
+  (0.2ms) begin transaction
4
+  (0.1ms) rollback transaction
5
+  (0.1ms) begin transaction
6
+  (0.1ms) rollback transaction
7
+  (0.1ms) begin transaction
8
+  (0.0ms) rollback transaction
9
+  (0.0ms) begin transaction
10
+  (0.0ms) rollback transaction
11
+  (0.0ms) begin transaction
12
+  (0.0ms) rollback transaction
13
+  (0.0ms) begin transaction
14
+  (0.1ms) rollback transaction
15
+  (0.0ms) begin transaction
16
+  (0.0ms) rollback transaction
17
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
18
+  (0.0ms) begin transaction
19
+ Ecm::Galleries::PictureGallery Exists (0.3ms) SELECT 1 AS one FROM "ecm_galleries_picture_galleries" WHERE "ecm_galleries_picture_galleries"."name" IS NULL LIMIT ? [["LIMIT", 1]]
20
+  (0.1ms) rollback transaction
21
+  (0.0ms) begin transaction
22
+ Ecm::Galleries::PictureGallery Load (0.5ms) SELECT "ecm_galleries_picture_galleries".* FROM "ecm_galleries_picture_galleries" ORDER BY "ecm_galleries_picture_galleries"."id" ASC LIMIT ? [["LIMIT", 1]]
23
+  (0.1ms) SAVEPOINT active_record_1
24
+ Ecm::Galleries::PictureGallery Create (0.4ms) INSERT INTO "ecm_galleries_picture_galleries" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-20 23:56:47.392451"], ["updated_at", "2018-12-20 23:56:47.392451"]]
25
+  (0.1ms) RELEASE SAVEPOINT active_record_1
26
+  (0.1ms) SAVEPOINT active_record_1
27
+ Ecm::Galleries::PictureGallery Update (0.2ms) UPDATE "ecm_galleries_picture_galleries" SET "name" = ?, "updated_at" = ? WHERE "ecm_galleries_picture_galleries"."id" = ? [["name", "an arbitrary value"], ["updated_at", "2018-12-20 23:56:47.394873"], ["id", 1]]
28
+  (0.1ms) RELEASE SAVEPOINT active_record_1
29
+ Ecm::Galleries::PictureGallery Exists (0.3ms) SELECT 1 AS one FROM "ecm_galleries_picture_galleries" WHERE "ecm_galleries_picture_galleries"."name" = ? LIMIT ? [["name", "an arbitrary value"], ["LIMIT", 1]]
30
+ Ecm::Galleries::PictureGallery Exists (0.2ms) SELECT 1 AS one FROM "ecm_galleries_picture_galleries" WHERE "ecm_galleries_picture_galleries"."name" = ? LIMIT ? [["name", "AN ARBITRARY VALUE"], ["LIMIT", 1]]
31
+  (0.3ms) rollback transaction
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.8
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-19 00:00:00.000000000 Z
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: rails-add_ons
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: '0'
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: '0'
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/view_helper.rb
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,7 +0,0 @@
1
- module Ecm::Galleries
2
- module ApplicationHelper
3
- def ecm_galleries_helper(context)
4
- @ecm_galleries_helper ||= Ecm::Galleries::ViewHelper.new(context)
5
- end
6
- end
7
- end
@@ -1,4 +0,0 @@
1
- module Ecm::Galleries
2
- class ApplicationJob < ActiveJob::Base
3
- end
4
- end
@@ -1,6 +0,0 @@
1
- module Ecm::Galleries
2
- class ApplicationMailer < ActionMailer::Base
3
- default from: 'from@example.com'
4
- layout 'mailer'
5
- end
6
- end
@@ -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