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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 765367fb5be11db154d59dea9c2479d2e3c147e7
4
- data.tar.gz: 4d507e9a484980b6ff2e9c53ea6a430c2c3c035f
3
+ metadata.gz: d573ced7a3945283edbd1f3bc571c3d3c7b2bb30
4
+ data.tar.gz: c106cb57c051093cc8e1ac754447a86f8c958fc1
5
5
  SHA512:
6
- metadata.gz: 7dbf42d5af82b4e9a4d9f6a94118478d62eac229eb3c2b641204c9f51ae05a033e2c49736ead415d0bd8f10bf188ca03d3a968ae9db55222f50c424a12f47ec4
7
- data.tar.gz: 93364c71106f7e37b8d5fc9430b2de96dd032fcbe1cda419878aca5811f3d4e293c053b6788ef490b73fbbc3c70234c3a7338e3f00d540f2cda5a6a39934a17f
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(:scrpturlname, :scrpturlphc, :scrpturltype, :scriptversion_id)
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', edit_scriptcdn_script_scripturl_path(scriptcdn_scripturl.script, scriptcdn_scripturl), class: "btn btn-w-m btn-primary btn-xs btn-phc-custom" %>
31
- <%= link_to 'Destroy', scriptcdn_script_scripturl_path(scriptcdn_scripturl.script, scriptcdn_scripturl), class: "btn btn-w-m btn-danger btn-xs btn-phc-custom", method: :delete, data: { confirm: 'Are you sure?' } %>
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 %>
@@ -2,7 +2,6 @@ class CreatePhcscriptcdnScriptcdnScripturls < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :phcscriptcdn_scriptcdn_scripturls do |t|
4
4
 
5
- t.string :scrpturlname
6
5
  t.string :scrpturlphc
7
6
  t.string :scrpturltype
8
7
  t.references :scriptversion, index: true
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdn
2
- VERSION = "0.9.9"
2
+ VERSION = "0.9.10"
3
3
  end
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.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-21 00:00:00.000000000 Z
11
+ date: 2016-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails