phcscriptcdn 5.0.0 → 5.0.1

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: 3a5b03c59efe6888e7d23e723462896f1589d110
4
- data.tar.gz: 58856a0821e74fede991383b1f1c182e268938bd
3
+ metadata.gz: 89603e1b5603e8b5c212c27a700025e7d32973cc
4
+ data.tar.gz: 1c1be7a387f9a5c216a2571f556eeebd86663262
5
5
  SHA512:
6
- metadata.gz: 3120ff1fef0d9ca429210d4e7633f83ef456cda226d706604e0f20cbe851d4053bc9e7abefc507491a804e512363ae841f1d49fa59acb7402b15385af9496eea
7
- data.tar.gz: 1ff6579b595ad6128cf02d9b3dd7bcbae5a94e9d9135cda12f0072a96511a14371fec48c1ecc0588cee57a3e220f9559ce2a21c4d9dbff8e9bd113438bf8fef9
6
+ metadata.gz: 302068b02ef865eb6295569669b4b20d8cd26df8aa0bc009394c93d52582577e0490f3f279ed75fc80c224d73450e53397ed3715fb1aa5badce38f5c2a29d9a4
7
+ data.tar.gz: '04786dca04db69ee0e054e7d4f2b1445359c92e1fb855ee085cf3f220f0785feeac14f58ecda36e9a148842d7e6fb998e0980512fd667f642c06cad79e7796fd'
@@ -6,5 +6,12 @@ module Phcscriptcdn
6
6
  # Listing (None Nested)
7
7
  has_many :listings, class_name: 'Phcscriptcdn::Script::Listing'
8
8
 
9
+ # Validation for Form Fields
10
+ validates :authorfirstname,
11
+ presence: true
12
+
13
+ validates :authorlastname,
14
+ presence: true
15
+
9
16
  end
10
17
  end
@@ -7,5 +7,15 @@ module Phcscriptcdn
7
7
  has_many :listings, class_name: 'Phcscriptcdn::Script::Listing', :through => :urls
8
8
  has_many :urls, class_name: 'Phcscriptcdn::Script::Url'
9
9
 
10
+ # Validation for Form Fields
11
+ validates :scriptextensionname,
12
+ presence: true
13
+
14
+ validates :scriptextensiondes,
15
+ presence: true
16
+
17
+ validates :scriptextension,
18
+ presence: true
19
+
10
20
  end
11
21
  end
@@ -6,5 +6,15 @@ module Phcscriptcdn
6
6
  # Listing (None Nested)
7
7
  has_many :listings, class_name: 'Phcscriptcdn::Script::Listing'
8
8
 
9
+ # Validation for Form Fields
10
+ validates :lcncname,
11
+ presence: true
12
+
13
+ validates :lcncdescript,
14
+ presence: true
15
+
16
+ validates :lcncdescription,
17
+ presence: true
18
+
9
19
  end
10
20
  end
@@ -15,5 +15,15 @@ module Phcscriptcdn
15
15
  # Attach to Licence (None Nested)
16
16
  belongs_to :licence, class_name: 'Phcscriptcdn::Script::Licence'
17
17
 
18
+ # Validation for Form Fields
19
+ validates :scripttitle,
20
+ presence: true
21
+
22
+ validates :scriptdescription,
23
+ presence: true
24
+
25
+ validates :scriptstatus,
26
+ presence: true
27
+
18
28
  end
19
29
  end
@@ -12,5 +12,15 @@ module Phcscriptcdn
12
12
  # Attach to Extension (None Nested)
13
13
  belongs_to :extension, class_name: 'Phcscriptcdn::Script::Extension'
14
14
 
15
+ # Validation for Form Fields
16
+ validates :scripturl,
17
+ presence: true
18
+
19
+ validates :scripturlrelease,
20
+ presence: true
21
+
22
+ validates :scripturlcdnupdate,
23
+ presence: true
24
+
15
25
  end
16
26
  end
@@ -9,5 +9,9 @@ module Phcscriptcdn
9
9
  # Attach to URL (None Nested)
10
10
  has_many :urls, class_name: 'Phcscriptcdn::Script::Url'
11
11
 
12
+ # Validation for Form Fields
13
+ validates :scriptversion,
14
+ presence: true
15
+
12
16
  end
13
17
  end
@@ -29,8 +29,8 @@
29
29
 
30
30
  <!-- Show Content -->
31
31
  <div class="btn-group" role="group" aria-label="author_button_group">
32
- <%= link_to 'Edit', edit_script_listing_author_path(@script_author), class: "btn btn-primary" %>
33
- <%= link_to 'Destroy', script_listing_author_path(@script_author), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-primary" %>
32
+ <%= link_to 'Edit', edit_script_author_path(@script_author), class: "btn btn-primary" %>
33
+ <%= link_to 'Destroy', script_author_path(@script_author), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-primary" %>
34
34
  </div>
35
35
  <!-- Show Content -->
36
36
 
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdn
2
- VERSION = "5.0.0"
2
+ VERSION = "5.0.1"
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: 5.0.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-15 00:00:00.000000000 Z
11
+ date: 2017-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails