phcscriptcdn 0.9.2 → 0.9.3

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: 2bf74d5a2a1f3a1b63e456235bfa25c18ae78825
4
- data.tar.gz: 4e00a9ba3015de3db3c4c9db5883fb5f5ac09656
3
+ metadata.gz: 5bb5c5d445a928ab987296555cb610550ea49d32
4
+ data.tar.gz: 9393da53b65cc7f6ba536367e8b167c873985d1b
5
5
  SHA512:
6
- metadata.gz: ec32f5fdd1db1c1230de0ccb5036d499e85ff1037a4ca31a9a0b1d4fa9617d744c79161849cbb62e275bd2952f757c553fcd065c35ef50fd87d20873fa14750c
7
- data.tar.gz: 186c21dcde1a9fd6807a39ac49ee2b8f4529993a0342584ca2108ef750fea6990d84835c57ba6cb86013ccbfa48c2000fbfb29739364ef98f97ffee4f5809505
6
+ metadata.gz: 9a04b56bf5b80660db51c4939e7f2bef72459f722806591f629d830665f7fb565602ff18dec39e573fc5c91f57efef54d1bfda31bf9ea16854b38cb7bffcf053
7
+ data.tar.gz: 2a58a8e5b4bd72ad3a303e87edc4e1e8755460f5b818c30375eb6aaf17f629ed38648c95dcab8205a84a5b001d191e9f345331dbcc9ae770eeb350a90b0365f9
@@ -7,19 +7,19 @@ module Phcscriptcdn
7
7
 
8
8
  # Index for Scriptcdn_script URLs
9
9
  def index
10
- scriptcdn_scriptversion = Scriptcdn::Scriptversion.find(params[:script_id])
10
+ scriptcdn_scriptversion = Scriptcdn::Scriptversion.find(params[:scriptversion_id])
11
11
  @scriptcdn_scripturls = scriptcdn_scriptversion.scripturls
12
12
  end
13
13
 
14
14
  # Scriptcdn_script URL Details Page
15
15
  def show
16
- scriptcdn_scriptversion = Scriptcdn::Scriptversion.find(params[:script_id])
16
+ scriptcdn_scriptversion = Scriptcdn::Scriptversion.find(params[:scriptversion_id])
17
17
  @scriptcdn_scripturl = scriptcdn_scriptversion.scripturls.find(params[:id])
18
18
  end
19
19
 
20
20
  # New Scriptcdn_script URL
21
21
  def new
22
- scriptcdn_scriptversion = Scriptcdn::Scriptversion.find(params[:script_id])
22
+ scriptcdn_scriptversion = Scriptcdn::Scriptversion.find(params[:scriptversion_id])
23
23
  @scriptcdn_scripturl = scriptcdn_scriptversion.scripturls.build
24
24
  respond_to do |format|
25
25
  format.html # new.html.erb
@@ -29,13 +29,13 @@ module Phcscriptcdn
29
29
 
30
30
  # Edit Scriptcdn_script URL
31
31
  def edit
32
- scriptcdn_scriptversion = Scriptcdn::Scriptversion.find(params[:script_id])
32
+ scriptcdn_scriptversion = Scriptcdn::Scriptversion.find(params[:scriptversion_id])
33
33
  @scriptcdn_scripturl = scriptcdn_scriptversion.scripturls.find(params[:id])
34
34
  end
35
35
 
36
36
  # POST Scriptcdn_script URL
37
37
  def create
38
- @scriptcdn_scriptversion = Scriptcdn::Scriptversion.find(params[:script_id])
38
+ @scriptcdn_scriptversion = Scriptcdn::Scriptversion.find(params[:scriptversion_id])
39
39
  @scriptcdn_scripturl = @scriptcdn_scriptversion.scripturls.create(scriptcdn_scripturl_params)
40
40
  respond_to do |format|
41
41
  if @scriptcdn_scripturl.save
@@ -63,7 +63,7 @@ module Phcscriptcdn
63
63
 
64
64
  # Delete Scriptcdn_script URL
65
65
  def destroy
66
- @scriptcdn_scriptversion = Scriptcdn::Scriptversion.find(params[:script_id])
66
+ @scriptcdn_scriptversion = Scriptcdn::Scriptversion.find(params[:scriptversion_id])
67
67
  @scriptcdn_scripturl = @scriptcdn_scriptversion.scripturls.find(params[:id])
68
68
  @scriptcdn_scripturl.destroy
69
69
  respond_to do |format|
@@ -1,15 +1,6 @@
1
1
  <%= form_for(@scriptcdn_script) do |f| %>
2
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 %>
3
+ <%= render 'phcnotifi/validations', :object => @scriptcdn_script %>
13
4
 
14
5
  <div class="form-group">
15
6
  <%= f.label :scrptname, "Script Name" %>
@@ -3,20 +3,20 @@
3
3
  <%= render 'phcnotifi/validations', :object => @scriptcdn_scripturl %>
4
4
 
5
5
  <div class="field">
6
- <label><%= f.label :scrpturlname, "Script Name" %></label>
6
+ <%= f.label :scrpturlname, "Script Name" %>
7
7
  <%= f.text_field :scrpturlname, class: "form-control" %>
8
8
  </div>
9
9
  <div class="field">
10
- <label><%= f.label :scrpturlphc, "Script URL (AWS)" %></label>
10
+ <%= f.label :scrpturlphc, "Script URL (AWS)" %>
11
11
  <%= f.text_field :scrpturlphc, class: "form-control" %>
12
12
  </div>
13
13
  <div class="field">
14
- <label><%= f.label :scrpturltype, "Script Type" %></label>
14
+ <%= f.label :scrpturltype, "Script Type" %>
15
15
  <%= f.select :scrpturltype, [['CSS','css'],['JS','js'],['font','Font']], class: "form-control" %>
16
16
  </div>
17
17
  <div class="form-group">
18
- <label><%= f.label :scriptversion_id, "Script Version" %></label>
19
- <%= collection_select(:scriptcdn_scripturl, :scriptversion_id, Phcscriptcdn::Scriptcdn::Scriptversion.order('scrptversion'), :id, :scrptversion, {}, {class: "form-control form-control-sm"}) %>
18
+ <%= f.label :scriptversion_id, "Script Version" %>
19
+ <%= collection_select(:scriptcdn_scripturl, :scriptversion_id, Phcscriptcdn::Scriptcdn::Scriptversion.order('scrptversion'), :id, :scrptversion, {}, {class: "form-control"}) %>
20
20
  </div>
21
21
 
22
22
  <div class="actions">
@@ -3,19 +3,19 @@
3
3
  <%= render 'phcnotifi/validations', :object => @scriptcdn_scripturl %>
4
4
 
5
5
  <div class="field">
6
- <label><%= f.label :scrpturlname, "Script Name" %></label>
6
+ <%= f.label :scrpturlname, "Script Name" %>
7
7
  <%= f.text_field :scrpturlname, class: "form-control" %>
8
8
  </div>
9
9
  <div class="field">
10
- <label><%= f.label :scrpturlphc, "Script URL (AWS)" %></label>
10
+ <%= f.label :scrpturlphc, "Script URL (AWS)" %>
11
11
  <%= f.text_field :scrpturlphc, class: "form-control" %>
12
12
  </div>
13
13
  <div class="field">
14
- <label><%= f.label :scrpturltype, "Script Type" %></label>
14
+ <%= f.label :scrpturltype, "Script Type" %>
15
15
  <%= f.select :scrpturltype, [['CSS','css'],['JS','js'],['font','Font']], class: "form-control" %>
16
16
  </div>
17
17
  <div class="form-group">
18
- <label><%= f.label :scriptversion_id, "Script Version" %></label>
18
+ <%= f.label :scriptversion_id, "Script Version" %>
19
19
  <%= collection_select(:scriptcdn_scripturl, :scriptversion_id, Phcscriptcdn::Scriptcdn::Scriptversion.order('scrptversion'), :id, :scrptversion, {}, {class: "form-control form-control-sm"}) %>
20
20
  </div>
21
21
 
@@ -3,12 +3,12 @@
3
3
  <%= render 'phcnotifi/validations', :object => @scriptcdn_scriptversion %>
4
4
 
5
5
  <div class="form-group">
6
- <label><%= f.label :scrptversionpakname, "Version Pak Name" %></label>
6
+ <%= f.label :scrptversionpakname, "Version Pak Name" %>
7
7
  <%= f.text_field :scrptversionpakname %>
8
8
  </div>
9
9
 
10
10
  <div class="form-group">
11
- <label><%= f.label :scrptversion, "Script Versions" %></label>
11
+ <%= f.label :scrptversion, "Script Versions" %>
12
12
  <%= f.text_field :scrptversion %>
13
13
  </div>
14
14
 
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdn
2
- VERSION = "0.9.2"
2
+ VERSION = "0.9.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcscriptcdn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts