phcscriptcdnpro 16.1.0 → 17.0.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe541cd3c49f4b5c6d9475097ab6f154456773a5
|
4
|
+
data.tar.gz: 2eed18f74ae5b5d5ba5ea7fbf98c46cacd68bba6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a607c88f802cb67e7840b8ff186a5a4523a7f160e5297a4a105890e8083de1fdb3906f7ad03a0f180ac8185ea3254ee8e12e375757477b5b4c0f31c02d8091d5
|
7
|
+
data.tar.gz: 2b3b5faeaf7eef3304344cc9f2477a03d2c9afd39153873850837ea0663f05fb3410e64f6394c6e662724b976329f7cc077557f5c296ee9000cd840fbd6fc667
|
@@ -5,29 +5,23 @@ module Phcscriptcdnpro
|
|
5
5
|
extend FriendlyId
|
6
6
|
|
7
7
|
# Add Paper Trail
|
8
|
-
has_paper_trail :class_name => '
|
8
|
+
has_paper_trail :class_name => 'Phcscriptcdn::ScriptversionVersions'
|
9
9
|
|
10
10
|
# Relationships
|
11
|
-
has_many :listings, class_name: '
|
12
|
-
has_many :urls, class_name: '
|
11
|
+
has_many :listings, class_name: 'Phcscriptcdn::Script::Listing'
|
12
|
+
has_many :urls, class_name: 'Phcscriptcdn::Script::Url'
|
13
13
|
|
14
14
|
# Validation for Form Fields
|
15
|
-
validates :
|
16
|
-
|
17
|
-
|
18
|
-
validates :scripturlrelease,
|
19
|
-
presence: true
|
20
|
-
|
21
|
-
validates :scripturlcdnupdate,
|
22
|
-
presence: true
|
15
|
+
validates :scriptversion,
|
16
|
+
presence: true
|
23
17
|
|
24
18
|
# Clean URL Define
|
25
|
-
friendly_id :
|
19
|
+
friendly_id :phcscriptcdn_version_slug, use: [:slugged, :finders]
|
26
20
|
|
27
21
|
# Define for Multiple Records
|
28
|
-
def
|
22
|
+
def phcscriptcdn_version_slug
|
29
23
|
[
|
30
|
-
[:
|
24
|
+
[:scriptversion]
|
31
25
|
]
|
32
26
|
end
|
33
27
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcscriptcdnpro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 17.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BradPotts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|