phcdevworks_core_modules 5.0.0 → 6.0.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
  SHA256:
3
- metadata.gz: 7cdcd60a2ee952651bdd4d766b8fe5370736f221ad38d3305a1c954b583c6360
4
- data.tar.gz: 7017f2ae7481105bfbf5775de2e6a24760c664038bbed1f83088c95e031356f7
3
+ metadata.gz: 9a2d56437d4199d4cf2dc39812e56efe16964d9b892f966db186be610592ecf6
4
+ data.tar.gz: 747134e5943a8bbf8e34650849dbfdb1d972fe42a8f18781e5c6f22a5b71a3c8
5
5
  SHA512:
6
- metadata.gz: c4c7a54c2055ebc40e5e1bd78fed44cb5202d3c784dceabe8af75bb63d9f69275de6a90e8be1aed51392530ef3215e572df1d5518e3acf20b183a46139fc5000
7
- data.tar.gz: e8ff38422b9f8efeb3fa825f408b6d16d25daa17035dd16e6145b1878eed9da00ccae1b630bfa08f39ce0a05014372c29ecb3d2fdaad758700e28ec5543eeaea
6
+ metadata.gz: cc2538af68ca5486014f6b0cce495573cfb1dc35091bdda843ace75be803e119a4c69fe27b053d31261c0464feb21f886ce414c6cee7abce19af7ad384ec0732
7
+ data.tar.gz: a87b48084edd922672070dd00f9235300d303febf2c35c3378bfc47afde482b88ddfea9d0074544b0f35819c074a7b4cbe2c93f493a2ddc33830006e912f9f38
@@ -14,20 +14,26 @@ module PhcdevworksCoreModules
14
14
  # Relationships for Local
15
15
  belongs_to :user, class_name: "PhcdevworksAccounts::User"
16
16
  has_many :categories, class_name: "PhcdevworksCoreModules::Post::Category"
17
-
17
+
18
18
  # Relationships for PHCDevworks Plugins
19
19
  if defined?phcdevworks_members
20
20
  has_many :listings, class_name: "PhcdevworksMembers::Member::Listing"
21
21
  end
22
+
22
23
  if defined?phcdevworks_scripts
23
24
  has_many :listings, class_name: "PhcdevworksScripts::Script::Listing"
24
25
  end
26
+
25
27
  if defined?phcdevworks_press
26
28
  has_many :posts, class_name: "PhcdevworksPress::Article::Post"
29
+ has_many :posts, class_name: "PhcdevworksPress::Review::Post"
30
+ has_many :posts, class_name: "PhcdevworksPress::List::Post"
27
31
  end
32
+
28
33
  if defined?phcdevworks_portfolio
29
34
  has_many :posts, class_name: "PhcdevworksPortfolio::Project::Post"
30
35
  end
36
+
31
37
  if defined?phcdevworks_tutorials
32
38
  has_many :posts, class_name: "PhcdevworksTutorials::Tutorial::Post"
33
39
  has_many :posts, class_name: "PhcdevworksTutorials::Command::Post"
@@ -13,20 +13,24 @@ module PhcdevworksCoreModules
13
13
 
14
14
  # Relationships for PHCDevworks Plugins
15
15
  if defined?phcdevworks_press
16
- has_and_belongs_to_many :posts, class_name: "PhcdevworksPress::Article::Post", :join_table => "phcdevworks_press_categories_posts", :dependent => :destroy
16
+ has_and_belongs_to_many :posts, class_name: "PhcdevworksPress::Article::Post", :join_table => "phcdevworks_press_article_categories_posts", :dependent => :destroy
17
+ has_and_belongs_to_many :posts, class_name: "PhcdevworksPress::Review::Post", :join_table => "phcdevworks_press_review_categories_posts", :dependent => :destroy
18
+ has_and_belongs_to_many :posts, class_name: "PhcdevworksPress::List::Post", :join_table => "phcdevworks_press_list_categories_posts", :dependent => :destroy
17
19
  end
20
+
18
21
  if defined?phcdevworks_portfolio
19
- has_and_belongs_to_many :posts, class_name: "PhcdevworksPortfolio::Project::Post", :join_table => "phcdevworks_portfolio_categories_posts", :dependent => :destroy
22
+ has_and_belongs_to_many :posts, class_name: "PhcdevworksPortfolio::Project::Post", :join_table => "phcdevworks_portfolio_project_categories_posts", :dependent => :destroy
20
23
  end
24
+
21
25
  if defined?phcdevworks_tutorials
22
- has_and_belongs_to_many :posts, class_name: "PhcdevworksTutorials::Tutorial::Post", :join_table => "phcdevworks_tutorials_categories_posts", :dependent => :destroy
23
- has_and_belongs_to_many :posts, class_name: "PhcdevworksTutorials::Command::Post", :join_table => "phcdevworks_tutorials_categories_commands", :dependent => :destroy
26
+ has_and_belongs_to_many :posts, class_name: "PhcdevworksTutorials::Tutorial::Post", :join_table => "phcdevworks_tutorials_tutorial_categories_posts", :dependent => :destroy
27
+ has_and_belongs_to_many :posts, class_name: "PhcdevworksTutorials::Command::Post", :join_table => "phcdevworks_tutorials_command_categories_posts", :dependent => :destroy
24
28
  end
25
29
 
26
30
  # Form Fields Validation
27
31
  validates :post_category_name,
28
- presence: true,
29
- uniqueness: true
32
+ presence: true,
33
+ uniqueness: true
30
34
 
31
35
  # Clean URL Define
32
36
  friendly_id :post_category_nice_urls, use: [:slugged, :finders]
@@ -45,18 +45,40 @@
45
45
  <a href="javascript:;">
46
46
  <b class="caret"></b>
47
47
  <i class="fad fa-newspaper"></i>
48
- <span>Article Posts</span>
48
+ <span>Blog Articles</span>
49
49
  </a>
50
50
  <ul class="sub-menu">
51
51
  <li class="<%= phc_menu_active_controller("phcdevworks_press/article/posts") %>"><%= link_to("Article Index", phcdevworks_press.article_posts_path) %></li>
52
- <li class="<%= phc_menu_active_controller("phcdevworks_press/article/posts#new") %>"><%= link_to("New Aritcle", phcdevworks_press.new_article_post_path) %></li>
52
+ <li class="<%= phc_menu_active_controller("phcdevworks_press/article/posts#new") %>"><%= link_to("Add a New Aritcle", phcdevworks_press.new_article_post_path) %></li>
53
+ </ul>
54
+ </li>
55
+ <li class="has-sub">
56
+ <a href="javascript:;">
57
+ <b class="caret"></b>
58
+ <i class="fad fa-star-half"></i>
59
+ <span>Review Articles</span>
60
+ </a>
61
+ <ul class="sub-menu">
62
+ <li class="<%= phc_menu_active_controller("phcdevworks_press/review/posts") %>"><%= link_to("Reviews Index", phcdevworks_press.review_posts_path) %></li>
63
+ <li class="<%= phc_menu_active_controller("phcdevworks_press/review/posts#new") %>"><%= link_to("Add a New Review", phcdevworks_press.new_review_post_path) %></li>
64
+ </ul>
65
+ </li>
66
+ <li class="has-sub">
67
+ <a href="javascript:;">
68
+ <b class="caret"></b>
69
+ <i class="fad fa-th-list"></i>
70
+ <span>List Articles</span>
71
+ </a>
72
+ <ul class="sub-menu">
73
+ <li class="<%= phc_menu_active_controller("phcdevworks_press/list/posts") %>"><%= link_to("Lists Index", phcdevworks_press.list_posts_path) %></li>
74
+ <li class="<%= phc_menu_active_controller("phcdevworks_press/list/posts#new") %>"><%= link_to("Add a New List", phcdevworks_press.new_list_post_path) %></li>
53
75
  </ul>
54
76
  </li>
55
77
  <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Press -->
56
78
  <% end %>
57
79
 
58
80
  <% if defined?phcdevworks_portfolio %>
59
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Press -->
81
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Portfolio -->
60
82
  <li class="nav-header">Portfolio</li>
61
83
  <li class="has-sub">
62
84
  <a href="javascript:;">
@@ -80,7 +102,7 @@
80
102
  <li class="<%= phc_menu_active_controller("phcdevworks_portfolio/project/posts#new") %>"><%= link_to("New Types", phcdevworks_portfolio.new_project_type_path) %></li>
81
103
  </ul>
82
104
  </li>
83
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Press -->
105
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Portfolio -->
84
106
  <% end %>
85
107
 
86
108
  <% if defined?phcdevworks_tutorials %>
@@ -112,34 +134,6 @@
112
134
  <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Tutorials -->
113
135
  <% end %>
114
136
 
115
- <% if defined?phcdevworks_core_modules %>
116
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
117
- <li class="nav-header">Core Modules</li>
118
- <li class="has-sub">
119
- <a href="javascript:;">
120
- <b class="caret"></b>
121
- <i class="fad fa-sitemap"></i>
122
- <span>Categories</span>
123
- </a>
124
- <ul class="sub-menu">
125
- <li class="<%= phc_menu_active_controller("phcdevworks_core_modules/post/categories") %>"><%= link_to("Category Index", phcdevworks_core_modules.post_categories_path) %></li>
126
- <li class="<%= phc_menu_active_controller("phcdevworks_core_modules/post/categories#new") %>"><%= link_to("New Category", phcdevworks_core_modules.new_post_category_path) %></li>
127
- </ul>
128
- </li>
129
- <li class="has-sub">
130
- <a href="javascript:;">
131
- <b class="caret"></b>
132
- <i class="fad fa-analytics"></i>
133
- <span>Marketing</span>
134
- </a>
135
- <ul class="sub-menu">
136
- <li class="<%= phc_menu_active_controller("phcdevworks_core_modules/marketing/optimizations") %>"><%= link_to("SEO Data Index", phcdevworks_core_modules.marketing_optimizations_path) %></li>
137
- <li class="<%= phc_menu_active_controller("phcdevworks_core_modules/marketing/optimizations#new") %>"><%= link_to("Add SEO Data", phcdevworks_core_modules.new_marketing_optimization_path) %></li>
138
- </ul>
139
- </li>
140
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
141
- <% end %>
142
-
143
137
  <% if defined?phcdevworks_members %>
144
138
  <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Members -->
145
139
  <li class="nav-header">Membership Manager</li>
@@ -238,6 +232,34 @@
238
232
  <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks RealEstate -->
239
233
  <% end %>
240
234
 
235
+ <% if defined?phcdevworks_core_modules %>
236
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
237
+ <li class="nav-header">Core Modules</li>
238
+ <li class="has-sub">
239
+ <a href="javascript:;">
240
+ <b class="caret"></b>
241
+ <i class="fad fa-sitemap"></i>
242
+ <span>Categories</span>
243
+ </a>
244
+ <ul class="sub-menu">
245
+ <li class="<%= phc_menu_active_controller("phcdevworks_core_modules/post/categories") %>"><%= link_to("Category Index", phcdevworks_core_modules.post_categories_path) %></li>
246
+ <li class="<%= phc_menu_active_controller("phcdevworks_core_modules/post/categories#new") %>"><%= link_to("New Category", phcdevworks_core_modules.new_post_category_path) %></li>
247
+ </ul>
248
+ </li>
249
+ <li class="has-sub">
250
+ <a href="javascript:;">
251
+ <b class="caret"></b>
252
+ <i class="fad fa-analytics"></i>
253
+ <span>Marketing</span>
254
+ </a>
255
+ <ul class="sub-menu">
256
+ <li class="<%= phc_menu_active_controller("phcdevworks_core_modules/marketing/optimizations") %>"><%= link_to("SEO Data Index", phcdevworks_core_modules.marketing_optimizations_path) %></li>
257
+ <li class="<%= phc_menu_active_controller("phcdevworks_core_modules/marketing/optimizations#new") %>"><%= link_to("Add SEO Data", phcdevworks_core_modules.new_marketing_optimization_path) %></li>
258
+ </ul>
259
+ </li>
260
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
261
+ <% end %>
262
+
241
263
  <% if current_user && current_user.admin? %>
242
264
  <!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
243
265
  <li class="nav-header">User Administration</li>
@@ -28,7 +28,7 @@
28
28
 
29
29
  <div class="form-group">
30
30
  <%= form.label :marketing_optimization_og_type, "Open Graph Type" %>
31
- <%= form.text_field :marketing_optimization_og_type, class: "form-control" %>
31
+ <%= form.select( :marketing_optimization_og_type, [["Website","website"]], {}, {class: "form-control"}) %>
32
32
  </div>
33
33
 
34
34
  <div class="form-group">
@@ -58,7 +58,7 @@
58
58
 
59
59
  <div class="form-group">
60
60
  <%= form.label :marketing_optimization_twitter_type, "Twitter Card Type" %>
61
- <%= form.text_field :marketing_optimization_twitter_type, class: "form-control" %>
61
+ <%= form.select( :tutorial_step_number, [["Summary","summary"],["Summary Large Image","summary_large_image"]], {}, {class: "form-control"}) %>
62
62
  </div>
63
63
 
64
64
  <div class="form-group">
@@ -1,14 +1,15 @@
1
1
  class CreatePhcdevworksCoreModulesPostCategoryVersions < ActiveRecord::Migration[6.0]
2
2
  TEXT_BYTES = 1_073_741_823
3
3
  def change
4
-
5
4
  create_table :phcdevworks_core_modules_post_category_versions do |t|
5
+
6
6
  t.string :item_type, {:null=>false}
7
7
  t.integer :item_id, null: false
8
8
  t.string :event, null: false
9
9
  t.string :whodunnit
10
10
  t.text :object, limit: TEXT_BYTES
11
11
  t.datetime :created_at
12
+
12
13
  end
13
14
 
14
15
  add_index :phcdevworks_core_modules_post_category_versions, %i(item_type item_id), :name => 'post_category_versions'
@@ -1,17 +1,18 @@
1
1
  class CreatePhcdevworksCoreModulesMarketingOptimizationVersions < ActiveRecord::Migration[6.0]
2
2
  TEXT_BYTES = 1_073_741_823
3
3
  def change
4
-
5
4
  create_table :phcdevworks_core_modules_marketing_optimization_versions do |t|
5
+
6
6
  t.string :item_type, {:null=>false}
7
7
  t.integer :item_id, null: false
8
8
  t.string :event, null: false
9
9
  t.string :whodunnit
10
10
  t.text :object, limit: TEXT_BYTES
11
11
  t.datetime :created_at
12
+
12
13
  end
13
14
 
14
- add_index :phcdevworks_core_modules_marketing_optimization_versions, %i(item_type item_id), :name => 'marketing_optimize_versions'
15
+ add_index :phcdevworks_core_modules_marketing_optimization_versions, %i(item_type item_id), :name => 'marketing_optimization_versions'
15
16
 
16
17
  end
17
18
  end
@@ -4,12 +4,12 @@ class CreatePhcdevworksCoreModulesPostCategories < ActiveRecord::Migration[6.0]
4
4
 
5
5
  t.string :post_category_name
6
6
 
7
+ t.string :optimization_id
8
+
7
9
  t.string :slug
8
10
  t.string :user_id
9
11
  t.string :org_id
10
12
 
11
- t.string :optimization_id
12
-
13
13
  t.timestamps
14
14
 
15
15
  end
@@ -1,5 +1,5 @@
1
1
  require "phcdevworks_core_modules/engine"
2
2
 
3
3
  module PhcdevworksCoreModules
4
- # Your code goes here...
4
+ # Your code goes here...
5
5
  end
@@ -1,6 +1,6 @@
1
1
  module PhcdevworksCoreModules
2
2
  class Engine < ::Rails::Engine
3
-
3
+
4
4
  # Load Main Dependencies
5
5
  require "jbuilder"
6
6
  require "paper_trail"
@@ -28,7 +28,7 @@ module PhcdevworksCoreModules
28
28
 
29
29
  # Load User Accounts
30
30
  require "phcdevworks_accounts"
31
-
31
+
32
32
  # Engine Namespace
33
33
  isolate_namespace PhcdevworksCoreModules
34
34
 
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksCoreModules
2
- VERSION = '5.0.0'
2
+ VERSION = '6.0.3'
3
3
  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: 5.0.0
4
+ version: 6.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-13 00:00:00.000000000 Z
11
+ date: 2020-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -64,84 +64,84 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '1.10'
67
+ version: '2.0'
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '1.10'
74
+ version: '2.0'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: phcthemes_web_theme_pack
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '1.10'
81
+ version: '2.0'
82
82
  type: :runtime
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '1.10'
88
+ version: '2.0'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: phcdevworks_active_menus
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: '1.5'
95
+ version: '2.0'
96
96
  type: :runtime
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: '1.5'
102
+ version: '2.0'
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: phcdevworks_core
105
105
  requirement: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: '1.5'
109
+ version: '2.0'
110
110
  type: :runtime
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
- version: '1.5'
116
+ version: '2.0'
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: phcdevworks_notifications
119
119
  requirement: !ruby/object:Gem::Requirement
120
120
  requirements:
121
121
  - - "~>"
122
122
  - !ruby/object:Gem::Version
123
- version: '1.5'
123
+ version: '2.0'
124
124
  type: :runtime
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
- version: '1.5'
130
+ version: '2.0'
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: phcdevworks_titleseo
133
133
  requirement: !ruby/object:Gem::Requirement
134
134
  requirements:
135
135
  - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: '2.4'
137
+ version: '3.0'
138
138
  type: :runtime
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: '2.4'
144
+ version: '3.0'
145
145
  - !ruby/object:Gem::Dependency
146
146
  name: wicked
147
147
  requirement: !ruby/object:Gem::Requirement
@@ -190,14 +190,14 @@ dependencies:
190
190
  requirements:
191
191
  - - "~>"
192
192
  - !ruby/object:Gem::Version
193
- version: '1.67'
193
+ version: '1.74'
194
194
  type: :runtime
195
195
  prerelease: false
196
196
  version_requirements: !ruby/object:Gem::Requirement
197
197
  requirements:
198
198
  - - "~>"
199
199
  - !ruby/object:Gem::Version
200
- version: '1.67'
200
+ version: '1.74'
201
201
  - !ruby/object:Gem::Dependency
202
202
  name: google-cloud-storage
203
203
  requirement: !ruby/object:Gem::Requirement
@@ -232,14 +232,14 @@ dependencies:
232
232
  requirements:
233
233
  - - "~>"
234
234
  - !ruby/object:Gem::Version
235
- version: '1.13'
235
+ version: '2.0'
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: '1.13'
242
+ version: '2.0'
243
243
  - !ruby/object:Gem::Dependency
244
244
  name: sqlite3
245
245
  requirement: !ruby/object:Gem::Requirement
@@ -256,7 +256,7 @@ dependencies:
256
256
  version: '1.4'
257
257
  description: Core modules for PHCDevworks plugins.
258
258
  email:
259
- - info@phcdevworks.com
259
+ - developers@phcdevworks.com
260
260
  executables: []
261
261
  extensions: []
262
262
  extra_rdoc_files: []