phcpress 6.1.1 → 6.1.3

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
  SHA1:
3
- metadata.gz: 575fc8f9b99587b28156cb9f185939b83519c799
4
- data.tar.gz: d9dc45f07da0c252995e732539a354986f007e78
3
+ metadata.gz: 8d9165ec7e1acb92083525f8aa0660b44037ebfa
4
+ data.tar.gz: 69394b55f4f725cb9f1e7d2c90c0d8da3c924490
5
5
  SHA512:
6
- metadata.gz: 5ad7c1e4ee6bdc7ad695e5606232ffe7c33f58fdd46d65a7e0eee9688844ff192427821d697c5d1627ba6cf72b1923bc3491177aef2afbaaacdb3d4e15e06aec
7
- data.tar.gz: 30cf35b07a334c38baee8d27a925bd6e828f561865765819cfa9be8b20a30b69f30c52ffb8c35720246afb50b50b667fc45de6306b446533222c3d308b5cb886
6
+ metadata.gz: 3015196c6dd61b9a3a19a23fbb40b582efb3377fd32edb71a73d1d0fbe82e905281a57534d460274a355eed25a0755a4f18ecb17f43573c8726c18ee4ca26522
7
+ data.tar.gz: 6af7520935ffd553614da2227535b0536fd5f3db821000ee6b804a50358d88d5a58cb1385362b57aba469b62dfa766d9f7cc5d259e09d0310389dd6925a777f0
data/README.md CHANGED
@@ -12,7 +12,7 @@ PHCPress is a basic open source news engine.
12
12
 
13
13
  #### Step 1 - Add PHCPress Engine to your gemfile
14
14
 
15
- gem 'phcpress', '~> 6.1'
15
+ gem 'phcpress', '~> 6.1', '>= 6.1.1'
16
16
  bundle install
17
17
 
18
18
  #### Step 2 - Copy over database migration files
@@ -0,0 +1,16 @@
1
+ require_dependency "phcpress/application_controller"
2
+
3
+ module Phcpress
4
+ class Frontend::ArticlesController < ApplicationController
5
+
6
+ # Article Index
7
+ def index
8
+ @articles_posts = Articles::Post.all
9
+ end
10
+
11
+ # Article Show
12
+ def show
13
+ end
14
+
15
+ end
16
+ end
@@ -0,0 +1,7 @@
1
+ module Phcpress
2
+ module Frontend
3
+ def self.table_name_prefix
4
+ 'phcpress_frontend_'
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,4 @@
1
+ module Phcpress
2
+ class Frontend::Article < ApplicationRecord
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+
2
+ <% @frontend_articles.each do |frontend_article| %>
3
+ <%= link_to 'Show', frontend_article %>
4
+ <% end %>
@@ -0,0 +1 @@
1
+ <%= link_to 'Back', frontend_articles_path %>
@@ -1,5 +1,10 @@
1
1
  Phcpress::Engine.routes.draw do
2
2
 
3
+ # Frontend Routes
4
+ namespace :frontend do
5
+ resources :articles
6
+ end
7
+
3
8
  # Article Routes
4
9
  namespace :articles do
5
10
  resources :posts, class_name: 'Phcpress::Articles::Post'
@@ -1,3 +1,3 @@
1
1
  module Phcpress
2
- VERSION = "6.1.1"
2
+ VERSION = "6.1.3"
3
3
  end
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.1.1
4
+ version: 6.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-15 00:00:00.000000000 Z
11
+ date: 2016-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -542,7 +542,7 @@ dependencies:
542
542
  - - ">="
543
543
  - !ruby/object:Gem::Version
544
544
  version: 3.0.1
545
- description: PHCPress(6) is a basic open source simple news engine.
545
+ description: PHCPress(6) is an opensource ruby on rails CMS engine.
546
546
  email:
547
547
  - developers@phcnetworks.net
548
548
  executables: []
@@ -559,6 +559,7 @@ files:
559
559
  - app/assets/stylesheets/phcpress/application.scss
560
560
  - app/controllers/phcpress/application_controller.rb
561
561
  - app/controllers/phcpress/articles/posts_controller.rb
562
+ - app/controllers/phcpress/frontend/articles_controller.rb
562
563
  - app/controllers/phcpress/modules/categories_controller.rb
563
564
  - app/controllers/phcpress/modules/connections_controller.rb
564
565
  - app/helpers/phcpress/application_helper.rb
@@ -567,6 +568,8 @@ files:
567
568
  - app/models/phcpress/application_record.rb
568
569
  - app/models/phcpress/articles.rb
569
570
  - app/models/phcpress/articles/post.rb
571
+ - app/models/phcpress/frontend.rb
572
+ - app/models/phcpress/frontend/article.rb
570
573
  - app/models/phcpress/modules.rb
571
574
  - app/models/phcpress/modules/category.rb
572
575
  - app/models/phcpress/modules/connection.rb
@@ -581,6 +584,8 @@ files:
581
584
  - app/views/phcpress/articles/posts/index.html.erb
582
585
  - app/views/phcpress/articles/posts/new.html.erb
583
586
  - app/views/phcpress/articles/posts/show.html.erb
587
+ - app/views/phcpress/frontend/articles/index.html.erb
588
+ - app/views/phcpress/frontend/articles/show.html.erb
584
589
  - app/views/phcpress/modules/categories/_form.html.erb
585
590
  - app/views/phcpress/modules/categories/edit.html.erb
586
591
  - app/views/phcpress/modules/categories/index.html.erb
@@ -622,5 +627,5 @@ rubyforge_project:
622
627
  rubygems_version: 2.5.1
623
628
  signing_key:
624
629
  specification_version: 4
625
- summary: News & Blog Posts Engine
630
+ summary: CMS Rails Engine
626
631
  test_files: []