phcscriptcdn 3.3.3 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/phcscriptcdn/script/authors_controller.rb +14 -23
  3. data/app/controllers/phcscriptcdn/script/extensions_controller.rb +1 -1
  4. data/app/controllers/phcscriptcdn/script/licences_controller.rb +2 -2
  5. data/app/controllers/phcscriptcdn/script/listings_controller.rb +5 -5
  6. data/app/controllers/phcscriptcdn/script/urls_controller.rb +1 -1
  7. data/app/controllers/phcscriptcdn/script/versions_controller.rb +4 -4
  8. data/app/models/phcscriptcdn/script/author.rb +2 -2
  9. data/app/models/phcscriptcdn/script/extension.rb +4 -1
  10. data/app/models/phcscriptcdn/script/licence.rb +5 -0
  11. data/app/models/phcscriptcdn/script/listing.rb +7 -5
  12. data/app/models/phcscriptcdn/script/url.rb +3 -3
  13. data/app/models/phcscriptcdn/script/version.rb +5 -5
  14. data/app/views/phcscriptcdn/script/authors/_form.html.erb +3 -5
  15. data/app/views/phcscriptcdn/script/authors/edit.html.erb +10 -5
  16. data/app/views/phcscriptcdn/script/authors/index.html.erb +19 -14
  17. data/app/views/phcscriptcdn/script/authors/new.html.erb +10 -5
  18. data/app/views/phcscriptcdn/script/authors/show.html.erb +27 -0
  19. data/app/views/phcscriptcdn/script/extensions/_form.html.erb +2 -2
  20. data/app/views/phcscriptcdn/script/extensions/edit.html.erb +9 -4
  21. data/app/views/phcscriptcdn/script/extensions/index.html.erb +8 -3
  22. data/app/views/phcscriptcdn/script/extensions/new.html.erb +8 -3
  23. data/app/views/phcscriptcdn/script/extensions/show.html.erb +28 -0
  24. data/app/views/phcscriptcdn/script/licences/_form.html.erb +12 -13
  25. data/app/views/phcscriptcdn/script/licences/edit.html.erb +9 -4
  26. data/app/views/phcscriptcdn/script/licences/index.html.erb +7 -4
  27. data/app/views/phcscriptcdn/script/licences/new.html.erb +9 -4
  28. data/app/views/phcscriptcdn/script/licences/show.html.erb +27 -0
  29. data/app/views/phcscriptcdn/script/listings/_form.html.erb +23 -20
  30. data/app/views/phcscriptcdn/script/listings/edit.html.erb +9 -3
  31. data/app/views/phcscriptcdn/script/listings/index.html.erb +9 -7
  32. data/app/views/phcscriptcdn/script/listings/new.html.erb +8 -2
  33. data/app/views/phcscriptcdn/script/listings/show.html.erb +15 -5
  34. data/app/views/phcscriptcdn/script/urls/_form.html.erb +4 -6
  35. data/app/views/phcscriptcdn/script/urls/edit.html.erb +9 -3
  36. data/app/views/phcscriptcdn/script/urls/index.html.erb +7 -3
  37. data/app/views/phcscriptcdn/script/urls/new.html.erb +10 -4
  38. data/app/views/phcscriptcdn/script/urls/show.html.erb +39 -3
  39. data/app/views/phcscriptcdn/script/versions/_form.html.erb +2 -0
  40. data/app/views/phcscriptcdn/script/versions/edit.html.erb +8 -3
  41. data/app/views/phcscriptcdn/script/versions/index.html.erb +7 -3
  42. data/app/views/phcscriptcdn/script/versions/new.html.erb +9 -4
  43. data/app/views/phcscriptcdn/script/versions/show.html.erb +38 -3
  44. data/db/migrate/20160731205205_create_phcscriptcdn_script_extensions.rb +3 -0
  45. data/db/migrate/20160731205917_create_phcscriptcdn_script_listings.rb +6 -1
  46. data/db/migrate/20160731205954_create_phcscriptcdn_script_versions.rb +3 -0
  47. data/db/migrate/20160731210626_create_phcscriptcdn_script_urls.rb +3 -1
  48. data/db/migrate/20160731210723_create_phcscriptcdn_script_authors.rb +3 -2
  49. data/db/migrate/20160801032225_create_phcscriptcdn_script_licences.rb +4 -0
  50. data/lib/phcscriptcdn/version.rb +1 -1
  51. metadata +2 -2
@@ -1,6 +1,7 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Script Version" %>
3
- <% phc_title_tagline "Add a Script Version Number" %>
2
+ <% phc_title "Script Listings Manager" %>
3
+ <% phc_title_tagline "Create a New Version" %>
4
+ <!-- Title System -->
4
5
 
5
6
  <!-- Page Header -->
6
7
  <div class="row">
@@ -8,25 +9,29 @@
8
9
 
9
10
  <!-- Bread Crumbs -->
10
11
  <ol class="breadcrumb">
11
- <li><%= link_to "Script Listings Index", script_listings_path %></li>
12
- <li><%= link_to "Versions Index", script_versions_path %></li>
12
+ <li><%= link_to "Script Version Index", phcscriptcdn.script_versions_path %></li>
13
13
  <li class="active"><%= yield(:phc_title_tagline) %></li>
14
14
  </ol>
15
+ <!-- Bread Crumbs -->
15
16
 
16
17
  <!-- Page Title -->
17
18
  <h3 class="page-title">
18
19
  <%= yield(:phc_title) %> </br>
19
20
  <small><%= yield(:phc_title_tagline) %></small>
20
21
  </h3>
22
+ <!-- Page Title -->
21
23
 
22
24
  </div>
23
25
  </div>
26
+ <!-- Page Header -->
24
27
 
25
28
  <!-- Main Content -->
26
29
  <div class="row">
27
30
  <div class="col-lg-12">
28
31
 
32
+ <!-- Form Requries URL to Function Properly -->
29
33
  <%= render 'form', script_version: @script_version %>
30
34
 
31
35
  </div>
32
36
  </div>
37
+ <!-- Main Content -->
@@ -1,4 +1,39 @@
1
- <div class="btn-group" role="group" aria-label="version_button_group">
2
- <%= link_to 'Edit', edit_script_version_path(@script_version), class: "btn btn-primary" %>
3
- <%= link_to 'Destroy', script_version_path(@script_version), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-primary" %>
1
+ <!-- Title System -->
2
+ <% phc_title "Script Listings Manager" %>
3
+ <% phc_title_tagline "Script Version Details" %>
4
+ <!-- Title System -->
5
+
6
+ <!-- Page Header -->
7
+ <div class="row">
8
+ <div class="col-lg-12">
9
+
10
+ <!-- Bread Crumbs -->
11
+ <ol class="breadcrumb">
12
+ <li><%= link_to "Script Version Index", phcscriptcdn.script_versions_path %></li>
13
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
14
+ </ol>
15
+ <!-- Bread Crumbs -->
16
+
17
+ <!-- Page Title -->
18
+ <h3 class="page-title">
19
+ <%= yield(:phc_title) %> </br>
20
+ <small><%= yield(:phc_title_tagline) %></small>
21
+ </h3>
22
+ <!-- Page Title -->
23
+
24
+ </div>
4
25
  </div>
26
+ <!-- Page Header -->
27
+
28
+ <!-- Main Content -->
29
+ <div class="row">
30
+ <div class="col-lg-12">
31
+
32
+ <div class="btn-group" role="group" aria-label="version_button_group">
33
+ <%= link_to 'Edit', edit_script_version_path(@script_version), class: "btn btn-primary" %>
34
+ <%= link_to 'Destroy', script_version_path(@script_version), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-primary" %>
35
+ </div>
36
+
37
+ </div>
38
+ </div>
39
+ <!-- Main Content -->
@@ -7,6 +7,9 @@ class CreatePhcscriptcdnScriptExtensions < ActiveRecord::Migration[5.0]
7
7
  t.text :scriptextensiondes
8
8
  t.string :scriptextension
9
9
 
10
+ t.string :user_id
11
+ t.string :user_name
12
+
10
13
  t.timestamps
11
14
 
12
15
  end
@@ -5,12 +5,12 @@ class CreatePhcscriptcdnScriptListings < ActiveRecord::Migration[5.0]
5
5
 
6
6
  t.string :scripttitle
7
7
  t.text :scriptdescription
8
+ t.string :descriptionsource
8
9
 
9
10
  t.string :scriptwebsite
10
11
  t.string :scripttwitter
11
12
  t.string :scriptgithub
12
13
 
13
-
14
14
  t.date :scriptinitialrelease
15
15
  t.date :scriptlastestrelease
16
16
  t.date :scriptbetarelease
@@ -18,7 +18,12 @@ class CreatePhcscriptcdnScriptListings < ActiveRecord::Migration[5.0]
18
18
 
19
19
  t.string :scriptstatus
20
20
 
21
+ t.string :user_id
22
+ t.string :user_name
23
+
21
24
  t.references :version
25
+ t.references :licence
26
+ t.references :author
22
27
 
23
28
  t.timestamps
24
29
 
@@ -5,6 +5,9 @@ class CreatePhcscriptcdnScriptVersions < ActiveRecord::Migration[5.0]
5
5
 
6
6
  t.string :scriptversion
7
7
 
8
+ t.string :user_id
9
+ t.string :user_name
10
+
8
11
  t.timestamps
9
12
 
10
13
  end
@@ -11,8 +11,10 @@ class CreatePhcscriptcdnScriptUrls < ActiveRecord::Migration[5.0]
11
11
  t.references :version
12
12
  t.references :extension
13
13
 
14
- t.timestamps
14
+ t.string :user_id
15
+ t.string :user_name
15
16
 
17
+ t.timestamps
16
18
 
17
19
  end
18
20
 
@@ -5,12 +5,13 @@ class CreatePhcscriptcdnScriptAuthors < ActiveRecord::Migration[5.0]
5
5
 
6
6
  t.string :authorfirstname
7
7
  t.string :authorlastname
8
-
8
+
9
9
  t.string :authorwebsite
10
10
  t.string :authorgithub
11
11
  t.string :authortwitter
12
12
 
13
- t.references :listing
13
+ t.string :user_id
14
+ t.string :user_name
14
15
 
15
16
  t.timestamps
16
17
 
@@ -5,6 +5,7 @@ class CreatePhcscriptcdnScriptLicences < ActiveRecord::Migration[5.0]
5
5
 
6
6
  t.string :lcncname
7
7
  t.string :lcncdescript
8
+ t.text :lcncdescription
8
9
 
9
10
  t.string :lcnccomgpl
10
11
  t.string :lcncarvlfsf
@@ -13,6 +14,9 @@ class CreatePhcscriptcdnScriptLicences < ActiveRecord::Migration[5.0]
13
14
  t.string :lcncarvldebian
14
15
  t.string :lcncarvlfedora
15
16
 
17
+ t.string :user_id
18
+ t.string :user_name
19
+
16
20
  t.timestamps
17
21
 
18
22
  end
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdn
2
- VERSION = "3.3.3"
2
+ VERSION = "4.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcscriptcdn
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.3
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-07 00:00:00.000000000 Z
11
+ date: 2017-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails