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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac45306670747d4904e7fe8d9dd5f9d09df90dc7
4
- data.tar.gz: d4c194a2f35680a46296a905e668d11a19fa6a09
3
+ metadata.gz: 686ef226e5a8f5721caed16ff88075422a181d53
4
+ data.tar.gz: d47ff20d7f2986d8fa21877e61598744f86039e2
5
5
  SHA512:
6
- metadata.gz: 452714b9024da2ea2b2329479dbbe34bf8a98f9b9d12bfd65400340c556b7e3edc577db2e02d39840e1777eaa3b174f447d38727976f63aef0a780dd2595fd17
7
- data.tar.gz: 3fda058266011e1b3b6ade3ce2d52939bfbe3329d04ed9b08adadcbfa10575859ccfa30a815f5526b8f3255f1dc9e7c1c29870c0483b644874917fe8f8d88577
6
+ metadata.gz: d19c47446405be2ac4e3e9c50b63893700d9784fb50b3dc0092f6016d119b77ff16efeae6b2a3846f2f494612f7c2145834e746b5609e6ac1b573c6b49dcd818
7
+ data.tar.gz: 0e70a9522d6313a66be5e3dc1f2a4fb28b850bf2104adb8de2784c3aae10b9d292cd1c6872373359fd96b485d7149bb9dc64a814be147bbf103c0a12ae4113b5
@@ -4,4 +4,4 @@ module Phcscriptcdnpro
4
4
  self.abstract_class = true
5
5
  end
6
6
 
7
- end
7
+ end
@@ -1,9 +1,9 @@
1
1
  module Phcscriptcdnpro
2
2
  module Frontend
3
-
3
+
4
4
  def self.table_name_prefix
5
5
  'phcscriptcdnpro_frontend_'
6
6
  end
7
7
 
8
8
  end
9
- end
9
+ end
@@ -1,4 +1,4 @@
1
1
  module Phcscriptcdnpro
2
2
  class Frontend::Listing < ApplicationRecord
3
3
  end
4
- end
4
+ end
@@ -6,4 +6,4 @@ module Phcscriptcdnpro
6
6
  end
7
7
 
8
8
  end
9
- end
9
+ end
@@ -1,10 +1,14 @@
1
1
  module Phcscriptcdnpro
2
2
  class Script::Author < ApplicationRecord
3
3
 
4
- # Relationships
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
- # Relationships
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
- # Relationships
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
- # Relationships
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
- # Relationships
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
- # Relationships
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
- end
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)
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdnpro
2
- VERSION = "8.0.1"
2
+ VERSION = "8.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcscriptcdnpro
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.1
4
+ version: 8.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts