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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae22e81dbf439b503f0869b0e7c43af66b51bcca
4
- data.tar.gz: aa496a9ea26c125b367f11f28d11d8549cda8572
3
+ metadata.gz: 43954ec2b539fb090fd9f853c3cd279dc272f729
4
+ data.tar.gz: 9178e33342cc9b20f080242311585f0725f542b7
5
5
  SHA512:
6
- metadata.gz: 4a38726bcb699a4494cf4d66782d47179be269343482f1731b52824124daeb0725506c377c9a1ea15d77caf9d045929d42ce13aec4cb8e0b8e7ca818da341f6a
7
- data.tar.gz: 001d9b52bc513ae0d54121234b3fc835e2e6aedd8c47f64dcf719b2dc36c23c483584a8f0f94b70fedc8a0de8f485b14630d17b80efdb71ae98bddbc9ad32946
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
- 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
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
@@ -14,7 +14,7 @@ Phcscriptcdnpro::Engine.routes.draw do
14
14
 
15
15
  # Script Information
16
16
  resources :versions
17
- resources :information
17
+ resources :informations
18
18
 
19
19
  end
20
20
 
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdnpro
2
- VERSION = "1.7.7"
2
+ VERSION = "1.7.8"
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.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,2 +0,0 @@
1
- // Place all the behaviors and hooks related to the matching controller here.
2
- // All this logic will automatically be available in application.js.
@@ -1,3 +0,0 @@
1
- // Place all the styles related to the scriptcdn::information controller here.
2
- // They will automatically be included in application.css.
3
- // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -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
- }
@@ -1,4 +0,0 @@
1
- module Phcscriptcdnpro
2
- module Scriptcdn::InformationHelper
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module Phcscriptcdnpro
2
- module Scriptcdn::MainsHelper
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module Phcscriptcdnpro
2
- module Scriptcdn::UrlsHelper
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module Phcscriptcdnpro
2
- module Scriptcdn::VersionsHelper
3
- end
4
- end