phcscriptcdnpro 1.2.2 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/phcscriptcdnpro/scriptcdn/scripts_controller.rb +8 -10
- data/app/models/phcscriptcdnpro/scriptcdn/script.rb +2 -2
- data/app/models/phcscriptcdnpro/scriptcdn/scripturl.rb +1 -1
- data/app/models/phcscriptcdnpro/scriptcdn/scriptversion.rb +2 -2
- data/db/migrate/20160222025658_create_phcscriptcdnpro_scriptcdn_scripts.rb +1 -0
- data/lib/phcscriptcdnpro/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b09a80aa2f2375e1e4bb1f2f55e9f87f36c6dbab
|
4
|
+
data.tar.gz: 6ad412d50bdf7c234aa145304bcdf14fb0a06b6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28ef1f7b677a0fb2e50f6ab3a6904de86919e6634a91dbed02b824c700ce24b06c94eb18fb2929cdef9f753c9c56e381baaac265ecbf29f38c9e2dde026e2ea3
|
7
|
+
data.tar.gz: 612665408bca7d94166aa0d98deab68976a1939e3005dc95bf7c06d4d9196325cf233e21da6d674e604cde15950c37062e8dab6adf6db4abcd4c498fd9aa56ff
|
@@ -10,20 +10,18 @@ module Phcscriptcdnpro
|
|
10
10
|
# Script CDN Index
|
11
11
|
def index
|
12
12
|
@scriptcdn_scripts = Scriptcdn::Script.all
|
13
|
-
if current_user
|
14
|
-
render 'index'
|
15
|
-
else
|
16
|
-
render 'index_scriptlist'
|
17
|
-
end
|
18
13
|
end
|
19
14
|
|
15
|
+
# Script List (Frontend)
|
16
|
+
def list
|
17
|
+
end
|
18
|
+
|
20
19
|
# Detailed Script CDN Profile
|
21
20
|
def show
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
end
|
21
|
+
end
|
22
|
+
|
23
|
+
# Script Individual Listing (Frontend)
|
24
|
+
def listing
|
27
25
|
end
|
28
26
|
|
29
27
|
# New Script for CDN
|
@@ -2,8 +2,8 @@ module Phcscriptcdnpro
|
|
2
2
|
class Scriptcdn::Script < ActiveRecord::Base
|
3
3
|
|
4
4
|
# Relationships
|
5
|
-
has_many :scriptversions
|
6
|
-
has_many :scripturls
|
5
|
+
has_many :scriptversions, class_name: 'Script::Version'
|
6
|
+
has_many :scripturls, class_name: 'Script::Url'
|
7
7
|
|
8
8
|
# Validation for Form Fields
|
9
9
|
validates :scrptname,
|
@@ -2,8 +2,8 @@ module Phcscriptcdnpro
|
|
2
2
|
class Scriptcdn::Scriptversion < ActiveRecord::Base
|
3
3
|
|
4
4
|
# Relationships
|
5
|
-
belongs_to :script
|
6
|
-
has_many :scripturls
|
5
|
+
belongs_to :script, class_name: 'Script::Main'
|
6
|
+
has_many :scripturls, class_name: 'Script::Url'
|
7
7
|
|
8
8
|
# Validation for Form Fields
|
9
9
|
validates :scrptversionpakname,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcscriptcdnpro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BradPotts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|