phcscriptcdnpro 8.0.1 → 8.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/phcscriptcdnpro/application_record.rb +1 -1
- data/app/models/phcscriptcdnpro/frontend.rb +2 -2
- data/app/models/phcscriptcdnpro/frontend/listing.rb +1 -1
- data/app/models/phcscriptcdnpro/script.rb +1 -1
- data/app/models/phcscriptcdnpro/script/author.rb +6 -2
- data/app/models/phcscriptcdnpro/script/extension.rb +6 -2
- data/app/models/phcscriptcdnpro/script/licence.rb +6 -2
- data/app/models/phcscriptcdnpro/script/listing.rb +6 -2
- data/app/models/phcscriptcdnpro/script/url.rb +7 -2
- data/app/models/phcscriptcdnpro/script/version.rb +6 -2
- data/db/migrate/20160821183652_create_phcscriptcdnpro_script_listings.rb +2 -2
- data/db/migrate/20160821183714_create_phcscriptcdnpro_script_authors.rb +5 -5
- data/db/migrate/20160821183735_create_phcscriptcdnpro_script_extensions.rb +2 -2
- data/db/migrate/20160821183805_create_phcscriptcdnpro_script_licences.rb +2 -2
- data/db/migrate/20160821183830_create_phcscriptcdnpro_script_urls.rb +3 -3
- data/db/migrate/20160821183946_create_phcscriptcdnpro_script_versions.rb +2 -2
- data/db/migrate/20170423035208_create_friendly_id_slugs.rb +3 -1
- data/lib/phcscriptcdnpro/engine.rb +8 -8
- data/lib/phcscriptcdnpro/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 686ef226e5a8f5721caed16ff88075422a181d53
|
4
|
+
data.tar.gz: d47ff20d7f2986d8fa21877e61598744f86039e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d19c47446405be2ac4e3e9c50b63893700d9784fb50b3dc0092f6016d119b77ff16efeae6b2a3846f2f494612f7c2145834e746b5609e6ac1b573c6b49dcd818
|
7
|
+
data.tar.gz: 0e70a9522d6313a66be5e3dc1f2a4fb28b850bf2104adb8de2784c3aae10b9d292cd1c6872373359fd96b485d7149bb9dc64a814be147bbf103c0a12ae4113b5
|
@@ -1,10 +1,14 @@
|
|
1
1
|
module Phcscriptcdnpro
|
2
2
|
class Script::Author < ApplicationRecord
|
3
3
|
|
4
|
-
#
|
4
|
+
# Clean URL Initialize
|
5
|
+
extend FriendlyId
|
5
6
|
|
6
7
|
# Listing (None Nested)
|
7
8
|
has_many :listings, class_name: 'Phcscriptcdnpro::Script::Listing'
|
8
9
|
|
10
|
+
# Clean URL Define
|
11
|
+
friendly_id :lcncname, use: :slugged
|
12
|
+
|
9
13
|
end
|
10
|
-
end
|
14
|
+
end
|
@@ -1,11 +1,15 @@
|
|
1
1
|
module Phcscriptcdnpro
|
2
2
|
class Script::Extension < ApplicationRecord
|
3
3
|
|
4
|
-
#
|
4
|
+
# Clean URL Initialize
|
5
|
+
extend FriendlyId
|
5
6
|
|
6
7
|
# URLs & Extensions (None Nested)
|
7
8
|
has_many :listings, class_name: 'Phcscriptcdnpro::Script::Listing', :through => :urls
|
8
9
|
has_many :urls, class_name: 'Phcscriptcdnpro::Script::Url'
|
9
10
|
|
11
|
+
# Clean URL Define
|
12
|
+
friendly_id :scriptextensionname, use: :slugged
|
13
|
+
|
10
14
|
end
|
11
|
-
end
|
15
|
+
end
|
@@ -1,10 +1,14 @@
|
|
1
1
|
module Phcscriptcdnpro
|
2
2
|
class Script::Licence < ApplicationRecord
|
3
3
|
|
4
|
-
#
|
4
|
+
# Clean URL Initialize
|
5
|
+
extend FriendlyId
|
5
6
|
|
6
7
|
# Listing (None Nested)
|
7
8
|
has_many :listings, class_name: 'Phcscriptcdnpro::Script::Listing'
|
8
9
|
|
10
|
+
# Clean URL Define
|
11
|
+
friendly_id :lcncname, use: :slugged
|
12
|
+
|
9
13
|
end
|
10
|
-
end
|
14
|
+
end
|
@@ -1,7 +1,8 @@
|
|
1
1
|
module Phcscriptcdnpro
|
2
2
|
class Script::Listing < ApplicationRecord
|
3
3
|
|
4
|
-
#
|
4
|
+
# Clean URL Initialize
|
5
|
+
extend FriendlyId
|
5
6
|
|
6
7
|
# Attach to URL (Nested)
|
7
8
|
has_many :urls, class_name: 'Phcscriptcdnpro::Script::Url'
|
@@ -15,5 +16,8 @@ module Phcscriptcdnpro
|
|
15
16
|
# Attach to Licence (None Nested)
|
16
17
|
belongs_to :licence, class_name: 'Phcscriptcdnpro::Script::Licence'
|
17
18
|
|
19
|
+
# Clean URL Define
|
20
|
+
friendly_id :scripttitle, use: :slugged
|
21
|
+
|
18
22
|
end
|
19
|
-
end
|
23
|
+
end
|
@@ -1,7 +1,8 @@
|
|
1
1
|
module Phcscriptcdnpro
|
2
2
|
class Script::Url < ApplicationRecord
|
3
3
|
|
4
|
-
#
|
4
|
+
# Clean URL Initialize
|
5
|
+
extend FriendlyId
|
5
6
|
|
6
7
|
# Attach to Listings (Nested)
|
7
8
|
belongs_to :listing, class_name: 'Phcscriptcdnpro::Script::Listing'
|
@@ -12,5 +13,9 @@ module Phcscriptcdnpro
|
|
12
13
|
# Attach to Extension (None Nested)
|
13
14
|
belongs_to :extension, class_name: 'Phcscriptcdnpro::Script::Extension'
|
14
15
|
|
16
|
+
|
17
|
+
# Clean URL Define
|
18
|
+
friendly_id :id, use: :slugged
|
19
|
+
|
15
20
|
end
|
16
|
-
end
|
21
|
+
end
|
@@ -1,7 +1,8 @@
|
|
1
1
|
module Phcscriptcdnpro
|
2
2
|
class Script::Version < ApplicationRecord
|
3
3
|
|
4
|
-
#
|
4
|
+
# Clean URL Initialize
|
5
|
+
extend FriendlyId
|
5
6
|
|
6
7
|
# Attach to Listing (None Nested)
|
7
8
|
has_many :listings, class_name: 'Phcscriptcdnpro::Script::Listing'
|
@@ -9,5 +10,8 @@ module Phcscriptcdnpro
|
|
9
10
|
# Attach to URL (None Nested)
|
10
11
|
has_many :urls, class_name: 'Phcscriptcdnpro::Script::Url'
|
11
12
|
|
13
|
+
# Clean URL Define
|
14
|
+
friendly_id :scriptversion, use: :slugged
|
15
|
+
|
12
16
|
end
|
13
|
-
end
|
17
|
+
end
|
@@ -17,7 +17,7 @@ class CreatePhcscriptcdnproScriptListings < ActiveRecord::Migration[5.0]
|
|
17
17
|
t.date :scriptlastestreleasecdn
|
18
18
|
|
19
19
|
t.string :scriptstatus
|
20
|
-
|
20
|
+
|
21
21
|
t.string :slug
|
22
22
|
|
23
23
|
t.string :user_id
|
@@ -34,4 +34,4 @@ class CreatePhcscriptcdnproScriptListings < ActiveRecord::Migration[5.0]
|
|
34
34
|
end
|
35
35
|
|
36
36
|
end
|
37
|
-
end
|
37
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class CreatePhcscriptcdnproScriptAuthors < ActiveRecord::Migration[5.0]
|
2
2
|
def change
|
3
|
-
|
3
|
+
|
4
4
|
create_table :phcscriptcdnpro_script_authors do |t|
|
5
5
|
|
6
6
|
t.string :authorfirstname
|
@@ -9,7 +9,7 @@ class CreatePhcscriptcdnproScriptAuthors < ActiveRecord::Migration[5.0]
|
|
9
9
|
t.string :authorwebsite
|
10
10
|
t.string :authorgithub
|
11
11
|
t.string :authortwitter
|
12
|
-
|
12
|
+
|
13
13
|
t.string :slug
|
14
14
|
|
15
15
|
t.string :user_id
|
@@ -18,8 +18,8 @@ class CreatePhcscriptcdnproScriptAuthors < ActiveRecord::Migration[5.0]
|
|
18
18
|
t.string :oganization_id
|
19
19
|
|
20
20
|
t.timestamps
|
21
|
-
|
21
|
+
|
22
22
|
end
|
23
|
-
|
23
|
+
|
24
24
|
end
|
25
|
-
end
|
25
|
+
end
|
@@ -6,7 +6,7 @@ class CreatePhcscriptcdnproScriptExtensions < ActiveRecord::Migration[5.0]
|
|
6
6
|
t.string :scriptextensionname
|
7
7
|
t.text :scriptextensiondes
|
8
8
|
t.string :scriptextension
|
9
|
-
|
9
|
+
|
10
10
|
t.string :slug
|
11
11
|
|
12
12
|
t.string :user_id
|
@@ -19,4 +19,4 @@ class CreatePhcscriptcdnproScriptExtensions < ActiveRecord::Migration[5.0]
|
|
19
19
|
end
|
20
20
|
|
21
21
|
end
|
22
|
-
end
|
22
|
+
end
|
@@ -13,7 +13,7 @@ class CreatePhcscriptcdnproScriptLicences < ActiveRecord::Migration[5.0]
|
|
13
13
|
t.string :lcncarvlcopyfree
|
14
14
|
t.string :lcncarvldebian
|
15
15
|
t.string :lcncarvlfedora
|
16
|
-
|
16
|
+
|
17
17
|
t.string :slug
|
18
18
|
|
19
19
|
t.string :user_id
|
@@ -26,4 +26,4 @@ class CreatePhcscriptcdnproScriptLicences < ActiveRecord::Migration[5.0]
|
|
26
26
|
end
|
27
27
|
|
28
28
|
end
|
29
|
-
end
|
29
|
+
end
|
@@ -10,7 +10,7 @@ class CreatePhcscriptcdnproScriptUrls < ActiveRecord::Migration[5.0]
|
|
10
10
|
t.references :listing
|
11
11
|
t.references :version
|
12
12
|
t.references :extension
|
13
|
-
|
13
|
+
|
14
14
|
t.string :slug
|
15
15
|
|
16
16
|
t.string :user_id
|
@@ -19,8 +19,8 @@ class CreatePhcscriptcdnproScriptUrls < ActiveRecord::Migration[5.0]
|
|
19
19
|
t.string :oganization_id
|
20
20
|
|
21
21
|
t.timestamps
|
22
|
-
|
22
|
+
|
23
23
|
end
|
24
24
|
|
25
25
|
end
|
26
|
-
end
|
26
|
+
end
|
@@ -7,7 +7,7 @@ class CreatePhcscriptcdnproScriptVersions < ActiveRecord::Migration[5.0]
|
|
7
7
|
|
8
8
|
t.string :user_id
|
9
9
|
t.string :user_name
|
10
|
-
|
10
|
+
|
11
11
|
t.string :slug
|
12
12
|
|
13
13
|
t.string :membership_id
|
@@ -18,4 +18,4 @@ class CreatePhcscriptcdnproScriptVersions < ActiveRecord::Migration[5.0]
|
|
18
18
|
end
|
19
19
|
|
20
20
|
end
|
21
|
-
end
|
21
|
+
end
|
@@ -1,4 +1,5 @@
|
|
1
1
|
class CreateFriendlyIdSlugs < ActiveRecord::Migration
|
2
|
+
|
2
3
|
def change
|
3
4
|
create_table :friendly_id_slugs do |t|
|
4
5
|
t.string :slug, :null => false
|
@@ -12,4 +13,5 @@ class CreateFriendlyIdSlugs < ActiveRecord::Migration
|
|
12
13
|
add_index :friendly_id_slugs, [:slug, :sluggable_type, :scope], length: { slug: 70, sluggable_type: 50, scope: 70 }, unique: true
|
13
14
|
add_index :friendly_id_slugs, :sluggable_type
|
14
15
|
end
|
15
|
-
|
16
|
+
|
17
|
+
end
|
@@ -4,14 +4,14 @@ module Phcscriptcdnpro
|
|
4
4
|
# Main Dependencies
|
5
5
|
require 'authrocket'
|
6
6
|
require 'paper_trail'
|
7
|
-
|
7
|
+
|
8
8
|
# PHCEngines & Theme Dependencies
|
9
9
|
require 'phcnotifi'
|
10
10
|
require 'phctitleseo'
|
11
11
|
require 'phctheme1'
|
12
12
|
require 'phcadmin2'
|
13
13
|
require 'phcaccountspro'
|
14
|
-
|
14
|
+
|
15
15
|
# UI & Frontend Dependencies
|
16
16
|
require 'jquery-rails'
|
17
17
|
require 'jquery-ui-rails'
|
@@ -20,7 +20,7 @@ module Phcscriptcdnpro
|
|
20
20
|
require 'font-awesome-rails'
|
21
21
|
require 'country_select'
|
22
22
|
require 'gravtastic'
|
23
|
-
|
23
|
+
|
24
24
|
# URLS
|
25
25
|
require 'friendly_id'
|
26
26
|
|
@@ -29,17 +29,17 @@ module Phcscriptcdnpro
|
|
29
29
|
require 'oj'
|
30
30
|
require 'multi_json'
|
31
31
|
require 'responders'
|
32
|
-
|
32
|
+
|
33
33
|
# WYSIWYG Editor Dependencies
|
34
34
|
require 'tinymce-rails'
|
35
|
-
|
35
|
+
|
36
36
|
# Upload & Media Dependencies
|
37
37
|
require 'carrierwave'
|
38
38
|
require 'cloudinary'
|
39
|
-
|
39
|
+
|
40
40
|
# Isolate Namespace
|
41
41
|
isolate_namespace Phcscriptcdnpro
|
42
|
-
|
42
|
+
|
43
43
|
# Testing Generator
|
44
44
|
config.generators do |g|
|
45
45
|
g.test_framework :rspec,
|
@@ -51,7 +51,7 @@ module Phcscriptcdnpro
|
|
51
51
|
request_specs: false
|
52
52
|
g.fixture_replacement :factory_girl, dir: "spec/factories"
|
53
53
|
end
|
54
|
-
|
54
|
+
|
55
55
|
# Load Requried Helper Files
|
56
56
|
config.to_prepare do
|
57
57
|
ApplicationController.helper(ApplicationHelper)
|