phcscriptcdnpro 5.8.4 → 5.8.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +5 -6
  4. data/Rakefile +11 -14
  5. data/app/controllers/phcscriptcdnpro/application_controller.rb +48 -46
  6. data/app/controllers/phcscriptcdnpro/frontend/listings_controller.rb +4 -2
  7. data/app/controllers/phcscriptcdnpro/script/authors_controller.rb +70 -70
  8. data/app/controllers/phcscriptcdnpro/script/extensions_controller.rb +70 -70
  9. data/app/controllers/phcscriptcdnpro/script/licences_controller.rb +70 -70
  10. data/app/controllers/phcscriptcdnpro/script/listings_controller.rb +70 -70
  11. data/app/controllers/phcscriptcdnpro/script/urls_controller.rb +79 -79
  12. data/app/controllers/phcscriptcdnpro/script/versions_controller.rb +71 -69
  13. data/app/helpers/phcscriptcdnpro/application_helper.rb +9 -10
  14. data/app/jobs/phcscriptcdnpro/application_job.rb +2 -3
  15. data/app/mailers/phcscriptcdnpro/application_mailer.rb +4 -4
  16. data/app/models/phcscriptcdnpro/application_record.rb +3 -3
  17. data/app/models/phcscriptcdnpro/frontend.rb +2 -0
  18. data/app/models/phcscriptcdnpro/frontend/listing.rb +1 -2
  19. data/app/models/phcscriptcdnpro/script.rb +5 -5
  20. data/app/models/phcscriptcdnpro/script/author.rb +5 -5
  21. data/app/models/phcscriptcdnpro/script/extension.rb +6 -6
  22. data/app/models/phcscriptcdnpro/script/licence.rb +5 -5
  23. data/app/models/phcscriptcdnpro/script/listing.rb +13 -11
  24. data/app/models/phcscriptcdnpro/script/url.rb +9 -9
  25. data/app/models/phcscriptcdnpro/script/version.rb +7 -7
  26. data/app/views/layouts/phcscriptcdnpro/application.html.erb +6 -7
  27. data/app/views/layouts/phcscriptcdnpro/components/backend/footer/_footer.html.erb +1 -1
  28. data/app/views/layouts/phcscriptcdnpro/components/backend/navigation/_top_bar.html.erb +0 -1
  29. data/app/views/layouts/phcscriptcdnpro/components/backend/sidebars/_left_sidebar.html.erb +1 -2
  30. data/app/views/layouts/phcscriptcdnpro/frontend.html.erb +14 -16
  31. data/app/views/phcscriptcdnpro/frontend/listings/index.html.erb +30 -30
  32. data/app/views/phcscriptcdnpro/frontend/listings/show.html.erb +12 -12
  33. data/app/views/phcscriptcdnpro/script/authors/_form.html.erb +6 -0
  34. data/app/views/phcscriptcdnpro/script/authors/edit.html.erb +6 -7
  35. data/app/views/phcscriptcdnpro/script/authors/index.html.erb +19 -23
  36. data/app/views/phcscriptcdnpro/script/authors/new.html.erb +6 -7
  37. data/app/views/phcscriptcdnpro/script/authors/show.html.erb +6 -6
  38. data/app/views/phcscriptcdnpro/script/extensions/_form.html.erb +6 -0
  39. data/app/views/phcscriptcdnpro/script/extensions/edit.html.erb +8 -9
  40. data/app/views/phcscriptcdnpro/script/extensions/index.html.erb +6 -8
  41. data/app/views/phcscriptcdnpro/script/extensions/new.html.erb +8 -9
  42. data/app/views/phcscriptcdnpro/script/extensions/show.html.erb +7 -9
  43. data/app/views/phcscriptcdnpro/script/licences/_form.html.erb +7 -0
  44. data/app/views/phcscriptcdnpro/script/licences/edit.html.erb +6 -7
  45. data/app/views/phcscriptcdnpro/script/licences/index.html.erb +10 -12
  46. data/app/views/phcscriptcdnpro/script/licences/new.html.erb +6 -7
  47. data/app/views/phcscriptcdnpro/script/licences/show.html.erb +5 -7
  48. data/app/views/phcscriptcdnpro/script/listings/_form.html.erb +7 -1
  49. data/app/views/phcscriptcdnpro/script/listings/edit.html.erb +15 -0
  50. data/app/views/phcscriptcdnpro/script/listings/index.html.erb +14 -4
  51. data/app/views/phcscriptcdnpro/script/listings/new.html.erb +15 -0
  52. data/app/views/phcscriptcdnpro/script/listings/show.html.erb +14 -0
  53. data/app/views/phcscriptcdnpro/script/urls/_form.html.erb +6 -0
  54. data/app/views/phcscriptcdnpro/script/urls/edit.html.erb +17 -6
  55. data/app/views/phcscriptcdnpro/script/urls/index.html.erb +14 -7
  56. data/app/views/phcscriptcdnpro/script/urls/new.html.erb +17 -7
  57. data/app/views/phcscriptcdnpro/script/urls/show.html.erb +14 -10
  58. data/app/views/phcscriptcdnpro/script/versions/_form.html.erb +7 -0
  59. data/app/views/phcscriptcdnpro/script/versions/edit.html.erb +12 -8
  60. data/app/views/phcscriptcdnpro/script/versions/index.html.erb +11 -5
  61. data/app/views/phcscriptcdnpro/script/versions/new.html.erb +12 -8
  62. data/app/views/phcscriptcdnpro/script/versions/show.html.erb +11 -6
  63. data/config/routes.rb +21 -26
  64. data/db/migrate/20160821183652_create_phcscriptcdnpro_script_listings.rb +23 -23
  65. data/db/migrate/20160821183714_create_phcscriptcdnpro_script_authors.rb +17 -17
  66. data/db/migrate/20160821183735_create_phcscriptcdnpro_script_extensions.rb +12 -12
  67. data/db/migrate/20160821183805_create_phcscriptcdnpro_script_licences.rb +18 -18
  68. data/db/migrate/20160821183830_create_phcscriptcdnpro_script_urls.rb +16 -16
  69. data/db/migrate/20160821183946_create_phcscriptcdnpro_script_versions.rb +10 -10
  70. data/lib/phcscriptcdnpro/engine.rb +62 -61
  71. data/lib/phcscriptcdnpro/version.rb +1 -1
  72. metadata +2 -2
@@ -6,30 +6,38 @@
6
6
  <!-- Page Header -->
7
7
  <div class="row wrapper border-bottom white-bg page-heading">
8
8
  <div class="col-sm-4">
9
+
10
+ <!-- Page Title -->
9
11
  <h2><%= yield(:phc_title) %></h2>
12
+ <!-- Page Title -->
13
+
10
14
  <!-- Bread Crumb -->
11
15
  <ol class="breadcrumb">
12
16
  <li class="active"><%= yield(:phc_title_tagline) %></li>
13
17
  </ol>
18
+ <!-- Bread Crumb -->
19
+
14
20
  </div>
15
21
  <div class="col-sm-8">
22
+
23
+ <!-- New Version Button -->
16
24
  <div class="title-action">
17
25
  <%= link_to phcscriptcdnpro.new_script_version_path, class: "btn btn-primary" do %>
18
26
  <i class="fa fa-plus"></i> Create a New Script Version
19
27
  <% end %>
20
28
  </div>
29
+ <!-- New Version Button -->
30
+
21
31
  </div>
22
32
  </div>
23
33
  <!-- Page Header -->
24
34
 
25
35
  <!-- Page Content -->
26
36
  <div class="wrapper wrapper-content animated fadeInRight">
27
-
28
37
  <div class="row">
29
38
  <div class="col-lg-12">
30
39
 
31
40
  <div class="ibox float-e-margins">
32
-
33
41
  <div class="ibox-title">
34
42
  <h5><%= yield(:phc_title_tagline) %></h5>
35
43
  <div class="ibox-tools">
@@ -41,7 +49,6 @@
41
49
  </a>
42
50
  </div>
43
51
  </div>
44
-
45
52
  <div class="ibox-content">
46
53
  <div class="table-responsive">
47
54
  <table class="table table-striped table-bordered table-hover dataTables-example">
@@ -60,11 +67,10 @@
60
67
  </table>
61
68
  </div>
62
69
  </div>
63
-
64
70
  </div>
65
71
 
66
72
  </div>
67
73
  </div>
68
-
69
74
  </div>
70
75
  <!-- Page Content -->
76
+
@@ -6,31 +6,39 @@
6
6
  <!-- Page Header -->
7
7
  <div class="row wrapper border-bottom white-bg page-heading">
8
8
  <div class="col-sm-4">
9
+
10
+ <!-- Page Title -->
9
11
  <h2><%= yield(:phc_title) %></h2>
12
+ <!-- Page Title -->
13
+
10
14
  <!-- Bread Crumb -->
11
15
  <ol class="breadcrumb">
12
16
  <li><%= link_to "Script Version Index", phcscriptcdnpro.script_versions_path %></li>
13
17
  <li class="active"><%= yield(:phc_title_tagline) %></li>
14
18
  </ol>
19
+ <!-- Bread Crumb -->
20
+
15
21
  </div>
16
22
  <div class="col-sm-8">
23
+
24
+ <!-- Back to Version Index Button -->
17
25
  <div class="title-action">
18
- <%= link_to phcscriptcdnpro.script_listings_path, class: "btn btn-primary" do %>
26
+ <%= link_to phcscriptcdnpro.script_versions_path, class: "btn btn-primary" do %>
19
27
  <i class="fa fa-plus"></i> Back to Script Version Index
20
28
  <% end %>
21
29
  </div>
30
+ <!-- Back to Version Index Button -->
31
+
22
32
  </div>
23
33
  </div>
24
34
  <!-- Page Header -->
25
35
 
26
36
  <!-- Page Content -->
27
37
  <div class="wrapper wrapper-content animated fadeInRight">
28
-
29
38
  <div class="row">
30
39
  <div class="col-lg-12">
31
40
 
32
41
  <div class="ibox float-e-margins">
33
-
34
42
  <div class="ibox-title">
35
43
  <h5><%= yield(:phc_title_tagline) %></h5>
36
44
  <div class="ibox-tools">
@@ -42,18 +50,14 @@
42
50
  </a>
43
51
  </div>
44
52
  </div>
45
-
46
53
  <div class="ibox-content">
47
-
48
54
  <!-- Form Requries URL to Function Properly -->
49
55
  <%= render 'form', script_version: @script_version %>
50
-
51
56
  </div>
52
-
53
57
  </div>
54
58
 
55
59
  </div>
56
60
  </div>
57
-
58
61
  </div>
59
62
  <!-- Page Content -->
63
+
@@ -6,31 +6,39 @@
6
6
  <!-- Page Header -->
7
7
  <div class="row wrapper border-bottom white-bg page-heading">
8
8
  <div class="col-sm-4">
9
+
10
+ <!-- Page Title -->
9
11
  <h2><%= yield(:phc_title) %></h2>
12
+ <!-- Page Title -->
13
+
10
14
  <!-- Bread Crumb -->
11
15
  <ol class="breadcrumb">
12
16
  <li><%= link_to "Script Version Index", phcscriptcdnpro.script_versions_path %></li>
13
17
  <li class="active"><%= yield(:phc_title_tagline) %></li>
14
18
  </ol>
19
+ <!-- Bread Crumb -->
20
+
15
21
  </div>
16
22
  <div class="col-sm-8">
23
+
24
+ <!-- Back to Version Index Button -->
17
25
  <div class="title-action">
18
- <%= link_to phcscriptcdnpro.script_listings_path, class: "btn btn-primary" do %>
26
+ <%= link_to phcscriptcdnpro.script_versions_path, class: "btn btn-primary" do %>
19
27
  <i class="fa fa-plus"></i> Back to Script Version Index
20
28
  <% end %>
21
29
  </div>
30
+ <!-- Back to Version Index Button -->
31
+
22
32
  </div>
23
33
  </div>
24
34
  <!-- Page Header -->
25
35
 
26
36
  <!-- Page Content -->
27
37
  <div class="wrapper wrapper-content animated fadeInRight">
28
-
29
38
  <div class="row">
30
39
  <div class="col-lg-12">
31
40
 
32
41
  <div class="ibox float-e-margins">
33
-
34
42
  <div class="ibox-title">
35
43
  <h5><%= yield(:phc_title_tagline) %></h5>
36
44
  <div class="ibox-tools">
@@ -42,18 +50,15 @@
42
50
  </a>
43
51
  </div>
44
52
  </div>
45
-
46
53
  <div class="ibox-content">
47
54
  <div class="btn-group" role="group" aria-label="url_button_group">
48
55
  <%= link_to 'Edit', edit_script_version_path, class: "btn btn-primary" %>
49
56
  <%= link_to 'Destroy', script_version_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
50
57
  </div>
51
58
  </div>
52
-
53
59
  </div>
54
60
 
55
61
  </div>
56
62
  </div>
57
-
58
63
  </div>
59
64
  <!-- Page Content -->
data/config/routes.rb CHANGED
@@ -1,35 +1,30 @@
1
1
  Phcscriptcdnpro::Engine.routes.draw do
2
2
 
3
+ # Frontend Routes
3
4
  namespace :frontend do
4
5
  resources :listings
5
6
  end
6
- namespace :frontend do
7
- # Frontend Routes
8
- resources :cdnpages
9
- end
10
7
 
11
- # Script CDN Listing System
12
- namespace :script do
13
- # Main Script Module
14
- resources :listings, class_name: 'Phcscriptcdnpro::Script::Listing' do
15
- resources :urls, class_name: 'Phcscriptcdnpro::Script::Url'
16
- end
17
- resources :authors, class_name: 'Phcscriptcdnpro::Script::Author'
18
- resources :extensions, class_name: 'Phcscriptcdnpro::Script::Extension'
19
- resources :versions, class_name: 'Phcscriptcdnpro::Script::Version'
20
- resources :licences, class_name: 'Phcscriptcdnpro::Script::Licence'
21
- end
22
-
23
- # Application API
24
- namespace :api, :path => "", :constraints => {:subdomain => "api"} do
25
- namespace :v1 do
26
-
27
- # Routes for API
28
- resources :mains, defaults: {format: 'json'}
29
- resources :informations, defaults: {format: 'json'}
30
- resources :versions, defaults: {format: 'json'}
8
+ # Script CDN Listing System
9
+ namespace :script do
10
+ # Main Script Module
11
+ resources :listings, class_name: 'Phcscriptcdnpro::Script::Listing' do
12
+ resources :urls, class_name: 'Phcscriptcdnpro::Script::Url'
13
+ end
14
+ resources :authors, class_name: 'Phcscriptcdnpro::Script::Author'
15
+ resources :extensions, class_name: 'Phcscriptcdnpro::Script::Extension'
16
+ resources :versions, class_name: 'Phcscriptcdnpro::Script::Version'
17
+ resources :licences, class_name: 'Phcscriptcdnpro::Script::Licence'
18
+ end
31
19
 
32
- end
33
- end
20
+ # Application API
21
+ namespace :api, :path => "", :constraints => {:subdomain => "api"} do
22
+ namespace :v1 do
23
+ # Routes for API
24
+ resources :mains, defaults: {format: 'json'}
25
+ resources :informations, defaults: {format: 'json'}
26
+ resources :versions, defaults: {format: 'json'}
27
+ end
28
+ end
34
29
 
35
30
  end
@@ -1,35 +1,35 @@
1
1
  class CreatePhcscriptcdnproScriptListings < ActiveRecord::Migration[5.0]
2
- def change
2
+ def change
3
3
 
4
- create_table :phcscriptcdnpro_script_listings do |t|
4
+ create_table :phcscriptcdnpro_script_listings do |t|
5
5
 
6
- t.string :scripttitle
7
- t.text :scriptdescription
8
- t.string :descriptionsource
6
+ t.string :scripttitle
7
+ t.text :scriptdescription
8
+ t.string :descriptionsource
9
9
 
10
- t.string :scriptwebsite
11
- t.string :scripttwitter
12
- t.string :scriptgithub
10
+ t.string :scriptwebsite
11
+ t.string :scripttwitter
12
+ t.string :scriptgithub
13
13
 
14
- t.date :scriptinitialrelease
15
- t.date :scriptlastestrelease
16
- t.date :scriptbetarelease
17
- t.date :scriptlastestreleasecdn
14
+ t.date :scriptinitialrelease
15
+ t.date :scriptlastestrelease
16
+ t.date :scriptbetarelease
17
+ t.date :scriptlastestreleasecdn
18
18
 
19
- t.string :scriptstatus
19
+ t.string :scriptstatus
20
20
 
21
- t.string :user_id
22
- t.string :user_name
23
- t.string :membership_id
24
- t.string :oganization_id
21
+ t.string :user_id
22
+ t.string :user_name
23
+ t.string :membership_id
24
+ t.string :oganization_id
25
25
 
26
- t.references :version
27
- t.references :licence
28
- t.references :author
26
+ t.references :version
27
+ t.references :licence
28
+ t.references :author
29
29
 
30
- t.timestamps
30
+ t.timestamps
31
31
 
32
- end
32
+ end
33
33
 
34
- end
34
+ end
35
35
  end
@@ -1,23 +1,23 @@
1
1
  class CreatePhcscriptcdnproScriptAuthors < ActiveRecord::Migration[5.0]
2
- def change
2
+ def change
3
+
4
+ create_table :phcscriptcdnpro_script_authors do |t|
3
5
 
4
- create_table :phcscriptcdnpro_script_authors do |t|
6
+ t.string :authorfirstname
7
+ t.string :authorlastname
5
8
 
6
- t.string :authorfirstname
7
- t.string :authorlastname
9
+ t.string :authorwebsite
10
+ t.string :authorgithub
11
+ t.string :authortwitter
8
12
 
9
- t.string :authorwebsite
10
- t.string :authorgithub
11
- t.string :authortwitter
13
+ t.string :user_id
14
+ t.string :user_name
15
+ t.string :membership_id
16
+ t.string :oganization_id
12
17
 
13
- t.string :user_id
14
- t.string :user_name
15
- t.string :membership_id
16
- t.string :oganization_id
17
-
18
- t.timestamps
19
-
20
- end
21
-
22
- end
18
+ t.timestamps
19
+
20
+ end
21
+
22
+ end
23
23
  end
@@ -1,20 +1,20 @@
1
1
  class CreatePhcscriptcdnproScriptExtensions < ActiveRecord::Migration[5.0]
2
- def change
2
+ def change
3
3
 
4
- create_table :phcscriptcdnpro_script_extensions do |t|
4
+ create_table :phcscriptcdnpro_script_extensions do |t|
5
5
 
6
- t.string :scriptextensionname
7
- t.text :scriptextensiondes
8
- t.string :scriptextension
6
+ t.string :scriptextensionname
7
+ t.text :scriptextensiondes
8
+ t.string :scriptextension
9
9
 
10
- t.string :user_id
11
- t.string :user_name
12
- t.string :membership_id
13
- t.string :oganization_id
10
+ t.string :user_id
11
+ t.string :user_name
12
+ t.string :membership_id
13
+ t.string :oganization_id
14
14
 
15
- t.timestamps
15
+ t.timestamps
16
16
 
17
- end
17
+ end
18
18
 
19
- end
19
+ end
20
20
  end
@@ -1,27 +1,27 @@
1
1
  class CreatePhcscriptcdnproScriptLicences < ActiveRecord::Migration[5.0]
2
- def change
2
+ def change
3
3
 
4
- create_table :phcscriptcdnpro_script_licences do |t|
4
+ create_table :phcscriptcdnpro_script_licences do |t|
5
5
 
6
- t.string :lcncname
7
- t.string :lcncdescript
8
- t.text :lcncdescription
6
+ t.string :lcncname
7
+ t.string :lcncdescript
8
+ t.text :lcncdescription
9
9
 
10
- t.string :lcnccomgpl
11
- t.string :lcncarvlfsf
12
- t.string :lcncarvlosi
13
- t.string :lcncarvlcopyfree
14
- t.string :lcncarvldebian
15
- t.string :lcncarvlfedora
10
+ t.string :lcnccomgpl
11
+ t.string :lcncarvlfsf
12
+ t.string :lcncarvlosi
13
+ t.string :lcncarvlcopyfree
14
+ t.string :lcncarvldebian
15
+ t.string :lcncarvlfedora
16
16
 
17
- t.string :user_id
18
- t.string :user_name
19
- t.string :membership_id
20
- t.string :oganization_id
17
+ t.string :user_id
18
+ t.string :user_name
19
+ t.string :membership_id
20
+ t.string :oganization_id
21
21
 
22
- t.timestamps
22
+ t.timestamps
23
23
 
24
- end
24
+ end
25
25
 
26
- end
26
+ end
27
27
  end
@@ -1,24 +1,24 @@
1
1
  class CreatePhcscriptcdnproScriptUrls < ActiveRecord::Migration[5.0]
2
- def change
2
+ def change
3
3
 
4
- create_table :phcscriptcdnpro_script_urls do |t|
4
+ create_table :phcscriptcdnpro_script_urls do |t|
5
5
 
6
- t.string :scripturl
7
- t.date :scripturlrelease
8
- t.date :scripturlcdnupdate
6
+ t.string :scripturl
7
+ t.date :scripturlrelease
8
+ t.date :scripturlcdnupdate
9
9
 
10
- t.references :listing
11
- t.references :version
12
- t.references :extension
10
+ t.references :listing
11
+ t.references :version
12
+ t.references :extension
13
13
 
14
- t.string :user_id
15
- t.string :user_name
16
- t.string :membership_id
17
- t.string :oganization_id
14
+ t.string :user_id
15
+ t.string :user_name
16
+ t.string :membership_id
17
+ t.string :oganization_id
18
18
 
19
- t.timestamps
19
+ t.timestamps
20
+
21
+ end
20
22
 
21
- end
22
-
23
- end
23
+ end
24
24
  end