phcscriptcdnpro 1.7.5 → 1.7.7
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/scriptcdn/information.rb +7 -4
- data/app/models/phcscriptcdnpro/scriptcdn/main.rb +1 -0
- data/config/routes.rb +2 -4
- data/db/migrate/20160620233512_create_phcscriptcdnpro_scriptcdn_information.rb +23 -16
- 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: ae22e81dbf439b503f0869b0e7c43af66b51bcca
|
4
|
+
data.tar.gz: aa496a9ea26c125b367f11f28d11d8549cda8572
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a38726bcb699a4494cf4d66782d47179be269343482f1731b52824124daeb0725506c377c9a1ea15d77caf9d045929d42ce13aec4cb8e0b8e7ca818da341f6a
|
7
|
+
data.tar.gz: 001d9b52bc513ae0d54121234b3fc835e2e6aedd8c47f64dcf719b2dc36c23c483584a8f0f94b70fedc8a0de8f485b14630d17b80efdb71ae98bddbc9ad32946
|
@@ -1,6 +1,9 @@
|
|
1
1
|
module Phcscriptcdnpro
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
class Scriptcdn::Information < ActiveRecord::Base
|
3
|
+
|
4
|
+
# Relationships
|
5
|
+
belongs_to :version, class_name: 'Scriptcdn::Version'
|
6
|
+
belongs_to :main, class_name: 'Scriptcdn::Main'
|
7
|
+
|
8
|
+
end
|
6
9
|
end
|
data/config/routes.rb
CHANGED
@@ -1,8 +1,5 @@
|
|
1
1
|
Phcscriptcdnpro::Engine.routes.draw do
|
2
2
|
|
3
|
-
namespace :scriptcdn do
|
4
|
-
resources :information
|
5
|
-
end
|
6
3
|
# CDN Frontend
|
7
4
|
get 'frontend/cdnpages/list', :path => "script-cdn"
|
8
5
|
|
@@ -15,8 +12,9 @@ Phcscriptcdnpro::Engine.routes.draw do
|
|
15
12
|
resources :urls
|
16
13
|
end
|
17
14
|
|
18
|
-
# Script
|
15
|
+
# Script Information
|
19
16
|
resources :versions
|
17
|
+
resources :information
|
20
18
|
|
21
19
|
end
|
22
20
|
|
@@ -1,19 +1,26 @@
|
|
1
1
|
class CreatePhcscriptcdnproScriptcdnInformation < ActiveRecord::Migration
|
2
|
-
|
3
|
-
|
4
|
-
t.string :scripttitle
|
5
|
-
t.string :scriptdescription
|
6
|
-
t.string :scriptcategory
|
7
|
-
t.string :scriptwebsite
|
8
|
-
t.string :scripttwitter
|
9
|
-
t.string :scriptgithub
|
10
|
-
t.string :scriptinitialrelease
|
11
|
-
t.string :scriptlicence
|
12
|
-
t.string :scriptplatform
|
13
|
-
t.references :version, index: true, foreign_key: true
|
14
|
-
t.references :main, index: true, foreign_key: true
|
2
|
+
def change
|
3
|
+
create_table :phcscriptcdnpro_scriptcdn_information do |t|
|
15
4
|
|
16
|
-
|
17
|
-
|
18
|
-
|
5
|
+
t.string :scripttitle
|
6
|
+
t.text :scriptdescription
|
7
|
+
t.string :scriptcategory
|
8
|
+
t.string :scriptwebsite
|
9
|
+
t.string :scripttwitter
|
10
|
+
t.string :scriptgithub
|
11
|
+
t.string :scriptinitialrelease
|
12
|
+
t.string :scriptlicence
|
13
|
+
t.string :scriptplatform
|
14
|
+
|
15
|
+
t.references :version, index: true
|
16
|
+
t.references :main, index: true
|
17
|
+
|
18
|
+
t.string :user_id
|
19
|
+
t.string :membership_id
|
20
|
+
t.string :oganization_id
|
21
|
+
|
22
|
+
t.timestamps null: false
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
19
26
|
end
|