phcscriptcdnpro 1.7.7 → 1.7.8
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/information_controller.rb +60 -58
- data/config/routes.rb +1 -1
- data/lib/phcscriptcdnpro/version.rb +1 -1
- metadata +1 -8
- data/app/assets/javascripts/phcscriptcdnpro/scriptcdn/information.js +0 -2
- data/app/assets/stylesheets/phcscriptcdnpro/scriptcdn/information.scss +0 -3
- data/app/assets/stylesheets/scaffolds.scss +0 -73
- data/app/helpers/phcscriptcdnpro/scriptcdn/information_helper.rb +0 -4
- data/app/helpers/phcscriptcdnpro/scriptcdn/mains_helper.rb +0 -4
- data/app/helpers/phcscriptcdnpro/scriptcdn/urls_helper.rb +0 -4
- data/app/helpers/phcscriptcdnpro/scriptcdn/versions_helper.rb +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43954ec2b539fb090fd9f853c3cd279dc272f729
|
4
|
+
data.tar.gz: 9178e33342cc9b20f080242311585f0725f542b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 886133e7f979135c289b8b2a2bd59e1cc818534e713b600eeeaded0a3f288762756744dce45ee9538f6db007c1fd5f688cfe68d7898360d90764eb87f63c2a02
|
7
|
+
data.tar.gz: 3e4f849dcc38b9e46b7b259e3124794d56bce9d40546b1dc725d662c555b093ee74eb1034590e3ee03306e318deb9d857ebc0b84fde63c8ee90925ebeff8f4df
|
@@ -1,62 +1,64 @@
|
|
1
1
|
require_dependency "phcscriptcdnpro/application_controller"
|
2
2
|
|
3
3
|
module Phcscriptcdnpro
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
4
|
+
class Scriptcdn::InformationController < ApplicationController
|
5
|
+
|
6
|
+
# Security & Action Filters
|
7
|
+
before_action :require_user
|
8
|
+
layout '/layouts/phcscriptcdnpro/application.html.erb'
|
9
|
+
before_action :set_scriptcdn_information, only: [:edit, :update, :destroy]
|
10
|
+
|
11
|
+
# Script Information Index
|
12
|
+
def index
|
13
|
+
@scriptcdn_information = Scriptcdn::Information.all
|
14
|
+
end
|
15
|
+
|
16
|
+
# New Script Information
|
17
|
+
def new
|
18
|
+
@scriptcdn_information = Scriptcdn::Information.new
|
19
|
+
end
|
20
|
+
|
21
|
+
# Edit Script Information
|
22
|
+
def edit
|
23
|
+
end
|
24
|
+
|
25
|
+
# POST Script Information
|
26
|
+
def create
|
27
|
+
@scriptcdn_information = Scriptcdn::Information.new(scriptcdn_information_params)
|
28
|
+
|
29
|
+
if @scriptcdn_information.save
|
30
|
+
redirect_to scriptcdn_information_index_url, notice: 'Information was successfully created.'
|
31
|
+
else
|
32
|
+
render :new
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
# PATCH/PUT Script Information
|
37
|
+
def update
|
38
|
+
if @scriptcdn_information.update(scriptcdn_information_params)
|
39
|
+
redirect_to scriptcdn_information_index_url, notice: 'Information was successfully updated.'
|
40
|
+
else
|
41
|
+
render :edit
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
# DELETE Script Information
|
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
|
+
|
53
|
+
# Common Callbacks
|
54
|
+
def set_scriptcdn_information
|
55
|
+
@scriptcdn_information = Scriptcdn::Information.find(params[:id])
|
56
|
+
end
|
57
|
+
|
58
|
+
# Whitelist
|
59
|
+
def scriptcdn_information_params
|
60
|
+
params.require(:scriptcdn_information).permit(:scripttitle, :scriptdescription, :scriptcategory, :scriptwebsite, :scripttwitter, :scriptgithub, :scriptinitialrelease, :scriptlicence, :scriptplatform, :version_id, :main_id)
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
62
64
|
end
|
data/config/routes.rb
CHANGED
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.
|
4
|
+
version: 1.7.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BradPotts
|
@@ -414,11 +414,8 @@ files:
|
|
414
414
|
- README.md
|
415
415
|
- Rakefile
|
416
416
|
- app/assets/javascripts/phcscriptcdnpro/application.js
|
417
|
-
- app/assets/javascripts/phcscriptcdnpro/scriptcdn/information.js
|
418
417
|
- app/assets/stylesheets/phcscriptcdnpro/application.css.scss
|
419
418
|
- app/assets/stylesheets/phcscriptcdnpro/custom.scss
|
420
|
-
- app/assets/stylesheets/phcscriptcdnpro/scriptcdn/information.scss
|
421
|
-
- app/assets/stylesheets/scaffolds.scss
|
422
419
|
- app/controllers/phcscriptcdnpro/application_controller.rb
|
423
420
|
- app/controllers/phcscriptcdnpro/frontend/cdnpages_controller.rb
|
424
421
|
- app/controllers/phcscriptcdnpro/scriptcdn/authors_controller.rb
|
@@ -427,10 +424,6 @@ files:
|
|
427
424
|
- app/controllers/phcscriptcdnpro/scriptcdn/urls_controller.rb
|
428
425
|
- app/controllers/phcscriptcdnpro/scriptcdn/versions_controller.rb
|
429
426
|
- app/helpers/phcscriptcdnpro/application_helper.rb
|
430
|
-
- app/helpers/phcscriptcdnpro/scriptcdn/information_helper.rb
|
431
|
-
- app/helpers/phcscriptcdnpro/scriptcdn/mains_helper.rb
|
432
|
-
- app/helpers/phcscriptcdnpro/scriptcdn/urls_helper.rb
|
433
|
-
- app/helpers/phcscriptcdnpro/scriptcdn/versions_helper.rb
|
434
427
|
- app/models/phcscriptcdnpro/scripcdn.rb
|
435
428
|
- app/models/phcscriptcdnpro/scriptcdn.rb
|
436
429
|
- app/models/phcscriptcdnpro/scriptcdn/author.rb
|
@@ -1,73 +0,0 @@
|
|
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
|
-
}
|