phcdevworks_core_modules 7.1.0 → 7.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/phcdevworks_core_modules/affiliate/link.rb +8 -0
- data/app/views/layouts/phcdevworks_core_modules/components/backend/sidebars/_side_menu.html.erb +6 -6
- data/config/routes.rb +4 -0
- data/config/spring.rb +2 -0
- data/lib/phcdevworks_core_modules/engine.rb +3 -1
- data/lib/phcdevworks_core_modules/version.rb +1 -1
- metadata +22 -49
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fb4619adecb788c55c9c2843af32af3fc1a6d08f92e371de1ea8192663538d4
|
4
|
+
data.tar.gz: ee1c1ae1aeacfb5386abeca8fa71c742d7e5a7fad5c19327584ec3e5315dfd50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bcaeb121e3017746c7b417f4d054a1bcabb28f3e8a0a7c87ef9fddc4a8670fc7fc4e6529a1163996282148c1051c281154a4902b425c42ee312f86c7b849e2c
|
7
|
+
data.tar.gz: c883f615eca80554f43287f9b60f6d96468c6b2da5c68d29e2f59a844d8f52733cda2d1e649ff9aa990c0d49f1a7ed1a7a04b7f5bc25783d945b8d2a618e4c0f
|
@@ -4,6 +4,14 @@ module PhcdevworksCoreModules
|
|
4
4
|
# Clean URL Initialize
|
5
5
|
extend FriendlyId
|
6
6
|
|
7
|
+
# Validations
|
8
|
+
validates :affiliate_link_name, presence: true
|
9
|
+
validates :affiliate_link_button_text, presence: false
|
10
|
+
validates :affiliate_link_url, presence: true
|
11
|
+
validates :affiliate_link_original_url, presence: false
|
12
|
+
|
13
|
+
|
14
|
+
|
7
15
|
# Paper Trail Initialize
|
8
16
|
has_paper_trail versions: {class_name: "PhcdevworksCoreModules::AffiliateLinkVersions"}
|
9
17
|
|
data/app/views/layouts/phcdevworks_core_modules/components/backend/sidebars/_side_menu.html.erb
CHANGED
@@ -277,25 +277,25 @@
|
|
277
277
|
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
|
278
278
|
<% end %>
|
279
279
|
|
280
|
+
<li class="nav-header">Administration</li>
|
280
281
|
<% if current_user && current_user.admin? %>
|
281
282
|
<!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
|
282
|
-
<li class="nav-header">User Administration</li>
|
283
283
|
<li class="has-sub">
|
284
284
|
<a href="javascript:;">
|
285
285
|
<b class="caret"></b>
|
286
286
|
<i class="fad fa-user"></i>
|
287
|
-
<span>
|
287
|
+
<span>User Auth</span>
|
288
288
|
</a>
|
289
289
|
<ul class="sub-menu">
|
290
290
|
<li class="<%= phc_menu_active_controller("phcdevworks_accounts/admin/users") %>"><%= link_to "User List", phcdevworks_accounts.admin_users_all_path %></li>
|
291
291
|
</ul>
|
292
292
|
</li>
|
293
293
|
<!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
|
294
|
-
|
295
|
-
|
296
|
-
|
294
|
+
<% end %>
|
295
|
+
|
296
|
+
<li class="nav-header">Your Account</li>
|
297
|
+
<% if current_user %>
|
297
298
|
<!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts User Options -->
|
298
|
-
<li class="nav-header">Your Account</li>
|
299
299
|
<li class="has-sub">
|
300
300
|
<a href="javascript:;">
|
301
301
|
<b class="caret"></b>
|
data/config/routes.rb
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
PhcdevworksCoreModules::Engine.routes.draw do
|
2
2
|
|
3
|
+
namespace :affiliate do
|
4
|
+
resources :links
|
5
|
+
end
|
3
6
|
# Routes for Posts
|
4
7
|
namespace :post do
|
5
8
|
resources :categories, class_name: 'Post::Category'
|
@@ -17,5 +20,6 @@ PhcdevworksCoreModules::Engine.routes.draw do
|
|
17
20
|
|
18
21
|
# Mount Routes
|
19
22
|
mount PhcdevworksAccounts::Engine, :at => '/'
|
23
|
+
mount PhcdevworksAccountsStripe::Engine, :at => '/'
|
20
24
|
|
21
25
|
end
|
data/config/spring.rb
ADDED
@@ -29,8 +29,9 @@ module PhcdevworksCoreModules
|
|
29
29
|
# Mailer Dependencies
|
30
30
|
require "mail_form"
|
31
31
|
|
32
|
-
# Load
|
32
|
+
# Load Required PHC Plugins
|
33
33
|
require "phcdevworks_accounts"
|
34
|
+
require "phcdevworks_accounts_stripe"
|
34
35
|
|
35
36
|
# Engine Namespace
|
36
37
|
isolate_namespace PhcdevworksCoreModules
|
@@ -40,6 +41,7 @@ module PhcdevworksCoreModules
|
|
40
41
|
g.test_framework :rspec
|
41
42
|
g.fixture_replacement :factory_bot
|
42
43
|
g.factory_bot dir: 'spec/factories'
|
44
|
+
g.factory_bot suffix: "factory"
|
43
45
|
end
|
44
46
|
|
45
47
|
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: 7.
|
4
|
+
version: 7.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PHCDevworks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -17,9 +17,6 @@ dependencies:
|
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '6.1'
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 6.1.1
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,9 +24,6 @@ dependencies:
|
|
27
24
|
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '6.1'
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 6.1.1
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: jbuilder
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -93,9 +87,6 @@ dependencies:
|
|
93
87
|
- - "~>"
|
94
88
|
- !ruby/object:Gem::Version
|
95
89
|
version: '2.2'
|
96
|
-
- - ">="
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
version: 2.2.1
|
99
90
|
type: :runtime
|
100
91
|
prerelease: false
|
101
92
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -103,9 +94,6 @@ dependencies:
|
|
103
94
|
- - "~>"
|
104
95
|
- !ruby/object:Gem::Version
|
105
96
|
version: '2.2'
|
106
|
-
- - ">="
|
107
|
-
- !ruby/object:Gem::Version
|
108
|
-
version: 2.2.1
|
109
97
|
- !ruby/object:Gem::Dependency
|
110
98
|
name: phcdevworks_core
|
111
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -113,9 +101,6 @@ dependencies:
|
|
113
101
|
- - "~>"
|
114
102
|
- !ruby/object:Gem::Version
|
115
103
|
version: '2.2'
|
116
|
-
- - ">="
|
117
|
-
- !ruby/object:Gem::Version
|
118
|
-
version: 2.2.1
|
119
104
|
type: :runtime
|
120
105
|
prerelease: false
|
121
106
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -123,9 +108,6 @@ dependencies:
|
|
123
108
|
- - "~>"
|
124
109
|
- !ruby/object:Gem::Version
|
125
110
|
version: '2.2'
|
126
|
-
- - ">="
|
127
|
-
- !ruby/object:Gem::Version
|
128
|
-
version: 2.2.1
|
129
111
|
- !ruby/object:Gem::Dependency
|
130
112
|
name: phcdevworks_notifications
|
131
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -133,9 +115,6 @@ dependencies:
|
|
133
115
|
- - "~>"
|
134
116
|
- !ruby/object:Gem::Version
|
135
117
|
version: '2.2'
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: 2.2.1
|
139
118
|
type: :runtime
|
140
119
|
prerelease: false
|
141
120
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -143,9 +122,6 @@ dependencies:
|
|
143
122
|
- - "~>"
|
144
123
|
- !ruby/object:Gem::Version
|
145
124
|
version: '2.2'
|
146
|
-
- - ">="
|
147
|
-
- !ruby/object:Gem::Version
|
148
|
-
version: 2.2.1
|
149
125
|
- !ruby/object:Gem::Dependency
|
150
126
|
name: phcdevworks_titleseo
|
151
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -153,9 +129,6 @@ dependencies:
|
|
153
129
|
- - "~>"
|
154
130
|
- !ruby/object:Gem::Version
|
155
131
|
version: '3.2'
|
156
|
-
- - ">="
|
157
|
-
- !ruby/object:Gem::Version
|
158
|
-
version: 3.2.1
|
159
132
|
type: :runtime
|
160
133
|
prerelease: false
|
161
134
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -163,9 +136,6 @@ dependencies:
|
|
163
136
|
- - "~>"
|
164
137
|
- !ruby/object:Gem::Version
|
165
138
|
version: '3.2'
|
166
|
-
- - ">="
|
167
|
-
- !ruby/object:Gem::Version
|
168
|
-
version: 3.2.1
|
169
139
|
- !ruby/object:Gem::Dependency
|
170
140
|
name: wicked
|
171
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -228,14 +198,14 @@ dependencies:
|
|
228
198
|
requirements:
|
229
199
|
- - "~>"
|
230
200
|
- !ruby/object:Gem::Version
|
231
|
-
version: '1.
|
201
|
+
version: '1.89'
|
232
202
|
type: :runtime
|
233
203
|
prerelease: false
|
234
204
|
version_requirements: !ruby/object:Gem::Requirement
|
235
205
|
requirements:
|
236
206
|
- - "~>"
|
237
207
|
- !ruby/object:Gem::Version
|
238
|
-
version: '1.
|
208
|
+
version: '1.89'
|
239
209
|
- !ruby/object:Gem::Dependency
|
240
210
|
name: google-cloud-storage
|
241
211
|
requirement: !ruby/object:Gem::Requirement
|
@@ -270,20 +240,28 @@ dependencies:
|
|
270
240
|
requirements:
|
271
241
|
- - "~>"
|
272
242
|
- !ruby/object:Gem::Version
|
273
|
-
version: '3.
|
274
|
-
- - ">="
|
275
|
-
- !ruby/object:Gem::Version
|
276
|
-
version: 3.0.1
|
243
|
+
version: '3.1'
|
277
244
|
type: :runtime
|
278
245
|
prerelease: false
|
279
246
|
version_requirements: !ruby/object:Gem::Requirement
|
280
247
|
requirements:
|
281
248
|
- - "~>"
|
282
249
|
- !ruby/object:Gem::Version
|
283
|
-
version: '3.
|
284
|
-
|
250
|
+
version: '3.1'
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: phcdevworks_accounts_stripe
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - "~>"
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: 0.1.5
|
258
|
+
type: :runtime
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - "~>"
|
285
263
|
- !ruby/object:Gem::Version
|
286
|
-
version:
|
264
|
+
version: 0.1.5
|
287
265
|
- !ruby/object:Gem::Dependency
|
288
266
|
name: factory_bot_rails
|
289
267
|
requirement: !ruby/object:Gem::Requirement
|
@@ -304,14 +282,14 @@ dependencies:
|
|
304
282
|
requirements:
|
305
283
|
- - "~>"
|
306
284
|
- !ruby/object:Gem::Version
|
307
|
-
version: '4.
|
285
|
+
version: '4.1'
|
308
286
|
type: :development
|
309
287
|
prerelease: false
|
310
288
|
version_requirements: !ruby/object:Gem::Requirement
|
311
289
|
requirements:
|
312
290
|
- - "~>"
|
313
291
|
- !ruby/object:Gem::Version
|
314
|
-
version: '4.
|
292
|
+
version: '4.1'
|
315
293
|
- !ruby/object:Gem::Dependency
|
316
294
|
name: spring
|
317
295
|
requirement: !ruby/object:Gem::Requirement
|
@@ -319,9 +297,6 @@ dependencies:
|
|
319
297
|
- - "~>"
|
320
298
|
- !ruby/object:Gem::Version
|
321
299
|
version: '2.1'
|
322
|
-
- - ">="
|
323
|
-
- !ruby/object:Gem::Version
|
324
|
-
version: 2.1.1
|
325
300
|
type: :development
|
326
301
|
prerelease: false
|
327
302
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -329,9 +304,6 @@ dependencies:
|
|
329
304
|
- - "~>"
|
330
305
|
- !ruby/object:Gem::Version
|
331
306
|
version: '2.1'
|
332
|
-
- - ">="
|
333
|
-
- !ruby/object:Gem::Version
|
334
|
-
version: 2.1.1
|
335
307
|
- !ruby/object:Gem::Dependency
|
336
308
|
name: spring-commands-rspec
|
337
309
|
requirement: !ruby/object:Gem::Requirement
|
@@ -418,6 +390,7 @@ files:
|
|
418
390
|
- app/views/phcdevworks_core_modules/post/categories/new.html.erb
|
419
391
|
- app/views/phcdevworks_core_modules/post/categories/show.html.erb
|
420
392
|
- config/routes.rb
|
393
|
+
- config/spring.rb
|
421
394
|
- db/migrate/20170517064427_create_phcdevworks_core_modules_post_category_versions.rb
|
422
395
|
- db/migrate/20200705223718_create_phcdevworks_core_modules_marketing_optimizations.rb
|
423
396
|
- db/migrate/20200705225433_create_phcdevworks_core_modules_marketing_optimization_versions.rb
|