phcscriptcdn 0.9.9 → 0.9.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/phcscriptcdn/scriptcdn/scripturls_controller.rb +1 -1
- data/app/models/phcscriptcdn/scriptcdn/script.rb +9 -0
- data/app/models/phcscriptcdn/scriptcdn/scripturl.rb +9 -0
- data/app/models/phcscriptcdn/scriptcdn/scriptversion.rb +9 -0
- data/app/views/phcscriptcdn/scriptcdn/scripturls/_form.html.erb +0 -4
- data/app/views/phcscriptcdn/scriptcdn/scripturls/_formpatch.html.erb +0 -4
- data/app/views/phcscriptcdn/scriptcdn/scripturls/index.html.erb +2 -2
- data/db/migrate/20160222030446_create_phcscriptcdn_scriptcdn_scripturls.rb +0 -1
- data/lib/phcscriptcdn/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d573ced7a3945283edbd1f3bc571c3d3c7b2bb30
|
4
|
+
data.tar.gz: c106cb57c051093cc8e1ac754447a86f8c958fc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f754e7379d2b6d78be84e769013f865c97ab4c02ec75f6144b2708016c4dc7c7f74650ebb69e009136f3d0a91e3b9b67a009b104ce5671954898008ad2d60228
|
7
|
+
data.tar.gz: b5955cfd0f640abfdf1d6dbc5fecfbc7d6707dbca260129eba5186d7ca25796c46c5e253ce370a9f6e2f382d5b19c883e58e942730d1dfdf3347af3616f044d4
|
@@ -81,7 +81,7 @@ module Phcscriptcdn
|
|
81
81
|
|
82
82
|
# Whitelist
|
83
83
|
def scriptcdn_scripturl_params
|
84
|
-
params.require(:scriptcdn_scripturl).permit(:
|
84
|
+
params.require(:scriptcdn_scripturl).permit(:scrpturlphc, :scrpturltype, :scriptversion_id)
|
85
85
|
end
|
86
86
|
end
|
87
87
|
end
|
@@ -1,6 +1,15 @@
|
|
1
1
|
module Phcscriptcdn
|
2
2
|
class Scriptcdn::Script < ActiveRecord::Base
|
3
|
+
|
4
|
+
# Relationships
|
3
5
|
has_many :scriptversions
|
4
6
|
has_many :scripturls
|
7
|
+
|
8
|
+
# Validation for Form Fields
|
9
|
+
validates :scrptname,
|
10
|
+
uniqueness: true,
|
11
|
+
presence: true,
|
12
|
+
length: { minimum: 3 }
|
13
|
+
|
5
14
|
end
|
6
15
|
end
|
@@ -1,5 +1,14 @@
|
|
1
1
|
module Phcscriptcdn
|
2
2
|
class Scriptcdn::Scripturl < ActiveRecord::Base
|
3
|
+
|
4
|
+
# Relationships
|
3
5
|
belongs_to :scriptversion
|
6
|
+
|
7
|
+
# Validation for Form Fields
|
8
|
+
validates :scrpturlphc,
|
9
|
+
uniqueness: true,
|
10
|
+
presence: true,
|
11
|
+
length: { minimum: 3 }
|
12
|
+
|
4
13
|
end
|
5
14
|
end
|
@@ -1,6 +1,15 @@
|
|
1
1
|
module Phcscriptcdn
|
2
2
|
class Scriptcdn::Scriptversion < ActiveRecord::Base
|
3
|
+
|
4
|
+
# Relationships
|
3
5
|
belongs_to :script
|
4
6
|
has_many :scripturls
|
7
|
+
|
8
|
+
# Validation for Form Fields
|
9
|
+
validates :scrptversionpakname,
|
10
|
+
uniqueness: true,
|
11
|
+
presence: true,
|
12
|
+
length: { minimum: 3 }
|
13
|
+
|
5
14
|
end
|
6
15
|
end
|
@@ -2,10 +2,6 @@
|
|
2
2
|
|
3
3
|
<%= render 'phcnotifi/validations', :object => @scriptcdn_scripturl %>
|
4
4
|
|
5
|
-
<div class="field">
|
6
|
-
<label><%= f.label :scrpturlname, "Script Name" %></label>
|
7
|
-
<%= f.text_field :scrpturlname, class: "form-control" %>
|
8
|
-
</div>
|
9
5
|
<div class="field">
|
10
6
|
<label><%= f.label :scrpturlphc, "Script URL (AWS)" %></label>
|
11
7
|
<%= f.text_field :scrpturlphc, class: "form-control" %>
|
@@ -2,10 +2,6 @@
|
|
2
2
|
|
3
3
|
<%= render 'phcnotifi/validations', :object => @scriptcdn_scripturl %>
|
4
4
|
|
5
|
-
<div class="field">
|
6
|
-
<label><%= f.label :scrpturlname, "Script Name" %></label>
|
7
|
-
<%= f.text_field :scrpturlname, class: "form-control" %>
|
8
|
-
</div>
|
9
5
|
<div class="field">
|
10
6
|
<label><%= f.label :scrpturlphc, "Script URL (AWS)" %></label>
|
11
7
|
<%= f.text_field :scrpturlphc, class: "form-control" %>
|
@@ -27,8 +27,8 @@
|
|
27
27
|
<td><%= scriptcdn_scripturl.scrpturltype %></td>
|
28
28
|
<td><%= scriptcdn_scripturl.scriptversion %></td>
|
29
29
|
<td><div class="btn-group" role="group" aria-label="Script CDN">
|
30
|
-
<%= link_to 'Edit',
|
31
|
-
<%= link_to 'Destroy',
|
30
|
+
<%= link_to 'Edit', edit_scriptcdn_scriptversion_scripturl_path(scriptcdn_scripturl.scriptversion, scriptcdn_scripturl), class: "btn btn-w-m btn-primary btn-xs btn-phc-custom" %>
|
31
|
+
<%= link_to 'Destroy', scriptcdn_scriptversion_scripturl_path(scriptcdn_scripturl.scriptversion, scriptcdn_scripturl), class: "btn btn-w-m btn-danger btn-xs btn-phc-custom", method: :delete, data: { confirm: 'Are you sure?' } %>
|
32
32
|
</div></td>
|
33
33
|
</tr>
|
34
34
|
<% end %>
|
data/lib/phcscriptcdn/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcscriptcdn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BradPotts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|