phcpresspro 21.1.0 → 22.0.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3c0a8fe52d7a866627324adda0d9a1ea9c56027
|
4
|
+
data.tar.gz: 8e0ba036c218cf72850db0db5d9ebd15be53779f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96256465b58ef696d3ce8c1af6ce1fa93bcdbbcccc3f6b683fde7f91e4759fcacb34f4541bba5e05ac49def5a1e3a782d8f08ad0de3bbfcb2b8eb2c895e6992d
|
7
|
+
data.tar.gz: 47c3f72dc744becd78bee4b895869a21ce989636134391b1f6f8e8912e5957ddcd8e719bfbab86c44ca494058b39bcf48e3577468054e39a47c3fda0a1c6973e
|
@@ -8,12 +8,12 @@ module Phcpresspro
|
|
8
8
|
|
9
9
|
# Article Category API
|
10
10
|
def index
|
11
|
-
@article_posts = Article::Post.order('
|
11
|
+
@article_posts = Article::Post.where(poststatus: published).order('created_at ASC')
|
12
12
|
end
|
13
13
|
|
14
14
|
# Article Show
|
15
15
|
def show
|
16
|
-
@article_post = Article::Post.find(params[:id])
|
16
|
+
@article_post = Article::Post.where(poststatus: published).find(params[:id])
|
17
17
|
end
|
18
18
|
|
19
19
|
end
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require_dependency "phcpresspro/application_controller"
|
2
|
+
require 'httparty'
|
2
3
|
|
3
4
|
module Phcpresspro
|
4
5
|
class Frontend::ArticleController < ApplicationController
|
@@ -8,12 +9,12 @@ module Phcpresspro
|
|
8
9
|
|
9
10
|
# Article Index
|
10
11
|
def index
|
11
|
-
@
|
12
|
+
@phcpresspro_frontend_article_list = HTTParty.get("https://#{ENV["PHC_PRESSPRO_API_DOMAIN"]}/#{ENV["PHC_PRESSPRO_API_FOLDER"]}/api/v1/posts.json")
|
12
13
|
end
|
13
14
|
|
14
|
-
#
|
15
|
+
# Article Show
|
15
16
|
def show
|
16
|
-
@
|
17
|
+
@phcpresspro_frontend_article_post = HTTParty.get("https://#{ENV["PHC_PRESSPRO_API_DOMAIN"]}/#{ENV["PHC_PRESSPRO_API_FOLDER"]}/api/v1/posts.json")
|
17
18
|
end
|
18
19
|
|
19
20
|
end
|
data/lib/phcpresspro/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcpresspro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 22.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BradPotts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: paper_trail
|