phcscriptcdnpro 1.7.0 → 1.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/phcscriptcdnpro/scriptcdn/information.js +2 -0
- data/app/assets/stylesheets/phcscriptcdnpro/scriptcdn/information.scss +3 -0
- data/app/assets/stylesheets/scaffolds.scss +73 -0
- data/app/controllers/phcscriptcdnpro/scriptcdn/information_controller.rb +62 -0
- data/app/helpers/phcscriptcdnpro/scriptcdn/information_helper.rb +4 -0
- data/app/models/phcscriptcdnpro/scripcdn.rb +7 -0
- data/app/models/phcscriptcdnpro/scriptcdn/information.rb +6 -0
- data/app/views/phcscriptcdnpro/scriptcdn/information/_form.html.erb +45 -0
- data/app/views/phcscriptcdnpro/scriptcdn/information/edit.html.erb +43 -0
- data/app/views/phcscriptcdnpro/scriptcdn/information/index.html.erb +81 -0
- data/app/views/phcscriptcdnpro/scriptcdn/information/new.html.erb +43 -0
- data/app/views/phcscriptcdnpro/scriptcdn/information/show.html.erb +59 -0
- data/app/views/phcscriptcdnpro/scriptcdn/mains/_form.html.erb +0 -8
- data/app/views/phcscriptcdnpro/scriptcdn/mains/edit.html.erb +2 -2
- data/app/views/phcscriptcdnpro/scriptcdn/mains/index.html.erb +2 -2
- data/app/views/phcscriptcdnpro/scriptcdn/mains/new.html.erb +2 -2
- data/config/routes.rb +3 -0
- data/db/migrate/20160618201418_create_phcscriptcdnpro_scriptcdn_mains.rb +1 -3
- data/db/migrate/20160620233512_create_phcscriptcdnpro_scriptcdn_information.rb +19 -0
- data/lib/phcscriptcdnpro/version.rb +1 -1
- metadata +35 -3
- data/app/views/phcscriptcdnpro/scriptcdn/mains/show.html.erb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c9e7f417b5a89d237bc7cd53d3d2ea89e45ae7d
|
4
|
+
data.tar.gz: 692ff95fc7e12361f65c0519580d20261f4944a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51d9f7b467a560b537b47a7c25065dbc0360acabb2444c7262876f33cca7038b4c04d77cc34933079c70d259a7fac5030444cf1432760b2e50cc8306998e6017
|
7
|
+
data.tar.gz: 4e22e619f6d784bd8339190899eeb477d30b67e1bb366091a82072c76746f2d0451ae317df94d375e69a277589ba58022d16f4a753188d228e8852bb790ac97e
|
@@ -0,0 +1,73 @@
|
|
1
|
+
body {
|
2
|
+
background-color: #fff;
|
3
|
+
color: #333;
|
4
|
+
font-family: verdana, arial, helvetica, sans-serif;
|
5
|
+
font-size: 13px;
|
6
|
+
line-height: 18px;
|
7
|
+
}
|
8
|
+
|
9
|
+
p, ol, ul, td {
|
10
|
+
font-family: verdana, arial, helvetica, sans-serif;
|
11
|
+
font-size: 13px;
|
12
|
+
line-height: 18px;
|
13
|
+
}
|
14
|
+
|
15
|
+
pre {
|
16
|
+
background-color: #eee;
|
17
|
+
padding: 10px;
|
18
|
+
font-size: 11px;
|
19
|
+
}
|
20
|
+
|
21
|
+
a {
|
22
|
+
color: #000;
|
23
|
+
|
24
|
+
&:visited {
|
25
|
+
color: #666;
|
26
|
+
}
|
27
|
+
|
28
|
+
&:hover {
|
29
|
+
color: #fff;
|
30
|
+
background-color: #000;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
div {
|
35
|
+
&.field, &.actions {
|
36
|
+
margin-bottom: 10px;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
#notice {
|
41
|
+
color: green;
|
42
|
+
}
|
43
|
+
|
44
|
+
.field_with_errors {
|
45
|
+
padding: 2px;
|
46
|
+
background-color: red;
|
47
|
+
display: table;
|
48
|
+
}
|
49
|
+
|
50
|
+
#error_explanation {
|
51
|
+
width: 450px;
|
52
|
+
border: 2px solid red;
|
53
|
+
padding: 7px;
|
54
|
+
padding-bottom: 0;
|
55
|
+
margin-bottom: 20px;
|
56
|
+
background-color: #f0f0f0;
|
57
|
+
|
58
|
+
h2 {
|
59
|
+
text-align: left;
|
60
|
+
font-weight: bold;
|
61
|
+
padding: 5px 5px 5px 15px;
|
62
|
+
font-size: 12px;
|
63
|
+
margin: -7px;
|
64
|
+
margin-bottom: 0px;
|
65
|
+
background-color: #c00;
|
66
|
+
color: #fff;
|
67
|
+
}
|
68
|
+
|
69
|
+
ul li {
|
70
|
+
font-size: 12px;
|
71
|
+
list-style: square;
|
72
|
+
}
|
73
|
+
}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
require_dependency "phcscriptcdnpro/application_controller"
|
2
|
+
|
3
|
+
module Phcscriptcdnpro
|
4
|
+
class Scriptcdn::InformationController < ApplicationController
|
5
|
+
before_action :set_scriptcdn_information, only: [:show, :edit, :update, :destroy]
|
6
|
+
|
7
|
+
# GET /scriptcdn/information
|
8
|
+
def index
|
9
|
+
@scriptcdn_information = Scriptcdn::Information.all
|
10
|
+
end
|
11
|
+
|
12
|
+
# GET /scriptcdn/information/1
|
13
|
+
def show
|
14
|
+
end
|
15
|
+
|
16
|
+
# GET /scriptcdn/information/new
|
17
|
+
def new
|
18
|
+
@scriptcdn_information = Scriptcdn::Information.new
|
19
|
+
end
|
20
|
+
|
21
|
+
# GET /scriptcdn/information/1/edit
|
22
|
+
def edit
|
23
|
+
end
|
24
|
+
|
25
|
+
# POST /scriptcdn/information
|
26
|
+
def create
|
27
|
+
@scriptcdn_information = Scriptcdn::Information.new(scriptcdn_information_params)
|
28
|
+
|
29
|
+
if @scriptcdn_information.save
|
30
|
+
redirect_to @scriptcdn_information, notice: 'Information was successfully created.'
|
31
|
+
else
|
32
|
+
render :new
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
# PATCH/PUT /scriptcdn/information/1
|
37
|
+
def update
|
38
|
+
if @scriptcdn_information.update(scriptcdn_information_params)
|
39
|
+
redirect_to @scriptcdn_information, notice: 'Information was successfully updated.'
|
40
|
+
else
|
41
|
+
render :edit
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
# DELETE /scriptcdn/information/1
|
46
|
+
def destroy
|
47
|
+
@scriptcdn_information.destroy
|
48
|
+
redirect_to scriptcdn_information_index_url, notice: 'Information was successfully destroyed.'
|
49
|
+
end
|
50
|
+
|
51
|
+
private
|
52
|
+
# Use callbacks to share common setup or constraints between actions.
|
53
|
+
def set_scriptcdn_information
|
54
|
+
@scriptcdn_information = Scriptcdn::Information.find(params[:id])
|
55
|
+
end
|
56
|
+
|
57
|
+
# Only allow a trusted parameter "white list" through.
|
58
|
+
def scriptcdn_information_params
|
59
|
+
params.require(:scriptcdn_information).permit(:scripttitle, :scriptdescription, :scriptcategory, :scriptwebsite, :scripttwitter, :scriptgithub, :scriptinitialrelease, :scriptlicence, :scriptplatform, :version_id, :main_id)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
<%= form_for(@scriptcdn_information) do |f| %>
|
2
|
+
|
3
|
+
<%= render 'phcnotifi/validations', :object => @scriptcdn_information %>
|
4
|
+
|
5
|
+
<div class="form-group field_with_error">
|
6
|
+
<%= f.label :scripttitle %>
|
7
|
+
<%= f.text_field :scripttitle, placeholder: "Script Information Title", class: "form-control" %>
|
8
|
+
</div>
|
9
|
+
<div class="form-group field_with_error">
|
10
|
+
<%= f.label :scriptdescription %>
|
11
|
+
<%= f.text_field :scriptdescription, placeholder: "Script Information Description", class: "form-control" %>
|
12
|
+
</div>
|
13
|
+
<div class="form-group field_with_error">
|
14
|
+
<%= f.label :scriptcategory %>
|
15
|
+
<%= f.text_field :scriptcategory, placeholder: "Script Information Category", class: "form-control" %>
|
16
|
+
</div>
|
17
|
+
<div class="form-group field_with_error">
|
18
|
+
<%= f.label :scriptwebsite %>
|
19
|
+
<%= f.text_field :scriptwebsite, placeholder: "Script Information Website", class: "form-control" %>
|
20
|
+
</div>
|
21
|
+
<div class="form-group field_with_error">
|
22
|
+
<%= f.label :scripttwitter %>
|
23
|
+
<%= f.text_field :scripttwitter, placeholder: "Script Information Twitter Address", class: "form-control" %>
|
24
|
+
</div>
|
25
|
+
<div class="form-group field_with_error">
|
26
|
+
<%= f.label :scriptgithub %>
|
27
|
+
<%= f.text_field :scriptgithub, placeholder: "Script Information Github Address", class: "form-control" %>
|
28
|
+
</div>
|
29
|
+
<div class="form-group field_with_error">
|
30
|
+
<%= f.label :scriptinitialrelease %>
|
31
|
+
<%= f.text_field :scriptinitialrelease, placeholder: "Script Information Initial Release", class: "form-control" %>
|
32
|
+
</div>
|
33
|
+
<div class="form-group field_with_error">
|
34
|
+
<%= f.label :scriptlicence %>
|
35
|
+
<%= f.text_field :scriptlicence, placeholder: "Script Information Licence", class: "form-control" %>
|
36
|
+
</div>
|
37
|
+
<div class="form-group field_with_error">
|
38
|
+
<%= f.label :scriptplatform %>
|
39
|
+
<%= f.text_field :scriptplatform, placeholder: "Script Information Platform", class: "form-control" %>
|
40
|
+
</div>
|
41
|
+
<div class="form-group field_with_error">
|
42
|
+
<%= f.submit class: "btn blue-hoki" %>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<% end %>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Script Information" %>
|
3
|
+
<% phc_title_tagline "Update Script Information" %>
|
4
|
+
|
5
|
+
<!-- Bread Crumb -->
|
6
|
+
<div class="page-bar">
|
7
|
+
|
8
|
+
<ul class="page-breadcrumb">
|
9
|
+
<li><%= link_to "Scripts Main", phcscriptcdnpro.scriptcdn_mains_path %><i class="fa fa-circle"></i></li>
|
10
|
+
<li><%= link_to "Script Information Index", phcscriptcdnpro.scriptcdn_informations_path %><i class="fa fa-circle"></i></li>
|
11
|
+
<li class="active"><%= yield(:phc_title_tagline) %></li>
|
12
|
+
</ul>
|
13
|
+
|
14
|
+
</div>
|
15
|
+
|
16
|
+
<!-- Page Title -->
|
17
|
+
<h3 class="page-title">
|
18
|
+
<%= yield(:phc_title) %> </br>
|
19
|
+
<small><%= yield(:phc_title_tagline) %></small>
|
20
|
+
</h3>
|
21
|
+
|
22
|
+
<!-- Main Content -->
|
23
|
+
<div class="row">
|
24
|
+
<div class="col-lg-12">
|
25
|
+
|
26
|
+
<div class="portlet light">
|
27
|
+
|
28
|
+
<div class="portlet-title">
|
29
|
+
<div class="caption">
|
30
|
+
<span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
|
31
|
+
</div>
|
32
|
+
<div class="actions">
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div class="portlet-body">
|
37
|
+
<%= render 'form' %>
|
38
|
+
</div>
|
39
|
+
|
40
|
+
</div>
|
41
|
+
|
42
|
+
</div>
|
43
|
+
</div>
|
@@ -0,0 +1,81 @@
|
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Script CDN Listing" %>
|
3
|
+
<% phc_title_tagline "Script CDN Index" %>
|
4
|
+
|
5
|
+
<!-- Bread Crumb -->
|
6
|
+
<div class="page-bar">
|
7
|
+
|
8
|
+
<ul class="page-breadcrumb">
|
9
|
+
<li><%= link_to "Script Listing", phcscriptcdnpro.scriptcdn_mains_path %><i class="fa fa-circle"></i></li>
|
10
|
+
<li class="active"><%= yield(:phc_title_tagline) %></li>
|
11
|
+
</ul>
|
12
|
+
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<!-- Page Title -->
|
16
|
+
<h3 class="page-title">
|
17
|
+
<%= yield(:phc_title) %> </br>
|
18
|
+
<small><%= yield(:phc_title_tagline) %></small>
|
19
|
+
</h3>
|
20
|
+
|
21
|
+
<!-- Main Content -->
|
22
|
+
<div class="row">
|
23
|
+
<div class="col-lg-12">
|
24
|
+
<div class="portlet light">
|
25
|
+
|
26
|
+
<div class="portlet-title">
|
27
|
+
<div class="caption">
|
28
|
+
<span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
|
29
|
+
</div>
|
30
|
+
<div class="actions">
|
31
|
+
<%= link_to phcscriptcdnpro.new_scriptcdn_main_path, class: "btn blue-chambray" do %>
|
32
|
+
<i class="fa fa-plus"></i> Add a New Script for CDN
|
33
|
+
<% end %>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
|
37
|
+
<div class="portlet-body">
|
38
|
+
<div class="table-responsive">
|
39
|
+
|
40
|
+
<table class="table table-striped table-bordered table-hover table-header-fixed">
|
41
|
+
<thead>
|
42
|
+
<tr>
|
43
|
+
<th>Title</th>
|
44
|
+
<th>Description</th>
|
45
|
+
<th>Category</th>
|
46
|
+
<th>Website</th>
|
47
|
+
<th>Twitter</th>
|
48
|
+
<th>Github</th>
|
49
|
+
<th>Release Date</th>
|
50
|
+
<th>Licence</th>
|
51
|
+
<th>Platform</th>
|
52
|
+
<th></th>
|
53
|
+
</tr>
|
54
|
+
</thead>
|
55
|
+
|
56
|
+
<tbody>
|
57
|
+
<% @scriptcdn_information.each do |scriptcdn_information| %>
|
58
|
+
<tr>
|
59
|
+
<td><%= link_to scriptcdn_information.scripttitle, edit_scriptcdn_information_path(scriptcdn_information) %></td>
|
60
|
+
<td><%= link_to scriptcdn_information.scriptdescription, edit_scriptcdn_information_path(scriptcdn_information) %></td>
|
61
|
+
<td><%= link_to scriptcdn_information.scriptcategory, edit_scriptcdn_information_path(scriptcdn_information) %></td>
|
62
|
+
<td><%= link_to scriptcdn_information.scriptwebsite, edit_scriptcdn_information_path(scriptcdn_information) %></td>
|
63
|
+
<td><%= link_to scriptcdn_information.scripttwitter, edit_scriptcdn_information_path(scriptcdn_information) %></td>
|
64
|
+
<td><%= link_to scriptcdn_information.scriptgithub, edit_scriptcdn_information_path(scriptcdn_information) %></td>
|
65
|
+
<td><%= link_to scriptcdn_information.scriptinitialrelease, edit_scriptcdn_information_path(scriptcdn_information) %></td>
|
66
|
+
<td><%= link_to scriptcdn_information.scriptlicence, edit_scriptcdn_information_path(scriptcdn_information) %></td>
|
67
|
+
<td><%= link_to scriptcdn_information.scriptplatform, edit_scriptcdn_information_path(scriptcdn_information) %></td>
|
68
|
+
<td><%= link_to scriptcdn_information.version, edit_scriptcdn_information_path(scriptcdn_information) %></td>
|
69
|
+
<td><%= link_to scriptcdn_information.main, edit_scriptcdn_information_path(scriptcdn_information) %></td>
|
70
|
+
<td><%= link_to 'Destroy', scriptcdn_information, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
71
|
+
</tr>
|
72
|
+
<% end %>
|
73
|
+
</tbody>
|
74
|
+
</table>
|
75
|
+
|
76
|
+
</div>
|
77
|
+
</div>
|
78
|
+
|
79
|
+
</div>
|
80
|
+
</div>
|
81
|
+
</div>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Script Information" %>
|
3
|
+
<% phc_title_tagline "Add New Script Information" %>
|
4
|
+
|
5
|
+
<!-- Bread Crumb -->
|
6
|
+
<div class="page-bar">
|
7
|
+
|
8
|
+
<ul class="page-breadcrumb">
|
9
|
+
<li><%= link_to "Scripts Main", phcscriptcdnpro.scriptcdn_mains_path %><i class="fa fa-circle"></i></li>
|
10
|
+
<li><%= link_to "Scripts Main", phcscriptcdnpro.scriptcdn_informations_path %><i class="fa fa-circle"></i></li>
|
11
|
+
<li class="active"><%= yield(:phc_title_tagline) %></li>
|
12
|
+
</ul>
|
13
|
+
|
14
|
+
</div>
|
15
|
+
|
16
|
+
<!-- Page Title -->
|
17
|
+
<h3 class="page-title">
|
18
|
+
<%= yield(:phc_title) %> </br>
|
19
|
+
<small><%= yield(:phc_title_tagline) %></small>
|
20
|
+
</h3>
|
21
|
+
|
22
|
+
<!-- Main Content -->
|
23
|
+
<div class="row">
|
24
|
+
<div class="col-lg-12">
|
25
|
+
|
26
|
+
<div class="portlet light">
|
27
|
+
|
28
|
+
<div class="portlet-title">
|
29
|
+
<div class="caption">
|
30
|
+
<span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
|
31
|
+
</div>
|
32
|
+
<div class="actions">
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div class="portlet-body">
|
37
|
+
<%= render 'form' %>
|
38
|
+
</div>
|
39
|
+
|
40
|
+
</div>
|
41
|
+
|
42
|
+
</div>
|
43
|
+
</div>
|
@@ -0,0 +1,59 @@
|
|
1
|
+
<p id="notice"><%= notice %></p>
|
2
|
+
|
3
|
+
<p>
|
4
|
+
<strong>Scripttitle:</strong>
|
5
|
+
<%= @scriptcdn_information.scripttitle %>
|
6
|
+
</p>
|
7
|
+
|
8
|
+
<p>
|
9
|
+
<strong>Scriptdescription:</strong>
|
10
|
+
<%= @scriptcdn_information.scriptdescription %>
|
11
|
+
</p>
|
12
|
+
|
13
|
+
<p>
|
14
|
+
<strong>Scriptcategory:</strong>
|
15
|
+
<%= @scriptcdn_information.scriptcategory %>
|
16
|
+
</p>
|
17
|
+
|
18
|
+
<p>
|
19
|
+
<strong>Scriptwebsite:</strong>
|
20
|
+
<%= @scriptcdn_information.scriptwebsite %>
|
21
|
+
</p>
|
22
|
+
|
23
|
+
<p>
|
24
|
+
<strong>Scripttwitter:</strong>
|
25
|
+
<%= @scriptcdn_information.scripttwitter %>
|
26
|
+
</p>
|
27
|
+
|
28
|
+
<p>
|
29
|
+
<strong>Scriptgithub:</strong>
|
30
|
+
<%= @scriptcdn_information.scriptgithub %>
|
31
|
+
</p>
|
32
|
+
|
33
|
+
<p>
|
34
|
+
<strong>Scriptinitialrelease:</strong>
|
35
|
+
<%= @scriptcdn_information.scriptinitialrelease %>
|
36
|
+
</p>
|
37
|
+
|
38
|
+
<p>
|
39
|
+
<strong>Scriptlicence:</strong>
|
40
|
+
<%= @scriptcdn_information.scriptlicence %>
|
41
|
+
</p>
|
42
|
+
|
43
|
+
<p>
|
44
|
+
<strong>Scriptplatform:</strong>
|
45
|
+
<%= @scriptcdn_information.scriptplatform %>
|
46
|
+
</p>
|
47
|
+
|
48
|
+
<p>
|
49
|
+
<strong>Version:</strong>
|
50
|
+
<%= @scriptcdn_information.version %>
|
51
|
+
</p>
|
52
|
+
|
53
|
+
<p>
|
54
|
+
<strong>Main:</strong>
|
55
|
+
<%= @scriptcdn_information.main %>
|
56
|
+
</p>
|
57
|
+
|
58
|
+
<%= link_to 'Edit', edit_scriptcdn_information_path(@scriptcdn_information) %> |
|
59
|
+
<%= link_to 'Back', scriptcdn_information_index_path %>
|
@@ -2,14 +2,6 @@
|
|
2
2
|
|
3
3
|
<%= render 'phcnotifi/validations', :object => @scriptcdn_main %>
|
4
4
|
|
5
|
-
<div class="form-group field_with_error">
|
6
|
-
<%= f.label :scriptname, "Script Name" %>
|
7
|
-
<%= f.text_field :scriptname, placeholder: "Script Name", class: "form-control" %>
|
8
|
-
</div>
|
9
|
-
<div class="form-group field_with_error">
|
10
|
-
<%= f.label :scriptdescription, "Script Description" %>
|
11
|
-
<%= f.text_area :scriptdescription, placeholder: "Script Description", class: "form-control" %>
|
12
|
-
</div>
|
13
5
|
<div class="form-group field_with_error">
|
14
6
|
<%= f.submit class: "btn blue-hoki" %>
|
15
7
|
</div>
|
@@ -48,8 +48,8 @@
|
|
48
48
|
<tbody>
|
49
49
|
<% @scriptcdn_mains.each do |scriptcdn_main| %>
|
50
50
|
<tr>
|
51
|
-
<td><%= link_to scriptcdn_main.
|
52
|
-
<td><%= link_to scriptcdn_main.
|
51
|
+
<td><%= link_to scriptcdn_main.information_id, scriptcdn_main %></td>
|
52
|
+
<td><%= link_to scriptcdn_main.version_id, scriptcdn_main %></td>
|
53
53
|
</tr>
|
54
54
|
<% end %>
|
55
55
|
</tbody>
|
data/config/routes.rb
CHANGED
@@ -3,9 +3,7 @@ class CreatePhcscriptcdnproScriptcdnMains < ActiveRecord::Migration
|
|
3
3
|
|
4
4
|
create_table :phcscriptcdnpro_scriptcdn_mains do |t|
|
5
5
|
|
6
|
-
t.
|
7
|
-
t.text :scriptdescription
|
8
|
-
|
6
|
+
t.references :information, index: true
|
9
7
|
t.references :version, index: true
|
10
8
|
|
11
9
|
t.string :user_id
|
@@ -0,0 +1,19 @@
|
|
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
|
15
|
+
|
16
|
+
t.timestamps null: false
|
17
|
+
end
|
18
|
+
end
|
19
|
+
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.7.
|
4
|
+
version: 1.7.5
|
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-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -30,6 +30,26 @@ dependencies:
|
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 4.2.6
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: multi_json
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '1.11'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 1.11.2
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '1.11'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 1.11.2
|
33
53
|
- !ruby/object:Gem::Dependency
|
34
54
|
name: phcnotifi
|
35
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -394,20 +414,27 @@ files:
|
|
394
414
|
- README.md
|
395
415
|
- Rakefile
|
396
416
|
- app/assets/javascripts/phcscriptcdnpro/application.js
|
417
|
+
- app/assets/javascripts/phcscriptcdnpro/scriptcdn/information.js
|
397
418
|
- app/assets/stylesheets/phcscriptcdnpro/application.css.scss
|
398
419
|
- app/assets/stylesheets/phcscriptcdnpro/custom.scss
|
420
|
+
- app/assets/stylesheets/phcscriptcdnpro/scriptcdn/information.scss
|
421
|
+
- app/assets/stylesheets/scaffolds.scss
|
399
422
|
- app/controllers/phcscriptcdnpro/application_controller.rb
|
400
423
|
- app/controllers/phcscriptcdnpro/frontend/cdnpages_controller.rb
|
401
424
|
- app/controllers/phcscriptcdnpro/scriptcdn/authors_controller.rb
|
425
|
+
- app/controllers/phcscriptcdnpro/scriptcdn/information_controller.rb
|
402
426
|
- app/controllers/phcscriptcdnpro/scriptcdn/mains_controller.rb
|
403
427
|
- app/controllers/phcscriptcdnpro/scriptcdn/urls_controller.rb
|
404
428
|
- app/controllers/phcscriptcdnpro/scriptcdn/versions_controller.rb
|
405
429
|
- app/helpers/phcscriptcdnpro/application_helper.rb
|
430
|
+
- app/helpers/phcscriptcdnpro/scriptcdn/information_helper.rb
|
406
431
|
- app/helpers/phcscriptcdnpro/scriptcdn/mains_helper.rb
|
407
432
|
- app/helpers/phcscriptcdnpro/scriptcdn/urls_helper.rb
|
408
433
|
- app/helpers/phcscriptcdnpro/scriptcdn/versions_helper.rb
|
434
|
+
- app/models/phcscriptcdnpro/scripcdn.rb
|
409
435
|
- app/models/phcscriptcdnpro/scriptcdn.rb
|
410
436
|
- app/models/phcscriptcdnpro/scriptcdn/author.rb
|
437
|
+
- app/models/phcscriptcdnpro/scriptcdn/information.rb
|
411
438
|
- app/models/phcscriptcdnpro/scriptcdn/main.rb
|
412
439
|
- app/models/phcscriptcdnpro/scriptcdn/url.rb
|
413
440
|
- app/models/phcscriptcdnpro/scriptcdn/version.rb
|
@@ -420,11 +447,15 @@ files:
|
|
420
447
|
- app/views/phcscriptcdnpro/scriptcdn/authors/edit.html.erb
|
421
448
|
- app/views/phcscriptcdnpro/scriptcdn/authors/index.html.erb
|
422
449
|
- app/views/phcscriptcdnpro/scriptcdn/authors/new.html.erb
|
450
|
+
- app/views/phcscriptcdnpro/scriptcdn/information/_form.html.erb
|
451
|
+
- app/views/phcscriptcdnpro/scriptcdn/information/edit.html.erb
|
452
|
+
- app/views/phcscriptcdnpro/scriptcdn/information/index.html.erb
|
453
|
+
- app/views/phcscriptcdnpro/scriptcdn/information/new.html.erb
|
454
|
+
- app/views/phcscriptcdnpro/scriptcdn/information/show.html.erb
|
423
455
|
- app/views/phcscriptcdnpro/scriptcdn/mains/_form.html.erb
|
424
456
|
- app/views/phcscriptcdnpro/scriptcdn/mains/edit.html.erb
|
425
457
|
- app/views/phcscriptcdnpro/scriptcdn/mains/index.html.erb
|
426
458
|
- app/views/phcscriptcdnpro/scriptcdn/mains/new.html.erb
|
427
|
-
- app/views/phcscriptcdnpro/scriptcdn/mains/show.html.erb
|
428
459
|
- app/views/phcscriptcdnpro/scriptcdn/urls/_form.html.erb
|
429
460
|
- app/views/phcscriptcdnpro/scriptcdn/urls/_formpatch.html.erb
|
430
461
|
- app/views/phcscriptcdnpro/scriptcdn/urls/edit.html.erb
|
@@ -439,6 +470,7 @@ files:
|
|
439
470
|
- db/migrate/20160618200955_create_phcscriptcdnpro_scriptcdn_urls.rb
|
440
471
|
- db/migrate/20160618201418_create_phcscriptcdnpro_scriptcdn_mains.rb
|
441
472
|
- db/migrate/20160618201703_create_phcscriptcdnpro_scriptcdn_versions.rb
|
473
|
+
- db/migrate/20160620233512_create_phcscriptcdnpro_scriptcdn_information.rb
|
442
474
|
- lib/phcscriptcdnpro.rb
|
443
475
|
- lib/phcscriptcdnpro/engine.rb
|
444
476
|
- lib/phcscriptcdnpro/version.rb
|