phcscriptcdnpro 72.0.0 → 72.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/phcscriptcdnpro/application_controller.rb +19 -24
- data/app/controllers/phcscriptcdnpro/script/authors_controller.rb +2 -1
- data/app/controllers/phcscriptcdnpro/script/extensions_controller.rb +2 -1
- data/app/controllers/phcscriptcdnpro/script/licences_controller.rb +2 -1
- data/app/controllers/phcscriptcdnpro/script/listings_controller.rb +2 -1
- data/app/controllers/phcscriptcdnpro/script/urls_controller.rb +2 -1
- data/app/controllers/phcscriptcdnpro/script/versions_controller.rb +2 -1
- data/lib/phcscriptcdnpro/engine.rb +4 -0
- data/lib/phcscriptcdnpro/version.rb +1 -1
- metadata +32 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 378e5f2f700ac270062f4cd4eddefa07775846f6a928e910c1df9cc6a06185cc
|
4
|
+
data.tar.gz: ee5c6a8e1cd618d0602d5b6f6ca9e0f6b84aaf6672926d9e4d16c3b5a9501073
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80c68d82c81a5b9ef5c9164e6542119b6788fabb4936cbc913e5d4148fa09c212889d460aa4094cd9016e0869b6bf0eaf62426377babbc99d8fccc1572d18b6b
|
7
|
+
data.tar.gz: a42e6151313b2d3a2afc90c39e658003e4eabbe57e0a741ef43ca6ed06dedbf5f79a40c394d447c9e4d815c8b72460a7da98a5be672188721d726567b98297c8
|
@@ -1,27 +1,22 @@
|
|
1
1
|
module Phcscriptcdnpro
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
2
|
+
class ApplicationController < ActionController::Base
|
3
|
+
|
4
|
+
# Security Filters
|
5
|
+
protect_from_forgery with: :exception
|
6
|
+
|
7
|
+
# Load Requried Helper Files
|
8
|
+
helper Phccorehelpers::Engine.helpers
|
9
|
+
helper Phcmenus::Engine.helpers
|
10
|
+
helper Phctitleseo::Engine.helpers
|
11
|
+
helper Phcnotifi::Engine.helpers
|
12
|
+
helper Phcaccountspro::Engine.helpers
|
13
|
+
|
14
|
+
# Papertrail Whodunnit Username
|
15
|
+
def user_for_paper_trail
|
16
|
+
current_user ? current_user.username : 'Public user'
|
17
|
+
end
|
18
|
+
|
19
|
+
private
|
20
|
+
|
15
21
|
end
|
16
|
-
|
17
|
-
private
|
18
|
-
|
19
|
-
# Add Admin Only Filter
|
20
|
-
def phc_accounts_pro_admin_only
|
21
|
-
unless current_user.admin?
|
22
|
-
redirect_to main_app.root_path, :alert => "Sorry Access denied."
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
end
|
27
22
|
end
|
@@ -3,7 +3,8 @@ require_dependency "phcscriptcdnpro/application_controller"
|
|
3
3
|
module Phcscriptcdnpro
|
4
4
|
class Script::AuthorsController < ApplicationController
|
5
5
|
|
6
|
-
#
|
6
|
+
# Include Core Helpers, Security & Action Filters
|
7
|
+
include Phccorehelpers::ApplicationHelper
|
7
8
|
before_action :authenticate_user!
|
8
9
|
before_action :phc_accounts_pro_admin_only
|
9
10
|
before_action :set_paper_trail_whodunnit
|
@@ -3,7 +3,8 @@ require_dependency "phcscriptcdnpro/application_controller"
|
|
3
3
|
module Phcscriptcdnpro
|
4
4
|
class Script::ExtensionsController < ApplicationController
|
5
5
|
|
6
|
-
#
|
6
|
+
# Include Core Helpers, Security & Action Filters
|
7
|
+
include Phccorehelpers::ApplicationHelper
|
7
8
|
before_action :authenticate_user!
|
8
9
|
before_action :phc_accounts_pro_admin_only
|
9
10
|
before_action :set_paper_trail_whodunnit
|
@@ -3,7 +3,8 @@ require_dependency "phcscriptcdnpro/application_controller"
|
|
3
3
|
module Phcscriptcdnpro
|
4
4
|
class Script::LicencesController < ApplicationController
|
5
5
|
|
6
|
-
#
|
6
|
+
# Include Core Helpers, Security & Action Filters
|
7
|
+
include Phccorehelpers::ApplicationHelper
|
7
8
|
before_action :authenticate_user!
|
8
9
|
before_action :phc_accounts_pro_admin_only
|
9
10
|
before_action :set_paper_trail_whodunnit
|
@@ -3,7 +3,8 @@ require_dependency "phcscriptcdnpro/application_controller"
|
|
3
3
|
module Phcscriptcdnpro
|
4
4
|
class Script::ListingsController < ApplicationController
|
5
5
|
|
6
|
-
#
|
6
|
+
# Include Core Helpers, Security & Action Filters
|
7
|
+
include Phccorehelpers::ApplicationHelper
|
7
8
|
before_action :authenticate_user!
|
8
9
|
before_action :phc_accounts_pro_admin_only
|
9
10
|
before_action :set_paper_trail_whodunnit
|
@@ -3,7 +3,8 @@ require_dependency "phcscriptcdnpro/application_controller"
|
|
3
3
|
module Phcscriptcdnpro
|
4
4
|
class Script::UrlsController < ApplicationController
|
5
5
|
|
6
|
-
#
|
6
|
+
# Include Core Helpers, Security & Action Filters
|
7
|
+
include Phccorehelpers::ApplicationHelper
|
7
8
|
before_action :authenticate_user!
|
8
9
|
before_action :phc_accounts_pro_admin_only
|
9
10
|
before_action :set_paper_trail_whodunnit
|
@@ -3,7 +3,8 @@ require_dependency "phcscriptcdnpro/application_controller"
|
|
3
3
|
module Phcscriptcdnpro
|
4
4
|
class Script::VersionsController < ApplicationController
|
5
5
|
|
6
|
-
#
|
6
|
+
# Include Core Helpers, Security & Action Filters
|
7
|
+
include Phccorehelpers::ApplicationHelper
|
7
8
|
before_action :authenticate_user!
|
8
9
|
before_action :phc_accounts_pro_admin_only
|
9
10
|
before_action :set_paper_trail_whodunnit
|
@@ -19,6 +19,8 @@ module Phcscriptcdnpro
|
|
19
19
|
require 'phcadmin7'
|
20
20
|
|
21
21
|
# PHC Helper Dependencies
|
22
|
+
require 'phccorehelpers'
|
23
|
+
require 'phcmenus'
|
22
24
|
require 'phcnotifi'
|
23
25
|
require 'phctitleseo'
|
24
26
|
|
@@ -57,6 +59,8 @@ module Phcscriptcdnpro
|
|
57
59
|
# Load Requried Helper Files
|
58
60
|
config.to_prepare do
|
59
61
|
Phcaccountspro::ApplicationController.helper(ApplicationHelper)
|
62
|
+
Phccorehelpers::ApplicationController.helper(ApplicationHelper)
|
63
|
+
Phcmenus::ApplicationController.helper(ApplicationHelper)
|
60
64
|
Phcnotifi::ApplicationController.helper(ApplicationHelper)
|
61
65
|
Phctitleseo::ApplicationController.helper(ApplicationHelper)
|
62
66
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcscriptcdnpro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 72.
|
4
|
+
version: 72.1.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-04-
|
11
|
+
date: 2019-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -226,6 +226,34 @@ dependencies:
|
|
226
226
|
- - "~>"
|
227
227
|
- !ruby/object:Gem::Version
|
228
228
|
version: '2.0'
|
229
|
+
- !ruby/object:Gem::Dependency
|
230
|
+
name: phccorehelpers
|
231
|
+
requirement: !ruby/object:Gem::Requirement
|
232
|
+
requirements:
|
233
|
+
- - "~>"
|
234
|
+
- !ruby/object:Gem::Version
|
235
|
+
version: '1.0'
|
236
|
+
type: :runtime
|
237
|
+
prerelease: false
|
238
|
+
version_requirements: !ruby/object:Gem::Requirement
|
239
|
+
requirements:
|
240
|
+
- - "~>"
|
241
|
+
- !ruby/object:Gem::Version
|
242
|
+
version: '1.0'
|
243
|
+
- !ruby/object:Gem::Dependency
|
244
|
+
name: phcmenus
|
245
|
+
requirement: !ruby/object:Gem::Requirement
|
246
|
+
requirements:
|
247
|
+
- - "~>"
|
248
|
+
- !ruby/object:Gem::Version
|
249
|
+
version: '1.0'
|
250
|
+
type: :runtime
|
251
|
+
prerelease: false
|
252
|
+
version_requirements: !ruby/object:Gem::Requirement
|
253
|
+
requirements:
|
254
|
+
- - "~>"
|
255
|
+
- !ruby/object:Gem::Version
|
256
|
+
version: '1.0'
|
229
257
|
- !ruby/object:Gem::Dependency
|
230
258
|
name: phcnotifi
|
231
259
|
requirement: !ruby/object:Gem::Requirement
|
@@ -428,14 +456,14 @@ dependencies:
|
|
428
456
|
requirements:
|
429
457
|
- - "~>"
|
430
458
|
- !ruby/object:Gem::Version
|
431
|
-
version: '67.
|
459
|
+
version: '67.1'
|
432
460
|
type: :runtime
|
433
461
|
prerelease: false
|
434
462
|
version_requirements: !ruby/object:Gem::Requirement
|
435
463
|
requirements:
|
436
464
|
- - "~>"
|
437
465
|
- !ruby/object:Gem::Version
|
438
|
-
version: '67.
|
466
|
+
version: '67.1'
|
439
467
|
- !ruby/object:Gem::Dependency
|
440
468
|
name: sqlite3
|
441
469
|
requirement: !ruby/object:Gem::Requirement
|