phcscriptcdn 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/app/assets/config/phcscriptcdn_manifest.js +1 -1
  4. data/app/assets/javascripts/phcscriptcdn/application.js +3 -0
  5. data/app/assets/stylesheets/phcscriptcdn/_custom.scss +0 -0
  6. data/app/assets/stylesheets/phcscriptcdn/{application.css → application.scss} +8 -0
  7. data/app/controllers/phcscriptcdn/application_controller.rb +1 -1
  8. data/app/views/phcscriptcdn/scriptcdn/{information → informations}/_form.html.erb +0 -0
  9. data/app/views/phcscriptcdn/scriptcdn/{information → informations}/_formpatch.html.erb +0 -0
  10. data/app/views/phcscriptcdn/scriptcdn/{information → informations}/edit.html.erb +0 -0
  11. data/app/views/phcscriptcdn/scriptcdn/{information → informations}/index.html.erb +0 -0
  12. data/app/views/phcscriptcdn/scriptcdn/{information → informations}/new.html.erb +0 -0
  13. data/app/views/phcscriptcdn/scriptcdn/{information → informations}/show.html.erb +0 -0
  14. data/config/routes.rb +27 -4
  15. data/lib/phcscriptcdn/engine.rb +2 -2
  16. data/lib/phcscriptcdn/version.rb +1 -1
  17. metadata +30 -20
  18. data/app/assets/javascripts/phcscriptcdn/scriptcdn/authors.js +0 -2
  19. data/app/assets/javascripts/phcscriptcdn/scriptcdn/information.js +0 -2
  20. data/app/assets/javascripts/phcscriptcdn/scriptcdn/mains.js +0 -2
  21. data/app/assets/javascripts/phcscriptcdn/scriptcdn/urls.js +0 -2
  22. data/app/assets/javascripts/phcscriptcdn/scriptcdn/versions.js +0 -2
  23. data/app/assets/stylesheets/phcscriptcdn/scriptcdn/authors.scss +0 -3
  24. data/app/assets/stylesheets/phcscriptcdn/scriptcdn/information.scss +0 -3
  25. data/app/assets/stylesheets/phcscriptcdn/scriptcdn/mains.scss +0 -3
  26. data/app/assets/stylesheets/phcscriptcdn/scriptcdn/urls.scss +0 -3
  27. data/app/assets/stylesheets/phcscriptcdn/scriptcdn/versions.scss +0 -3
  28. data/app/assets/stylesheets/scaffolds.scss +0 -89
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b39c53c2352b0b2af3f30bee0d195cf71df2be2f
4
- data.tar.gz: c8cf881a8ef731c297743134ce6b2e3f2026f924
3
+ metadata.gz: e7d7c4d0c5cfc280dfa1c4e066c6748a2e8078f0
4
+ data.tar.gz: 7ab1b6deff7b6336f75d35e504e23db47501bf67
5
5
  SHA512:
6
- metadata.gz: 16902db0bc51c70404517654d8b68274edc3861da2d66f68caa78b840a286e00880fd9ebd37e329a1ee320f4d1e418d3d19a9cb65c7b5aa7315a43fb787a69a5
7
- data.tar.gz: 84e4abe8ae41c9b40d4ac36e2cad183988998b69258120d1c89d1aa410452373e1f92a4c80b721369113617df1644e51beccbe7794602f412227d13bc45e1776
6
+ metadata.gz: 6283b2b3a4e0eb849c72d16a9a65ee3b3d9be009ba5c13a98ab225b4e272c39c9af65b5233bfcfab43988a124812b8baae764f8ee54d727570e3005569e1c329
7
+ data.tar.gz: f389ed77534fce76b3f934b192758c7c18553586aa9872f26d7b78a922b3aa050512889e8dfc9146d32f1e9d1d4555c5c5d707e57d72d2602cb480de69266ae1
data/README.md CHANGED
@@ -11,7 +11,7 @@ PHCScriptCDN(2) script listing software to manage your online script CDN.
11
11
 
12
12
  #### Step 1 - Add PHCScriptCDN Engine to your gemfile
13
13
 
14
- gem 'phcscriptcdn', '~> 1.2'
14
+ gem 'phcscriptcdn', '~> 2.0'
15
15
  bundle install
16
16
 
17
17
  #### Step 2 - Add Database Migration Files
@@ -30,7 +30,7 @@ Generate views for customization and app integration.
30
30
  rails generate phcscriptcdn:views
31
31
 
32
32
  #### Step 5 - Recompile Assets
33
- PHCScriptCDN UI requires bootstrap and fontawesome to operate.
33
+ PHCScriptCDN UI requires Bootstrap and FontAwesome to operate.
34
34
 
35
35
  rake assets:clobber
36
36
  rake assets:precompile
@@ -1,2 +1,2 @@
1
1
  //= link_directory ../javascripts/phcscriptcdn .js
2
- //= link_directory ../stylesheets/phcscriptcdn .css
2
+ //= link_directory ../stylesheets/phcscriptcdn .scss
@@ -10,4 +10,7 @@
10
10
  // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
11
  // about supported directives.
12
12
  //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= require bootstrap-sprockets
13
16
  //= require_tree .
@@ -13,3 +13,11 @@
13
13
  *= require_tree .
14
14
  *= require_self
15
15
  */
16
+
17
+ // Bootstrap & Font Awesome
18
+ @import "bootstrap";
19
+ @import "bootstrap-sprockets";
20
+ @import "font-awesome";
21
+
22
+ // Custom Alterations
23
+ @import "custom";
@@ -6,7 +6,7 @@ module Phcscriptcdn
6
6
 
7
7
  # Load Helpers
8
8
  helper Phctitleseo::Engine.helpers
9
- #helper Phcnotifi::Engine.helpers
9
+ helper Phcnotifi::Engine.helpers
10
10
 
11
11
  end
12
12
  end
@@ -1,11 +1,34 @@
1
1
  Phcscriptcdn::Engine.routes.draw do
2
2
 
3
+ # CDN Frontend
4
+ namespace :frontend do
5
+
6
+ # Frontend Routes
7
+ resources :cdnpages
8
+
9
+ end
10
+
3
11
  # Script CDN Listing System
4
12
  namespace :scriptcdn do
5
- resources :scripts
6
- resources :scriptversions do
7
- resources :scripturls
13
+
14
+ # Main Script Module
15
+ resources :mains do
16
+ resources :authors
17
+ resources :urls
18
+ resources :versions
19
+ resources :informations
8
20
  end
21
+
22
+ end
23
+
24
+ # Application API
25
+ namespace :api, :path => "", :constraints => {:subdomain => "api"} do
26
+
27
+ # Routes for API
28
+ resources :mains, defaults: {format: 'json'}
29
+ resources :informations, defaults: {format: 'json'}
30
+ resources :versions, defaults: {format: 'json'}
31
+
9
32
  end
10
33
 
11
- end
34
+ end
@@ -8,7 +8,7 @@ module Phcscriptcdn
8
8
  require 'font-awesome-rails'
9
9
 
10
10
  # PHCEngines
11
- # require 'phcnotifi'
11
+ require 'phcnotifi'
12
12
  require 'phctitleseo'
13
13
 
14
14
  # Give PHCScriptCDN Own Namespace
@@ -29,7 +29,7 @@ module Phcscriptcdn
29
29
  # Load Helper Files
30
30
  config.to_prepare do
31
31
  ApplicationController.helper(ApplicationHelper)
32
- #Phcnotifi::ApplicationController.helper(ApplicationHelper)
32
+ Phcnotifi::ApplicationController.helper(ApplicationHelper)
33
33
  Phctitleseo::ApplicationController.helper(ApplicationHelper)
34
34
  end
35
35
 
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdn
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcscriptcdn
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
@@ -44,6 +44,26 @@ dependencies:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '3.0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: phcnotifi
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '3.0'
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 3.0.1
57
+ type: :runtime
58
+ prerelease: false
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - "~>"
62
+ - !ruby/object:Gem::Version
63
+ version: '3.0'
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: 3.0.1
47
67
  - !ruby/object:Gem::Dependency
48
68
  name: multi_json
49
69
  requirement: !ruby/object:Gem::Requirement
@@ -366,7 +386,7 @@ dependencies:
366
386
  - - ">="
367
387
  - !ruby/object:Gem::Version
368
388
  version: 2.53.4
369
- description: PHCScriptCDN(1) script listing software to manage your online script
389
+ description: PHCScriptCDN(2) script listing software to manage your online script
370
390
  CDN.
371
391
  email:
372
392
  - developers@phcnetworks.net
@@ -379,18 +399,8 @@ files:
379
399
  - Rakefile
380
400
  - app/assets/config/phcscriptcdn_manifest.js
381
401
  - app/assets/javascripts/phcscriptcdn/application.js
382
- - app/assets/javascripts/phcscriptcdn/scriptcdn/authors.js
383
- - app/assets/javascripts/phcscriptcdn/scriptcdn/information.js
384
- - app/assets/javascripts/phcscriptcdn/scriptcdn/mains.js
385
- - app/assets/javascripts/phcscriptcdn/scriptcdn/urls.js
386
- - app/assets/javascripts/phcscriptcdn/scriptcdn/versions.js
387
- - app/assets/stylesheets/phcscriptcdn/application.css
388
- - app/assets/stylesheets/phcscriptcdn/scriptcdn/authors.scss
389
- - app/assets/stylesheets/phcscriptcdn/scriptcdn/information.scss
390
- - app/assets/stylesheets/phcscriptcdn/scriptcdn/mains.scss
391
- - app/assets/stylesheets/phcscriptcdn/scriptcdn/urls.scss
392
- - app/assets/stylesheets/phcscriptcdn/scriptcdn/versions.scss
393
- - app/assets/stylesheets/scaffolds.scss
402
+ - app/assets/stylesheets/phcscriptcdn/_custom.scss
403
+ - app/assets/stylesheets/phcscriptcdn/application.scss
394
404
  - app/controllers/phcscriptcdn/application_controller.rb
395
405
  - app/controllers/phcscriptcdn/scriptcdn/authors_controller.rb
396
406
  - app/controllers/phcscriptcdn/scriptcdn/informations_controller.rb
@@ -413,12 +423,12 @@ files:
413
423
  - app/views/phcscriptcdn/scriptcdn/authors/edit.html.erb
414
424
  - app/views/phcscriptcdn/scriptcdn/authors/index.html.erb
415
425
  - app/views/phcscriptcdn/scriptcdn/authors/new.html.erb
416
- - app/views/phcscriptcdn/scriptcdn/information/_form.html.erb
417
- - app/views/phcscriptcdn/scriptcdn/information/_formpatch.html.erb
418
- - app/views/phcscriptcdn/scriptcdn/information/edit.html.erb
419
- - app/views/phcscriptcdn/scriptcdn/information/index.html.erb
420
- - app/views/phcscriptcdn/scriptcdn/information/new.html.erb
421
- - app/views/phcscriptcdn/scriptcdn/information/show.html.erb
426
+ - app/views/phcscriptcdn/scriptcdn/informations/_form.html.erb
427
+ - app/views/phcscriptcdn/scriptcdn/informations/_formpatch.html.erb
428
+ - app/views/phcscriptcdn/scriptcdn/informations/edit.html.erb
429
+ - app/views/phcscriptcdn/scriptcdn/informations/index.html.erb
430
+ - app/views/phcscriptcdn/scriptcdn/informations/new.html.erb
431
+ - app/views/phcscriptcdn/scriptcdn/informations/show.html.erb
422
432
  - app/views/phcscriptcdn/scriptcdn/mains/_form.html.erb
423
433
  - app/views/phcscriptcdn/scriptcdn/mains/edit.html.erb
424
434
  - app/views/phcscriptcdn/scriptcdn/mains/index.html.erb
@@ -1,2 +0,0 @@
1
- // Place all the behaviors and hooks related to the matching controller here.
2
- // All this logic will automatically be available in application.js.
@@ -1,2 +0,0 @@
1
- // Place all the behaviors and hooks related to the matching controller here.
2
- // All this logic will automatically be available in application.js.
@@ -1,2 +0,0 @@
1
- // Place all the behaviors and hooks related to the matching controller here.
2
- // All this logic will automatically be available in application.js.
@@ -1,2 +0,0 @@
1
- // Place all the behaviors and hooks related to the matching controller here.
2
- // All this logic will automatically be available in application.js.
@@ -1,2 +0,0 @@
1
- // Place all the behaviors and hooks related to the matching controller here.
2
- // All this logic will automatically be available in application.js.
@@ -1,3 +0,0 @@
1
- // Place all the styles related to the scriptcdn::authors controller here.
2
- // They will automatically be included in application.css.
3
- // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -1,3 +0,0 @@
1
- // Place all the styles related to the scriptcdn::information controller here.
2
- // They will automatically be included in application.css.
3
- // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -1,3 +0,0 @@
1
- // Place all the styles related to the scriptcdn::mains controller here.
2
- // They will automatically be included in application.css.
3
- // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -1,3 +0,0 @@
1
- // Place all the styles related to the scriptcdn::urls controller here.
2
- // They will automatically be included in application.css.
3
- // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -1,3 +0,0 @@
1
- // Place all the styles related to the scriptcdn::versions controller here.
2
- // They will automatically be included in application.css.
3
- // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -1,89 +0,0 @@
1
- body {
2
- background-color: #fff;
3
- color: #333;
4
- font-family: verdana, arial, helvetica, sans-serif;
5
- font-size: 13px;
6
- line-height: 18px;
7
- margin: 33px;
8
- }
9
-
10
- p, ol, ul, td {
11
- font-family: verdana, arial, helvetica, sans-serif;
12
- font-size: 13px;
13
- line-height: 18px;
14
- margin: 33px;
15
- }
16
-
17
- pre {
18
- background-color: #eee;
19
- padding: 10px;
20
- font-size: 11px;
21
- }
22
-
23
- a {
24
- color: #000;
25
-
26
- &:visited {
27
- color: #666;
28
- }
29
-
30
- &:hover {
31
- color: #fff;
32
- background-color: #000;
33
- }
34
- }
35
-
36
- th {
37
- padding-bottom: 5px;
38
- }
39
-
40
- td {
41
- padding-bottom: 7px;
42
- padding-left: 5px;
43
- padding-right: 5px;
44
- }
45
-
46
- div {
47
- &.field, &.actions {
48
- margin-bottom: 10px;
49
- }
50
- }
51
-
52
- #notice {
53
- color: green;
54
- }
55
-
56
- .field_with_errors {
57
- padding: 2px;
58
- background-color: red;
59
- display: table;
60
- }
61
-
62
- #error_explanation {
63
- width: 450px;
64
- border: 2px solid red;
65
- padding: 7px;
66
- padding-bottom: 0;
67
- margin-bottom: 20px;
68
- background-color: #f0f0f0;
69
-
70
- h2 {
71
- text-align: left;
72
- font-weight: bold;
73
- padding: 5px 5px 5px 15px;
74
- font-size: 12px;
75
- margin: -7px;
76
- margin-bottom: 0;
77
- background-color: #c00;
78
- color: #fff;
79
- }
80
-
81
- ul li {
82
- font-size: 12px;
83
- list-style: square;
84
- }
85
- }
86
-
87
- label {
88
- display: block;
89
- }