phcpress 53.1.0 → 54.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/app/assets/javascripts/phcpress/application.js +0 -3
  4. data/app/assets/stylesheets/phcpress/application.scss +0 -2
  5. data/app/controllers/phcpress/api/v1/post_index.json.rabl +1 -1
  6. data/app/controllers/phcpress/api/v1/post_single.json.rabl +1 -1
  7. data/app/controllers/phcpress/application_controller.rb +19 -19
  8. data/app/controllers/phcpress/article/categories_controller.rb +10 -10
  9. data/app/controllers/phcpress/article/posts_controller.rb +13 -13
  10. data/app/controllers/phcpress/blog/articles_controller.rb +3 -3
  11. data/app/models/phcpress/article/category.rb +6 -10
  12. data/app/models/phcpress/article/post.rb +6 -14
  13. data/app/views/layouts/phcpress/application.html.erb +6 -7
  14. data/app/views/layouts/phcpress/components/backend/footer/_footer.html.erb +5 -5
  15. data/app/views/layouts/phcpress/components/backend/navigation/_top_menu.html.erb +0 -41
  16. data/app/views/layouts/phcpress/components/backend/sidebars/_side_menu.html.erb +9 -9
  17. data/app/views/phcpress/article/categories/_form.html.erb +8 -4
  18. data/app/views/phcpress/article/categories/edit.html.erb +15 -3
  19. data/app/views/phcpress/article/categories/index.html.erb +17 -14
  20. data/app/views/phcpress/article/categories/new.html.erb +15 -3
  21. data/app/views/phcpress/article/posts/_form.html.erb +20 -12
  22. data/app/views/phcpress/article/posts/edit.html.erb +3 -3
  23. data/app/views/phcpress/article/posts/index.html.erb +18 -15
  24. data/app/views/phcpress/article/posts/new.html.erb +3 -3
  25. data/app/views/phcpress/blog/articles/index.html.erb +56 -56
  26. data/config/routes.rb +11 -11
  27. data/db/migrate/20190315010932_create_phcpress_article_posts.rb +1 -1
  28. data/lib/phcpress/engine.rb +54 -54
  29. data/lib/phcpress/version.rb +1 -1
  30. metadata +6 -15
  31. data/app/assets/javascripts/phcpress/article/categories.js +0 -0
  32. data/app/assets/javascripts/phcpress/article/posts.js +0 -0
  33. data/app/assets/javascripts/phcpress/blog/articles.js +0 -0
  34. data/app/assets/javascripts/phcpress/custom/custom.js +0 -0
  35. data/app/assets/stylesheets/phcpress/article/categories.scss +0 -0
  36. data/app/assets/stylesheets/phcpress/article/posts.scss +0 -0
  37. data/app/assets/stylesheets/phcpress/blog/articles.scss +0 -0
  38. data/app/views/phcpress/article/categories/show.html.erb +0 -9
  39. data/app/views/phcpress/article/posts/show.html.erb +0 -51
@@ -2,7 +2,7 @@ class CreatePhcpressArticlePosts < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  create_table :phcpress_article_posts do |t|
4
4
 
5
- t.string :post_tittle
5
+ t.string :post_title
6
6
  t.text :post_text
7
7
  t.string :post_status
8
8
  t.string :post_image
@@ -1,70 +1,70 @@
1
1
  module Phcpress
2
2
  class Engine < ::Rails::Engine
3
3
 
4
- # PHCTheme Dependencies
5
- require 'phctheme1'
6
- require 'phctheme2'
7
- require 'phctheme3'
8
- require 'phctheme4'
9
- require 'phctheme5'
10
- require 'phctheme6'
11
- require 'phctheme7'
4
+ # PHCTheme Dependencies
5
+ require 'phctheme1'
6
+ require 'phctheme2'
7
+ require 'phctheme3'
8
+ require 'phctheme4'
9
+ require 'phctheme5'
10
+ require 'phctheme6'
11
+ require 'phctheme7'
12
12
 
13
- # PHCAdmin Dependencies
14
- require 'phcadmin1'
15
- require 'phcadmin2'
16
- require 'phcadmin3'
17
- require 'phcadmin4'
18
- require 'phcadmin5'
19
- require 'phcadmin6'
20
- require 'phcadmin7'
13
+ # PHCAdmin Dependencies
14
+ require 'phcadmin1'
15
+ require 'phcadmin2'
16
+ require 'phcadmin3'
17
+ require 'phcadmin4'
18
+ require 'phcadmin5'
19
+ require 'phcadmin6'
20
+ require 'phcadmin7'
21
21
 
22
- # PHCHelper Dependencies
23
- require 'phccorehelpers'
24
- require 'phcmenus'
25
- require 'phcnotifi'
26
- require 'phctitleseo'
22
+ # PHCHelper Dependencies
23
+ require 'phccorehelpers'
24
+ require 'phcmenus'
25
+ require 'phcnotifi'
26
+ require 'phctitleseo'
27
27
 
28
- # Frontend Dependencies
29
- require 'gravtastic'
30
- require 'friendly_id'
28
+ # Frontend Dependencies
29
+ require 'gravtastic'
30
+ require 'friendly_id'
31
31
 
32
- # Upload Dependencies
33
- require 'aws-sdk-s3'
34
- require 'google-cloud-storage'
35
- require 'mini_magick'
32
+ # Upload Dependencies
33
+ require 'aws-sdk-s3'
34
+ require 'google-cloud-storage'
35
+ require 'mini_magick'
36
36
 
37
- # Database Dependencies
38
- require 'paper_trail'
39
- require 'pg'
37
+ # Database Dependencies
38
+ require 'paper_trail'
39
+ require 'pg'
40
40
 
41
- # Payment Dependencies
42
- require 'phcaccounts'
41
+ # Payment Dependencies
42
+ require 'phcaccounts'
43
43
 
44
- # Isolate Namespace
44
+ # Isolate Namespace
45
45
  isolate_namespace Phcpress
46
46
 
47
47
  # Testing Generator
48
- config.generators do |g|
49
- g.test_framework :rspec,
50
- fixtures: true,
51
- view_specs: false,
52
- helper_specs: false,
53
- routing_specs: false,
54
- controller_specs: true,
55
- request_specs: false
56
- g.fixture_replacement :factory_bot,
57
- dir: "spec/factories"
58
- end
48
+ config.generators do |g|
49
+ g.test_framework :rspec,
50
+ fixtures: true,
51
+ view_specs: false,
52
+ helper_specs: false,
53
+ routing_specs: false,
54
+ controller_specs: true,
55
+ request_specs: false
56
+ g.fixture_replacement :factory_bot,
57
+ dir: "spec/factories"
58
+ end
59
59
 
60
- # Load Requried Helper Files
61
- config.to_prepare do
62
- Phccorehelpers::ApplicationController.helper(ApplicationHelper)
63
- Phcmenus::ApplicationController.helper(ApplicationHelper)
64
- Phcnotifi::ApplicationController.helper(ApplicationHelper)
65
- Phctitleseo::ApplicationController.helper(ApplicationHelper)
66
- Phcaccounts::ApplicationController.helper(ApplicationHelper)
67
- end
60
+ # Load Requried Helper Files
61
+ config.to_prepare do
62
+ Phcaccounts::ApplicationController.helper(ApplicationHelper)
63
+ Phccorehelpers::ApplicationController.helper(ApplicationHelper)
64
+ Phcmenus::ApplicationController.helper(ApplicationHelper)
65
+ Phcnotifi::ApplicationController.helper(ApplicationHelper)
66
+ Phctitleseo::ApplicationController.helper(ApplicationHelper)
67
+ end
68
68
 
69
- end
69
+ end
70
70
  end
@@ -1,3 +1,3 @@
1
1
  module Phcpress
2
- VERSION = '53.1.0'
2
+ VERSION = '54.0.0'
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: 53.1.0
4
+ version: 54.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: 2019-05-14 00:00:00.000000000 Z
11
+ date: 2019-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -232,14 +232,14 @@ dependencies:
232
232
  requirements:
233
233
  - - "~>"
234
234
  - !ruby/object:Gem::Version
235
- version: '5.0'
235
+ version: '5.2'
236
236
  type: :runtime
237
237
  prerelease: false
238
238
  version_requirements: !ruby/object:Gem::Requirement
239
239
  requirements:
240
240
  - - "~>"
241
241
  - !ruby/object:Gem::Version
242
- version: '5.0'
242
+ version: '5.2'
243
243
  - !ruby/object:Gem::Dependency
244
244
  name: phcmenus
245
245
  requirement: !ruby/object:Gem::Requirement
@@ -456,14 +456,14 @@ dependencies:
456
456
  requirements:
457
457
  - - "~>"
458
458
  - !ruby/object:Gem::Version
459
- version: '38.2'
459
+ version: '39.0'
460
460
  type: :runtime
461
461
  prerelease: false
462
462
  version_requirements: !ruby/object:Gem::Requirement
463
463
  requirements:
464
464
  - - "~>"
465
465
  - !ruby/object:Gem::Version
466
- version: '38.2'
466
+ version: '39.0'
467
467
  - !ruby/object:Gem::Dependency
468
468
  name: sqlite3
469
469
  requirement: !ruby/object:Gem::Requirement
@@ -637,14 +637,7 @@ files:
637
637
  - Rakefile
638
638
  - app/assets/config/phcpress_manifest.js
639
639
  - app/assets/javascripts/phcpress/application.js
640
- - app/assets/javascripts/phcpress/article/categories.js
641
- - app/assets/javascripts/phcpress/article/posts.js
642
- - app/assets/javascripts/phcpress/blog/articles.js
643
- - app/assets/javascripts/phcpress/custom/custom.js
644
640
  - app/assets/stylesheets/phcpress/application.scss
645
- - app/assets/stylesheets/phcpress/article/categories.scss
646
- - app/assets/stylesheets/phcpress/article/posts.scss
647
- - app/assets/stylesheets/phcpress/blog/articles.scss
648
641
  - app/controllers/phcpress/api/v1/post_index.json.rabl
649
642
  - app/controllers/phcpress/api/v1/post_single.json.rabl
650
643
  - app/controllers/phcpress/application_controller.rb
@@ -671,12 +664,10 @@ files:
671
664
  - app/views/phcpress/article/categories/edit.html.erb
672
665
  - app/views/phcpress/article/categories/index.html.erb
673
666
  - app/views/phcpress/article/categories/new.html.erb
674
- - app/views/phcpress/article/categories/show.html.erb
675
667
  - app/views/phcpress/article/posts/_form.html.erb
676
668
  - app/views/phcpress/article/posts/edit.html.erb
677
669
  - app/views/phcpress/article/posts/index.html.erb
678
670
  - app/views/phcpress/article/posts/new.html.erb
679
- - app/views/phcpress/article/posts/show.html.erb
680
671
  - app/views/phcpress/blog/articles/index.html.erb
681
672
  - app/views/phcpress/blog/articles/show.html.erb
682
673
  - config/routes.rb
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,9 +0,0 @@
1
- <p id="notice"><%= notice %></p>
2
-
3
- <p>
4
- <strong>category_name:</strong>
5
- <%= @article_category.category_name %>
6
- </p>
7
-
8
- <%= link_to 'Edit', edit_article_category_path(@article_category) %> |
9
- <%= link_to 'Back', article_categories_path %>
@@ -1,51 +0,0 @@
1
- <!-- Title System -->
2
- <% phc_title "Article Manager" %>
3
- <% phc_title_tagline "Article Details" %>
4
- <% phc_breadcrumb_one link_to "Article Index", phcpress.article_posts_path %>
5
- <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
- <!-- Title System -->
7
-
8
- <!-- Page Header -->
9
- <div class="row wrapper border-bottom white-bg page-heading">
10
- <div class="col-sm-8">
11
- <h2><%= yield(:phc_title) %></h2>
12
- <!-- Bread Crumb -->
13
- <ol class="breadcrumb">
14
- <li><%= yield(:phc_breadcrumb_one) %></li>
15
- <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
16
- </ol>
17
- <!-- Bread Crumb -->
18
- </div>
19
- <div class="col-sm-4">
20
- <div class="title-action">
21
- <%= link_to phcpress.article_posts_path, class: "btn btn-default" do %>
22
- <i class="fa fa fa-arrow-left"></i> Back to Article Index
23
- <% end %>
24
- </div>
25
- </div>
26
- </div>
27
- <!-- Page Header -->
28
-
29
- <!-- Page Content -->
30
- <div class="wrapper wrapper-content animated fadeInRight">
31
- <div class="row">
32
- <div class="col-lg-12">
33
-
34
- <div class="ibox float-e-margins">
35
- <div class="ibox-title">
36
- <h5><%= yield(:phc_title_tagline) %></h5>
37
- <div class="ibox-tools">
38
- <a class="collapse-link">
39
- <i class="fa fa-chevron-up"></i>
40
- </a>
41
- <a class="close-link">
42
- <i class="fa fa-times"></i>
43
- </a>
44
- </div>
45
- </div>
46
- <div class="ibox-content">
47
- <p id="notice"><%= notice %></p>
48
- <%= link_to 'Edit', phcpress.edit_article_post_path(@article_post) %> |
49
- <%= link_to 'Back', phcpress.article_posts_path %>
50
- </div>
51
- <!-- Page Content -->