phcscriptcdn 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +26 -0
- data/app/assets/javascripts/phcscriptcdn/application.js +13 -0
- data/app/assets/javascripts/phcscriptcdn/scriptcdn/scripts.js +2 -0
- data/app/assets/javascripts/phcscriptcdn/scriptcdn/scripturls.js +2 -0
- data/app/assets/javascripts/phcscriptcdn/scriptcdn/scriptversions.js +2 -0
- data/app/assets/stylesheets/phcscriptcdn/application.css +15 -0
- data/app/assets/stylesheets/phcscriptcdn/scriptcdn/scripts.css +4 -0
- data/app/assets/stylesheets/phcscriptcdn/scriptcdn/scripturls.css +4 -0
- data/app/assets/stylesheets/phcscriptcdn/scriptcdn/scriptversions.css +4 -0
- data/app/assets/stylesheets/scaffold.css +56 -0
- data/app/controllers/phcscriptcdn/application_controller.rb +4 -0
- data/app/controllers/phcscriptcdn/scriptcdn/scripts_controller.rb +67 -0
- data/app/controllers/phcscriptcdn/scriptcdn/scripturls_controller.rb +88 -0
- data/app/controllers/phcscriptcdn/scriptcdn/scriptversions_controller.rb +63 -0
- data/app/helpers/phcscriptcdn/application_helper.rb +4 -0
- data/app/helpers/phcscriptcdn/scriptcdn/scripts_helper.rb +4 -0
- data/app/helpers/phcscriptcdn/scriptcdn/scripturls_helper.rb +4 -0
- data/app/helpers/phcscriptcdn/scriptcdn/scriptversions_helper.rb +4 -0
- data/app/models/phcscriptcdn/scriptcdn.rb +7 -0
- data/app/models/phcscriptcdn/scriptcdn/script.rb +6 -0
- data/app/models/phcscriptcdn/scriptcdn/scripturl.rb +6 -0
- data/app/models/phcscriptcdn/scriptcdn/scriptversion.rb +6 -0
- data/app/views/layouts/phcscriptcdn/application.html.erb +17 -0
- data/app/views/phcscriptcdn/scriptcdn/scripts/_form.html.erb +31 -0
- data/app/views/phcscriptcdn/scriptcdn/scripts/edit.html.erb +10 -0
- data/app/views/phcscriptcdn/scriptcdn/scripts/index.html.erb +36 -0
- data/app/views/phcscriptcdn/scriptcdn/scripts/new.html.erb +10 -0
- data/app/views/phcscriptcdn/scriptcdn/scripts/show.html.erb +19 -0
- data/app/views/phcscriptcdn/scriptcdn/scripturls/_form.html.erb +35 -0
- data/app/views/phcscriptcdn/scriptcdn/scripturls/edit.html.erb +10 -0
- data/app/views/phcscriptcdn/scriptcdn/scripturls/index.html.erb +42 -0
- data/app/views/phcscriptcdn/scriptcdn/scripturls/new.html.erb +10 -0
- data/app/views/phcscriptcdn/scriptcdn/scripturls/show.html.erb +21 -0
- data/app/views/phcscriptcdn/scriptcdn/scriptversions/_form.html.erb +24 -0
- data/app/views/phcscriptcdn/scriptcdn/scriptversions/edit.html.erb +10 -0
- data/app/views/phcscriptcdn/scriptcdn/scriptversions/index.html.erb +35 -0
- data/app/views/phcscriptcdn/scriptcdn/scriptversions/new.html.erb +10 -0
- data/config/routes.rb +11 -0
- data/db/migrate/20160222025658_create_phcscriptcdn_scriptcdn_scripts.rb +11 -0
- data/db/migrate/20160222030223_create_phcscriptcdn_scriptcdn_scriptversions.rb +9 -0
- data/db/migrate/20160222030446_create_phcscriptcdn_scriptcdn_scripturls.rb +13 -0
- data/lib/phcscriptcdn.rb +4 -0
- data/lib/phcscriptcdn/engine.rb +17 -0
- data/lib/phcscriptcdn/version.rb +3 -0
- data/lib/tasks/phcscriptcdn_tasks.rake +4 -0
- metadata +310 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a051c3185db7d8e6c610c3e35c7536fd30a5d2d0
|
4
|
+
data.tar.gz: 2aa4e074dad97feb836100377a51ba1faf5a7145
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d73c8759d1d68ae32c3982d1583c1b2d835c6e7df58d24e9f414b3df0295bef7df7c0ad8353f20d9820e682b0e1c63d53209e05d33faa5ba5619b6c2302b80c6
|
7
|
+
data.tar.gz: 3cc095bac1ed19ded4c16e5312de3d4e7a419225a2289f533c07cc839a6fb852f9defec066799666c09029e1058399878a248d904fc36adbdc22c4b062d61dde
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2016 Brad Potts
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
begin
|
2
|
+
require 'bundler/setup'
|
3
|
+
rescue LoadError
|
4
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
|
+
end
|
6
|
+
|
7
|
+
require 'rdoc/task'
|
8
|
+
|
9
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
10
|
+
rdoc.rdoc_dir = 'rdoc'
|
11
|
+
rdoc.title = 'Phcscriptcdn'
|
12
|
+
rdoc.options << '--line-numbers'
|
13
|
+
rdoc.rdoc_files.include('README.rdoc')
|
14
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
|
+
end
|
16
|
+
|
17
|
+
APP_RAKEFILE = File.expand_path("../spec/test_app/Rakefile", __FILE__)
|
18
|
+
load 'rails/tasks/engine.rake'
|
19
|
+
|
20
|
+
|
21
|
+
load 'rails/tasks/statistics.rake'
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
Bundler::GemHelper.install_tasks
|
26
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// compiled file.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require_tree .
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any styles
|
10
|
+
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
11
|
+
* file per style scope.
|
12
|
+
*
|
13
|
+
*= require_tree .
|
14
|
+
*= require_self
|
15
|
+
*/
|
@@ -0,0 +1,56 @@
|
|
1
|
+
body { background-color: #fff; color: #333; }
|
2
|
+
|
3
|
+
body, p, ol, ul, td {
|
4
|
+
font-family: verdana, arial, helvetica, sans-serif;
|
5
|
+
font-size: 13px;
|
6
|
+
line-height: 18px;
|
7
|
+
}
|
8
|
+
|
9
|
+
pre {
|
10
|
+
background-color: #eee;
|
11
|
+
padding: 10px;
|
12
|
+
font-size: 11px;
|
13
|
+
}
|
14
|
+
|
15
|
+
a { color: #000; }
|
16
|
+
a:visited { color: #666; }
|
17
|
+
a:hover { color: #fff; background-color:#000; }
|
18
|
+
|
19
|
+
div.field, div.actions {
|
20
|
+
margin-bottom: 10px;
|
21
|
+
}
|
22
|
+
|
23
|
+
#notice {
|
24
|
+
color: green;
|
25
|
+
}
|
26
|
+
|
27
|
+
.field_with_errors {
|
28
|
+
padding: 2px;
|
29
|
+
background-color: red;
|
30
|
+
display: table;
|
31
|
+
}
|
32
|
+
|
33
|
+
#error_explanation {
|
34
|
+
width: 450px;
|
35
|
+
border: 2px solid red;
|
36
|
+
padding: 7px;
|
37
|
+
padding-bottom: 0;
|
38
|
+
margin-bottom: 20px;
|
39
|
+
background-color: #f0f0f0;
|
40
|
+
}
|
41
|
+
|
42
|
+
#error_explanation h2 {
|
43
|
+
text-align: left;
|
44
|
+
font-weight: bold;
|
45
|
+
padding: 5px 5px 5px 15px;
|
46
|
+
font-size: 12px;
|
47
|
+
margin: -7px;
|
48
|
+
margin-bottom: 0px;
|
49
|
+
background-color: #c00;
|
50
|
+
color: #fff;
|
51
|
+
}
|
52
|
+
|
53
|
+
#error_explanation ul li {
|
54
|
+
font-size: 12px;
|
55
|
+
list-style: square;
|
56
|
+
}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
require_dependency "phcscriptcdn/application_controller"
|
2
|
+
|
3
|
+
module Phcscriptcdn
|
4
|
+
class Scriptcdn::ScriptsController < ApplicationController
|
5
|
+
|
6
|
+
# Filters and Security
|
7
|
+
layout "layouts/scriptcdn/scriptcdn_all"
|
8
|
+
before_action :set_scriptcdn_script, only: [:show, :edit, :update, :destroy]
|
9
|
+
|
10
|
+
# ScriptCDN Index
|
11
|
+
def index
|
12
|
+
@scriptcdn_scripts = Scriptcdn::Script.all
|
13
|
+
end
|
14
|
+
|
15
|
+
# Detailed Script CDN Profile
|
16
|
+
def show
|
17
|
+
end
|
18
|
+
|
19
|
+
# New Script for CDN
|
20
|
+
def new
|
21
|
+
@scriptcdn_script = Scriptcdn::Script.new
|
22
|
+
end
|
23
|
+
|
24
|
+
# Edit Script
|
25
|
+
def edit
|
26
|
+
end
|
27
|
+
|
28
|
+
# POST Script
|
29
|
+
def create
|
30
|
+
@scriptcdn_script = Scriptcdn::Script.new(scriptcdn_script_params)
|
31
|
+
|
32
|
+
if @scriptcdn_script.save
|
33
|
+
redirect_to scriptcdn_scripts_path, notice: 'Script was successfully created.'
|
34
|
+
else
|
35
|
+
render :new
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
# PATCH/PUT Script
|
40
|
+
def update
|
41
|
+
if @scriptcdn_script.update(scriptcdn_script_params)
|
42
|
+
redirect_to scriptcdn_scripts_path, notice: 'Script was successfully updated.'
|
43
|
+
else
|
44
|
+
render :edit
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# DELETE Script from CDN
|
49
|
+
def destroy
|
50
|
+
@scriptcdn_script.destroy
|
51
|
+
redirect_to scriptcdn_scripts_path, notice: 'Script was successfully destroyed.'
|
52
|
+
end
|
53
|
+
|
54
|
+
private
|
55
|
+
|
56
|
+
# Callbacks
|
57
|
+
def set_scriptcdn_script
|
58
|
+
@scriptcdn_script = Scriptcdn::Script.find(params[:id])
|
59
|
+
end
|
60
|
+
|
61
|
+
# Whitelist
|
62
|
+
def scriptcdn_script_params
|
63
|
+
params.require(:scriptcdn_script).permit(:scrptname, :scrptdescription, :scriptversion_id)
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,88 @@
|
|
1
|
+
require_dependency "phcscriptcdn/application_controller"
|
2
|
+
|
3
|
+
module Phcscriptcdn
|
4
|
+
class Scriptcdn::ScripturlsController < ApplicationController
|
5
|
+
# Filters and Security
|
6
|
+
layout "layouts/scriptcdn/scriptcdn_all"
|
7
|
+
before_action :set_scriptcdn_scripturl, only: [:show, :edit, :update, :destroy]
|
8
|
+
|
9
|
+
# Index for Scriptcdn_script URLs
|
10
|
+
def index
|
11
|
+
scriptcdn_script = Scriptcdn::Script.find(params[:script_id])
|
12
|
+
@scriptcdn_scripturls = scriptcdn_script.scripturls
|
13
|
+
end
|
14
|
+
|
15
|
+
# Scriptcdn_script URL Details Page
|
16
|
+
def show
|
17
|
+
scriptcdn_script = Scriptcdn::Script.find(params[:script_id])
|
18
|
+
@scriptcdn_scripturl = scriptcdn_script.scripturls.find(params[:id])
|
19
|
+
end
|
20
|
+
|
21
|
+
# New Scriptcdn_script URL
|
22
|
+
def new
|
23
|
+
scriptcdn_script = Scriptcdn::Script.find(params[:script_id])
|
24
|
+
@scriptcdn_scripturl = scriptcdn_script.scripturls.build
|
25
|
+
respond_to do |format|
|
26
|
+
format.html # new.html.erb
|
27
|
+
format.xml { render :xml => @scriptcdn_script }
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
# Edit Scriptcdn_script URL
|
32
|
+
def edit
|
33
|
+
scriptcdn_script = Scriptcdn::Script.find(params[:script_id])
|
34
|
+
@scriptcdn_scripturl = scriptcdn_script.scripturls.find(params[:id])
|
35
|
+
end
|
36
|
+
|
37
|
+
# POST Scriptcdn_script URL
|
38
|
+
def create
|
39
|
+
@scriptcdn_script = Scriptcdn::Script.find(params[:script_id])
|
40
|
+
@scriptcdn_scripturl = @scriptcdn_script.scripturls.create(scriptcdn_scripturl_params)
|
41
|
+
respond_to do |format|
|
42
|
+
if @scriptcdn_scripturl.save
|
43
|
+
format.html { redirect_to scriptcdn_script_scripturls_path, notice: 'Comment for Scriptcdn_script was Successfully Created.' }
|
44
|
+
format.json { render action: 'show', status: :created, location: @scriptcdn_scripturl }
|
45
|
+
else
|
46
|
+
format.html { render action: 'new' }
|
47
|
+
format.json { render json: @scriptcdn_scripturl.errors, status: :unprocessable_entity }
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
# PATCH/PUT Scriptcdn_script URL
|
53
|
+
def update
|
54
|
+
respond_to do |format|
|
55
|
+
if @scriptcdn_scripturl.update(scriptcdn_scripturl_params)
|
56
|
+
format.html { redirect_to scriptcdn_script_scripturls_path, notice: 'Comment for Scriptcdn_script was Successfully Updated.' }
|
57
|
+
format.json { head :no_content }
|
58
|
+
else
|
59
|
+
format.html { render action: 'edit' }
|
60
|
+
format.json { render json: @scriptcdn_scripturl.errors, status: :unprocessable_entity }
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# Delete Scriptcdn_script URL
|
66
|
+
def destroy
|
67
|
+
@scriptcdn_script = Scriptcdn_script.find(params[:script_id])
|
68
|
+
@scriptcdn_scripturl = @scriptcdn_script.scripturls.find(params[:id])
|
69
|
+
@scriptcdn_scripturl.destroy
|
70
|
+
respond_to do |format|
|
71
|
+
format.html { redirect_to scriptcdn_script_scripturls_path, notice: 'Comment for Scriptcdn_script was Successfully Deleted.' }
|
72
|
+
format.json { head :no_content }
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
private
|
77
|
+
|
78
|
+
# Callback
|
79
|
+
def set_scriptcdn_scripturl
|
80
|
+
@scriptcdn_scripturl = Scriptcdn::Script.find(params[:id])
|
81
|
+
end
|
82
|
+
|
83
|
+
# Whitelist
|
84
|
+
def scriptcdn_scripturl_params
|
85
|
+
params.require(:scriptcdn_scripturl).permit(:scrpturlname, :scrpturlphc, :scrpturltype, :scriptversion_id)
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
require_dependency "phcscriptcdn/application_controller"
|
2
|
+
|
3
|
+
module Phcscriptcdn
|
4
|
+
class Scriptcdn::ScriptversionsController < ApplicationController
|
5
|
+
|
6
|
+
# Filters and Security
|
7
|
+
layout "layouts/scriptcdn/scriptcdn_all"
|
8
|
+
before_action :set_scriptcdn_scriptversion, only: [:edit, :update, :destroy]
|
9
|
+
|
10
|
+
# Script Version Index
|
11
|
+
def index
|
12
|
+
@scriptcdn_scriptversions = Scriptcdn::Scriptversion.all
|
13
|
+
end
|
14
|
+
|
15
|
+
# New Script Version for CDN
|
16
|
+
def new
|
17
|
+
@scriptcdn_scriptversion = Scriptcdn::Scriptversion.new
|
18
|
+
end
|
19
|
+
|
20
|
+
# Edit Script Version
|
21
|
+
def edit
|
22
|
+
end
|
23
|
+
|
24
|
+
# POST Script Version
|
25
|
+
def create
|
26
|
+
@scriptcdn_scriptversion = Scriptcdn::Scriptversion.new(scriptcdn_scriptversion_params)
|
27
|
+
|
28
|
+
if @scriptcdn_scriptversion.save
|
29
|
+
redirect_to scriptcdn_scriptversions_path, notice: 'Scriptversion was successfully created.'
|
30
|
+
else
|
31
|
+
render :new
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# PATCH/PUT Script Version
|
36
|
+
def update
|
37
|
+
if @scriptcdn_scriptversion.update(scriptcdn_scriptversion_params)
|
38
|
+
redirect_to scriptcdn_scriptversions_path, notice: 'Scriptversion was successfully updated.'
|
39
|
+
else
|
40
|
+
render :edit
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
# DELETE Script Version
|
45
|
+
def destroy
|
46
|
+
@scriptcdn_scriptversion.destroy
|
47
|
+
redirect_to scriptcdn_scriptversions_path, notice: 'Scriptversion was successfully destroyed.'
|
48
|
+
end
|
49
|
+
|
50
|
+
private
|
51
|
+
|
52
|
+
# Callbacks
|
53
|
+
def set_scriptcdn_scriptversion
|
54
|
+
@scriptcdn_scriptversion = Scriptcdn::Scriptversion.find(params[:id])
|
55
|
+
end
|
56
|
+
|
57
|
+
# Whitelist
|
58
|
+
def scriptcdn_scriptversion_params
|
59
|
+
params.require(:scriptcdn_scriptversion).permit(:scrptversion)
|
60
|
+
end
|
61
|
+
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>PHCNetworks - Online Applications & Digital Services</title>
|
5
|
+
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
6
|
+
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
7
|
+
<%= csrf_meta_tags %>
|
8
|
+
</head>
|
9
|
+
<body class="backend">
|
10
|
+
<div class="wrapper wrapper-content">
|
11
|
+
<%= yield %>
|
12
|
+
</div>
|
13
|
+
<div class="footer">
|
14
|
+
<%= render 'layouts/template-backend/footer' %>
|
15
|
+
</div>
|
16
|
+
</body>
|
17
|
+
</html>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<%= form_for(@scriptcdn_script) do |f| %>
|
2
|
+
|
3
|
+
<% if @scriptcdn_script.errors.any? %>
|
4
|
+
<div id="error_explanation">
|
5
|
+
<h2><%= pluralize(@scriptcdn_script.errors.count, "error") %> prohibited this scriptcdn_script from being saved:</h2>
|
6
|
+
<ul>
|
7
|
+
<% @scriptcdn_script.errors.full_messages.each do |message| %>
|
8
|
+
<li><%= message %></li>
|
9
|
+
<% end %>
|
10
|
+
</ul>
|
11
|
+
</div>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<div class="form-group">
|
15
|
+
<label><%= f.label :scrptname, "Script Name" %></label>
|
16
|
+
<%= f.text_field :scrptname, class: "form-control" %>
|
17
|
+
</div>
|
18
|
+
<div class="form-group">
|
19
|
+
<label><%= f.label :scrptdescription, "Script Description" %></label>
|
20
|
+
<%= f.text_area :scrptdescription, class: "form-control" %>
|
21
|
+
</div>
|
22
|
+
<div class="form-group">
|
23
|
+
<label><%= f.label :scriptversion_id, "Script Version" %></label>
|
24
|
+
<%= collection_select(:scriptcdn_script, :scriptversion_id, Scriptcdn::Scriptversion.order('scrptversion'), :id, :scrptversion, {}, {class: "form-control form-control-sm"}) %>
|
25
|
+
</div>
|
26
|
+
|
27
|
+
<div class="actions">
|
28
|
+
<%= f.submit "Submit", class: "btn btn-primary btn-sm" %>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<% end %>
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<p id="notice"><%= notice %></p>
|
2
|
+
|
3
|
+
<!-- Main Content -->
|
4
|
+
<div class="wrapper wrapper-content">
|
5
|
+
<div class="panel panel-default">
|
6
|
+
<div class="panel-heading">
|
7
|
+
<i class="fa fa-code"></i> Script CDN List
|
8
|
+
</div>
|
9
|
+
<div class="panel-body">
|
10
|
+
<table class="table table-bordered table-striped table-hover">
|
11
|
+
|
12
|
+
<thead>
|
13
|
+
<tr>
|
14
|
+
<th>Script Name</th>
|
15
|
+
<th></th>
|
16
|
+
</tr>
|
17
|
+
</thead>
|
18
|
+
|
19
|
+
<tbody>
|
20
|
+
<% @scriptcdn_scripts.each do |scriptcdn_script| %>
|
21
|
+
<tr>
|
22
|
+
<td><%= scriptcdn_script.scrptname %></td>
|
23
|
+
<td><div class="btn-group" role="group" aria-label="Script CDN">
|
24
|
+
<%= link_to 'Show', scriptcdn_script, class: "btn btn-w-m btn-primary btn-xs btn-phc-custom" %>
|
25
|
+
<%= link_to 'Edit', edit_scriptcdn_script_path(scriptcdn_script), class: "btn btn-w-m btn-primary btn-xs btn-phc-custom" %>
|
26
|
+
<%= link_to 'Destroy', scriptcdn_script, class: "btn btn-w-m btn-danger btn-xs btn-phc-custom", method: :delete, data: { confirm: 'Are you sure?' } %>
|
27
|
+
</div></td>
|
28
|
+
</tr>
|
29
|
+
<% end %>
|
30
|
+
</tbody>
|
31
|
+
|
32
|
+
</table>
|
33
|
+
<%= link_to 'New Script', new_scriptcdn_script_path, class: "btn btn-w-m btn-primary btn-phc-custom" %>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
</div>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<p id="notice"><%= notice %></p>
|
2
|
+
|
3
|
+
<p>
|
4
|
+
<strong>Script Name:</strong>
|
5
|
+
<%= @scriptcdn_script.scrptname %>
|
6
|
+
</p>
|
7
|
+
|
8
|
+
<p>
|
9
|
+
<strong>Script Description:</strong>
|
10
|
+
<%= @scriptcdn_script.scrptdescription %>
|
11
|
+
</p>
|
12
|
+
|
13
|
+
<p>
|
14
|
+
<strong>Script Version:</strong>
|
15
|
+
<%= @scriptcdn_script.scriptversion_id %>
|
16
|
+
</p>
|
17
|
+
|
18
|
+
<%= link_to 'Edit', edit_scriptcdn_script_path(@scriptcdn_script) %> |
|
19
|
+
<%= link_to 'Back', scriptcdn_scripts_path %>
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<%= form_for([@scriptcdn_scripturl.script, @scriptcdn_scripturl], url: scriptcdn_script_scripturls_path) do |f| %>
|
2
|
+
|
3
|
+
<% if @scriptcdn_scripturl.errors.any? %>
|
4
|
+
<div id="error_explanation">
|
5
|
+
<h2><%= pluralize(@scriptcdn_scripturl.errors.count, "error") %> prohibited this scriptcdn_scripturl from being saved:</h2>
|
6
|
+
<ul>
|
7
|
+
<% @scriptcdn_scripturl.errors.full_messages.each do |message| %>
|
8
|
+
<li><%= message %></li>
|
9
|
+
<% end %>
|
10
|
+
</ul>
|
11
|
+
</div>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<div class="field">
|
15
|
+
<label><%= f.label :scrpturlname, "Script Name" %></label>
|
16
|
+
<%= f.text_field :scrpturlname, class: "form-control" %>
|
17
|
+
</div>
|
18
|
+
<div class="field">
|
19
|
+
<label><%= f.label :scrpturlphc, "Script URL (AWS)" %></label>
|
20
|
+
<%= f.text_field :scrpturlphc, class: "form-control" %>
|
21
|
+
</div>
|
22
|
+
<div class="field">
|
23
|
+
<label><%= f.label :scrpturltype, "Script Type" %></label>
|
24
|
+
<%= f.select :scrpturltype, [['CSS','css'],['JS','js'],['font','Font']], class: "form-control" %>
|
25
|
+
</div>
|
26
|
+
<div class="form-group">
|
27
|
+
<label><%= f.label :scriptversion_id, "Script Version" %></label>
|
28
|
+
<%= collection_select(:scriptcdn_scripturl, :scriptversion_id, Scriptcdn::Scriptversion.order('scrptversion'), :id, :scrptversion, {}, {class: "form-control form-control-sm"}) %>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div class="actions">
|
32
|
+
<%= f.submit "Submit", class: "btn btn-primary btn-sm"%>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<% end %>
|
@@ -0,0 +1,42 @@
|
|
1
|
+
<p id="notice"><%= notice %></p>
|
2
|
+
|
3
|
+
<!-- Main Content -->
|
4
|
+
<div class="wrapper wrapper-content">
|
5
|
+
<div class="panel panel-default">
|
6
|
+
<div class="panel-heading">
|
7
|
+
<h4><i class="fa fa-code"></i> Script URL List</h4> <p></p>
|
8
|
+
</div>
|
9
|
+
<div class="panel-body">
|
10
|
+
<table class="table table-bordered table-striped table-hover">
|
11
|
+
|
12
|
+
<thead>
|
13
|
+
<tr>
|
14
|
+
<th>Script Name</th>
|
15
|
+
<th>Script URL</th>
|
16
|
+
<th>Script Type</th>
|
17
|
+
<th>Script Version</th>
|
18
|
+
<th></th>
|
19
|
+
</tr>
|
20
|
+
</thead>
|
21
|
+
|
22
|
+
<tbody>
|
23
|
+
<% @scriptcdn_scripturls.each do |scriptcdn_scripturl| %>
|
24
|
+
<tr>
|
25
|
+
<td><%= scriptcdn_scripturl.scrpturlname %></td>
|
26
|
+
<td><%= scriptcdn_scripturl.scrpturlphc %></td>
|
27
|
+
<td><%= scriptcdn_scripturl.scrpturltype %></td>
|
28
|
+
<td><%= scriptcdn_scripturl.scriptversion %></td>
|
29
|
+
<td><div class="btn-group" role="group" aria-label="Script CDN">
|
30
|
+
<%= link_to 'Show', scriptcdn_script_scripturl_path(scriptcdn_scripturl.script, scriptcdn_scripturl), class: "btn btn-w-m btn-primary btn-xs btn-phc-custom" %>
|
31
|
+
<%= link_to 'Edit', edit_scriptcdn_script_scripturl_path(scriptcdn_scripturl.script, scriptcdn_scripturl), class: "btn btn-w-m btn-primary btn-xs btn-phc-custom" %>
|
32
|
+
<%= link_to 'Destroy', scriptcdn_script_scripturl_path(scriptcdn_scripturl.script, class: "btn btn-w-m btn-danger btn-xs btn-phc-custom", scriptcdn_scripturl), method: :delete, data: { confirm: 'Are you sure?' } %>
|
33
|
+
</div></td>
|
34
|
+
</tr>
|
35
|
+
<% end %>
|
36
|
+
</tbody>
|
37
|
+
|
38
|
+
</table>
|
39
|
+
<%= link_to 'New Script URL', new_scriptcdn_script_scripturl_path, class: "btn btn-w-m btn-primary btn-phc-custom" %>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
</div>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<p id="notice"><%= notice %></p>
|
2
|
+
|
3
|
+
<p>
|
4
|
+
<strong>Script Name:</strong>
|
5
|
+
<%= @scriptcdn_scripturl.scrpturlname %>
|
6
|
+
</p>
|
7
|
+
|
8
|
+
<p>
|
9
|
+
<strong>Script URL:</strong>
|
10
|
+
<%= @scriptcdn_scripturl.scrpturlphc %>
|
11
|
+
</p>
|
12
|
+
|
13
|
+
<p>
|
14
|
+
<strong>Script Type:</strong>
|
15
|
+
<%= @scriptcdn_scripturl.scrpturltype %>
|
16
|
+
</p>
|
17
|
+
|
18
|
+
<p>
|
19
|
+
<strong>Script Version:</strong>
|
20
|
+
<%= @scriptcdn_scripturl.scriptversion %>
|
21
|
+
</p>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<%= form_for(@scriptcdn_scriptversion) do |f| %>
|
2
|
+
|
3
|
+
<% if @scriptcdn_scriptversion.errors.any? %>
|
4
|
+
<div id="error_explanation">
|
5
|
+
<h2><%= pluralize(@scriptcdn_scriptversion.errors.count, "error") %> prohibited this scriptcdn_scriptversion from being saved:</h2>
|
6
|
+
|
7
|
+
<ul>
|
8
|
+
<% @scriptcdn_scriptversion.errors.full_messages.each do |message| %>
|
9
|
+
<li><%= message %></li>
|
10
|
+
<% end %>
|
11
|
+
</ul>
|
12
|
+
</div>
|
13
|
+
<% end %>
|
14
|
+
|
15
|
+
<div class="form-group">
|
16
|
+
<label><%= f.label :scrptversion, "Version" %></label>
|
17
|
+
<%= f.text_field :scrptversion %>
|
18
|
+
</div>
|
19
|
+
|
20
|
+
<div class="actions">
|
21
|
+
<%= f.submit "Submit", class: "btn btn-primary btn-sm" %>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<% end %>
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<p id="notice"><%= notice %></p>
|
2
|
+
|
3
|
+
<!-- Main Content -->
|
4
|
+
<div class="wrapper wrapper-content">
|
5
|
+
<div class="panel panel-default">
|
6
|
+
<div class="panel-heading">
|
7
|
+
<i class="fa fa-code"></i> Script Version List
|
8
|
+
</div>
|
9
|
+
<div class="panel-body">
|
10
|
+
<table class="table table-bordered table-striped table-hover">
|
11
|
+
|
12
|
+
<thead>
|
13
|
+
<tr>
|
14
|
+
<th>Script Version</th>
|
15
|
+
<th></th>
|
16
|
+
</tr>
|
17
|
+
</thead>
|
18
|
+
|
19
|
+
<tbody>
|
20
|
+
<% @scriptcdn_scriptversions.each do |scriptcdn_scriptversion| %>
|
21
|
+
<tr>
|
22
|
+
<td><%= scriptcdn_scriptversion.scrptversion %></td>
|
23
|
+
<td>
|
24
|
+
<%= link_to 'Edit', edit_scriptcdn_scriptversion_path(scriptcdn_scriptversion), class: "btn btn-w-m btn-primary btn-xs btn-phc-custom" %>
|
25
|
+
<%= link_to 'Destroy', scriptcdn_scriptversion, class: "btn btn-w-m btn-primary btn-phc-custom btn-xs btn-phc-custom", method: :delete, data: { confirm: 'Are you sure?' } %>
|
26
|
+
</td>
|
27
|
+
</tr>
|
28
|
+
<% end %>
|
29
|
+
</tbody>
|
30
|
+
|
31
|
+
</table>
|
32
|
+
<%= link_to 'Add a New Version Option', new_scriptcdn_scriptversion_path, class: "btn btn-w-m btn-primary btn-phc-custom" %>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
</div>
|
data/config/routes.rb
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
class CreatePhcscriptcdnScriptcdnScripts < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table :phcscriptcdn_scriptcdn_scripts do |t|
|
4
|
+
t.string :scrptname
|
5
|
+
t.text :scrptdescription
|
6
|
+
t.references :scriptversion, index: true, foreign_key: true
|
7
|
+
|
8
|
+
t.timestamps null: false
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
class CreatePhcscriptcdnScriptcdnScripturls < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table :phcscriptcdn_scriptcdn_scripturls do |t|
|
4
|
+
t.string :scrpturlname
|
5
|
+
t.string :scrpturlphc
|
6
|
+
t.string :scrpturltype
|
7
|
+
t.references :scriptversion, index: true, foreign_key: true
|
8
|
+
t.references :script, index: true, foreign_key: true
|
9
|
+
|
10
|
+
t.timestamps null: false
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/lib/phcscriptcdn.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
module Phcscriptcdn
|
2
|
+
class Engine < ::Rails::Engine
|
3
|
+
isolate_namespace Phcscriptcdn
|
4
|
+
|
5
|
+
config.generators do |g|
|
6
|
+
g.test_framework :rspec,
|
7
|
+
fixtures: true,
|
8
|
+
view_specs: false,
|
9
|
+
helper_specs: false,
|
10
|
+
routing_specs: false,
|
11
|
+
controller_specs: true,
|
12
|
+
request_specs: false
|
13
|
+
g.fixture_replacement :factory_girl, dir: "spec/factories"
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
end
|
metadata
ADDED
@@ -0,0 +1,310 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: phcscriptcdn
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- BradPotts
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-02-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: pg
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.18.4
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.18.4
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '4.2'
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 4.2.5.1
|
37
|
+
type: :runtime
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - "~>"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '4.2'
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 4.2.5.1
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: jquery-rails
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '4.0'
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 4.0.5
|
57
|
+
type: :runtime
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '4.0'
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 4.0.5
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: bootstrap-sass
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - "~>"
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '3.3'
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 3.3.6
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '3.3'
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 3.3.6
|
87
|
+
- !ruby/object:Gem::Dependency
|
88
|
+
name: font-awesome-rails
|
89
|
+
requirement: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - "~>"
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '4.5'
|
94
|
+
type: :runtime
|
95
|
+
prerelease: false
|
96
|
+
version_requirements: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - "~>"
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '4.5'
|
101
|
+
- !ruby/object:Gem::Dependency
|
102
|
+
name: sass-rails
|
103
|
+
requirement: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - "~>"
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '5.0'
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 5.0.4
|
111
|
+
type: :runtime
|
112
|
+
prerelease: false
|
113
|
+
version_requirements: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '5.0'
|
118
|
+
- - ">="
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: 5.0.4
|
121
|
+
- !ruby/object:Gem::Dependency
|
122
|
+
name: sqlite3
|
123
|
+
requirement: !ruby/object:Gem::Requirement
|
124
|
+
requirements:
|
125
|
+
- - "~>"
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: '1.3'
|
128
|
+
type: :development
|
129
|
+
prerelease: false
|
130
|
+
version_requirements: !ruby/object:Gem::Requirement
|
131
|
+
requirements:
|
132
|
+
- - "~>"
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: '1.3'
|
135
|
+
- !ruby/object:Gem::Dependency
|
136
|
+
name: database_cleaner
|
137
|
+
requirement: !ruby/object:Gem::Requirement
|
138
|
+
requirements:
|
139
|
+
- - "~>"
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '1.5'
|
142
|
+
type: :development
|
143
|
+
prerelease: false
|
144
|
+
version_requirements: !ruby/object:Gem::Requirement
|
145
|
+
requirements:
|
146
|
+
- - "~>"
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: '1.5'
|
149
|
+
- !ruby/object:Gem::Dependency
|
150
|
+
name: laundry
|
151
|
+
requirement: !ruby/object:Gem::Requirement
|
152
|
+
requirements:
|
153
|
+
- - "~>"
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: 0.0.8
|
156
|
+
type: :development
|
157
|
+
prerelease: false
|
158
|
+
version_requirements: !ruby/object:Gem::Requirement
|
159
|
+
requirements:
|
160
|
+
- - "~>"
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: 0.0.8
|
163
|
+
- !ruby/object:Gem::Dependency
|
164
|
+
name: factory_girl_rails
|
165
|
+
requirement: !ruby/object:Gem::Requirement
|
166
|
+
requirements:
|
167
|
+
- - "~>"
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
version: 4.4.1
|
170
|
+
type: :development
|
171
|
+
prerelease: false
|
172
|
+
version_requirements: !ruby/object:Gem::Requirement
|
173
|
+
requirements:
|
174
|
+
- - "~>"
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
version: 4.4.1
|
177
|
+
- !ruby/object:Gem::Dependency
|
178
|
+
name: rspec-rails
|
179
|
+
requirement: !ruby/object:Gem::Requirement
|
180
|
+
requirements:
|
181
|
+
- - "~>"
|
182
|
+
- !ruby/object:Gem::Version
|
183
|
+
version: '3.4'
|
184
|
+
type: :development
|
185
|
+
prerelease: false
|
186
|
+
version_requirements: !ruby/object:Gem::Requirement
|
187
|
+
requirements:
|
188
|
+
- - "~>"
|
189
|
+
- !ruby/object:Gem::Version
|
190
|
+
version: '3.4'
|
191
|
+
- !ruby/object:Gem::Dependency
|
192
|
+
name: capybara
|
193
|
+
requirement: !ruby/object:Gem::Requirement
|
194
|
+
requirements:
|
195
|
+
- - "~>"
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
version: '2.6'
|
198
|
+
type: :development
|
199
|
+
prerelease: false
|
200
|
+
version_requirements: !ruby/object:Gem::Requirement
|
201
|
+
requirements:
|
202
|
+
- - "~>"
|
203
|
+
- !ruby/object:Gem::Version
|
204
|
+
version: '2.6'
|
205
|
+
- !ruby/object:Gem::Dependency
|
206
|
+
name: faker
|
207
|
+
requirement: !ruby/object:Gem::Requirement
|
208
|
+
requirements:
|
209
|
+
- - "~>"
|
210
|
+
- !ruby/object:Gem::Version
|
211
|
+
version: '1.6'
|
212
|
+
type: :development
|
213
|
+
prerelease: false
|
214
|
+
version_requirements: !ruby/object:Gem::Requirement
|
215
|
+
requirements:
|
216
|
+
- - "~>"
|
217
|
+
- !ruby/object:Gem::Version
|
218
|
+
version: '1.6'
|
219
|
+
- !ruby/object:Gem::Dependency
|
220
|
+
name: selenium-webdriver
|
221
|
+
requirement: !ruby/object:Gem::Requirement
|
222
|
+
requirements:
|
223
|
+
- - "~>"
|
224
|
+
- !ruby/object:Gem::Version
|
225
|
+
version: '2.52'
|
226
|
+
type: :development
|
227
|
+
prerelease: false
|
228
|
+
version_requirements: !ruby/object:Gem::Requirement
|
229
|
+
requirements:
|
230
|
+
- - "~>"
|
231
|
+
- !ruby/object:Gem::Version
|
232
|
+
version: '2.52'
|
233
|
+
description: PHCNetworks uses a similar engine to list their scripts off their cdn.
|
234
|
+
email:
|
235
|
+
- bradley.j.potts@gmail.com
|
236
|
+
executables: []
|
237
|
+
extensions: []
|
238
|
+
extra_rdoc_files: []
|
239
|
+
files:
|
240
|
+
- MIT-LICENSE
|
241
|
+
- Rakefile
|
242
|
+
- app/assets/javascripts/phcscriptcdn/application.js
|
243
|
+
- app/assets/javascripts/phcscriptcdn/scriptcdn/scripts.js
|
244
|
+
- app/assets/javascripts/phcscriptcdn/scriptcdn/scripturls.js
|
245
|
+
- app/assets/javascripts/phcscriptcdn/scriptcdn/scriptversions.js
|
246
|
+
- app/assets/stylesheets/phcscriptcdn/application.css
|
247
|
+
- app/assets/stylesheets/phcscriptcdn/scriptcdn/scripts.css
|
248
|
+
- app/assets/stylesheets/phcscriptcdn/scriptcdn/scripturls.css
|
249
|
+
- app/assets/stylesheets/phcscriptcdn/scriptcdn/scriptversions.css
|
250
|
+
- app/assets/stylesheets/scaffold.css
|
251
|
+
- app/controllers/phcscriptcdn/application_controller.rb
|
252
|
+
- app/controllers/phcscriptcdn/scriptcdn/scripts_controller.rb
|
253
|
+
- app/controllers/phcscriptcdn/scriptcdn/scripturls_controller.rb
|
254
|
+
- app/controllers/phcscriptcdn/scriptcdn/scriptversions_controller.rb
|
255
|
+
- app/helpers/phcscriptcdn/application_helper.rb
|
256
|
+
- app/helpers/phcscriptcdn/scriptcdn/scripts_helper.rb
|
257
|
+
- app/helpers/phcscriptcdn/scriptcdn/scripturls_helper.rb
|
258
|
+
- app/helpers/phcscriptcdn/scriptcdn/scriptversions_helper.rb
|
259
|
+
- app/models/phcscriptcdn/scriptcdn.rb
|
260
|
+
- app/models/phcscriptcdn/scriptcdn/script.rb
|
261
|
+
- app/models/phcscriptcdn/scriptcdn/scripturl.rb
|
262
|
+
- app/models/phcscriptcdn/scriptcdn/scriptversion.rb
|
263
|
+
- app/views/layouts/phcscriptcdn/application.html.erb
|
264
|
+
- app/views/phcscriptcdn/scriptcdn/scripts/_form.html.erb
|
265
|
+
- app/views/phcscriptcdn/scriptcdn/scripts/edit.html.erb
|
266
|
+
- app/views/phcscriptcdn/scriptcdn/scripts/index.html.erb
|
267
|
+
- app/views/phcscriptcdn/scriptcdn/scripts/new.html.erb
|
268
|
+
- app/views/phcscriptcdn/scriptcdn/scripts/show.html.erb
|
269
|
+
- app/views/phcscriptcdn/scriptcdn/scripturls/_form.html.erb
|
270
|
+
- app/views/phcscriptcdn/scriptcdn/scripturls/edit.html.erb
|
271
|
+
- app/views/phcscriptcdn/scriptcdn/scripturls/index.html.erb
|
272
|
+
- app/views/phcscriptcdn/scriptcdn/scripturls/new.html.erb
|
273
|
+
- app/views/phcscriptcdn/scriptcdn/scripturls/show.html.erb
|
274
|
+
- app/views/phcscriptcdn/scriptcdn/scriptversions/_form.html.erb
|
275
|
+
- app/views/phcscriptcdn/scriptcdn/scriptversions/edit.html.erb
|
276
|
+
- app/views/phcscriptcdn/scriptcdn/scriptversions/index.html.erb
|
277
|
+
- app/views/phcscriptcdn/scriptcdn/scriptversions/new.html.erb
|
278
|
+
- config/routes.rb
|
279
|
+
- db/migrate/20160222025658_create_phcscriptcdn_scriptcdn_scripts.rb
|
280
|
+
- db/migrate/20160222030223_create_phcscriptcdn_scriptcdn_scriptversions.rb
|
281
|
+
- db/migrate/20160222030446_create_phcscriptcdn_scriptcdn_scripturls.rb
|
282
|
+
- lib/phcscriptcdn.rb
|
283
|
+
- lib/phcscriptcdn/engine.rb
|
284
|
+
- lib/phcscriptcdn/version.rb
|
285
|
+
- lib/tasks/phcscriptcdn_tasks.rake
|
286
|
+
homepage: http://www.phcnetworks.net
|
287
|
+
licenses:
|
288
|
+
- MIT
|
289
|
+
metadata: {}
|
290
|
+
post_install_message:
|
291
|
+
rdoc_options: []
|
292
|
+
require_paths:
|
293
|
+
- lib
|
294
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
295
|
+
requirements:
|
296
|
+
- - ">="
|
297
|
+
- !ruby/object:Gem::Version
|
298
|
+
version: '0'
|
299
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
300
|
+
requirements:
|
301
|
+
- - ">="
|
302
|
+
- !ruby/object:Gem::Version
|
303
|
+
version: '0'
|
304
|
+
requirements: []
|
305
|
+
rubyforge_project:
|
306
|
+
rubygems_version: 2.5.1
|
307
|
+
signing_key:
|
308
|
+
specification_version: 4
|
309
|
+
summary: ScriptCDN Listing Engine.
|
310
|
+
test_files: []
|