cm_page_builder-rails 0.1.10 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +40 -15
  3. data/app/models/cm_page_builder/rails/page.rb +4 -2
  4. data/app/views/cm_page_builder/rails/pages/_form.html.slim +1 -1
  5. data/app/views/cm_page_builder/rails/pages/edit.html.slim +0 -3
  6. data/config/routes.rb +4 -4
  7. data/lib/cm_page_builder/rails/version.rb +1 -1
  8. data/lib/generators/cm_page_builder/rails/install_generator.rb +14 -0
  9. data/lib/generators/cm_page_builder/rails/templates/app/javascripts/components/cm_content_manager/Content.jsx +46 -0
  10. metadata +50 -116
  11. data/app/controllers/cm_page_builder/rails/page_components_controller.rb +0 -62
  12. data/app/views/cm_page_builder/rails/page_components/_form.html.slim +0 -24
  13. data/app/views/cm_page_builder/rails/page_components/edit.html.slim +0 -8
  14. data/app/views/cm_page_builder/rails/page_components/index.html.slim +0 -29
  15. data/app/views/cm_page_builder/rails/page_components/new.html.slim +0 -5
  16. data/app/views/cm_page_builder/rails/page_components/show.html.slim +0 -21
  17. data/app/views/cm_page_builder/rails/pages/index.html.slim +0 -21
  18. data/app/views/cm_page_builder/rails/pages/new.html.slim +0 -5
  19. data/spec/dummy/log/development.log +0 -3244
  20. data/spec/dummy/log/test.log +0 -659
  21. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-8/-8wLv-gkS0lWbg5gMshjwVvEX-JbIZUEBVR2pr9_bKA.cache +0 -1
  22. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5D/5DPzt4__rm7GhngiwkT-lUOoi4bxaoTs0K5kvJStU0k.cache +0 -2
  23. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8t/8tWHnBupt4r5zX1sjy8C6i7S3z5ajB6srIvDWOWVf9M.cache +0 -3
  24. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ac/AcI542cVIIgUfhEHlfWRg1sVCk-ci8q7KJjtfiXWrqU.cache +0 -1
  25. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Gc/GcDr51VZAgE8TwLQ4lVLRgj06T_sip-iHJ31oZhzX2E.cache +0 -1
  26. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/K5/K5x_Jacr65xC7yksZkQ8Lu-ZDQDOr7RKTkXGmRF7rNg.cache +0 -0
  27. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Li/LiQyyzJdhsuIp-k1fAZr5FGe5zI5auwfWTrl0HRmfgc.cache +0 -1
  28. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/N3/N3Sm2Yo3ko7YeZE7Tm84toiF8Uc8SvwN_dPmwE31NHY.cache +0 -1
  29. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Om/OmMgC0Ie4yVZz8R3xcFMwe3zaxbHUZjsMyO9ps04Qpc.cache +0 -1
  30. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/P-/P-zt7qJNJDPVCYemhhzcCrULNd8WMOrYSEfLANHYDmg.cache +0 -1
  31. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Pe/Peitb8vcIuqpCVAjgFYYksat7BhWf5MRwqriqxp4WW4.cache +0 -1
  32. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Sf/SfmrkSwWT4EUyQAKsRlhn5MHbfVz_o_VBzAuaEK7bAU.cache +0 -1
  33. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Y0/Y0-81RV0kP3kkrrtpu2uMeyzo64nCXW3SDJlw6m2fj4.cache +0 -0
  34. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dN/dN2-E0CCM5wtYZomdgp64eQAmopGFC0ePOhTRWuNBvQ.cache +0 -0
  35. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/eS/eS3il8sFiF70CJZmKBPTm1FLec-zw8B7IzPPvkuK1u8.cache +0 -0
  36. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jK/jK5UBWD1YVDtsefRk_JwOBR72ghgtCV--u7IlbUc03s.cache +0 -2
  37. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/kP/kPcwhPILUYMzJ6ur2tH2T8usC53KxUxepYBSOZ7VUt8.cache +0 -0
  38. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lS/lS6RwqteayFTAdf6FgMw11bXGGI8DWJFPqHxP2XkXd0.cache +0 -1
  39. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache +0 -2
  40. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache +0 -2
  41. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pi/pi6etlT1bMiWX7thI__-KxLHhEoKAo30IgXOwtRK9t0.cache +0 -3
  42. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qP/qPmv5snMrDw830S6hSICDcnIy7kVEWoFKXhGKT38lG4.cache +0 -2
  43. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/st/st-pTV9TPstETNHhsnxBCbAlS05rcNIKba7hRNbkmUA.cache +0 -0
  44. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/w4/w4GqgS1yUGmN0YskbhLsZ8iu1mDpp86ioSjy3_mmUIA.cache +0 -0
  45. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wJ/wJZCYzf_JMRm-wPqe-Mv1sMfBxQTe3DtTTjinVeNWWc.cache +0 -1
  46. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yv/yvvhpgDo16OpYhb-dcBGMN6o5Dnk-R7nbOf5GPpdL0k.cache +0 -1
  47. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yx/yxWvmr9K44epqBAsbVq9PanAxfY0mrNIrysWagrWEps.cache +0 -1
  48. data/spec/dummy/tmp/development_secret.txt +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18237b88d8761eaba2c6e86b745b4ba833a71caabf2093ed19506a332c227d5c
4
- data.tar.gz: 887a7b0dbad8a02f4628499276b5bc36f03f854f5f9ff8d616cfd5adf3f7e794
3
+ metadata.gz: 0f8ae5d164c1728423cdc9a5b1f4e51351b933f10518854f8e9792a72c92e899
4
+ data.tar.gz: 2818cfd4b3028aad38737bcad41306c0c6a9e4b2673d110c4a3f68411cf3ad5c
5
5
  SHA512:
6
- metadata.gz: 9669da11c92b37892e53c24a57cdec3d730aadb741a521b17cd87df72dc1eaa5ef1c8971da19e40fb21c90cd21c21ec0434add980c6a299624fd17090e1271d0
7
- data.tar.gz: 182e84e24169405ee70e0460b6219acb9ee7b85ee03fafdf88c0cc67b8ff2fed772e01ac89a387a56a2eef54fc705d46fc1eb7ea32ead30780bf79aadee83751
6
+ metadata.gz: b91e53ba04ccd7e90c0a6ec5e8df8c03350c8b65375dade23275b2a473cca4e2b6d19e88ea4f630468fa44a4eed8850e406ef79fb41922b0e37a36b81b6ad7d8
7
+ data.tar.gz: c75fa0acc993b3216cfd3aff55c3330eb2151957ad05d9519303e31577c6ada5c1ebfda73d5ed2128d848b1265fec76ae6ef18c3147950377a7057075a316bf9
data/README.md CHANGED
@@ -1,29 +1,54 @@
1
1
  [![Gem Version](https://badge.fury.io/rb/cm_page_builder-rails.svg)](https://badge.fury.io/rb/cm_page_builder-rails)
2
2
 
3
3
  # CmPageBuilder::Rails
4
- This gem's purpose is to allow easy integration between the Commutatus react package cm-page-builder and any rails applications created by
4
+ This gem's purpose is to allow easy integration between the Commutatus javascript library [cm-page-builder](https://github.com/commutatus/cm-page-builder) and any Rails application that requires storing and editing content through Rails-rendered webpages.
5
5
 
6
- ## Usage
7
- To activate this module, add `include CmPageBuilder::Rails::HasCmContent` on top of any model file that should have an associated rich text field.
6
+ ## Requirements
8
7
 
9
- ## Installation
8
+ * Rails 6+
9
+ * Webpacker must be enabled in the project
10
+ * S3 as the image backend storage
10
11
 
11
12
 
12
- ```ruby
13
- gem 'react-rails', '~> 2.6.0'
14
- gem 'cm_page_builder-rails'
15
- ```
13
+ ## Initial setup:
16
14
 
17
- And then execute:
18
- ```bash
19
- $ bundle
20
- ```
15
+ * Add the following lines to the gemfile:
16
+ ```ruby
17
+ gem 'react-rails', '~> 2.6.0'
18
+ gem 'cm_page_builder-rails'
19
+ ```
20
+ And then execute:
21
+ ```bash
22
+ $ bundle
23
+ ```
24
+ * Follow all react-rails installation instructions (https://github.com/reactjs/react-rails)
25
+ *Important:* ensure that the `hello_world` example successfully works
26
+
27
+ * Install the javascript packages with:
28
+ ```bash
29
+ yarn add cm-page-builder@1.3.0 -E
30
+ yarn add babel-runtime@^6.26.0
31
+ ```
32
+ (the emoji-mart package, a dependency of cm-page-builder, sometimes bugs out during the webpack build process without the babel-runtime)
33
+
34
+ * Run `rails cm_page_builder_rails:install:migrations`
21
35
 
22
- Follow all react-rails installation instructions
36
+ * Run `rails generate cm_page_builder:rails:install` to install the JSX component. This assumes your webpack folder is inside `app/javascripts`
23
37
 
24
- Then run `rails cm_page_builder_rails:install:migrations`
38
+ * In `config/routes.rb`, mount the endpoint with the line `mount CmPageBuilder::Rails::Engine => "/cm_page_builder"`
39
+
40
+ ## Usage
41
+ This package comes with a concern, `CmPageBuilder::Rails::HasCmContent` `include CmPageBuilder::Rails::HasCmContent`
42
+ To activate this module, add `include CmPageBuilder::Rails::HasCmContent` on top of any model file that should have an associated page builder record.
43
+
44
+ The page builder record will be accessible from the model as *page* (`@model.page`). The show path is accessible through the route `cm_page_builder_rails.page_path(@page)`, and the edit path through the route `cm_page_builder_rails.edit_page_path(@page)`
45
+
46
+ To make the fragment read-only in the form, pass the value in `status` prop as `Read`. Example,
47
+ ```ruby
48
+ = react_component('cm_content_manager/Content', { input: 'content-editor', components: @page.components, assetBaseUrl: ActiveStorage::Blob.service.bucket.url, status: 'Read'})
49
+ ```
25
50
 
26
- In `config/routes.rb`, mount the endpoint with the line `mount CmPageBuilder::Rails::Engine => "/cm_page_builder"`
51
+ By default, the value of the status prop is set to `Edit`.
27
52
 
28
53
  ### Setting up CORS for aws
29
54
  Do this or the direct upload capabilities won't work
@@ -39,12 +39,14 @@ module CmPageBuilder::Rails
39
39
  attachment = component.component_attachment.attachment
40
40
  return unless attachment
41
41
 
42
+ blob = attachment.blob
42
43
  attachment_data = {
43
44
  filename: attachment.filename.to_s,
45
+ filesize: blob.byte_size,
44
46
  url: attachment.service_url
45
47
  }
46
- if attachment.blob.variable?
47
- dimensions = attachment.blob.metadata
48
+ if blob.variable?
49
+ dimensions = blob.metadata
48
50
  dimensions['orientation'] =
49
51
  if dimensions['width'] > dimensions['height']
50
52
  'landscape'
@@ -8,6 +8,6 @@
8
8
 
9
9
  .field
10
10
  input type='hidden' id="content-editor" name="page[components]"
11
- = react_component("cm_content_manager/Content", {input: "content-editor", components: @page.components})
11
+ = react_component("cm_content_manager/Content", { input: "content-editor", components: @page.components, assetBaseUrl: ActiveStorage::Blob.service.bucket.url})
12
12
 
13
13
  .actions = f.submit
@@ -3,6 +3,3 @@ h1 Editing page
3
3
  == render 'form'
4
4
 
5
5
  => link_to 'Show', @page
6
- '|
7
- =< link_to 'Back', pages_path
8
-
data/config/routes.rb CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
2
 
3
-
4
-
5
-
6
3
  CmPageBuilder::Rails::Engine.routes.draw do
7
- resources :pages
4
+ # Only individual items can be shown and edited.
5
+ # The only way to access these is through their parent record in the main application, so no index
6
+ # Their lifecycle is also associated with their parent record's, so no create and destroy
7
+ resources :pages, only: [:show, :edit, :update]
8
8
  end
@@ -1,5 +1,5 @@
1
1
  module CmPageBuilder
2
2
  module Rails
3
- VERSION = '0.1.10'
3
+ VERSION = '0.2.2'
4
4
  end
5
5
  end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CmPageBuilder::Rails
4
+ module Generators
5
+ class InstallGenerator < Rails::Generators::Base
6
+ desc "Copy the jsx component"
7
+ source_root File.expand_path('templates', __dir__)
8
+
9
+ def copy_jsx_component
10
+ template "app/javascripts/components/cm_content_manager/Content.jsx"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,46 @@
1
+ import React from "react"
2
+ import PropTypes from "prop-types"
3
+ import PageBuilder from 'cm-page-builder'
4
+
5
+ class Content extends React.Component {
6
+ constructor(props) {
7
+ super(props)
8
+ }
9
+
10
+
11
+ _updatePageComponent = (id, data, type, key) => {}
12
+
13
+
14
+ render () {
15
+ return (
16
+ <React.Fragment>
17
+ <PageBuilder
18
+ pageComponents={this.props.components}
19
+ handleUpdate={this._updatePageComponent}
20
+ updateComponentData={(data) =>
21
+ { $(`#${this.props.input}`).val(JSON.stringify(data))}
22
+ }
23
+ showTitle={false}
24
+ showEmoji={false}
25
+ showPageInfo={false}
26
+ useDirectStorageUpload={true}
27
+ assetBaseUrl={ this.props.assetBaseUrl }
28
+ meta={ {id: "debug"} }
29
+ status={ this.props.status }
30
+ />
31
+ </React.Fragment>
32
+ );
33
+ }
34
+ }
35
+
36
+ Content.defaultProps = {
37
+ status: 'Edit'
38
+ };
39
+
40
+ Content.propTypes = {
41
+ input: PropTypes.string,
42
+ components: PropTypes.array,
43
+ assetBaseUrl: PropTypes.string,
44
+ status: PropTypes.string
45
+ };
46
+ export default Content
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cm_page_builder-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Camilo Ernesto Forero Junco
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-28 00:00:00.000000000 Z
11
+ date: 2021-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -82,7 +82,6 @@ files:
82
82
  - app/assets/stylesheets/cm_page_builder/rails/pages.css
83
83
  - app/assets/stylesheets/scaffold.css
84
84
  - app/controllers/cm_page_builder/rails/application_controller.rb
85
- - app/controllers/cm_page_builder/rails/page_components_controller.rb
86
85
  - app/controllers/cm_page_builder/rails/pages_controller.rb
87
86
  - app/helpers/cm_page_builder/rails/application_helper.rb
88
87
  - app/helpers/cm_page_builder/rails/page_components_helper.rb
@@ -93,15 +92,8 @@ files:
93
92
  - app/models/cm_page_builder/rails/page.rb
94
93
  - app/models/cm_page_builder/rails/page_component.rb
95
94
  - app/models/concerns/cm_page_builder/rails/has_cm_content.rb
96
- - app/views/cm_page_builder/rails/page_components/_form.html.slim
97
- - app/views/cm_page_builder/rails/page_components/edit.html.slim
98
- - app/views/cm_page_builder/rails/page_components/index.html.slim
99
- - app/views/cm_page_builder/rails/page_components/new.html.slim
100
- - app/views/cm_page_builder/rails/page_components/show.html.slim
101
95
  - app/views/cm_page_builder/rails/pages/_form.html.slim
102
96
  - app/views/cm_page_builder/rails/pages/edit.html.slim
103
- - app/views/cm_page_builder/rails/pages/index.html.slim
104
- - app/views/cm_page_builder/rails/pages/new.html.slim
105
97
  - app/views/cm_page_builder/rails/pages/show.html.slim
106
98
  - app/views/layouts/cm_page_builder/rails/application.html.erb
107
99
  - config/routes.rb
@@ -112,6 +104,8 @@ files:
112
104
  - lib/cm_page_builder/rails/application_helper.rb
113
105
  - lib/cm_page_builder/rails/engine.rb
114
106
  - lib/cm_page_builder/rails/version.rb
107
+ - lib/generators/cm_page_builder/rails/install_generator.rb
108
+ - lib/generators/cm_page_builder/rails/templates/app/javascripts/components/cm_content_manager/Content.jsx
115
109
  - lib/tasks/cm_page_builder/rails_tasks.rake
116
110
  - spec/dummy/Rakefile
117
111
  - spec/dummy/app/assets/config/manifest.js
@@ -163,8 +157,6 @@ files:
163
157
  - spec/dummy/db/migrate/20191114114260_create_cm_page_builder_rails_page_components.cm_page_builder_rails.rb
164
158
  - spec/dummy/db/migrate/20191114114261_change_page_component_primary_key.cm_page_builder_rails.rb
165
159
  - spec/dummy/db/schema.rb
166
- - spec/dummy/log/development.log
167
- - spec/dummy/log/test.log
168
160
  - spec/dummy/public/404.html
169
161
  - spec/dummy/public/422.html
170
162
  - spec/dummy/public/500.html
@@ -172,34 +164,6 @@ files:
172
164
  - spec/dummy/public/apple-touch-icon.png
173
165
  - spec/dummy/public/favicon.ico
174
166
  - spec/dummy/spec/models/test_container_spec.rb
175
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/-8/-8wLv-gkS0lWbg5gMshjwVvEX-JbIZUEBVR2pr9_bKA.cache
176
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/5D/5DPzt4__rm7GhngiwkT-lUOoi4bxaoTs0K5kvJStU0k.cache
177
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/8t/8tWHnBupt4r5zX1sjy8C6i7S3z5ajB6srIvDWOWVf9M.cache
178
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Ac/AcI542cVIIgUfhEHlfWRg1sVCk-ci8q7KJjtfiXWrqU.cache
179
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Gc/GcDr51VZAgE8TwLQ4lVLRgj06T_sip-iHJ31oZhzX2E.cache
180
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/K5/K5x_Jacr65xC7yksZkQ8Lu-ZDQDOr7RKTkXGmRF7rNg.cache
181
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Li/LiQyyzJdhsuIp-k1fAZr5FGe5zI5auwfWTrl0HRmfgc.cache
182
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/N3/N3Sm2Yo3ko7YeZE7Tm84toiF8Uc8SvwN_dPmwE31NHY.cache
183
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Om/OmMgC0Ie4yVZz8R3xcFMwe3zaxbHUZjsMyO9ps04Qpc.cache
184
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/P-/P-zt7qJNJDPVCYemhhzcCrULNd8WMOrYSEfLANHYDmg.cache
185
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Pe/Peitb8vcIuqpCVAjgFYYksat7BhWf5MRwqriqxp4WW4.cache
186
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Sf/SfmrkSwWT4EUyQAKsRlhn5MHbfVz_o_VBzAuaEK7bAU.cache
187
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Y0/Y0-81RV0kP3kkrrtpu2uMeyzo64nCXW3SDJlw6m2fj4.cache
188
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/dN/dN2-E0CCM5wtYZomdgp64eQAmopGFC0ePOhTRWuNBvQ.cache
189
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/eS/eS3il8sFiF70CJZmKBPTm1FLec-zw8B7IzPPvkuK1u8.cache
190
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/jK/jK5UBWD1YVDtsefRk_JwOBR72ghgtCV--u7IlbUc03s.cache
191
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/kP/kPcwhPILUYMzJ6ur2tH2T8usC53KxUxepYBSOZ7VUt8.cache
192
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/lS/lS6RwqteayFTAdf6FgMw11bXGGI8DWJFPqHxP2XkXd0.cache
193
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache
194
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache
195
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/pi/pi6etlT1bMiWX7thI__-KxLHhEoKAo30IgXOwtRK9t0.cache
196
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/qP/qPmv5snMrDw830S6hSICDcnIy7kVEWoFKXhGKT38lG4.cache
197
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/st/st-pTV9TPstETNHhsnxBCbAlS05rcNIKba7hRNbkmUA.cache
198
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/w4/w4GqgS1yUGmN0YskbhLsZ8iu1mDpp86ioSjy3_mmUIA.cache
199
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/wJ/wJZCYzf_JMRm-wPqe-Mv1sMfBxQTe3DtTTjinVeNWWc.cache
200
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/yv/yvvhpgDo16OpYhb-dcBGMN6o5Dnk-R7nbOf5GPpdL0k.cache
201
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/yx/yxWvmr9K44epqBAsbVq9PanAxfY0mrNIrysWagrWEps.cache
202
- - spec/dummy/tmp/development_secret.txt
203
167
  - spec/fixtures/files/commutatus_logo.png
204
168
  - spec/models/cm_page_builder/rails/page_spec.rb
205
169
  - spec/rails_helper.rb
@@ -209,7 +173,7 @@ licenses:
209
173
  - MIT
210
174
  metadata:
211
175
  allowed_push_host: https://rubygems.org
212
- post_install_message:
176
+ post_install_message:
213
177
  rdoc_options: []
214
178
  require_paths:
215
179
  - lib
@@ -224,99 +188,69 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
188
  - !ruby/object:Gem::Version
225
189
  version: '0'
226
190
  requirements: []
227
- rubygems_version: 3.0.3
228
- signing_key:
191
+ rubygems_version: 3.2.3
192
+ signing_key:
229
193
  specification_version: 4
230
194
  summary: Summary of CmPageBuilder::Rails.
231
195
  test_files:
232
- - spec/dummy/spec/models/test_container_spec.rb
233
- - spec/dummy/public/favicon.ico
234
- - spec/dummy/public/422.html
235
- - spec/dummy/public/apple-touch-icon-precomposed.png
236
- - spec/dummy/public/500.html
237
- - spec/dummy/public/apple-touch-icon.png
238
- - spec/dummy/public/404.html
239
- - spec/dummy/bin/setup
240
- - spec/dummy/bin/rake
241
- - spec/dummy/bin/rails
242
- - spec/dummy/config.ru
243
- - spec/dummy/app/javascript/packs/application.js
244
- - spec/dummy/app/controllers/test_containers_controller.rb
196
+ - spec/dummy/Rakefile
197
+ - spec/dummy/app/assets/config/manifest.js
198
+ - spec/dummy/app/assets/stylesheets/application.css
199
+ - spec/dummy/app/channels/application_cable/channel.rb
200
+ - spec/dummy/app/channels/application_cable/connection.rb
245
201
  - spec/dummy/app/controllers/application_controller.rb
202
+ - spec/dummy/app/controllers/test_containers_controller.rb
203
+ - spec/dummy/app/helpers/application_helper.rb
204
+ - spec/dummy/app/javascript/packs/application.js
205
+ - spec/dummy/app/jobs/application_job.rb
246
206
  - spec/dummy/app/models/application_record.rb
247
207
  - spec/dummy/app/models/test_container.rb
248
- - spec/dummy/app/views/test_containers/edit.html.slim
249
- - spec/dummy/app/views/test_containers/show.html.slim
250
- - spec/dummy/app/views/test_containers/new.html.slim
208
+ - spec/dummy/app/views/layouts/application.html.erb
251
209
  - spec/dummy/app/views/test_containers/_form.html.slim
210
+ - spec/dummy/app/views/test_containers/edit.html.slim
252
211
  - spec/dummy/app/views/test_containers/index.html.slim
253
- - spec/dummy/app/views/layouts/application.html.erb
254
- - spec/dummy/app/jobs/application_job.rb
255
- - spec/dummy/app/assets/stylesheets/application.css
256
- - spec/dummy/app/assets/config/manifest.js
257
- - spec/dummy/app/helpers/application_helper.rb
258
- - spec/dummy/app/channels/application_cable/channel.rb
259
- - spec/dummy/app/channels/application_cable/connection.rb
260
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/kP/kPcwhPILUYMzJ6ur2tH2T8usC53KxUxepYBSOZ7VUt8.cache
261
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/8t/8tWHnBupt4r5zX1sjy8C6i7S3z5ajB6srIvDWOWVf9M.cache
262
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache
263
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Ac/AcI542cVIIgUfhEHlfWRg1sVCk-ci8q7KJjtfiXWrqU.cache
264
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Om/OmMgC0Ie4yVZz8R3xcFMwe3zaxbHUZjsMyO9ps04Qpc.cache
265
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/K5/K5x_Jacr65xC7yksZkQ8Lu-ZDQDOr7RKTkXGmRF7rNg.cache
266
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Li/LiQyyzJdhsuIp-k1fAZr5FGe5zI5auwfWTrl0HRmfgc.cache
267
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Sf/SfmrkSwWT4EUyQAKsRlhn5MHbfVz_o_VBzAuaEK7bAU.cache
268
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Y0/Y0-81RV0kP3kkrrtpu2uMeyzo64nCXW3SDJlw6m2fj4.cache
269
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/lS/lS6RwqteayFTAdf6FgMw11bXGGI8DWJFPqHxP2XkXd0.cache
270
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/-8/-8wLv-gkS0lWbg5gMshjwVvEX-JbIZUEBVR2pr9_bKA.cache
271
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Gc/GcDr51VZAgE8TwLQ4lVLRgj06T_sip-iHJ31oZhzX2E.cache
272
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/eS/eS3il8sFiF70CJZmKBPTm1FLec-zw8B7IzPPvkuK1u8.cache
273
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/N3/N3Sm2Yo3ko7YeZE7Tm84toiF8Uc8SvwN_dPmwE31NHY.cache
274
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/dN/dN2-E0CCM5wtYZomdgp64eQAmopGFC0ePOhTRWuNBvQ.cache
275
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/w4/w4GqgS1yUGmN0YskbhLsZ8iu1mDpp86ioSjy3_mmUIA.cache
276
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/wJ/wJZCYzf_JMRm-wPqe-Mv1sMfBxQTe3DtTTjinVeNWWc.cache
277
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/qP/qPmv5snMrDw830S6hSICDcnIy7kVEWoFKXhGKT38lG4.cache
278
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/st/st-pTV9TPstETNHhsnxBCbAlS05rcNIKba7hRNbkmUA.cache
279
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/5D/5DPzt4__rm7GhngiwkT-lUOoi4bxaoTs0K5kvJStU0k.cache
280
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/jK/jK5UBWD1YVDtsefRk_JwOBR72ghgtCV--u7IlbUc03s.cache
281
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache
282
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/P-/P-zt7qJNJDPVCYemhhzcCrULNd8WMOrYSEfLANHYDmg.cache
283
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Pe/Peitb8vcIuqpCVAjgFYYksat7BhWf5MRwqriqxp4WW4.cache
284
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/yv/yvvhpgDo16OpYhb-dcBGMN6o5Dnk-R7nbOf5GPpdL0k.cache
285
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/pi/pi6etlT1bMiWX7thI__-KxLHhEoKAo30IgXOwtRK9t0.cache
286
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/yx/yxWvmr9K44epqBAsbVq9PanAxfY0mrNIrysWagrWEps.cache
287
- - spec/dummy/tmp/development_secret.txt
288
- - spec/dummy/config/routes.rb
289
- - spec/dummy/config/spring.rb
290
- - spec/dummy/config/locales/en.yml
291
- - spec/dummy/config/puma.rb
292
- - spec/dummy/config/database.yml
212
+ - spec/dummy/app/views/test_containers/new.html.slim
213
+ - spec/dummy/app/views/test_containers/show.html.slim
214
+ - spec/dummy/bin/rails
215
+ - spec/dummy/bin/rake
216
+ - spec/dummy/bin/setup
293
217
  - spec/dummy/config/application.rb
294
- - spec/dummy/config/environments/development.rb
295
- - spec/dummy/config/environments/test.rb
296
- - spec/dummy/config/environments/production.rb
218
+ - spec/dummy/config/boot.rb
297
219
  - spec/dummy/config/cable.yml
220
+ - spec/dummy/config/database.yml
298
221
  - spec/dummy/config/environment.rb
299
- - spec/dummy/config/storage.yml
222
+ - spec/dummy/config/environments/development.rb
223
+ - spec/dummy/config/environments/production.rb
224
+ - spec/dummy/config/environments/test.rb
225
+ - spec/dummy/config/initializers/application_controller_renderer.rb
300
226
  - spec/dummy/config/initializers/assets.rb
227
+ - spec/dummy/config/initializers/backtrace_silencers.rb
228
+ - spec/dummy/config/initializers/content_security_policy.rb
301
229
  - spec/dummy/config/initializers/cookies_serializer.rb
230
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
302
231
  - spec/dummy/config/initializers/inflections.rb
303
232
  - spec/dummy/config/initializers/mime_types.rb
304
233
  - spec/dummy/config/initializers/wrap_parameters.rb
305
- - spec/dummy/config/initializers/filter_parameter_logging.rb
306
- - spec/dummy/config/initializers/content_security_policy.rb
307
- - spec/dummy/config/initializers/backtrace_silencers.rb
308
- - spec/dummy/config/initializers/application_controller_renderer.rb
309
- - spec/dummy/config/boot.rb
310
- - spec/dummy/log/development.log
311
- - spec/dummy/log/test.log
234
+ - spec/dummy/config/locales/en.yml
235
+ - spec/dummy/config/puma.rb
236
+ - spec/dummy/config/routes.rb
237
+ - spec/dummy/config/spring.rb
238
+ - spec/dummy/config/storage.yml
239
+ - spec/dummy/config.ru
312
240
  - spec/dummy/db/migrate/20190930111315_create_test_containers.rb
313
- - spec/dummy/db/migrate/20191114114260_create_cm_page_builder_rails_page_components.cm_page_builder_rails.rb
314
- - spec/dummy/db/migrate/20191114114261_change_page_component_primary_key.cm_page_builder_rails.rb
315
241
  - spec/dummy/db/migrate/20190930120755_create_active_storage_tables.active_storage.rb
316
242
  - spec/dummy/db/migrate/20191114114259_create_cm_page_builder_rails_pages.cm_page_builder_rails.rb
243
+ - spec/dummy/db/migrate/20191114114260_create_cm_page_builder_rails_page_components.cm_page_builder_rails.rb
244
+ - spec/dummy/db/migrate/20191114114261_change_page_component_primary_key.cm_page_builder_rails.rb
317
245
  - spec/dummy/db/schema.rb
318
- - spec/dummy/Rakefile
319
- - spec/rails_helper.rb
246
+ - spec/dummy/public/404.html
247
+ - spec/dummy/public/422.html
248
+ - spec/dummy/public/500.html
249
+ - spec/dummy/public/apple-touch-icon-precomposed.png
250
+ - spec/dummy/public/apple-touch-icon.png
251
+ - spec/dummy/public/favicon.ico
252
+ - spec/dummy/spec/models/test_container_spec.rb
253
+ - spec/fixtures/files/commutatus_logo.png
320
254
  - spec/models/cm_page_builder/rails/page_spec.rb
255
+ - spec/rails_helper.rb
321
256
  - spec/spec_helper.rb
322
- - spec/fixtures/files/commutatus_logo.png