phcscriptcdn 4.3.6 → 4.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/config/phcscriptcdn_manifest.js +1 -1
- data/app/assets/javascripts/phcscriptcdn/application.js +1 -1
- data/app/assets/stylesheets/phcscriptcdn/application.scss +1 -1
- data/app/controllers/phcscriptcdn/application_controller.rb +1 -1
- data/app/controllers/phcscriptcdn/script/authors_controller.rb +0 -1
- data/app/controllers/phcscriptcdn/script/extensions_controller.rb +0 -2
- data/app/controllers/phcscriptcdn/script/licences_controller.rb +1 -1
- data/app/controllers/phcscriptcdn/script/listings_controller.rb +1 -1
- data/app/jobs/phcscriptcdn/application_job.rb +1 -2
- data/app/models/phcscriptcdn/application_record.rb +1 -3
- data/app/models/phcscriptcdn/script.rb +1 -3
- data/app/models/phcscriptcdn/script/author.rb +6 -6
- data/app/models/phcscriptcdn/script/extension.rb +7 -7
- data/app/models/phcscriptcdn/script/licence.rb +4 -4
- data/app/models/phcscriptcdn/script/listing.rb +12 -12
- data/app/models/phcscriptcdn/script/url.rb +10 -10
- data/app/models/phcscriptcdn/script/version.rb +8 -8
- data/app/views/layouts/phcscriptcdn/components/backend/footer/_footer.html.erb +1 -1
- data/config/routes.rb +10 -11
- data/lib/phcscriptcdn/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04b8e0b91772d5a32d686ae78e213369a6f7a4ba
|
4
|
+
data.tar.gz: e96444eda70a55ba6bb7782bced0ea3da1b1dadf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ea276833acf1bba6dce872e901c0fddc7d645a3236858a76018ce458b3cbf4c45174474536931c611c69dc2dada2a7f8de245785b3d0cc7db67361c629e689b
|
7
|
+
data.tar.gz: b98088e976ba93a9e98ee23ecd19a48274fd015b269bff5d3472275e85e206908ad5d50271d8c75da9c9cff3630bd598b5af019323e1af0b4ef974cd7a7597f8
|
@@ -1,2 +1,2 @@
|
|
1
1
|
//= link_directory ../javascripts/phcscriptcdn .js
|
2
|
-
//= link_directory ../stylesheets/phcscriptcdn .scss
|
2
|
+
//= link_directory ../stylesheets/phcscriptcdn .scss
|
@@ -1,2 +1,2 @@
|
|
1
1
|
// Load PHCAdmin3 Javascript
|
2
|
-
//= require phc_admins_main_three
|
2
|
+
//= require phc_admins_main_three
|
@@ -1,2 +1,2 @@
|
|
1
1
|
// Load PHCAdmin3 Styles
|
2
|
-
@import "phc_admins_style_three";
|
2
|
+
@import "phc_admins_style_three";
|
@@ -1,10 +1,10 @@
|
|
1
1
|
module Phcscriptcdn
|
2
|
-
|
2
|
+
class Script::Author < ApplicationRecord
|
3
3
|
|
4
|
-
|
4
|
+
# Relationships
|
5
5
|
|
6
|
-
|
7
|
-
|
6
|
+
# Listing (None Nested)
|
7
|
+
has_many :listings, class_name: 'Phcscriptcdn::Script::Listing'
|
8
8
|
|
9
|
-
|
10
|
-
end
|
9
|
+
end
|
10
|
+
end
|
@@ -1,11 +1,11 @@
|
|
1
1
|
module Phcscriptcdn
|
2
|
-
|
2
|
+
class Script::Extension < ApplicationRecord
|
3
3
|
|
4
|
-
|
4
|
+
# Relationships
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
# URLs & Extensions (None Nested)
|
7
|
+
has_many :listings, class_name: 'Phcscriptcdn::Script::Listing', :through => :urls
|
8
|
+
has_many :urls, class_name: 'Phcscriptcdn::Script::Url'
|
9
9
|
|
10
|
-
|
11
|
-
end
|
10
|
+
end
|
11
|
+
end
|
@@ -1,10 +1,10 @@
|
|
1
1
|
module Phcscriptcdn
|
2
2
|
class Script::Licence < ApplicationRecord
|
3
3
|
|
4
|
-
|
4
|
+
# Relationships
|
5
5
|
|
6
|
-
|
7
|
-
|
6
|
+
# Listing (None Nested)
|
7
|
+
has_many :listings, class_name: 'Phcscriptcdn::Script::Listing'
|
8
8
|
|
9
9
|
end
|
10
|
-
end
|
10
|
+
end
|
@@ -1,19 +1,19 @@
|
|
1
1
|
module Phcscriptcdn
|
2
|
-
|
2
|
+
class Script::Listing < ApplicationRecord
|
3
3
|
|
4
|
-
|
4
|
+
# Relationships
|
5
5
|
|
6
|
-
|
7
|
-
|
6
|
+
# Attach to URL (Nested)
|
7
|
+
has_many :urls, class_name: 'Phcscriptcdn::Script::Url'
|
8
8
|
|
9
|
-
|
10
|
-
|
9
|
+
# Attach to Author (None Nested)
|
10
|
+
belongs_to :author, class_name: 'Phcscriptcdn::Script::Author'
|
11
11
|
|
12
|
-
|
13
|
-
|
12
|
+
# Attach to Version (None Nested)
|
13
|
+
belongs_to :version, class_name: 'Phcscriptcdn::Script::Version'
|
14
14
|
|
15
|
-
|
16
|
-
|
15
|
+
# Attach to Licence (None Nested)
|
16
|
+
belongs_to :licence, class_name: 'Phcscriptcdn::Script::Licence'
|
17
17
|
|
18
|
-
|
19
|
-
end
|
18
|
+
end
|
19
|
+
end
|
@@ -1,16 +1,16 @@
|
|
1
1
|
module Phcscriptcdn
|
2
|
-
|
2
|
+
class Script::Url < ApplicationRecord
|
3
3
|
|
4
|
-
|
4
|
+
# Relationships
|
5
5
|
|
6
|
-
|
7
|
-
|
6
|
+
# Attach to Listings (Nested)
|
7
|
+
belongs_to :listing, class_name: 'Phcscriptcdn::Script::Listing'
|
8
8
|
|
9
|
-
|
10
|
-
|
9
|
+
# Attach to Version (None Nested)
|
10
|
+
belongs_to :version, class_name: 'Phcscriptcdn::Script::Version'
|
11
11
|
|
12
|
-
|
13
|
-
|
12
|
+
# Attach to Extension (None Nested)
|
13
|
+
belongs_to :extension, class_name: 'Phcscriptcdn::Script::Extension'
|
14
14
|
|
15
|
-
|
16
|
-
end
|
15
|
+
end
|
16
|
+
end
|
@@ -1,13 +1,13 @@
|
|
1
1
|
module Phcscriptcdn
|
2
|
-
|
2
|
+
class Script::Version < ApplicationRecord
|
3
3
|
|
4
|
-
|
4
|
+
# Relationships
|
5
5
|
|
6
|
-
|
7
|
-
|
6
|
+
# Attach to Listing (None Nested)
|
7
|
+
has_many :listings, class_name: 'Phcscriptcdn::Script::Listing'
|
8
8
|
|
9
|
-
|
10
|
-
|
9
|
+
# Attach to URL (None Nested)
|
10
|
+
has_many :urls, class_name: 'Phcscriptcdn::Script::Url'
|
11
11
|
|
12
|
-
|
13
|
-
end
|
12
|
+
end
|
13
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
1
|
<div class="pull-right hidden-xs">
|
2
|
-
<b>Version</b> 4.3.
|
2
|
+
<b>Version</b> 4.3.7 - MAR-14-<%= Date.today.year %>
|
3
3
|
</div>
|
4
4
|
<strong>© 2012-<%= Time.now.year %> <%= link_to "https://phcnetworks.net", target: "_blank", rel: "nofollow" do %>PHCNetworks<% end %></strong>
|
data/config/routes.rb
CHANGED
@@ -1,23 +1,22 @@
|
|
1
1
|
Phcscriptcdn::Engine.routes.draw do
|
2
2
|
|
3
|
-
#
|
3
|
+
# Frontend Routes
|
4
4
|
namespace :frontend do
|
5
|
-
|
6
|
-
resources :cdnpages
|
5
|
+
resources :listings
|
7
6
|
end
|
8
|
-
|
7
|
+
|
9
8
|
# Script CDN Listing System
|
10
9
|
namespace :script do
|
11
10
|
# Main Script Module
|
12
|
-
resources :listings, class_name: '
|
13
|
-
resources :urls, class_name: '
|
14
|
-
resources :authors, class_name: 'Phcscriptcdn::Script::Author'
|
11
|
+
resources :listings, class_name: 'Phcscriptcdnpro::Script::Listing' do
|
12
|
+
resources :urls, class_name: 'Phcscriptcdnpro::Script::Url'
|
15
13
|
end
|
16
|
-
resources :
|
17
|
-
resources :
|
18
|
-
resources :
|
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'
|
19
18
|
end
|
20
|
-
|
19
|
+
|
21
20
|
# Application API
|
22
21
|
namespace :api, :path => "", :constraints => {:subdomain => "api"} do
|
23
22
|
namespace :v1 do
|
data/lib/phcscriptcdn/version.rb
CHANGED