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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c9e7f417b5a89d237bc7cd53d3d2ea89e45ae7d
4
- data.tar.gz: 692ff95fc7e12361f65c0519580d20261f4944a4
3
+ metadata.gz: ae22e81dbf439b503f0869b0e7c43af66b51bcca
4
+ data.tar.gz: aa496a9ea26c125b367f11f28d11d8549cda8572
5
5
  SHA512:
6
- metadata.gz: 51d9f7b467a560b537b47a7c25065dbc0360acabb2444c7262876f33cca7038b4c04d77cc34933079c70d259a7fac5030444cf1432760b2e50cc8306998e6017
7
- data.tar.gz: 4e22e619f6d784bd8339190899eeb477d30b67e1bb366091a82072c76746f2d0451ae317df94d375e69a277589ba58022d16f4a753188d228e8852bb790ac97e
6
+ metadata.gz: 4a38726bcb699a4494cf4d66782d47179be269343482f1731b52824124daeb0725506c377c9a1ea15d77caf9d045929d42ce13aec4cb8e0b8e7ca818da341f6a
7
+ data.tar.gz: 001d9b52bc513ae0d54121234b3fc835e2e6aedd8c47f64dcf719b2dc36c23c483584a8f0f94b70fedc8a0de8f485b14630d17b80efdb71ae98bddbc9ad32946
@@ -1,6 +1,9 @@
1
1
  module Phcscriptcdnpro
2
- class Scriptcdn::Information < ActiveRecord::Base
3
- belongs_to :version
4
- belongs_to :main
5
- end
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
@@ -3,6 +3,7 @@ module Phcscriptcdnpro
3
3
 
4
4
  # Relationships
5
5
  has_many :versions, class_name: 'Scriptcdn::Version'
6
+ has_many :informations, class_name: 'Scriptcdn::Information'
6
7
  has_many :urls, class_name: 'Scriptcdn::Url'
7
8
  has_many :authors, class_name: 'Scriptcdn::Author'
8
9
 
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 Versions
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
- def change
3
- create_table :phcscriptcdnpro_scriptcdn_information do |t|
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
- t.timestamps null: false
17
- end
18
- end
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
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdnpro
2
- VERSION = "1.7.5"
2
+ VERSION = "1.7.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcscriptcdnpro
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.5
4
+ version: 1.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts