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 +4 -4
- data/app/models/phcscriptcdn/script/author.rb +7 -0
- data/app/models/phcscriptcdn/script/extension.rb +10 -0
- data/app/models/phcscriptcdn/script/licence.rb +10 -0
- data/app/models/phcscriptcdn/script/listing.rb +10 -0
- data/app/models/phcscriptcdn/script/url.rb +10 -0
- data/app/models/phcscriptcdn/script/version.rb +4 -0
- data/app/views/phcscriptcdn/script/authors/show.html.erb +2 -2
- 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: 89603e1b5603e8b5c212c27a700025e7d32973cc
|
4
|
+
data.tar.gz: 1c1be7a387f9a5c216a2571f556eeebd86663262
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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',
|
33
|
-
<%= link_to 'Destroy',
|
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
|
|
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: 5.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-
|
11
|
+
date: 2017-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|