phcscriptcdnpro 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/phcscriptcdnpro/script/author.rb +1 -1
- data/app/models/phcscriptcdnpro/script/extension.rb +1 -1
- data/app/models/phcscriptcdnpro/script/listing.rb +3 -3
- data/app/models/phcscriptcdnpro/script/url.rb +3 -3
- data/app/models/phcscriptcdnpro/script/version.rb +2 -2
- data/config/routes.rb +6 -6
- data/lib/phcscriptcdnpro/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: 3065ef0ac835706b1343348cc5f0c50e1d9eb21c
|
4
|
+
data.tar.gz: fc94845978d76b2cefe7632c7e7744890c2829aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 586d2ffc50a4bf4ee0a20f39d198e3cdf25070d88d96560caad00c15bddaf871ce0ee4e72089fc5d875a9f3bd0b66d5386a2e83464da80de2cf1319798111b96
|
7
|
+
data.tar.gz: 71588e635553f2e65c1c0494a57fdce0bbd46aad01c94431af2b87129eb42d5cafa48b8be3a16cfcfb961d2553672de1dc4a1d13eb168a2992a17960c4b81486
|
@@ -5,13 +5,13 @@ module Phcscriptcdnpro
|
|
5
5
|
|
6
6
|
#has_many :informations, class_name: 'Phcscriptcdn::Script::Version'
|
7
7
|
# URL Nested
|
8
|
-
has_many :urls, class_name: '
|
8
|
+
has_many :urls, class_name: 'Phcscriptcdnpro::Script::Url'
|
9
9
|
|
10
10
|
# Author Nested
|
11
|
-
has_many :authors, class_name: '
|
11
|
+
has_many :authors, class_name: 'Phcscriptcdnpro::Script::Author'
|
12
12
|
|
13
13
|
# Attach to Version
|
14
|
-
belongs_to :version, class_name: '
|
14
|
+
belongs_to :version, class_name: 'Phcscriptcdnpro::Script::Version'
|
15
15
|
|
16
16
|
end
|
17
17
|
end
|
@@ -4,13 +4,13 @@ module Phcscriptcdnpro
|
|
4
4
|
# Relationships
|
5
5
|
|
6
6
|
# Attach to Listings
|
7
|
-
belongs_to :listing, class_name: '
|
7
|
+
belongs_to :listing, class_name: 'Phcscriptcdnpro::Script::Listing'
|
8
8
|
|
9
9
|
# Attach to Version
|
10
|
-
belongs_to :version, class_name: '
|
10
|
+
belongs_to :version, class_name: 'Phcscriptcdnpro::Script::Version'
|
11
11
|
|
12
12
|
# Attach to Extensions
|
13
|
-
belongs_to :extension, class_name: '
|
13
|
+
belongs_to :extension, class_name: 'Phcscriptcdnpro::Script::Extension'
|
14
14
|
|
15
15
|
end
|
16
16
|
end
|
@@ -4,10 +4,10 @@ module Phcscriptcdnpro
|
|
4
4
|
#Relationships
|
5
5
|
|
6
6
|
# URL Un-Nested
|
7
|
-
has_many :urls, class_name: '
|
7
|
+
has_many :urls, class_name: 'Phcscriptcdnpro::Script::Url'
|
8
8
|
|
9
9
|
# Listing Un-Nested
|
10
|
-
has_many :listings, class_name: '
|
10
|
+
has_many :listings, class_name: 'Phcscriptcdnpro::Script::Listing'
|
11
11
|
|
12
12
|
end
|
13
13
|
end
|
data/config/routes.rb
CHANGED
@@ -8,13 +8,13 @@ Phcscriptcdnpro::Engine.routes.draw do
|
|
8
8
|
# Script CDN Listing System
|
9
9
|
namespace :script do
|
10
10
|
# Main Script Module
|
11
|
-
resources :listings, class_name: '
|
12
|
-
resources :urls, class_name: '
|
13
|
-
resources :authors, class_name: '
|
11
|
+
resources :listings, class_name: 'Phcscriptcdnpro::Script::Listing' do
|
12
|
+
resources :urls, class_name: 'Phcscriptcdnpro::Script::Url'
|
13
|
+
resources :authors, class_name: 'Phcscriptcdnpro::Script::Author'
|
14
14
|
end
|
15
|
-
resources :extensions, class_name: '
|
16
|
-
resources :versions, class_name: '
|
17
|
-
resources :licences, class_name: '
|
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
18
|
end
|
19
19
|
|
20
20
|
# Application API
|