phcscriptcdn 51.0.0 → 52.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/app/assets/javascripts/phcscriptcdn/application.js +1 -1
  4. data/app/controllers/phcscriptcdn/application_controller.rb +15 -20
  5. data/app/controllers/phcscriptcdn/script/authors_controller.rb +13 -13
  6. data/app/controllers/phcscriptcdn/script/extensions_controller.rb +15 -15
  7. data/app/controllers/phcscriptcdn/script/licences_controller.rb +13 -13
  8. data/app/controllers/phcscriptcdn/script/listings_controller.rb +11 -11
  9. data/app/controllers/phcscriptcdn/script/urls_controller.rb +14 -14
  10. data/app/controllers/phcscriptcdn/script/versions_controller.rb +15 -15
  11. data/app/models/phcscriptcdn/application_record.rb +0 -2
  12. data/app/models/phcscriptcdn/script.rb +0 -2
  13. data/app/models/phcscriptcdn/script/author.rb +16 -7
  14. data/app/models/phcscriptcdn/script/extension.rb +5 -8
  15. data/app/models/phcscriptcdn/script/licence.rb +5 -8
  16. data/app/models/phcscriptcdn/script/listing.rb +12 -17
  17. data/app/models/phcscriptcdn/script/url.rb +4 -16
  18. data/app/models/phcscriptcdn/script/version.rb +6 -9
  19. data/app/views/layouts/phcscriptcdn/application.html.erb +6 -5
  20. data/app/views/layouts/phcscriptcdn/components/backend/footer/_footer.html.erb +5 -5
  21. data/app/views/layouts/phcscriptcdn/components/backend/sidebars/_side_menu.html.erb +60 -25
  22. data/app/views/phcscriptcdn/script/authors/_form.html.erb +6 -5
  23. data/app/views/phcscriptcdn/script/authors/edit.html.erb +4 -4
  24. data/app/views/phcscriptcdn/script/authors/index.html.erb +19 -15
  25. data/app/views/phcscriptcdn/script/authors/new.html.erb +4 -4
  26. data/app/views/phcscriptcdn/script/authors/show.html.erb +1 -4
  27. data/app/views/phcscriptcdn/script/extensions/_form.html.erb +5 -4
  28. data/app/views/phcscriptcdn/script/extensions/edit.html.erb +4 -7
  29. data/app/views/phcscriptcdn/script/extensions/index.html.erb +19 -15
  30. data/app/views/phcscriptcdn/script/extensions/new.html.erb +4 -6
  31. data/app/views/phcscriptcdn/script/extensions/show.html.erb +1 -4
  32. data/app/views/phcscriptcdn/script/licences/_form.html.erb +10 -9
  33. data/app/views/phcscriptcdn/script/licences/edit.html.erb +4 -6
  34. data/app/views/phcscriptcdn/script/licences/index.html.erb +19 -15
  35. data/app/views/phcscriptcdn/script/licences/new.html.erb +4 -6
  36. data/app/views/phcscriptcdn/script/licences/show.html.erb +1 -4
  37. data/app/views/phcscriptcdn/script/listings/_form.html.erb +21 -17
  38. data/app/views/phcscriptcdn/script/listings/edit.html.erb +4 -4
  39. data/app/views/phcscriptcdn/script/listings/index.html.erb +24 -19
  40. data/app/views/phcscriptcdn/script/listings/new.html.erb +6 -5
  41. data/app/views/phcscriptcdn/script/listings/show.html.erb +3 -5
  42. data/app/views/phcscriptcdn/script/urls/_form.html.erb +7 -6
  43. data/app/views/phcscriptcdn/script/urls/edit.html.erb +15 -5
  44. data/app/views/phcscriptcdn/script/urls/index.html.erb +19 -15
  45. data/app/views/phcscriptcdn/script/urls/new.html.erb +4 -6
  46. data/app/views/phcscriptcdn/script/urls/show.html.erb +1 -4
  47. data/app/views/phcscriptcdn/script/versions/_form.html.erb +3 -2
  48. data/app/views/phcscriptcdn/script/versions/edit.html.erb +4 -6
  49. data/app/views/phcscriptcdn/script/versions/index.html.erb +19 -15
  50. data/app/views/phcscriptcdn/script/versions/new.html.erb +4 -6
  51. data/app/views/phcscriptcdn/script/versions/show.html.erb +1 -4
  52. data/config/routes.rb +19 -20
  53. data/db/migrate/20160821183652_create_phcscriptcdn_script_listings.rb +1 -1
  54. data/lib/phcscriptcdn/engine.rb +16 -15
  55. data/lib/phcscriptcdn/version.rb +1 -1
  56. metadata +8 -8
@@ -17,7 +17,7 @@
17
17
  <!-- Page Header -->
18
18
  <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
19
  <!-- Page Header -->
20
-
20
+
21
21
  <!-- Page Content -->
22
22
  <div class="panel panel-inverse">
23
23
  <div class="panel-heading">
@@ -26,14 +26,12 @@
26
26
  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
27
27
  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
28
28
  </div>
29
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
30
30
  </div>
31
31
  <div class="panel-body">
32
-
33
- <!-- -->
32
+ <!-- Form to Edit Version -->
34
33
  <%= render 'form', script_version: @script_version %>
35
- <!-- -->
36
-
34
+ <!-- Form to Edit Version -->
37
35
  </div>
38
36
  </div>
39
37
  <!-- Page Content -->
@@ -7,27 +7,30 @@
7
7
 
8
8
  <!-- Page Bradcrumbs -->
9
9
  <ol class="breadcrumb pull-right">
10
- <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
10
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
12
  </ol>
13
13
  <!-- Page Bradcrumbs -->
14
14
 
15
15
  <!-- Page Header -->
16
16
  <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
17
  <!-- Page Header -->
18
-
19
- <!-- Page Content -->
18
+
19
+ <!-- Page & Panel Content -->
20
20
  <div class="panel panel-inverse">
21
- <div class="panel-heading">
22
- <div class="panel-heading-btn">
23
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
24
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
25
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
26
- </div>
27
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
28
- </div>
29
- <div class="panel-body">
30
- <!-- Table - Article Index -->
21
+ <!-- Panel Heading -->
22
+ <div class="panel-heading">
23
+ <div class="panel-heading-btn">
24
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
25
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
26
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
27
+ </div>
28
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
+ </div>
30
+ <!-- Panel Heading -->
31
+ <!-- Panel Body -->
32
+ <div class="panel-body">
33
+ <!-- Table - Version Index -->
31
34
  <div class="table-responsive">
32
35
  <table class="table table-striped table-bordered">
33
36
  <thead>
@@ -45,9 +48,10 @@
45
48
  </table>
46
49
  <%= link_to phcscriptcdn.new_script_version_path, class: "btn btn-primary" do %>
47
50
  <i class="fas fa-plus-circle"></i>
48
- <%= "Add a New Version Number" %>
51
+ Add a New Version Number
49
52
  <% end %>
50
53
  </div>
54
+ <!-- Table - Version Index -->
51
55
  </div>
52
56
  </div>
53
57
  <!-- Page Content -->
@@ -17,7 +17,7 @@
17
17
  <!-- Page Header -->
18
18
  <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
19
  <!-- Page Header -->
20
-
20
+
21
21
  <!-- Page Content -->
22
22
  <div class="panel panel-inverse">
23
23
  <div class="panel-heading">
@@ -26,14 +26,12 @@
26
26
  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
27
27
  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
28
28
  </div>
29
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
30
30
  </div>
31
31
  <div class="panel-body">
32
-
33
- <!-- -->
32
+ <!-- Form for New Version -->
34
33
  <%= render 'form', script_version: @script_version %>
35
- <!-- -->
36
-
34
+ <!-- Form for New Version -->
37
35
  </div>
38
36
  </div>
39
37
  <!-- Page Content -->
@@ -30,12 +30,10 @@
30
30
  </div>
31
31
  </div>
32
32
  <div class="panel-body">
33
-
34
33
  <div class="btn-group d-flex" role="group">
35
34
  <%= link_to 'Update', phcscriptcdn.edit_script_version_path, class: "btn btn-primary" %>
36
35
  <%= link_to 'Remove', phcscriptcdn.script_version_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
37
- </div>
38
-
36
+ </div>
39
37
  </div>
40
38
  </div>
41
39
 
@@ -44,7 +42,6 @@
44
42
 
45
43
  <!-- Main Panel -->
46
44
  <div class="col-lg-8">
47
-
48
45
  </div>
49
46
  <!-- Main Panel -->
50
47
 
@@ -1,27 +1,26 @@
1
1
  Phcscriptcdn::Engine.routes.draw do
2
2
 
3
- # Mount Accounts Engine
4
- mount Phcaccounts::Engine, :at => '/'
5
-
6
- # Application Scripts
7
- namespace :script do
8
- # Main Script Module
9
- resources :listings, class_name: 'Phcscriptcdn::Script::Listing' do
10
- resources :urls, class_name: 'Phcscriptcdn::Script::Url'
11
- end
12
- resources :authors, class_name: 'Phcscriptcdn::Script::Author'
13
- resources :extensions, class_name: 'Phcscriptcdn::Script::Extension'
14
- resources :versions, class_name: 'Phcscriptcdn::Script::Version'
15
- resources :licences, class_name: 'Phcscriptcdn::Script::Licence'
3
+ # API Routes
4
+ namespace :api, :path => "", :constraints => {:subdomain => "api"} do
5
+ namespace :v1 do
6
+ resources :mains, defaults: {format: 'json'}
7
+ resources :informations, defaults: {format: 'json'}
8
+ resources :versions, defaults: {format: 'json'}
16
9
  end
10
+ end
17
11
 
18
- # Application API
19
- namespace :api, :path => "", :constraints => {:subdomain => "api"} do
20
- namespace :v1 do
21
- resources :mains, defaults: {format: 'json'}
22
- resources :informations, defaults: {format: 'json'}
23
- resources :versions, defaults: {format: 'json'}
24
- end
12
+ # Script CDN Routes
13
+ namespace :script do
14
+ resources :listings, class_name: 'Phcscriptcdn::Script::Listing' do
15
+ resources :urls, class_name: 'Phcscriptcdn::Script::Url'
25
16
  end
17
+ resources :authors, class_name: 'Phcscriptcdn::Script::Author'
18
+ resources :extensions, class_name: 'Phcscriptcdn::Script::Extension'
19
+ resources :versions, class_name: 'Phcscriptcdn::Script::Version'
20
+ resources :licences, class_name: 'Phcscriptcdn::Script::Licence'
21
+ end
22
+
23
+ # PHCAccounts Routes
24
+ mount Phcaccounts::Engine, :at => '/'
26
25
 
27
26
  end
@@ -3,7 +3,7 @@ class CreatePhcscriptcdnScriptListings < ActiveRecord::Migration[5.2]
3
3
 
4
4
  create_table :phcscriptcdn_script_listings do |t|
5
5
 
6
- t.string :script_tittle
6
+ t.string :script_title
7
7
  t.text :script_description
8
8
 
9
9
  t.string :script_source
@@ -1,6 +1,6 @@
1
1
  module Phcscriptcdn
2
2
  class Engine < ::Rails::Engine
3
-
3
+
4
4
  # PHCTheme Dependencies
5
5
  require 'phctheme1'
6
6
  require 'phctheme2'
@@ -9,7 +9,8 @@ module Phcscriptcdn
9
9
  require 'phctheme5'
10
10
  require 'phctheme6'
11
11
  require 'phctheme7'
12
-
12
+
13
+ # PHCAdmin Dependencies
13
14
  require 'phcadmin1'
14
15
  require 'phcadmin2'
15
16
  require 'phcadmin3'
@@ -17,32 +18,32 @@ module Phcscriptcdn
17
18
  require 'phcadmin5'
18
19
  require 'phcadmin6'
19
20
  require 'phcadmin7'
20
-
21
- # PHC Helper Dependencies
21
+
22
+ # PHCHelper Dependencies
22
23
  require 'phccorehelpers'
23
24
  require 'phcmenus'
24
25
  require 'phcnotifi'
25
26
  require 'phctitleseo'
26
-
27
- # UI & URL Frontend Dependencies
27
+
28
+ # Frontend Dependencies
28
29
  require 'gravtastic'
29
30
  require 'friendly_id'
30
-
31
- # File Upload & Service Dependencies
31
+
32
+ # Upload Dependencies
32
33
  require 'aws-sdk-s3'
33
34
  require 'google-cloud-storage'
34
35
  require 'mini_magick'
35
-
36
- # Database & Paper Trail Dependencies
36
+
37
+ # Database Dependencies
37
38
  require 'paper_trail'
38
39
  require 'pg'
39
-
40
- # Security Dependencies
40
+
41
+ # Payment Dependencies
41
42
  require 'phcaccounts'
42
43
 
43
44
  # Isolate Namespace
44
45
  isolate_namespace Phcscriptcdn
45
-
46
+
46
47
  # Testing Generator
47
48
  config.generators do |g|
48
49
  g.test_framework :rspec,
@@ -55,7 +56,7 @@ module Phcscriptcdn
55
56
  g.fixture_replacement :factory_bot,
56
57
  dir: "spec/factories"
57
58
  end
58
-
59
+
59
60
  # Load Requried Helper Files
60
61
  config.to_prepare do
61
62
  Phcaccounts::ApplicationController.helper(ApplicationHelper)
@@ -64,6 +65,6 @@ module Phcscriptcdn
64
65
  Phcnotifi::ApplicationController.helper(ApplicationHelper)
65
66
  Phctitleseo::ApplicationController.helper(ApplicationHelper)
66
67
  end
67
-
68
+
68
69
  end
69
70
  end
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdn
2
- VERSION = "51.0.0"
2
+ VERSION = "52.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: 51.0.0
4
+ version: 52.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: 2019-05-10 00:00:00.000000000 Z
11
+ date: 2019-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -232,14 +232,14 @@ dependencies:
232
232
  requirements:
233
233
  - - "~>"
234
234
  - !ruby/object:Gem::Version
235
- version: '4.0'
235
+ version: '5.2'
236
236
  type: :runtime
237
237
  prerelease: false
238
238
  version_requirements: !ruby/object:Gem::Requirement
239
239
  requirements:
240
240
  - - "~>"
241
241
  - !ruby/object:Gem::Version
242
- version: '4.0'
242
+ version: '5.2'
243
243
  - !ruby/object:Gem::Dependency
244
244
  name: phcmenus
245
245
  requirement: !ruby/object:Gem::Requirement
@@ -260,14 +260,14 @@ dependencies:
260
260
  requirements:
261
261
  - - "~>"
262
262
  - !ruby/object:Gem::Version
263
- version: '45.0'
263
+ version: '47.2'
264
264
  type: :runtime
265
265
  prerelease: false
266
266
  version_requirements: !ruby/object:Gem::Requirement
267
267
  requirements:
268
268
  - - "~>"
269
269
  - !ruby/object:Gem::Version
270
- version: '45.0'
270
+ version: '47.2'
271
271
  - !ruby/object:Gem::Dependency
272
272
  name: phctitleseo
273
273
  requirement: !ruby/object:Gem::Requirement
@@ -456,14 +456,14 @@ dependencies:
456
456
  requirements:
457
457
  - - "~>"
458
458
  - !ruby/object:Gem::Version
459
- version: '37.0'
459
+ version: '39.0'
460
460
  type: :runtime
461
461
  prerelease: false
462
462
  version_requirements: !ruby/object:Gem::Requirement
463
463
  requirements:
464
464
  - - "~>"
465
465
  - !ruby/object:Gem::Version
466
- version: '37.0'
466
+ version: '39.0'
467
467
  - !ruby/object:Gem::Dependency
468
468
  name: sqlite3
469
469
  requirement: !ruby/object:Gem::Requirement