phcpress 6.4.4 → 6.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +4 -4
- data/Rakefile +13 -13
- data/app/controllers/phcpress/api/v1/categories_controller.rb +9 -9
- data/app/controllers/phcpress/api/v1/posts_controller.rb +9 -9
- data/app/controllers/phcpress/application_controller.rb +10 -10
- data/app/controllers/phcpress/articles/posts_controller.rb +63 -63
- data/app/controllers/phcpress/frontend/articles_controller.rb +16 -16
- data/app/controllers/phcpress/modules/categories_controller.rb +61 -62
- data/app/controllers/phcpress/modules/connections_controller.rb +61 -62
- data/config/routes.rb +22 -22
- data/db/migrate/20160716182848_create_phcpress_modules_categories.rb +14 -11
- data/db/migrate/20160720181307_create_phcpress_articles_posts.rb +17 -14
- data/db/migrate/20160720235314_create_phcpress_modules_connections.rb +15 -12
- data/lib/phcpress/engine.rb +49 -57
- data/lib/phcpress/version.rb +1 -1
- metadata +19 -37
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 139a6f394edd2df268bd858a83c01f18d10952c4
|
4
|
+
data.tar.gz: e248c85fd019500e521ff8a1a0afe224a51dd8c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6ece42151bb2b878a6829b05897379e6156ba132232ee776def9920be8e4b20f2b95934dd0a70a9e266c72113ee5263df4145e13a1e1d28529c145d8b84ea32
|
7
|
+
data.tar.gz: 321faf7b2a7f5ca5b5848325e7540efcdb9ce74a04d1f222d771d27505cafc5821cd9770b3ec7ba3f1acc660976b2d5fa864ad9979c2d2c4a5a1ba523dd50cf3
|
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
[![Code Climate](https://codeclimate.com/github/PHCNetworks/phc-press/badges/gpa.svg)](https://codeclimate.com/github/PHCNetworks/phc-press)
|
3
3
|
[![Dependency Status](https://gemnasium.com/badges/github.com/PHCNetworks/phc-press.svg)](https://gemnasium.com/github.com/PHCNetworks/phc-press)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/phcpress.svg)](https://badge.fury.io/rb/phcpress)
|
5
|
-
|
5
|
+
|
6
6
|
### PHCPress(6) (News/Blog Engine) Documentation
|
7
7
|
PHCPress(6) rails CMS engine to manage your website's articles, categories and media.
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
* Website article posts with WYSIWYG editor.
|
10
|
+
* Upload images locally or use any popular cloud service.
|
11
|
+
* Customizable article categories module included.
|
12
12
|
|
13
13
|
#### Step 1 - Add PHCPress to your gemfile and run command
|
14
14
|
|
data/Rakefile
CHANGED
@@ -1,33 +1,33 @@
|
|
1
1
|
begin
|
2
|
-
|
2
|
+
require 'bundler/setup'
|
3
|
+
|
3
4
|
rescue LoadError
|
4
|
-
|
5
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
6
|
end
|
6
7
|
|
7
8
|
require 'rdoc/task'
|
8
9
|
|
9
10
|
RDoc::Task.new(:rdoc) do |rdoc|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
rdoc.rdoc_dir = 'rdoc'
|
12
|
+
rdoc.title = 'Phcpress'
|
13
|
+
rdoc.options << '--line-numbers'
|
14
|
+
rdoc.rdoc_files.include('README.md')
|
15
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
16
|
end
|
16
17
|
|
17
18
|
APP_RAKEFILE = File.expand_path("../spec/testapp/Rakefile", __FILE__)
|
18
|
-
load 'rails/tasks/engine.rake'
|
19
19
|
|
20
|
+
load 'rails/tasks/engine.rake'
|
20
21
|
load 'rails/tasks/statistics.rake'
|
21
22
|
|
22
23
|
require 'bundler/gem_tasks'
|
23
|
-
|
24
24
|
require 'rake/testtask'
|
25
25
|
|
26
26
|
Rake::TestTask.new(:test) do |t|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
27
|
+
t.libs << 'lib'
|
28
|
+
t.libs << 'test'
|
29
|
+
t.pattern = 'test/**/*_test.rb'
|
30
|
+
t.verbose = false
|
31
31
|
end
|
32
32
|
|
33
33
|
task default: :test
|
@@ -2,14 +2,14 @@ require_dependency "phcpress/application_controller"
|
|
2
2
|
|
3
3
|
module Phcpress
|
4
4
|
class Api::V1::CategoriesController < ApplicationController
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
5
|
+
|
6
|
+
# Only Responds to API Requests
|
7
|
+
respond_to :json
|
8
|
+
|
9
|
+
# Article Category API
|
10
|
+
def index
|
11
|
+
@modules_categories = Modules::Category.order('catname ASC')
|
12
|
+
end
|
13
|
+
|
14
14
|
end
|
15
15
|
end
|
@@ -2,14 +2,14 @@ require_dependency "phcpress/application_controller"
|
|
2
2
|
|
3
3
|
module Phcpress
|
4
4
|
class Api::V1::PostsController < ApplicationController
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
5
|
+
|
6
|
+
# Only Responds to API Requests
|
7
|
+
respond_to :json
|
8
|
+
|
9
|
+
# Article Category API
|
10
|
+
def index
|
11
|
+
@articles_posts = Articles::Post.order('psttitle ASC')
|
12
|
+
end
|
13
|
+
|
14
14
|
end
|
15
15
|
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
module Phcpress
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
2
|
+
class ApplicationController < ActionController::Base
|
3
|
+
|
4
|
+
# Security
|
5
|
+
protect_from_forgery with: :exception
|
6
|
+
|
7
|
+
# Load Helpers
|
8
|
+
helper Phctitleseo::Engine.helpers
|
9
|
+
helper Phcnotifi::Engine.helpers
|
10
|
+
|
11
|
+
end
|
12
12
|
end
|
@@ -1,67 +1,67 @@
|
|
1
1
|
require_dependency "phcpress/application_controller"
|
2
2
|
|
3
3
|
module Phcpress
|
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
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
4
|
+
class Articles::PostsController < ApplicationController
|
5
|
+
|
6
|
+
# Filters & Security
|
7
|
+
before_action :set_articles_post, only: [:show, :edit, :update, :destroy]
|
8
|
+
|
9
|
+
# Article Index
|
10
|
+
def index
|
11
|
+
@articles_posts = Articles::Post.all
|
12
|
+
end
|
13
|
+
|
14
|
+
# Article Show
|
15
|
+
def show
|
16
|
+
end
|
17
|
+
|
18
|
+
# Article New
|
19
|
+
def new
|
20
|
+
@articles_post = Articles::Post.new
|
21
|
+
end
|
22
|
+
|
23
|
+
# Article Edit
|
24
|
+
def edit
|
25
|
+
end
|
26
|
+
|
27
|
+
# POST
|
28
|
+
def create
|
29
|
+
@articles_post = Articles::Post.new(articles_post_params)
|
30
|
+
if @articles_post.save
|
31
|
+
@articles_post.connections.build
|
32
|
+
redirect_to articles_posts_url, notice: 'Post was successfully created.'
|
33
|
+
else
|
34
|
+
render :new
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
# PATCH/PUT
|
39
|
+
def update
|
40
|
+
if @articles_post.update(articles_post_params)
|
41
|
+
@articles_post.connections.build
|
42
|
+
redirect_to articles_posts_url, notice: 'Post was successfully updated.'
|
43
|
+
else
|
44
|
+
render :edit
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# DELETE
|
49
|
+
def destroy
|
50
|
+
@articles_post.destroy
|
51
|
+
redirect_to articles_posts_url, notice: 'Post was successfully destroyed.'
|
52
|
+
end
|
53
|
+
|
54
|
+
private
|
55
|
+
|
56
|
+
# Common Callbacks
|
57
|
+
def set_articles_post
|
58
|
+
@articles_post = Articles::Post.find(params[:id])
|
59
|
+
end
|
60
|
+
|
61
|
+
# Params Whitelist
|
62
|
+
def articles_post_params
|
63
|
+
params.require(:articles_post).permit(:psttitle, :psttext, :pststatus, :pstimage, :remove_pstimage, category_ids: [])
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
67
67
|
end
|
@@ -1,20 +1,20 @@
|
|
1
1
|
require_dependency "phcpress/application_controller"
|
2
2
|
|
3
3
|
module Phcpress
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
4
|
+
class Frontend::ArticlesController < ApplicationController
|
5
|
+
|
6
|
+
# Security & Filters
|
7
|
+
layout '/layouts/phcpress/frontend.html.erb'
|
8
|
+
|
9
|
+
# Article Index
|
10
|
+
def index
|
11
|
+
@articles_index = Articles::Post.all
|
12
|
+
end
|
13
|
+
|
14
|
+
# Single Article Post
|
15
|
+
def show
|
16
|
+
@articles_single = Articles::Post.find(params[:id])
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
20
|
end
|
@@ -1,66 +1,65 @@
|
|
1
1
|
require_dependency "phcpress/application_controller"
|
2
2
|
|
3
3
|
module Phcpress
|
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
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
end
|
4
|
+
class Modules::CategoriesController < ApplicationController
|
5
|
+
|
6
|
+
# Security and Filters
|
7
|
+
before_action :set_modules_category, only: [:show, :edit, :update, :destroy]
|
8
|
+
|
9
|
+
# Categories Index
|
10
|
+
def index
|
11
|
+
@modules_categories = Modules::Category.all
|
12
|
+
end
|
13
|
+
|
14
|
+
# Categories Show
|
15
|
+
def show
|
16
|
+
end
|
17
|
+
|
18
|
+
# Categories New
|
19
|
+
def new
|
20
|
+
@modules_category = Modules::Category.new
|
21
|
+
end
|
22
|
+
|
23
|
+
# Categories Edit
|
24
|
+
def edit
|
25
|
+
end
|
26
|
+
|
27
|
+
# POST
|
28
|
+
def create
|
29
|
+
@modules_category = Modules::Category.new(modules_category_params)
|
30
|
+
if @modules_category.save
|
31
|
+
redirect_to modules_categories_url, notice: 'Category was successfully created.'
|
32
|
+
else
|
33
|
+
render :new
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
# PATCH/PUT
|
38
|
+
def update
|
39
|
+
if @modules_category.update(modules_category_params)
|
40
|
+
redirect_to modules_categories_url, notice: 'Category was successfully updated.'
|
41
|
+
else
|
42
|
+
render :edit
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# DELETE
|
47
|
+
def destroy
|
48
|
+
@modules_category.destroy
|
49
|
+
redirect_to modules_categories_url, notice: 'Category was successfully destroyed.'
|
50
|
+
end
|
51
|
+
|
52
|
+
private
|
53
|
+
|
54
|
+
# Common Callbacks
|
55
|
+
def set_modules_category
|
56
|
+
@modules_category = Modules::Category.find(params[:id])
|
57
|
+
end
|
58
|
+
|
59
|
+
# Whitelist
|
60
|
+
def modules_category_params
|
61
|
+
params.require(:modules_category).permit(:catname)
|
62
|
+
end
|
63
|
+
|
64
|
+
end
|
66
65
|
end
|
@@ -1,66 +1,65 @@
|
|
1
1
|
require_dependency "phcpress/application_controller"
|
2
2
|
|
3
3
|
module Phcpress
|
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
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
end
|
4
|
+
class Modules::ConnectionsController < ApplicationController
|
5
|
+
|
6
|
+
# Security and Filters
|
7
|
+
before_action :set_modules_connection, only: [:show, :edit, :update, :destroy]
|
8
|
+
|
9
|
+
# Connections Index
|
10
|
+
def index
|
11
|
+
@modules_connections = Modules::Connection.all
|
12
|
+
end
|
13
|
+
|
14
|
+
# Connections Show
|
15
|
+
def show
|
16
|
+
end
|
17
|
+
|
18
|
+
# Connections New
|
19
|
+
def new
|
20
|
+
@modules_connection = Modules::Connection.new
|
21
|
+
end
|
22
|
+
|
23
|
+
# Connections Edit
|
24
|
+
def edit
|
25
|
+
end
|
26
|
+
|
27
|
+
# POST
|
28
|
+
def create
|
29
|
+
@modules_connection = Modules::Connection.new(modules_connection_params)
|
30
|
+
if @modules_connection.save
|
31
|
+
redirect_to modules_connections_url, notice: 'Connection was successfully created.'
|
32
|
+
else
|
33
|
+
render :new
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
# PATCH/PUT
|
38
|
+
def update
|
39
|
+
if @modules_connection.update(modules_connection_params)
|
40
|
+
redirect_to modules_connections_url, notice: 'Connection was successfully updated.'
|
41
|
+
else
|
42
|
+
årender :edit
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# DELETE
|
47
|
+
def destroy
|
48
|
+
@modules_connection.destroy
|
49
|
+
redirect_to modules_connections_url, notice: 'Connection was successfully destroyed.'
|
50
|
+
end
|
51
|
+
|
52
|
+
private
|
53
|
+
|
54
|
+
# Common Callbacks
|
55
|
+
def set_modules_connection
|
56
|
+
@modules_connection = Modules::Connection.find(params[:id])
|
57
|
+
end
|
58
|
+
|
59
|
+
# Whitelist
|
60
|
+
def modules_connection_params
|
61
|
+
params.require(:modules_connection).permit(:post_id, :category_id)
|
62
|
+
end
|
63
|
+
|
64
|
+
end
|
66
65
|
end
|
data/config/routes.rb
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
Phcpress::Engine.routes.draw do
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
# Frontend
|
4
|
+
namespace :frontend do
|
5
|
+
resources :articles
|
6
|
+
end
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
8
|
+
# API
|
9
|
+
namespace :api do
|
10
|
+
namespace :v1 do
|
11
|
+
resources :posts, defaults: {format: 'json'}
|
12
|
+
resources :categories, defaults: {format: 'json'}
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
# Article Routes
|
17
|
+
namespace :articles do
|
18
|
+
resources :posts, class_name: 'Phcpress::Articles::Post'
|
19
|
+
end
|
20
|
+
|
21
|
+
# Module Routes
|
22
|
+
namespace :modules do
|
23
|
+
resources :connections, class_name: 'Phcpress::Modules::Connection'
|
24
|
+
resources :categories, class_name: 'Phcpress::Modules::Category'
|
25
|
+
end
|
26
26
|
|
27
27
|
end
|
@@ -1,13 +1,16 @@
|
|
1
1
|
class CreatePhcpressModulesCategories < ActiveRecord::Migration[5.0]
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
2
|
+
def change
|
3
|
+
|
4
|
+
create_table :phcpress_modules_categories do |t|
|
5
|
+
|
6
|
+
t.string :catname
|
7
|
+
|
8
|
+
t.string :user_id
|
9
|
+
t.string :user_name
|
10
|
+
|
11
|
+
t.timestamps
|
12
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
13
16
|
end
|
@@ -1,16 +1,19 @@
|
|
1
1
|
class CreatePhcpressArticlesPosts < ActiveRecord::Migration[5.0]
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
2
|
+
def change
|
3
|
+
|
4
|
+
create_table :phcpress_articles_posts do |t|
|
5
|
+
|
6
|
+
t.string :psttitle
|
7
|
+
t.text :psttext
|
8
|
+
t.string :pststatus
|
9
|
+
t.string :pstimage
|
10
|
+
|
11
|
+
t.string :user_id
|
12
|
+
t.string :user_name
|
13
|
+
|
14
|
+
t.timestamps
|
15
|
+
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
16
19
|
end
|
@@ -1,14 +1,17 @@
|
|
1
1
|
class CreatePhcpressModulesConnections < ActiveRecord::Migration[5.0]
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
2
|
+
def change
|
3
|
+
|
4
|
+
create_table :phcpress_modules_connections do |t|
|
5
|
+
|
6
|
+
t.references :post
|
7
|
+
t.references :category
|
8
|
+
|
9
|
+
t.string :user_id
|
10
|
+
t.string :user_name
|
11
|
+
|
12
|
+
t.timestamps
|
13
|
+
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
14
17
|
end
|
data/lib/phcpress/engine.rb
CHANGED
@@ -1,59 +1,51 @@
|
|
1
1
|
module Phcpress
|
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
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
# Load Requried Helper Files
|
53
|
-
config.to_prepare do
|
54
|
-
Phcnotifi::ApplicationController.helper(ApplicationHelper)
|
55
|
-
Phctitleseo::ApplicationController.helper(ApplicationHelper)
|
56
|
-
end
|
57
|
-
|
58
|
-
end
|
2
|
+
class Engine < ::Rails::Engine
|
3
|
+
|
4
|
+
# Main Dependencies
|
5
|
+
require 'rails'
|
6
|
+
require 'pg'
|
7
|
+
require 'paper_trail'
|
8
|
+
|
9
|
+
# PHCEngines & Theme Dependencies
|
10
|
+
require 'phcnotifi'
|
11
|
+
require 'phctitleseo'
|
12
|
+
require 'phcadmin3'
|
13
|
+
|
14
|
+
# UI & Frontend Dependencies
|
15
|
+
require 'jquery-rails'
|
16
|
+
require 'jquery-ui-rails'
|
17
|
+
require 'sass-rails'
|
18
|
+
require 'bootstrap-sass'
|
19
|
+
require 'font-awesome-rails'
|
20
|
+
require 'country_select'
|
21
|
+
require 'gravtastic'
|
22
|
+
|
23
|
+
# API Dependencies
|
24
|
+
require 'rabl'
|
25
|
+
require 'oj'
|
26
|
+
require 'multi_json'
|
27
|
+
require 'responders'
|
28
|
+
|
29
|
+
# Isolate Namespace
|
30
|
+
isolate_namespace Phcpress
|
31
|
+
|
32
|
+
# Testing Generator
|
33
|
+
config.generators do |g|
|
34
|
+
g.test_framework :rspec,
|
35
|
+
fixtures: true,
|
36
|
+
view_specs: false,
|
37
|
+
helper_specs: false,
|
38
|
+
routing_specs: false,
|
39
|
+
controller_specs: true,
|
40
|
+
request_specs: false
|
41
|
+
g.fixture_replacement :factory_girl, dir: "spec/factories"
|
42
|
+
end
|
43
|
+
|
44
|
+
# Load Requried Helper Files
|
45
|
+
config.to_prepare do
|
46
|
+
Phcnotifi::ApplicationController.helper(ApplicationHelper)
|
47
|
+
Phctitleseo::ApplicationController.helper(ApplicationHelper)
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
59
51
|
end
|
data/lib/phcpress/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcpress
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.4.
|
4
|
+
version: 6.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BradPotts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -70,60 +70,42 @@ dependencies:
|
|
70
70
|
requirements:
|
71
71
|
- - "~>"
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version: '1.
|
74
|
-
- - ">="
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: 1.3.4
|
73
|
+
version: '1.4'
|
77
74
|
type: :runtime
|
78
75
|
prerelease: false
|
79
76
|
version_requirements: !ruby/object:Gem::Requirement
|
80
77
|
requirements:
|
81
78
|
- - "~>"
|
82
79
|
- !ruby/object:Gem::Version
|
83
|
-
version: '1.
|
84
|
-
- - ">="
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
version: 1.3.4
|
80
|
+
version: '1.4'
|
87
81
|
- !ruby/object:Gem::Dependency
|
88
82
|
name: phctitleseo
|
89
83
|
requirement: !ruby/object:Gem::Requirement
|
90
84
|
requirements:
|
91
85
|
- - "~>"
|
92
86
|
- !ruby/object:Gem::Version
|
93
|
-
version: '
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: 3.6.3
|
87
|
+
version: '4.1'
|
97
88
|
type: :runtime
|
98
89
|
prerelease: false
|
99
90
|
version_requirements: !ruby/object:Gem::Requirement
|
100
91
|
requirements:
|
101
92
|
- - "~>"
|
102
93
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
104
|
-
- - ">="
|
105
|
-
- !ruby/object:Gem::Version
|
106
|
-
version: 3.6.3
|
94
|
+
version: '4.1'
|
107
95
|
- !ruby/object:Gem::Dependency
|
108
96
|
name: phcnotifi
|
109
97
|
requirement: !ruby/object:Gem::Requirement
|
110
98
|
requirements:
|
111
99
|
- - "~>"
|
112
100
|
- !ruby/object:Gem::Version
|
113
|
-
version: '3.
|
114
|
-
- - ">="
|
115
|
-
- !ruby/object:Gem::Version
|
116
|
-
version: 3.6.3
|
101
|
+
version: '3.7'
|
117
102
|
type: :runtime
|
118
103
|
prerelease: false
|
119
104
|
version_requirements: !ruby/object:Gem::Requirement
|
120
105
|
requirements:
|
121
106
|
- - "~>"
|
122
107
|
- !ruby/object:Gem::Version
|
123
|
-
version: '3.
|
124
|
-
- - ">="
|
125
|
-
- !ruby/object:Gem::Version
|
126
|
-
version: 3.6.3
|
108
|
+
version: '3.7'
|
127
109
|
- !ruby/object:Gem::Dependency
|
128
110
|
name: jquery-rails
|
129
111
|
requirement: !ruby/object:Gem::Requirement
|
@@ -422,14 +404,20 @@ dependencies:
|
|
422
404
|
requirements:
|
423
405
|
- - "~>"
|
424
406
|
- !ruby/object:Gem::Version
|
425
|
-
version: '2.
|
407
|
+
version: '2.12'
|
408
|
+
- - ">="
|
409
|
+
- !ruby/object:Gem::Version
|
410
|
+
version: 2.12.1
|
426
411
|
type: :development
|
427
412
|
prerelease: false
|
428
413
|
version_requirements: !ruby/object:Gem::Requirement
|
429
414
|
requirements:
|
430
415
|
- - "~>"
|
431
416
|
- !ruby/object:Gem::Version
|
432
|
-
version: '2.
|
417
|
+
version: '2.12'
|
418
|
+
- - ">="
|
419
|
+
- !ruby/object:Gem::Version
|
420
|
+
version: 2.12.1
|
433
421
|
- !ruby/object:Gem::Dependency
|
434
422
|
name: byebug
|
435
423
|
requirement: !ruby/object:Gem::Requirement
|
@@ -536,20 +524,14 @@ dependencies:
|
|
536
524
|
requirements:
|
537
525
|
- - "~>"
|
538
526
|
- !ruby/object:Gem::Version
|
539
|
-
version: '3.
|
540
|
-
- - ">="
|
541
|
-
- !ruby/object:Gem::Version
|
542
|
-
version: 3.0.8
|
527
|
+
version: '3.1'
|
543
528
|
type: :development
|
544
529
|
prerelease: false
|
545
530
|
version_requirements: !ruby/object:Gem::Requirement
|
546
531
|
requirements:
|
547
532
|
- - "~>"
|
548
533
|
- !ruby/object:Gem::Version
|
549
|
-
version: '3.
|
550
|
-
- - ">="
|
551
|
-
- !ruby/object:Gem::Version
|
552
|
-
version: 3.0.8
|
534
|
+
version: '3.1'
|
553
535
|
description: PHCPress(6) rails CMS engine to manage your website's articles, categories
|
554
536
|
and media.
|
555
537
|
email:
|
@@ -638,7 +620,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
638
620
|
version: '0'
|
639
621
|
requirements: []
|
640
622
|
rubyforge_project:
|
641
|
-
rubygems_version: 2.
|
623
|
+
rubygems_version: 2.6.8
|
642
624
|
signing_key:
|
643
625
|
specification_version: 4
|
644
626
|
summary: PHCPress - Rails CMS Engine
|