phcdevworks_core_modules 6.2.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +0 -28
- data/Rakefile +5 -29
- data/app/assets/config/phcdevworks_core_modules_manifest.js +2 -1
- data/app/assets/stylesheets/phcdevworks_core_modules/application.scss +0 -2
- data/app/controllers/phcdevworks_core_modules/application_controller.rb +8 -8
- data/app/controllers/phcdevworks_core_modules/marketing/optimizations_controller.rb +63 -63
- data/app/controllers/phcdevworks_core_modules/post/categories_controller.rb +64 -64
- data/app/models/phcdevworks_core_modules/marketing/optimization.rb +1 -7
- data/app/views/layouts/phcdevworks_core_modules/application.html.erb +14 -19
- data/app/views/layouts/phcdevworks_core_modules/components/backend/sidebars/_side_menu.html.erb +2 -2
- data/app/views/phcdevworks_core_modules/post/categories/_form.html.erb +1 -6
- data/db/migrate/20201012225709_remove_phcdevworks_core_modules_post_categories.rb +7 -0
- data/lib/phcdevworks_core_modules.rb +2 -1
- data/lib/phcdevworks_core_modules/engine.rb +44 -34
- data/lib/phcdevworks_core_modules/version.rb +1 -1
- metadata +106 -35
- data/app/assets/javascripts/phcdevworks_core_modules/application.js +0 -2
- data/app/assets/javascripts/phcdevworks_core_modules/marketing/optimizations.coffee +0 -3
- data/app/assets/javascripts/phcdevworks_core_modules/post/categories.coffee +0 -3
- data/app/assets/stylesheets/scaffolds.scss +0 -65
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30ac8d6358fcbf47857965ccc3e0ea06b080ddbfb8d9564fc2a9a1d865cdc662
|
4
|
+
data.tar.gz: bc75a4c488d765dc5bbbb0a99ffbf6cc45049ff20b6dbd373d8486bdf3ea12db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b15dfa9d785ff498415af72a1471b6711c73fba6162ff8a4cb9f76a65b381b446093cfa96f128068d676c5a21a8d3a332610dbb5767426993365a2472c8a5f4
|
7
|
+
data.tar.gz: 73022c91595a8dfee511900c94d4d2b8f61fbe9ab6b710056970aa02345bdb386a4d0fb0a199ae81d01fa141bfc7914ca256ee75ba38aa46729d6d6cfa9d99dc
|
data/README.md
CHANGED
@@ -1,28 +0,0 @@
|
|
1
|
-
# PhcdevworksCoreModules
|
2
|
-
Short description and motivation.
|
3
|
-
|
4
|
-
## Usage
|
5
|
-
How to use my plugin.
|
6
|
-
|
7
|
-
## Installation
|
8
|
-
Add this line to your application's Gemfile:
|
9
|
-
|
10
|
-
```ruby
|
11
|
-
gem 'phcdevworks_core_modules'
|
12
|
-
```
|
13
|
-
|
14
|
-
And then execute:
|
15
|
-
```bash
|
16
|
-
$ bundle
|
17
|
-
```
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
```bash
|
21
|
-
$ gem install phcdevworks_core_modules
|
22
|
-
```
|
23
|
-
|
24
|
-
## Contributing
|
25
|
-
Contribution directions go here.
|
26
|
-
|
27
|
-
## License
|
28
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
CHANGED
@@ -1,32 +1,8 @@
|
|
1
|
-
|
2
|
-
require 'bundler/setup'
|
3
|
-
rescue LoadError
|
4
|
-
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
|
-
end
|
1
|
+
require "bundler/setup"
|
6
2
|
|
7
|
-
|
3
|
+
APP_RAKEFILE = File.expand_path("spec/test_app/Rakefile", __dir__)
|
4
|
+
load "rails/tasks/engine.rake"
|
8
5
|
|
9
|
-
|
10
|
-
rdoc.rdoc_dir = 'rdoc'
|
11
|
-
rdoc.title = 'PhcdevworksCoreModules'
|
12
|
-
rdoc.options << '--line-numbers'
|
13
|
-
rdoc.rdoc_files.include('README.md')
|
14
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
|
-
end
|
6
|
+
load "rails/tasks/statistics.rake"
|
16
7
|
|
17
|
-
|
18
|
-
load 'rails/tasks/engine.rake'
|
19
|
-
|
20
|
-
load 'rails/tasks/statistics.rake'
|
21
|
-
|
22
|
-
require 'bundler/gem_tasks'
|
23
|
-
|
24
|
-
require 'rake/testtask'
|
25
|
-
|
26
|
-
Rake::TestTask.new(:test) do |t|
|
27
|
-
t.libs << 'test'
|
28
|
-
t.pattern = 'test/**/*_test.rb'
|
29
|
-
t.verbose = false
|
30
|
-
end
|
31
|
-
|
32
|
-
task default: :test
|
8
|
+
require "bundler/gem_tasks"
|
@@ -1,13 +1,13 @@
|
|
1
1
|
module PhcdevworksCoreModules
|
2
|
-
|
2
|
+
class ApplicationController < ActionController::Base
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
# Security Filters
|
5
|
+
protect_from_forgery with: :exception
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
7
|
+
# Load Requried Helper Files
|
8
|
+
helper PhcdevworksActiveMenus::Engine.helpers
|
9
|
+
helper PhcdevworksNotifications::Engine.helpers
|
10
|
+
helper PhcdevworksTitleseo::Engine.helpers
|
11
11
|
|
12
|
-
|
12
|
+
end
|
13
13
|
end
|
@@ -1,81 +1,81 @@
|
|
1
1
|
require_dependency "phcdevworks_core_modules/application_controller"
|
2
2
|
|
3
3
|
module PhcdevworksCoreModules
|
4
|
-
|
4
|
+
class Marketing::OptimizationsController < ApplicationController
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
6
|
+
# Filters & Security
|
7
|
+
#include PhcdevworksCore::PhcpluginsHelper
|
8
|
+
before_action :authenticate_user!
|
9
|
+
before_action :set_paper_trail_whodunnit
|
10
|
+
before_action :set_marketing_optimization, only: [:show, :edit, :update, :destroy]
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
12
|
+
# GET /marketing/optimizations
|
13
|
+
def index
|
14
|
+
@marketing_optimizations = Marketing::Optimization.order('marketing_optimization_page_title ASC')
|
15
|
+
end
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
# GET /marketing/optimizations/1
|
18
|
+
def show
|
19
|
+
end
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
# GET /marketing/optimizations/new
|
22
|
+
def new
|
23
|
+
@marketing_optimization = Marketing::Optimization.new
|
24
|
+
end
|
25
25
|
|
26
|
-
|
27
|
-
|
28
|
-
|
26
|
+
# GET /marketing/optimizations/1/edit
|
27
|
+
def edit
|
28
|
+
end
|
29
29
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
30
|
+
# POST /marketing/optimizations
|
31
|
+
def create
|
32
|
+
@marketing_optimization = Marketing::Optimization.new(marketing_optimization_params)
|
33
|
+
@marketing_optimization.user_id = current_user.id
|
34
|
+
@marketing_optimization.org_id = current_user.org_id
|
35
|
+
respond_to do |format|
|
36
|
+
if @marketing_optimization.save
|
37
|
+
format.html { redirect_to marketing_optimizations_path, :flash => { :success => 'SEO Attributes has been Added.' }}
|
38
|
+
format.json { render :show, status: :created, location: @marketing_optimization }
|
39
|
+
else
|
40
|
+
format.html { render :new }
|
41
|
+
format.json { render json: @marketing_optimization.errors, status: :unprocessable_entity }
|
42
|
+
end
|
43
|
+
end
|
42
44
|
end
|
43
|
-
end
|
44
|
-
end
|
45
45
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
46
|
+
# PATCH/PUT /marketing/optimizations/1
|
47
|
+
def update
|
48
|
+
respond_to do |format|
|
49
|
+
if @marketing_optimization.update(marketing_optimization_params)
|
50
|
+
format.html { redirect_to marketing_optimizations_path, :flash => { :notice => 'Tutorial has been Updated.' }}
|
51
|
+
format.json { render :show, status: :ok, location: @marketing_optimization }
|
52
|
+
else
|
53
|
+
format.html { render :edit }
|
54
|
+
format.json { render json: @marketing_optimization.errors, status: :unprocessable_entity }
|
55
|
+
end
|
56
|
+
end
|
55
57
|
end
|
56
|
-
end
|
57
|
-
end
|
58
58
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
59
|
+
# DELETE /marketing/optimizations/1
|
60
|
+
def destroy
|
61
|
+
@marketing_optimization.destroy
|
62
|
+
respond_to do |format|
|
63
|
+
format.html { redirect_to marketing_optimizations_path, :flash => { :error => 'SEO Attributes and Post Connections have all been Removed.' }}
|
64
|
+
format.json { head :no_content }
|
65
|
+
end
|
66
|
+
end
|
67
67
|
|
68
|
-
|
68
|
+
private
|
69
69
|
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
70
|
+
# Common Callbacks
|
71
|
+
def set_marketing_optimization
|
72
|
+
@marketing_optimization = Marketing::Optimization.find(params[:id])
|
73
|
+
end
|
74
74
|
|
75
|
-
|
76
|
-
|
77
|
-
|
75
|
+
# Whitelist
|
76
|
+
def marketing_optimization_params
|
77
|
+
params.require(:marketing_optimization).permit(:marketing_optimization_page_title, :marketing_optimization_page_description, :marketing_optimization_og_title, :marketing_optimization_og_description, :marketing_optimization_og_type, :marketing_optimization_og_url, :marketing_optimization_twitter_title, :marketing_optimization_twitter_description, :marketing_optimization_twitter_type, :marketing_optimization_twitter_url, :marketing_optimization_twitter_image, :marketing_optimization_og_image, :slug, :user_id, :org_id)
|
78
|
+
end
|
79
|
+
|
78
80
|
end
|
79
|
-
|
80
|
-
end
|
81
81
|
end
|
@@ -1,81 +1,81 @@
|
|
1
1
|
require_dependency "phcdevworks_core_modules/application_controller"
|
2
2
|
|
3
3
|
module PhcdevworksCoreModules
|
4
|
-
|
5
|
-
|
6
|
-
# Filters & Security
|
7
|
-
#include PhcdevworksCore::PhcpluginsHelper
|
8
|
-
before_action :authenticate_user!
|
9
|
-
before_action :set_paper_trail_whodunnit
|
10
|
-
before_action :set_post_category, only: [:show, :edit, :update, :destroy]
|
4
|
+
class Post::CategoriesController < ApplicationController
|
11
5
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
6
|
+
# Filters & Security
|
7
|
+
#include PhcdevworksCore::PhcpluginsHelper
|
8
|
+
before_action :authenticate_user!
|
9
|
+
before_action :set_paper_trail_whodunnit
|
10
|
+
before_action :set_post_category, only: [:show, :edit, :update, :destroy]
|
16
11
|
|
17
|
-
|
18
|
-
|
19
|
-
|
12
|
+
# GET /post/categories
|
13
|
+
def index
|
14
|
+
@post_categories = Post::Category.order('post_category_name ASC')
|
15
|
+
end
|
20
16
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
17
|
+
# GET /post/categories/1
|
18
|
+
def show
|
19
|
+
end
|
20
|
+
|
21
|
+
# GET /post/categories/new
|
22
|
+
def new
|
23
|
+
@post_category = Post::Category.new
|
24
|
+
end
|
25
25
|
|
26
|
-
|
27
|
-
|
28
|
-
|
26
|
+
# GET /post/categories/1/edit
|
27
|
+
def edit
|
28
|
+
end
|
29
29
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
30
|
+
# POST /post/categories
|
31
|
+
def create
|
32
|
+
@post_category = Post::Category.new(post_category_params)
|
33
|
+
@post_category.user_id = current_user.id
|
34
|
+
@post_category.org_id = current_user.org_id
|
35
|
+
respond_to do |format|
|
36
|
+
if @post_category.save
|
37
|
+
format.html { redirect_to post_categories_path, :flash => { :success => 'Category has been Added.' }}
|
38
|
+
format.json { render :show, status: :created, location: @post_category }
|
39
|
+
else
|
40
|
+
format.html { render :new }
|
41
|
+
format.json { render json: @post_category.errors, status: :unprocessable_entity }
|
42
|
+
end
|
43
|
+
end
|
42
44
|
end
|
43
|
-
end
|
44
|
-
end
|
45
45
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
46
|
+
# PATCH/PUT /post/categories/1
|
47
|
+
def update
|
48
|
+
respond_to do |format|
|
49
|
+
if @post_category.update(post_category_params)
|
50
|
+
format.html { redirect_to post_categories_path, :flash => { :notice => 'Category has been Updated.' }}
|
51
|
+
format.json { render :show, status: :ok, location: @post_category }
|
52
|
+
else
|
53
|
+
format.html { render :edit }
|
54
|
+
format.json { render json: @post_category.errors, status: :unprocessable_entity }
|
55
|
+
end
|
56
|
+
end
|
55
57
|
end
|
56
|
-
end
|
57
|
-
end
|
58
58
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
59
|
+
# DELETE /post/categories/1
|
60
|
+
def destroy
|
61
|
+
@post_category.destroy
|
62
|
+
respond_to do |format|
|
63
|
+
format.html { redirect_to post_categories_path, :flash => { :error => 'Categories and Category Connections have all been Removed.' }}
|
64
|
+
format.json { head :no_content }
|
65
|
+
end
|
66
|
+
end
|
67
67
|
|
68
|
-
|
68
|
+
private
|
69
69
|
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
70
|
+
# Common Callbacks
|
71
|
+
def set_post_category
|
72
|
+
@post_category = Post::Category.find(params[:id])
|
73
|
+
end
|
74
74
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
75
|
+
# Whitelist
|
76
|
+
def post_category_params
|
77
|
+
params.require(:post_category).permit(:post_category_name, :slug, :user_id, :org_id)
|
78
|
+
end
|
79
79
|
|
80
|
-
|
80
|
+
end
|
81
81
|
end
|
@@ -9,7 +9,7 @@ module PhcdevworksCoreModules
|
|
9
9
|
has_one_attached :marketing_optimization_og_image
|
10
10
|
|
11
11
|
# Paper Trail Initialize
|
12
|
-
has_paper_trail :class_name
|
12
|
+
has_paper_trail versions: {class_name: "PhcdevworksCoreModules::MarketingOptimizationVersions"}
|
13
13
|
|
14
14
|
# Relationships for Local
|
15
15
|
belongs_to :user, class_name: "PhcdevworksAccounts::User"
|
@@ -43,12 +43,6 @@ module PhcdevworksCoreModules
|
|
43
43
|
validates :marketing_optimization_page_title,
|
44
44
|
presence: true
|
45
45
|
|
46
|
-
validates :marketing_optimization_og_title,
|
47
|
-
presence: true
|
48
|
-
|
49
|
-
validates :marketing_optimization_twitter_title,
|
50
|
-
presence: true
|
51
|
-
|
52
46
|
# Clean URL Define
|
53
47
|
friendly_id :marketing_optimization_nice_urls, use: [:slugged, :finders]
|
54
48
|
|
@@ -3,30 +3,29 @@
|
|
3
3
|
<head>
|
4
4
|
|
5
5
|
<!-- SEO System -->
|
6
|
-
<% phc_seo_title "PHCDevworks
|
7
|
-
<% phc_seo_description "
|
6
|
+
<% phc_seo_title "PHCDevworks Accounts" %>
|
7
|
+
<% phc_seo_description "Ruby on Rails 6 Authentication and User Management Engine." %>
|
8
8
|
<!-- SEO System -->
|
9
|
-
|
9
|
+
|
10
10
|
<!-- SEO and Site Description -->
|
11
|
-
|
12
|
-
|
13
|
-
<meta name="
|
14
|
-
|
15
|
-
<link rel="canonical" href="http://phcdevworks.com">
|
11
|
+
<meta charset="utf-8">
|
12
|
+
<title><%= yield(:phc_seo_title) %></title>
|
13
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
14
|
+
<meta name="description" content="<%= yield(:phc_seo_description) %>">
|
16
15
|
<!-- SEO and Site Description -->
|
17
|
-
|
16
|
+
|
18
17
|
<!-- Rails Security Tags -->
|
19
18
|
<%= csrf_meta_tags %>
|
20
19
|
<%= csp_meta_tag %>
|
21
20
|
<!-- Rails Security Tags -->
|
22
|
-
|
21
|
+
|
23
22
|
<!-- CSS Styles -->
|
24
|
-
<%= stylesheet_link_tag "
|
23
|
+
<%= stylesheet_link_tag "phcthemes_admin_panel_pack_coloradmin", media: "all" %>
|
25
24
|
<!-- CSS Styles -->
|
26
|
-
|
27
|
-
<!--
|
28
|
-
|
29
|
-
<!--
|
25
|
+
|
26
|
+
<!-- JavaScript -->
|
27
|
+
<%= javascript_include_tag "phcthemes_admin_panel_pack_coloradmin" %>
|
28
|
+
<!-- JavaScript -->
|
30
29
|
|
31
30
|
</head>
|
32
31
|
<body>
|
@@ -63,10 +62,6 @@
|
|
63
62
|
</div>
|
64
63
|
<!-- Page Container -->
|
65
64
|
|
66
|
-
<!-- JavaScript -->
|
67
|
-
<%= javascript_include_tag "phcdevworks_core_modules/application", "data-turbolinks-track": "reload" %>
|
68
|
-
<!-- JavaScript -->
|
69
|
-
|
70
65
|
<!-- JavaScript CKEditor -->
|
71
66
|
<script>ClassicEditor
|
72
67
|
.create( document.querySelector( '.editor' ), {
|
data/app/views/layouts/phcdevworks_core_modules/components/backend/sidebars/_side_menu.html.erb
CHANGED
@@ -25,7 +25,7 @@
|
|
25
25
|
<% end %>
|
26
26
|
</li>
|
27
27
|
<li>
|
28
|
-
<%= link_to phcdevworks_accounts.destroy_user_session_path do %>
|
28
|
+
<%= link_to phcdevworks_accounts.destroy_user_session_path, method: :delete do %>
|
29
29
|
<i class="fad fa-sign-out-alt"></i> Logout
|
30
30
|
<% end %>
|
31
31
|
</li>
|
@@ -270,7 +270,7 @@
|
|
270
270
|
<span>Admin</span>
|
271
271
|
</a>
|
272
272
|
<ul class="sub-menu">
|
273
|
-
<li class="<%= phc_menu_active_controller("phcdevworks_accounts/admin/users") %>"><%= link_to "User List", phcdevworks_accounts.
|
273
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_accounts/admin/users") %>"><%= link_to "User List", phcdevworks_accounts.admin_users_all_path %></li>
|
274
274
|
</ul>
|
275
275
|
</li>
|
276
276
|
<!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<!-- Form - Category -->
|
2
2
|
<%= form_with(model: post_category, local: true) do |form| %>
|
3
3
|
|
4
|
-
|
4
|
+
<!-- PHCNotifi Render Validation -->
|
5
5
|
<%= render "phcdevworks_notifications/bootstrap/validations", :object => @post_category %>
|
6
6
|
<!-- PHCNotifi Render Validation -->
|
7
7
|
|
@@ -10,11 +10,6 @@
|
|
10
10
|
<%= form.label :post_category_name, "Category Name" %>
|
11
11
|
<%= form.text_field :post_category_name, class: "form-control" %>
|
12
12
|
</div>
|
13
|
-
|
14
|
-
<div class="form-group">
|
15
|
-
<label>Attach SEO Data</label>
|
16
|
-
<%= collection_select(:post_category, :optimization_id, PhcdevworksCoreModules::Marketing::Optimization.order("marketing_optimization_page_title"), :id, :marketing_optimization_page_title, {}, {class: "form-control"}) %>
|
17
|
-
</div>
|
18
13
|
<!-- Form Input Fields -->
|
19
14
|
|
20
15
|
<!-- Form Submition Button -->
|
@@ -1,36 +1,46 @@
|
|
1
1
|
module PhcdevworksCoreModules
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
2
|
+
class Engine < ::Rails::Engine
|
3
|
+
|
4
|
+
# Load Main Dependencies
|
5
|
+
require "jbuilder"
|
6
|
+
require "paper_trail"
|
7
|
+
require "friendly_id"
|
8
|
+
|
9
|
+
# Load Theme Dependencies
|
10
|
+
require "phcthemes_admin_panel_pack"
|
11
|
+
require "phcthemes_web_theme_pack"
|
12
|
+
|
13
|
+
# Load Helper Dependencies
|
14
|
+
require "phcdevworks_core"
|
15
|
+
require "phcdevworks_active_menus"
|
16
|
+
require "phcdevworks_notifications"
|
17
|
+
require "phcdevworks_titleseo"
|
18
|
+
|
19
|
+
# Load Upload Dependencies
|
20
|
+
require "aws-sdk-s3"
|
21
|
+
require "google-cloud-storage"
|
22
|
+
require "mini_magick"
|
23
|
+
|
24
|
+
# Frontend Dependencies
|
25
|
+
require "wicked"
|
26
|
+
require "gravtastic"
|
27
|
+
require "friendly_id"
|
28
|
+
|
29
|
+
# Mailer Dependencies
|
30
|
+
require "mail_form"
|
31
|
+
|
32
|
+
# Load User Accounts
|
33
|
+
require "phcdevworks_accounts"
|
34
|
+
|
35
|
+
# Engine Namespace
|
36
|
+
isolate_namespace PhcdevworksCoreModules
|
37
|
+
|
38
|
+
# Rspec Generators
|
39
|
+
config.generators do |g|
|
40
|
+
g.test_framework :rspec
|
41
|
+
g.fixture_replacement :factory_bot
|
42
|
+
g.factory_bot dir: 'spec/factories'
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
36
46
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcdevworks_core_modules
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 7.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PHCDevworks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,20 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '6.
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 6.0.3.3
|
19
|
+
version: '6.1'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
24
|
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '6.
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 6.0.3.3
|
26
|
+
version: '6.1'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: jbuilder
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -64,84 +58,84 @@ dependencies:
|
|
64
58
|
requirements:
|
65
59
|
- - "~>"
|
66
60
|
- !ruby/object:Gem::Version
|
67
|
-
version: '3.
|
61
|
+
version: '3.2'
|
68
62
|
type: :runtime
|
69
63
|
prerelease: false
|
70
64
|
version_requirements: !ruby/object:Gem::Requirement
|
71
65
|
requirements:
|
72
66
|
- - "~>"
|
73
67
|
- !ruby/object:Gem::Version
|
74
|
-
version: '3.
|
68
|
+
version: '3.2'
|
75
69
|
- !ruby/object:Gem::Dependency
|
76
70
|
name: phcthemes_web_theme_pack
|
77
71
|
requirement: !ruby/object:Gem::Requirement
|
78
72
|
requirements:
|
79
73
|
- - "~>"
|
80
74
|
- !ruby/object:Gem::Version
|
81
|
-
version: '3.
|
75
|
+
version: '3.2'
|
82
76
|
type: :runtime
|
83
77
|
prerelease: false
|
84
78
|
version_requirements: !ruby/object:Gem::Requirement
|
85
79
|
requirements:
|
86
80
|
- - "~>"
|
87
81
|
- !ruby/object:Gem::Version
|
88
|
-
version: '3.
|
82
|
+
version: '3.2'
|
89
83
|
- !ruby/object:Gem::Dependency
|
90
84
|
name: phcdevworks_active_menus
|
91
85
|
requirement: !ruby/object:Gem::Requirement
|
92
86
|
requirements:
|
93
87
|
- - "~>"
|
94
88
|
- !ruby/object:Gem::Version
|
95
|
-
version: '2.
|
89
|
+
version: '2.2'
|
96
90
|
type: :runtime
|
97
91
|
prerelease: false
|
98
92
|
version_requirements: !ruby/object:Gem::Requirement
|
99
93
|
requirements:
|
100
94
|
- - "~>"
|
101
95
|
- !ruby/object:Gem::Version
|
102
|
-
version: '2.
|
96
|
+
version: '2.2'
|
103
97
|
- !ruby/object:Gem::Dependency
|
104
98
|
name: phcdevworks_core
|
105
99
|
requirement: !ruby/object:Gem::Requirement
|
106
100
|
requirements:
|
107
101
|
- - "~>"
|
108
102
|
- !ruby/object:Gem::Version
|
109
|
-
version: '2.
|
103
|
+
version: '2.2'
|
110
104
|
type: :runtime
|
111
105
|
prerelease: false
|
112
106
|
version_requirements: !ruby/object:Gem::Requirement
|
113
107
|
requirements:
|
114
108
|
- - "~>"
|
115
109
|
- !ruby/object:Gem::Version
|
116
|
-
version: '2.
|
110
|
+
version: '2.2'
|
117
111
|
- !ruby/object:Gem::Dependency
|
118
112
|
name: phcdevworks_notifications
|
119
113
|
requirement: !ruby/object:Gem::Requirement
|
120
114
|
requirements:
|
121
115
|
- - "~>"
|
122
116
|
- !ruby/object:Gem::Version
|
123
|
-
version: '2.
|
117
|
+
version: '2.2'
|
124
118
|
type: :runtime
|
125
119
|
prerelease: false
|
126
120
|
version_requirements: !ruby/object:Gem::Requirement
|
127
121
|
requirements:
|
128
122
|
- - "~>"
|
129
123
|
- !ruby/object:Gem::Version
|
130
|
-
version: '2.
|
124
|
+
version: '2.2'
|
131
125
|
- !ruby/object:Gem::Dependency
|
132
126
|
name: phcdevworks_titleseo
|
133
127
|
requirement: !ruby/object:Gem::Requirement
|
134
128
|
requirements:
|
135
129
|
- - "~>"
|
136
130
|
- !ruby/object:Gem::Version
|
137
|
-
version: '3.
|
131
|
+
version: '3.2'
|
138
132
|
type: :runtime
|
139
133
|
prerelease: false
|
140
134
|
version_requirements: !ruby/object:Gem::Requirement
|
141
135
|
requirements:
|
142
136
|
- - "~>"
|
143
137
|
- !ruby/object:Gem::Version
|
144
|
-
version: '3.
|
138
|
+
version: '3.2'
|
145
139
|
- !ruby/object:Gem::Dependency
|
146
140
|
name: wicked
|
147
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -184,62 +178,138 @@ dependencies:
|
|
184
178
|
- - "~>"
|
185
179
|
- !ruby/object:Gem::Version
|
186
180
|
version: '3.2'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: mail_form
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '1.8'
|
188
|
+
type: :runtime
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '1.8'
|
187
195
|
- !ruby/object:Gem::Dependency
|
188
196
|
name: aws-sdk-s3
|
189
197
|
requirement: !ruby/object:Gem::Requirement
|
190
198
|
requirements:
|
191
199
|
- - "~>"
|
192
200
|
- !ruby/object:Gem::Version
|
193
|
-
version: '1.
|
201
|
+
version: '1.85'
|
194
202
|
type: :runtime
|
195
203
|
prerelease: false
|
196
204
|
version_requirements: !ruby/object:Gem::Requirement
|
197
205
|
requirements:
|
198
206
|
- - "~>"
|
199
207
|
- !ruby/object:Gem::Version
|
200
|
-
version: '1.
|
208
|
+
version: '1.85'
|
201
209
|
- !ruby/object:Gem::Dependency
|
202
210
|
name: google-cloud-storage
|
203
211
|
requirement: !ruby/object:Gem::Requirement
|
204
212
|
requirements:
|
205
213
|
- - "~>"
|
206
214
|
- !ruby/object:Gem::Version
|
207
|
-
version: '1.
|
215
|
+
version: '1.29'
|
208
216
|
type: :runtime
|
209
217
|
prerelease: false
|
210
218
|
version_requirements: !ruby/object:Gem::Requirement
|
211
219
|
requirements:
|
212
220
|
- - "~>"
|
213
221
|
- !ruby/object:Gem::Version
|
214
|
-
version: '1.
|
222
|
+
version: '1.29'
|
215
223
|
- !ruby/object:Gem::Dependency
|
216
224
|
name: mini_magick
|
217
225
|
requirement: !ruby/object:Gem::Requirement
|
218
226
|
requirements:
|
219
227
|
- - "~>"
|
220
228
|
- !ruby/object:Gem::Version
|
221
|
-
version: '4.
|
229
|
+
version: '4.11'
|
222
230
|
type: :runtime
|
223
231
|
prerelease: false
|
224
232
|
version_requirements: !ruby/object:Gem::Requirement
|
225
233
|
requirements:
|
226
234
|
- - "~>"
|
227
235
|
- !ruby/object:Gem::Version
|
228
|
-
version: '4.
|
236
|
+
version: '4.11'
|
229
237
|
- !ruby/object:Gem::Dependency
|
230
238
|
name: phcdevworks_accounts
|
231
239
|
requirement: !ruby/object:Gem::Requirement
|
232
240
|
requirements:
|
233
241
|
- - "~>"
|
234
242
|
- !ruby/object:Gem::Version
|
235
|
-
version: '
|
243
|
+
version: '3.0'
|
236
244
|
type: :runtime
|
237
245
|
prerelease: false
|
238
246
|
version_requirements: !ruby/object:Gem::Requirement
|
239
247
|
requirements:
|
240
248
|
- - "~>"
|
241
249
|
- !ruby/object:Gem::Version
|
242
|
-
version: '
|
250
|
+
version: '3.0'
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: factory_bot_rails
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - "~>"
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: '6.1'
|
258
|
+
type: :development
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - "~>"
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '6.1'
|
265
|
+
- !ruby/object:Gem::Dependency
|
266
|
+
name: rspec-rails
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
268
|
+
requirements:
|
269
|
+
- - "~>"
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: '4.0'
|
272
|
+
type: :development
|
273
|
+
prerelease: false
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - "~>"
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: '4.0'
|
279
|
+
- !ruby/object:Gem::Dependency
|
280
|
+
name: spring
|
281
|
+
requirement: !ruby/object:Gem::Requirement
|
282
|
+
requirements:
|
283
|
+
- - "~>"
|
284
|
+
- !ruby/object:Gem::Version
|
285
|
+
version: '2.1'
|
286
|
+
- - ">="
|
287
|
+
- !ruby/object:Gem::Version
|
288
|
+
version: 2.1.1
|
289
|
+
type: :development
|
290
|
+
prerelease: false
|
291
|
+
version_requirements: !ruby/object:Gem::Requirement
|
292
|
+
requirements:
|
293
|
+
- - "~>"
|
294
|
+
- !ruby/object:Gem::Version
|
295
|
+
version: '2.1'
|
296
|
+
- - ">="
|
297
|
+
- !ruby/object:Gem::Version
|
298
|
+
version: 2.1.1
|
299
|
+
- !ruby/object:Gem::Dependency
|
300
|
+
name: spring-commands-rspec
|
301
|
+
requirement: !ruby/object:Gem::Requirement
|
302
|
+
requirements:
|
303
|
+
- - "~>"
|
304
|
+
- !ruby/object:Gem::Version
|
305
|
+
version: '1.0'
|
306
|
+
type: :development
|
307
|
+
prerelease: false
|
308
|
+
version_requirements: !ruby/object:Gem::Requirement
|
309
|
+
requirements:
|
310
|
+
- - "~>"
|
311
|
+
- !ruby/object:Gem::Version
|
312
|
+
version: '1.0'
|
243
313
|
- !ruby/object:Gem::Dependency
|
244
314
|
name: sqlite3
|
245
315
|
requirement: !ruby/object:Gem::Requirement
|
@@ -265,13 +335,9 @@ files:
|
|
265
335
|
- README.md
|
266
336
|
- Rakefile
|
267
337
|
- app/assets/config/phcdevworks_core_modules_manifest.js
|
268
|
-
- app/assets/javascripts/phcdevworks_core_modules/application.js
|
269
|
-
- app/assets/javascripts/phcdevworks_core_modules/marketing/optimizations.coffee
|
270
|
-
- app/assets/javascripts/phcdevworks_core_modules/post/categories.coffee
|
271
338
|
- app/assets/stylesheets/phcdevworks_core_modules/application.scss
|
272
339
|
- app/assets/stylesheets/phcdevworks_core_modules/marketing/optimizations.scss
|
273
340
|
- app/assets/stylesheets/phcdevworks_core_modules/post/categories.scss
|
274
|
-
- app/assets/stylesheets/scaffolds.scss
|
275
341
|
- app/controllers/phcdevworks_core_modules/application_controller.rb
|
276
342
|
- app/controllers/phcdevworks_core_modules/marketing/optimizations_controller.rb
|
277
343
|
- app/controllers/phcdevworks_core_modules/post/categories_controller.rb
|
@@ -307,6 +373,7 @@ files:
|
|
307
373
|
- db/migrate/20200705223718_create_phcdevworks_core_modules_marketing_optimizations.rb
|
308
374
|
- db/migrate/20200705225433_create_phcdevworks_core_modules_marketing_optimization_versions.rb
|
309
375
|
- db/migrate/20200706094820_create_phcdevworks_core_modules_post_categories.rb
|
376
|
+
- db/migrate/20201012225709_remove_phcdevworks_core_modules_post_categories.rb
|
310
377
|
- lib/phcdevworks_core_modules.rb
|
311
378
|
- lib/phcdevworks_core_modules/engine.rb
|
312
379
|
- lib/phcdevworks_core_modules/version.rb
|
@@ -314,7 +381,11 @@ files:
|
|
314
381
|
homepage: https://phcdevworks.com/
|
315
382
|
licenses:
|
316
383
|
- MIT
|
317
|
-
metadata:
|
384
|
+
metadata:
|
385
|
+
allowed_push_host: https://rubygems.org/
|
386
|
+
homepage_uri: https://phcdevworks.com/
|
387
|
+
source_code_uri: https://github.com/phcdevworks/phcdevworks_core_modules
|
388
|
+
changelog_uri: https://github.com/phcdevworks/phcdevworks_core_modules/releases
|
318
389
|
post_install_message:
|
319
390
|
rdoc_options: []
|
320
391
|
require_paths:
|
@@ -1,65 +0,0 @@
|
|
1
|
-
body {
|
2
|
-
background-color: #fff;
|
3
|
-
color: #333;
|
4
|
-
margin: 33px; }
|
5
|
-
|
6
|
-
body, p, ol, ul, td {
|
7
|
-
font-family: verdana, arial, helvetica, sans-serif;
|
8
|
-
font-size: 13px;
|
9
|
-
line-height: 18px; }
|
10
|
-
|
11
|
-
pre {
|
12
|
-
background-color: #eee;
|
13
|
-
padding: 10px;
|
14
|
-
font-size: 11px; }
|
15
|
-
|
16
|
-
a {
|
17
|
-
color: #000; }
|
18
|
-
|
19
|
-
a:visited {
|
20
|
-
color: #666; }
|
21
|
-
|
22
|
-
a:hover {
|
23
|
-
color: #fff;
|
24
|
-
background-color: #000; }
|
25
|
-
|
26
|
-
th {
|
27
|
-
padding-bottom: 5px; }
|
28
|
-
|
29
|
-
td {
|
30
|
-
padding: 0 5px 7px; }
|
31
|
-
|
32
|
-
div.field,
|
33
|
-
div.actions {
|
34
|
-
margin-bottom: 10px; }
|
35
|
-
|
36
|
-
#notice {
|
37
|
-
color: green; }
|
38
|
-
|
39
|
-
.field_with_errors {
|
40
|
-
padding: 2px;
|
41
|
-
background-color: red;
|
42
|
-
display: table; }
|
43
|
-
|
44
|
-
#error_explanation {
|
45
|
-
width: 450px;
|
46
|
-
border: 2px solid red;
|
47
|
-
padding: 7px 7px 0;
|
48
|
-
margin-bottom: 20px;
|
49
|
-
background-color: #f0f0f0; }
|
50
|
-
|
51
|
-
#error_explanation h2 {
|
52
|
-
text-align: left;
|
53
|
-
font-weight: bold;
|
54
|
-
padding: 5px 5px 5px 15px;
|
55
|
-
font-size: 12px;
|
56
|
-
margin: -7px -7px 0;
|
57
|
-
background-color: #c00;
|
58
|
-
color: #fff; }
|
59
|
-
|
60
|
-
#error_explanation ul li {
|
61
|
-
font-size: 12px;
|
62
|
-
list-style: square; }
|
63
|
-
|
64
|
-
label {
|
65
|
-
display: block; }
|