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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e0c4dab28046192063d473f9fbe90609ef7856d
4
- data.tar.gz: b1c3851cf512bad705b3b6320bd55e23981833d2
3
+ metadata.gz: b09a80aa2f2375e1e4bb1f2f55e9f87f36c6dbab
4
+ data.tar.gz: 6ad412d50bdf7c234aa145304bcdf14fb0a06b6b
5
5
  SHA512:
6
- metadata.gz: 66665f66196de99c4b442310000156f642b62bcb550e8f65266055fadb6153c6e12f967ba0f3335653f744dc928f56d8df07aea9f41b72b8d29465d001628e64
7
- data.tar.gz: 63c849f86ddcbd475dbc43bc3fe78d7d3ec72fbbef09f5679a662b7739c025113eb35d9a72f4a6fa1a21b3a2ebe29faea4c139552955bb9a49e22f03b461b9d1
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
- if current_user
23
- render 'show'
24
- else
25
- render 'show_scriptlisting'
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,7 +2,7 @@ module Phcscriptcdnpro
2
2
  class Scriptcdn::Scripturl < ActiveRecord::Base
3
3
 
4
4
  # Relationships
5
- belongs_to :scriptversion
5
+ belongs_to :scriptversion, class_name: 'Script::Version'
6
6
 
7
7
  # Validation for Form Fields
8
8
  validates :scrpturlphc,
@@ -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,
@@ -4,6 +4,7 @@ class CreatePhcscriptcdnproScriptcdnScripts < ActiveRecord::Migration
4
4
 
5
5
  t.string :scrptname
6
6
  t.text :scrptdescription
7
+ t.references :scriptversion, index: true
7
8
 
8
9
  t.timestamps null: false
9
10
 
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdnpro
2
- VERSION = "1.2.2"
2
+ VERSION = "1.3.0"
3
3
  end
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.2.2
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-05 00:00:00.000000000 Z
11
+ date: 2016-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails