phcscriptcdnpro 8.0.2 → 8.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +11 -11
  4. data/Rakefile +1 -1
  5. data/app/assets/config/phcscriptcdnpro_manifest.js +1 -1
  6. data/app/assets/javascripts/phcscriptcdnpro/application.js +1 -1
  7. data/app/assets/stylesheets/phcscriptcdnpro/application.scss +1 -1
  8. data/app/controllers/phcscriptcdnpro/application_controller.rb +12 -12
  9. data/app/controllers/phcscriptcdnpro/frontend/listings_controller.rb +3 -3
  10. data/app/controllers/phcscriptcdnpro/script/authors_controller.rb +12 -12
  11. data/app/controllers/phcscriptcdnpro/script/extensions_controller.rb +12 -12
  12. data/app/controllers/phcscriptcdnpro/script/licences_controller.rb +12 -12
  13. data/app/controllers/phcscriptcdnpro/script/listings_controller.rb +12 -12
  14. data/app/controllers/phcscriptcdnpro/script/versions_controller.rb +11 -11
  15. data/app/helpers/phcscriptcdnpro/application_helper.rb +1 -1
  16. data/app/jobs/phcscriptcdnpro/application_job.rb +1 -1
  17. data/app/mailers/phcscriptcdnpro/application_mailer.rb +1 -1
  18. data/app/models/phcscriptcdnpro/application_record.rb +2 -2
  19. data/app/models/phcscriptcdnpro/script/author.rb +1 -1
  20. data/app/views/layouts/phcscriptcdnpro/application.html.erb +43 -37
  21. data/app/views/layouts/phcscriptcdnpro/components/backend/footer/_footer.html.erb +2 -2
  22. data/app/views/layouts/phcscriptcdnpro/components/backend/navigation/_top_bar.html.erb +2 -3
  23. data/app/views/layouts/phcscriptcdnpro/components/backend/sidebars/_left_sidebar.html.erb +3 -2
  24. data/app/views/layouts/phcscriptcdnpro/frontend.html.erb +66 -66
  25. data/app/views/phcscriptcdnpro/frontend/listings/index.html.erb +5 -5
  26. data/app/views/phcscriptcdnpro/frontend/listings/show.html.erb +4 -4
  27. data/app/views/phcscriptcdnpro/script/authors/_form.html.erb +1 -1
  28. data/app/views/phcscriptcdnpro/script/authors/edit.html.erb +1 -1
  29. data/app/views/phcscriptcdnpro/script/authors/index.html.erb +1 -1
  30. data/app/views/phcscriptcdnpro/script/authors/new.html.erb +1 -1
  31. data/app/views/phcscriptcdnpro/script/authors/show.html.erb +1 -1
  32. data/app/views/phcscriptcdnpro/script/extensions/_form.html.erb +1 -1
  33. data/app/views/phcscriptcdnpro/script/extensions/edit.html.erb +1 -1
  34. data/app/views/phcscriptcdnpro/script/extensions/index.html.erb +1 -1
  35. data/app/views/phcscriptcdnpro/script/extensions/new.html.erb +1 -1
  36. data/app/views/phcscriptcdnpro/script/extensions/show.html.erb +1 -1
  37. data/app/views/phcscriptcdnpro/script/licences/_form.html.erb +1 -1
  38. data/app/views/phcscriptcdnpro/script/licences/edit.html.erb +1 -1
  39. data/app/views/phcscriptcdnpro/script/licences/index.html.erb +2 -2
  40. data/app/views/phcscriptcdnpro/script/licences/new.html.erb +1 -1
  41. data/app/views/phcscriptcdnpro/script/licences/show.html.erb +1 -1
  42. data/app/views/phcscriptcdnpro/script/listings/_form.html.erb +1 -1
  43. data/app/views/phcscriptcdnpro/script/listings/edit.html.erb +1 -1
  44. data/app/views/phcscriptcdnpro/script/listings/index.html.erb +1 -1
  45. data/app/views/phcscriptcdnpro/script/listings/new.html.erb +1 -1
  46. data/app/views/phcscriptcdnpro/script/listings/show.html.erb +1 -1
  47. data/app/views/phcscriptcdnpro/script/urls/_form.html.erb +1 -1
  48. data/app/views/phcscriptcdnpro/script/urls/edit.html.erb +1 -1
  49. data/app/views/phcscriptcdnpro/script/urls/index.html.erb +1 -1
  50. data/app/views/phcscriptcdnpro/script/urls/new.html.erb +1 -1
  51. data/app/views/phcscriptcdnpro/script/urls/show.html.erb +1 -1
  52. data/app/views/phcscriptcdnpro/script/versions/_form.html.erb +1 -1
  53. data/app/views/phcscriptcdnpro/script/versions/edit.html.erb +1 -1
  54. data/app/views/phcscriptcdnpro/script/versions/index.html.erb +1 -1
  55. data/app/views/phcscriptcdnpro/script/versions/new.html.erb +1 -1
  56. data/app/views/phcscriptcdnpro/script/versions/show.html.erb +1 -1
  57. data/config/routes.rb +1 -1
  58. data/lib/phcscriptcdnpro.rb +1 -1
  59. data/lib/phcscriptcdnpro/version.rb +1 -1
  60. data/lib/tasks/phcscriptcdnpro_tasks.rake +1 -1
  61. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 686ef226e5a8f5721caed16ff88075422a181d53
4
- data.tar.gz: d47ff20d7f2986d8fa21877e61598744f86039e2
3
+ metadata.gz: 946051753e4d14a6dfaf743b17d87623ccd91cca
4
+ data.tar.gz: d840425ca34c9b5b03e318acbcb027bd0e2bab8d
5
5
  SHA512:
6
- metadata.gz: d19c47446405be2ac4e3e9c50b63893700d9784fb50b3dc0092f6016d119b77ff16efeae6b2a3846f2f494612f7c2145834e746b5609e6ac1b573c6b49dcd818
7
- data.tar.gz: 0e70a9522d6313a66be5e3dc1f2a4fb28b850bf2104adb8de2784c3aae10b9d292cd1c6872373359fd96b485d7149bb9dc64a814be147bbf103c0a12ae4113b5
6
+ metadata.gz: f55b96f1577f703c83c2039009726dcc131ccd9024608951d71de8f70ee993af5627e2e6cd8563838e237b013db32170e51340cdfcd89d4660916d13063bb453
7
+ data.tar.gz: 1872102c0de0645a36ce6f9e7834d182e1ab4fb9661484f92926afb7a641dbc72b23ab31b7a968eed274f188893530114ae7b3976e40967ccd5b06ba2b5a9d29
data/MIT-LICENSE CHANGED
@@ -17,4 +17,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
17
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
18
  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
19
  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,34 +1,34 @@
1
1
  ### PHCScriptCDN(PRO) (Script Listing Engine) Documentation
2
-
2
+
3
3
  PHCScriptCDN(PRO) rails script management engine for website script CDN listings.
4
-
4
+
5
5
  - Manage script CDN listings for websites.
6
6
  - Main script title and description.
7
7
  - Script versions and script URLs.
8
-
8
+
9
9
  #### Step 1 - Add PHCScriptCDN(PRO) to your gemfile and run command
10
-
10
+
11
11
  gem 'phcscriptcdnpro', '~> 5.8'
12
12
  bundle install
13
-
13
+
14
14
  #### Step 2 - Copy PHCScriptCDN(PRO) Database Tables
15
- To copy PHCScriptCDN's required database migrations, copy each command individually to your terminal's command line.
15
+ To copy PHCScriptCDN's required database migrations, copy each command individually to your terminal's command line.
16
16
 
17
17
  rails phcscriptcdnpro:install:migrations
18
18
  rails db:migrate
19
-
19
+
20
20
  #### Step 3 - Mount PHCScriptCDN & Add Routes
21
21
  Mount PHCMembers by adding code below to your routes file.
22
-
22
+
23
23
  mount Phcscriptcdnpro::Engine, :at => '/'
24
-
24
+
25
25
  #### Step 4 - Recompile Assets
26
26
  To properly function re-compile your application's assets to copy over required files.
27
-
27
+
28
28
  rails assets:clobber
29
29
  rails assets:precompile
30
30
 
31
31
  #### Step 5 - Generate Contact Form View (Customization)
32
32
  All PHCScriptCDN views and layouts can be overwritten by copying files to your application.
33
33
 
34
- rails generate phcscriptcdnpro:views
34
+ rails generate phcscriptcdnpro:views
data/Rakefile CHANGED
@@ -28,4 +28,4 @@ Rake::TestTask.new(:test) do |t|
28
28
  t.verbose = false
29
29
  end
30
30
 
31
- task default: :test
31
+ task default: :test
@@ -1,2 +1,2 @@
1
1
  //= link_directory ../javascripts/phcscriptcdnpro .js
2
- //= link_directory ../stylesheets/phcscriptcdnpro .scss
2
+ //= link_directory ../stylesheets/phcscriptcdnpro .scss
@@ -1,2 +1,2 @@
1
1
  // Add PHCAdmin2 Javascript
2
- //= require phc_admins_main_two
2
+ //= require phc_admins_main_two
@@ -1,2 +1,2 @@
1
1
  // Add PHCAdmin2 Styles
2
- @import "phc_admins_style_two";
2
+ @import "phc_admins_style_two";
@@ -1,27 +1,27 @@
1
1
  module Phcscriptcdnpro
2
2
  class ApplicationController < ActionController::Base
3
-
3
+
4
4
  # Security Filters
5
5
  protect_from_forgery with: :exception
6
-
6
+
7
7
  # Load Helpers for PHCPress Widgets
8
8
  before_action :phcpress_recent_posts
9
-
9
+
10
10
  # Papertrail Whodunnit Username
11
11
  def user_for_paper_trail
12
12
  # Default is: current_user rescue nil
13
13
  current_user ? current_user.username : 'Public user'
14
14
  end
15
-
15
+
16
16
  # Grab Member Information
17
17
  def get_member_profile_info
18
18
  @members_profile_info = Member::Profile.find(params[:profile_id])
19
19
  end
20
-
20
+
21
21
  def membership_info
22
22
  AuthRocket::Membership.all(user_id: current_user.id).first
23
23
  end
24
-
24
+
25
25
  #Authentication
26
26
  def require_user
27
27
  unless current_user
@@ -29,29 +29,29 @@ module Phcscriptcdnpro
29
29
  redirect_to new_login_url
30
30
  end
31
31
  end
32
-
32
+
33
33
  def current_user
34
34
  @_current_user ||= AuthRocket::Session.from_token(session[:ar_token]).try(:user)
35
35
  end
36
36
  helper_method :current_user
37
-
37
+
38
38
  def new_login_url
39
39
  ENV['AUTHROCKET_LOGIN_URL']
40
40
  # $ar_login_url
41
41
  end
42
42
  helper_method :new_login_url
43
-
43
+
44
44
  # Load Helpers
45
45
  helper Phctitleseo::Engine.helpers
46
46
  helper Phcnotifi::Engine.helpers
47
47
  helper Phcaccountspro::Engine.helpers
48
-
48
+
49
49
  private
50
-
50
+
51
51
  # PHCPress Widget Helpers
52
52
  def phcpress_recent_posts
53
53
  @recent_posts = Phcpresspro::Articles::Post.all
54
54
  end
55
-
55
+
56
56
  end
57
57
  end
@@ -5,16 +5,16 @@ module Phcscriptcdnpro
5
5
 
6
6
  # Change Layout
7
7
  layout '/layouts/phcscriptcdnpro/frontend.html.erb'
8
-
8
+
9
9
  # Script Listing Index
10
10
  def index
11
11
  @script_listings_index = Script::Listing.all
12
12
  end
13
-
13
+
14
14
  # Script Listing Post
15
15
  def show
16
16
  @script_listings_single = Script::Listing.find(params[:id])
17
17
  end
18
18
 
19
19
  end
20
- end
20
+ end
@@ -7,26 +7,26 @@ module Phcscriptcdnpro
7
7
  before_action :require_user
8
8
  before_action :membership_info
9
9
  before_action :set_script_author, only: [:show, :edit, :update, :destroy]
10
-
10
+
11
11
  # INDEX - Script Author
12
12
  def index
13
13
  @script_authors = Script::Author.all
14
14
  end
15
-
15
+
16
16
  # DETAILS - Script Author
17
17
  def show
18
18
  @script_authors = Script::Author.friendly.find(params[:id])
19
19
  end
20
-
20
+
21
21
  # NEW - Script Author
22
22
  def new
23
23
  @script_author = Script::Author.new
24
24
  end
25
-
25
+
26
26
  # EDIT - Script Author
27
27
  def edit
28
28
  end
29
-
29
+
30
30
  # CREATE - Script Author
31
31
  def create
32
32
  @script_author = Script::Author.new(script_author_params)
@@ -40,7 +40,7 @@ module Phcscriptcdnpro
40
40
  render :new
41
41
  end
42
42
  end
43
-
43
+
44
44
  # PATCH/PUT - Script Author
45
45
  def update
46
46
  @script_author.user_id = current_user.id
@@ -53,24 +53,24 @@ module Phcscriptcdnpro
53
53
  render :edit
54
54
  end
55
55
  end
56
-
56
+
57
57
  # DELETE - Script Author
58
58
  def destroy
59
59
  @script_author.destroy
60
60
  redirect_to script_authors_url, notice: 'Author was successfully destroyed.'
61
61
  end
62
-
62
+
63
63
  private
64
-
64
+
65
65
  # Common Callbacks
66
66
  def set_script_author
67
67
  @script_author = Script::Author.friendly.find(params[:id])
68
68
  end
69
-
69
+
70
70
  # Whitelist
71
71
  def script_author_params
72
72
  params.require(:script_author).permit(:authorfirstname, :authorlastname, :authorwebsite, :authorgithub, :authortwitter, :slug, :user_id, :user_name, :membership_id, :oganization_id)
73
73
  end
74
-
74
+
75
75
  end
76
- end
76
+ end
@@ -7,26 +7,26 @@ module Phcscriptcdnpro
7
7
  before_action :require_user
8
8
  before_action :membership_info
9
9
  before_action :set_script_extension, only: [:show, :edit, :update, :destroy]
10
-
10
+
11
11
  # INDEX - Script Extension
12
12
  def index
13
13
  @script_extensions = Script::Extension.all
14
14
  end
15
-
15
+
16
16
  # DETAILS - Script Extension
17
17
  def show
18
18
  @script_extensions = Script::Extension.friendly.find(params[:id])
19
19
  end
20
-
20
+
21
21
  # NEW - Script Extension
22
22
  def new
23
23
  @script_extension = Script::Extension.new
24
24
  end
25
-
25
+
26
26
  # EDIT - Script Extension
27
27
  def edit
28
28
  end
29
-
29
+
30
30
  # CREATE - Script Extension
31
31
  def create
32
32
  @script_extension = Script::Extension.new(script_extension_params)
@@ -40,7 +40,7 @@ module Phcscriptcdnpro
40
40
  render :new
41
41
  end
42
42
  end
43
-
43
+
44
44
  # PATCH/PUT - Script Extension
45
45
  def update
46
46
  @script_extension.user_id = current_user.id
@@ -53,24 +53,24 @@ module Phcscriptcdnpro
53
53
  render :edit
54
54
  end
55
55
  end
56
-
56
+
57
57
  # DELETE - Script Extension
58
58
  def destroy
59
59
  @script_extension.destroy
60
60
  redirect_to script_extensions_url, notice: 'Extension was successfully destroyed.'
61
61
  end
62
-
62
+
63
63
  private
64
-
64
+
65
65
  # Common Callbacks
66
66
  def set_script_extension
67
67
  @script_extension = Script::Extension.friendly.find(params[:id])
68
68
  end
69
-
69
+
70
70
  # Whitelists
71
71
  def script_extension_params
72
72
  params.require(:script_extension).permit(:scriptextensionname, :scriptextensiondes, :scriptextension, :user_id, :user_name, :slug, :membership_id, :oganization_id)
73
73
  end
74
-
74
+
75
75
  end
76
- end
76
+ end
@@ -7,26 +7,26 @@ module Phcscriptcdnpro
7
7
  before_action :require_user
8
8
  before_action :membership_info
9
9
  before_action :set_script_licence, only: [:show, :edit, :update, :destroy]
10
-
10
+
11
11
  # INDEX - Script Licences
12
12
  def index
13
13
  @script_licences = Script::Licence.all
14
14
  end
15
-
15
+
16
16
  # DETAILS - Script Licences
17
17
  def show
18
18
  @script_licences = Script::Licence.friendly.find(params[:id])
19
19
  end
20
-
20
+
21
21
  # NEW - Script Licences
22
22
  def new
23
23
  @script_licence = Script::Licence.new
24
24
  end
25
-
25
+
26
26
  # EDIT - Script Licences
27
27
  def edit
28
28
  end
29
-
29
+
30
30
  # POST - Script Licences
31
31
  def create
32
32
  @script_licence = Script::Licence.new(script_licence_params)
@@ -40,7 +40,7 @@ module Phcscriptcdnpro
40
40
  render :new
41
41
  end
42
42
  end
43
-
43
+
44
44
  # PATCH/PUT - Script Licences
45
45
  def update
46
46
  @script_licence.user_id = current_user.id
@@ -53,24 +53,24 @@ module Phcscriptcdnpro
53
53
  render :edit
54
54
  end
55
55
  end
56
-
56
+
57
57
  # DELETE - Script Licences
58
58
  def destroy
59
59
  @script_licence.destroy
60
60
  redirect_to script_licences_url, notice: 'Licence was successfully destroyed.'
61
61
  end
62
-
62
+
63
63
  private
64
-
64
+
65
65
  # Common Callbacks
66
66
  def set_script_licence
67
67
  @script_licence = Script::Licence.friendly.find(params[:id])
68
68
  end
69
-
69
+
70
70
  # Whitelists
71
71
  def script_licence_params
72
72
  params.require(:script_licence).permit(:lcncname, :lcncdescription, :lcncdescript, :lcnccomgpl, :lcncarvlfsf, :lcncarvlosi, :lcncarvlcopyfree, :lcncarvldebian, :lcncarvlfedora, :user_id, :slug, :user_name, :membership_id, :oganization_id)
73
73
  end
74
-
74
+
75
75
  end
76
- end
76
+ end
@@ -7,26 +7,26 @@ module Phcscriptcdnpro
7
7
  before_action :require_user
8
8
  before_action :membership_info
9
9
  before_action :set_script_listing, only: [:show, :edit, :update, :destroy]
10
-
10
+
11
11
  # INDEX - Script Listings
12
12
  def index
13
13
  @script_listings = Script::Listing.all
14
14
  end
15
-
15
+
16
16
  # DETAILS - Script Listings
17
17
  def show
18
18
  @script_listings = Script::Listing.friendly.find(params[:id])
19
19
  end
20
-
20
+
21
21
  # NEW - Script Listings
22
22
  def new
23
23
  @script_listing = Script::Listing.new
24
24
  end
25
-
25
+
26
26
  # EDIT - Script Listings
27
27
  def edit
28
28
  end
29
-
29
+
30
30
  # POST - Script Listings
31
31
  def create
32
32
  @script_listing = Script::Listing.new(script_listing_params)
@@ -40,7 +40,7 @@ module Phcscriptcdnpro
40
40
  render :new
41
41
  end
42
42
  end
43
-
43
+
44
44
  # PATCH/PUT - Script Listings
45
45
  def update
46
46
  @script_listing.user_id = current_user.id
@@ -53,24 +53,24 @@ module Phcscriptcdnpro
53
53
  render :edit
54
54
  end
55
55
  end
56
-
56
+
57
57
  # DELETE - Script Listings
58
58
  def destroy
59
59
  @script_listing.destroy
60
60
  redirect_to script_listings_path, notice: 'Listing was successfully destroyed.'
61
61
  end
62
-
62
+
63
63
  private
64
-
64
+
65
65
  # Common Callbacks
66
66
  def set_script_listing
67
67
  @script_listing = Script::Listing.friendly.find(params[:id])
68
68
  end
69
-
69
+
70
70
  # Whitelist
71
71
  def script_listing_params
72
72
  params.require(:script_listing).permit(:scripttitle, :scriptdescription, :descriptionsource, :scriptwebsite, :scripttwitter, :scriptgithub, :scriptinitialrelease, :scriptlastestrelease, :scriptbetarelease, :scriptstatus, :slug, :user_id, :user_name, :membership_id, :oganization_id, :version_id, :author_id, :licence_id)
73
73
  end
74
-
74
+
75
75
  end
76
- end
76
+ end