phcscriptcdn 7.0.0 → 7.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -20
- data/README.md +43 -43
- data/Rakefile +33 -33
- data/app/assets/config/phcscriptcdn_manifest.js +2 -2
- data/app/assets/javascripts/phcscriptcdn/application.js +2 -2
- data/app/assets/stylesheets/phcscriptcdn/application.scss +2 -2
- data/app/controllers/phcscriptcdn/application_controller.rb +12 -12
- data/app/controllers/phcscriptcdn/script/authors_controller.rb +65 -65
- data/app/controllers/phcscriptcdn/script/extensions_controller.rb +65 -65
- data/app/controllers/phcscriptcdn/script/licences_controller.rb +65 -65
- data/app/controllers/phcscriptcdn/script/listings_controller.rb +65 -65
- data/app/controllers/phcscriptcdn/script/urls_controller.rb +74 -74
- data/app/controllers/phcscriptcdn/script/versions_controller.rb +65 -65
- data/app/helpers/phcscriptcdn/application_helper.rb +14 -14
- data/app/jobs/phcscriptcdn/application_job.rb +4 -4
- data/app/models/phcscriptcdn/application_record.rb +4 -4
- data/app/models/phcscriptcdn/script.rb +6 -6
- data/app/models/phcscriptcdn/script/author.rb +20 -20
- data/app/models/phcscriptcdn/script/extension.rb +24 -24
- data/app/models/phcscriptcdn/script/licence.rb +23 -23
- data/app/models/phcscriptcdn/script/listing.rb +32 -32
- data/app/models/phcscriptcdn/script/url.rb +26 -26
- data/app/models/phcscriptcdn/script/version.rb +20 -20
- data/app/views/layouts/phcscriptcdn/application.html.erb +56 -56
- data/app/views/layouts/phcscriptcdn/components/backend/footer/_footer.html.erb +4 -4
- data/app/views/layouts/phcscriptcdn/components/backend/navigation/_navigation.html.erb +56 -56
- data/app/views/layouts/phcscriptcdn/components/backend/topbar/_topbar.html.erb +5 -5
- data/app/views/layouts/phcscriptcdn/components/backend/topbar/_topbar_links.html.erb +0 -0
- data/app/views/layouts/phcscriptcdn/frontend.html.erb +22 -22
- data/app/views/phcscriptcdn/script/authors/_form.html.erb +36 -36
- data/app/views/phcscriptcdn/script/authors/edit.html.erb +39 -39
- data/app/views/phcscriptcdn/script/authors/index.html.erb +67 -67
- data/app/views/phcscriptcdn/script/authors/new.html.erb +39 -39
- data/app/views/phcscriptcdn/script/authors/show.html.erb +42 -42
- data/app/views/phcscriptcdn/script/extensions/_form.html.erb +28 -28
- data/app/views/phcscriptcdn/script/extensions/edit.html.erb +39 -39
- data/app/views/phcscriptcdn/script/extensions/index.html.erb +61 -61
- data/app/views/phcscriptcdn/script/extensions/new.html.erb +38 -38
- data/app/views/phcscriptcdn/script/extensions/show.html.erb +42 -42
- data/app/views/phcscriptcdn/script/licences/_form.html.erb +47 -47
- data/app/views/phcscriptcdn/script/licences/edit.html.erb +39 -39
- data/app/views/phcscriptcdn/script/licences/index.html.erb +71 -71
- data/app/views/phcscriptcdn/script/licences/new.html.erb +39 -39
- data/app/views/phcscriptcdn/script/licences/show.html.erb +42 -42
- data/app/views/phcscriptcdn/script/listings/_form.html.erb +68 -68
- data/app/views/phcscriptcdn/script/listings/edit.html.erb +39 -39
- data/app/views/phcscriptcdn/script/listings/index.html.erb +65 -65
- data/app/views/phcscriptcdn/script/listings/new.html.erb +39 -39
- data/app/views/phcscriptcdn/script/listings/show.html.erb +40 -40
- data/app/views/phcscriptcdn/script/urls/_form.html.erb +36 -36
- data/app/views/phcscriptcdn/script/urls/edit.html.erb +39 -39
- data/app/views/phcscriptcdn/script/urls/index.html.erb +63 -63
- data/app/views/phcscriptcdn/script/urls/new.html.erb +39 -39
- data/app/views/phcscriptcdn/script/urls/show.html.erb +41 -41
- data/app/views/phcscriptcdn/script/versions/_form.html.erb +20 -20
- data/app/views/phcscriptcdn/script/versions/edit.html.erb +39 -39
- data/app/views/phcscriptcdn/script/versions/index.html.erb +59 -59
- data/app/views/phcscriptcdn/script/versions/new.html.erb +39 -39
- data/app/views/phcscriptcdn/script/versions/show.html.erb +42 -42
- data/config/initializers/friendly_id.rb +92 -92
- data/config/routes.rb +30 -30
- data/db/migrate/20160731205205_create_phcscriptcdn_script_extensions.rb +20 -20
- data/db/migrate/20160731205917_create_phcscriptcdn_script_listings.rb +35 -35
- data/db/migrate/20160731205954_create_phcscriptcdn_script_versions.rb +18 -18
- data/db/migrate/20160731210626_create_phcscriptcdn_script_urls.rb +24 -24
- data/db/migrate/20160731210723_create_phcscriptcdn_script_authors.rb +23 -23
- data/db/migrate/20160801032225_create_phcscriptcdn_script_licences.rb +27 -27
- data/db/migrate/20170423022446_create_friendly_id_slugs.rb +15 -15
- data/lib/phcscriptcdn.rb +4 -4
- data/lib/phcscriptcdn/engine.rb +68 -68
- data/lib/phcscriptcdn/version.rb +3 -3
- data/lib/tasks/phcscriptcdn_tasks.rake +4 -4
- metadata +47 -5
data/config/routes.rb
CHANGED
@@ -1,30 +1,30 @@
|
|
1
|
-
Phcscriptcdn::Engine.routes.draw do
|
2
|
-
|
3
|
-
# Frontend Routes
|
4
|
-
namespace :frontend do
|
5
|
-
resources :listings
|
6
|
-
end
|
7
|
-
|
8
|
-
# Script CDN Listing System
|
9
|
-
namespace :script do
|
10
|
-
# Main Script Module
|
11
|
-
resources :listings, class_name: 'Phcscriptcdn::Script::Listing' do
|
12
|
-
resources :urls, class_name: 'Phcscriptcdn::Script::Url'
|
13
|
-
end
|
14
|
-
resources :authors, class_name: 'Phcscriptcdn::Script::Author'
|
15
|
-
resources :extensions, class_name: 'Phcscriptcdn::Script::Extension'
|
16
|
-
resources :versions, class_name: 'Phcscriptcdn::Script::Version'
|
17
|
-
resources :licences, class_name: 'Phcscriptcdn::Script::Licence'
|
18
|
-
end
|
19
|
-
|
20
|
-
# Application API
|
21
|
-
namespace :api, :path => "", :constraints => {:subdomain => "api"} do
|
22
|
-
namespace :v1 do
|
23
|
-
# Routes for API
|
24
|
-
resources :mains, defaults: {format: 'json'}
|
25
|
-
resources :informations, defaults: {format: 'json'}
|
26
|
-
resources :versions, defaults: {format: 'json'}
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
end
|
1
|
+
Phcscriptcdn::Engine.routes.draw do
|
2
|
+
|
3
|
+
# Frontend Routes
|
4
|
+
namespace :frontend do
|
5
|
+
resources :listings
|
6
|
+
end
|
7
|
+
|
8
|
+
# Script CDN Listing System
|
9
|
+
namespace :script do
|
10
|
+
# Main Script Module
|
11
|
+
resources :listings, class_name: 'Phcscriptcdn::Script::Listing' do
|
12
|
+
resources :urls, class_name: 'Phcscriptcdn::Script::Url'
|
13
|
+
end
|
14
|
+
resources :authors, class_name: 'Phcscriptcdn::Script::Author'
|
15
|
+
resources :extensions, class_name: 'Phcscriptcdn::Script::Extension'
|
16
|
+
resources :versions, class_name: 'Phcscriptcdn::Script::Version'
|
17
|
+
resources :licences, class_name: 'Phcscriptcdn::Script::Licence'
|
18
|
+
end
|
19
|
+
|
20
|
+
# Application API
|
21
|
+
namespace :api, :path => "", :constraints => {:subdomain => "api"} do
|
22
|
+
namespace :v1 do
|
23
|
+
# Routes for API
|
24
|
+
resources :mains, defaults: {format: 'json'}
|
25
|
+
resources :informations, defaults: {format: 'json'}
|
26
|
+
resources :versions, defaults: {format: 'json'}
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
@@ -1,20 +1,20 @@
|
|
1
|
-
class CreatePhcscriptcdnScriptExtensions < ActiveRecord::Migration[5.1]
|
2
|
-
def change
|
3
|
-
|
4
|
-
create_table :phcscriptcdn_script_extensions do |t|
|
5
|
-
|
6
|
-
t.string :scriptextensionname
|
7
|
-
t.text :scriptextensiondes
|
8
|
-
t.string :scriptextension
|
9
|
-
|
10
|
-
t.string :slug
|
11
|
-
|
12
|
-
t.string :user_id
|
13
|
-
t.string :user_name
|
14
|
-
|
15
|
-
t.timestamps
|
16
|
-
|
17
|
-
end
|
18
|
-
|
19
|
-
end
|
20
|
-
end
|
1
|
+
class CreatePhcscriptcdnScriptExtensions < ActiveRecord::Migration[5.1]
|
2
|
+
def change
|
3
|
+
|
4
|
+
create_table :phcscriptcdn_script_extensions do |t|
|
5
|
+
|
6
|
+
t.string :scriptextensionname
|
7
|
+
t.text :scriptextensiondes
|
8
|
+
t.string :scriptextension
|
9
|
+
|
10
|
+
t.string :slug
|
11
|
+
|
12
|
+
t.string :user_id
|
13
|
+
t.string :user_name
|
14
|
+
|
15
|
+
t.timestamps
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
@@ -1,35 +1,35 @@
|
|
1
|
-
class CreatePhcscriptcdnScriptListings < ActiveRecord::Migration[5.1]
|
2
|
-
def change
|
3
|
-
|
4
|
-
create_table :phcscriptcdn_script_listings do |t|
|
5
|
-
|
6
|
-
t.string :scripttitle
|
7
|
-
t.text :scriptdescription
|
8
|
-
t.string :descriptionsource
|
9
|
-
|
10
|
-
t.string :scriptwebsite
|
11
|
-
t.string :scripttwitter
|
12
|
-
t.string :scriptgithub
|
13
|
-
|
14
|
-
t.date :scriptinitialrelease
|
15
|
-
t.date :scriptlastestrelease
|
16
|
-
t.date :scriptbetarelease
|
17
|
-
t.date :scriptlastestreleasecdn
|
18
|
-
|
19
|
-
t.string :scriptstatus
|
20
|
-
|
21
|
-
t.references :version
|
22
|
-
t.references :licence
|
23
|
-
t.references :author
|
24
|
-
|
25
|
-
t.string :slug
|
26
|
-
|
27
|
-
t.string :user_id
|
28
|
-
t.string :user_name
|
29
|
-
|
30
|
-
t.timestamps
|
31
|
-
|
32
|
-
end
|
33
|
-
|
34
|
-
end
|
35
|
-
end
|
1
|
+
class CreatePhcscriptcdnScriptListings < ActiveRecord::Migration[5.1]
|
2
|
+
def change
|
3
|
+
|
4
|
+
create_table :phcscriptcdn_script_listings do |t|
|
5
|
+
|
6
|
+
t.string :scripttitle
|
7
|
+
t.text :scriptdescription
|
8
|
+
t.string :descriptionsource
|
9
|
+
|
10
|
+
t.string :scriptwebsite
|
11
|
+
t.string :scripttwitter
|
12
|
+
t.string :scriptgithub
|
13
|
+
|
14
|
+
t.date :scriptinitialrelease
|
15
|
+
t.date :scriptlastestrelease
|
16
|
+
t.date :scriptbetarelease
|
17
|
+
t.date :scriptlastestreleasecdn
|
18
|
+
|
19
|
+
t.string :scriptstatus
|
20
|
+
|
21
|
+
t.references :version
|
22
|
+
t.references :licence
|
23
|
+
t.references :author
|
24
|
+
|
25
|
+
t.string :slug
|
26
|
+
|
27
|
+
t.string :user_id
|
28
|
+
t.string :user_name
|
29
|
+
|
30
|
+
t.timestamps
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
@@ -1,18 +1,18 @@
|
|
1
|
-
class CreatePhcscriptcdnScriptVersions < ActiveRecord::Migration[5.1]
|
2
|
-
def change
|
3
|
-
|
4
|
-
create_table :phcscriptcdn_script_versions do |t|
|
5
|
-
|
6
|
-
t.string :scriptversion
|
7
|
-
|
8
|
-
t.string :slug
|
9
|
-
|
10
|
-
t.string :user_id
|
11
|
-
t.string :user_name
|
12
|
-
|
13
|
-
t.timestamps
|
14
|
-
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
1
|
+
class CreatePhcscriptcdnScriptVersions < ActiveRecord::Migration[5.1]
|
2
|
+
def change
|
3
|
+
|
4
|
+
create_table :phcscriptcdn_script_versions do |t|
|
5
|
+
|
6
|
+
t.string :scriptversion
|
7
|
+
|
8
|
+
t.string :slug
|
9
|
+
|
10
|
+
t.string :user_id
|
11
|
+
t.string :user_name
|
12
|
+
|
13
|
+
t.timestamps
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
end
|
@@ -1,24 +1,24 @@
|
|
1
|
-
class CreatePhcscriptcdnScriptUrls < ActiveRecord::Migration[5.1]
|
2
|
-
def change
|
3
|
-
|
4
|
-
create_table :phcscriptcdn_script_urls do |t|
|
5
|
-
|
6
|
-
t.string :scripturl
|
7
|
-
t.date :scripturlrelease
|
8
|
-
t.date :scripturlcdnupdate
|
9
|
-
|
10
|
-
t.references :listing
|
11
|
-
t.references :version
|
12
|
-
t.references :extension
|
13
|
-
|
14
|
-
t.string :slug
|
15
|
-
|
16
|
-
t.string :user_id
|
17
|
-
t.string :user_name
|
18
|
-
|
19
|
-
t.timestamps
|
20
|
-
|
21
|
-
end
|
22
|
-
|
23
|
-
end
|
24
|
-
end
|
1
|
+
class CreatePhcscriptcdnScriptUrls < ActiveRecord::Migration[5.1]
|
2
|
+
def change
|
3
|
+
|
4
|
+
create_table :phcscriptcdn_script_urls do |t|
|
5
|
+
|
6
|
+
t.string :scripturl
|
7
|
+
t.date :scripturlrelease
|
8
|
+
t.date :scripturlcdnupdate
|
9
|
+
|
10
|
+
t.references :listing
|
11
|
+
t.references :version
|
12
|
+
t.references :extension
|
13
|
+
|
14
|
+
t.string :slug
|
15
|
+
|
16
|
+
t.string :user_id
|
17
|
+
t.string :user_name
|
18
|
+
|
19
|
+
t.timestamps
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
end
|
@@ -1,23 +1,23 @@
|
|
1
|
-
class CreatePhcscriptcdnScriptAuthors < ActiveRecord::Migration[5.1]
|
2
|
-
def change
|
3
|
-
|
4
|
-
create_table :phcscriptcdn_script_authors do |t|
|
5
|
-
|
6
|
-
t.string :authorfirstname
|
7
|
-
t.string :authorlastname
|
8
|
-
|
9
|
-
t.string :authorwebsite
|
10
|
-
t.string :authorgithub
|
11
|
-
t.string :authortwitter
|
12
|
-
|
13
|
-
t.string :slug
|
14
|
-
|
15
|
-
t.string :user_id
|
16
|
-
t.string :user_name
|
17
|
-
|
18
|
-
t.timestamps
|
19
|
-
|
20
|
-
end
|
21
|
-
|
22
|
-
end
|
23
|
-
end
|
1
|
+
class CreatePhcscriptcdnScriptAuthors < ActiveRecord::Migration[5.1]
|
2
|
+
def change
|
3
|
+
|
4
|
+
create_table :phcscriptcdn_script_authors do |t|
|
5
|
+
|
6
|
+
t.string :authorfirstname
|
7
|
+
t.string :authorlastname
|
8
|
+
|
9
|
+
t.string :authorwebsite
|
10
|
+
t.string :authorgithub
|
11
|
+
t.string :authortwitter
|
12
|
+
|
13
|
+
t.string :slug
|
14
|
+
|
15
|
+
t.string :user_id
|
16
|
+
t.string :user_name
|
17
|
+
|
18
|
+
t.timestamps
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
@@ -1,27 +1,27 @@
|
|
1
|
-
class CreatePhcscriptcdnScriptLicences < ActiveRecord::Migration[5.1]
|
2
|
-
def change
|
3
|
-
|
4
|
-
create_table :phcscriptcdn_script_licences do |t|
|
5
|
-
|
6
|
-
t.string :lcncname
|
7
|
-
t.string :lcncdescript
|
8
|
-
t.text :lcncdescription
|
9
|
-
|
10
|
-
t.string :lcnccomgpl
|
11
|
-
t.string :lcncarvlfsf
|
12
|
-
t.string :lcncarvlosi
|
13
|
-
t.string :lcncarvlcopyfree
|
14
|
-
t.string :lcncarvldebian
|
15
|
-
t.string :lcncarvlfedora
|
16
|
-
|
17
|
-
t.string :slug
|
18
|
-
|
19
|
-
t.string :user_id
|
20
|
-
t.string :user_name
|
21
|
-
|
22
|
-
t.timestamps
|
23
|
-
|
24
|
-
end
|
25
|
-
|
26
|
-
end
|
27
|
-
end
|
1
|
+
class CreatePhcscriptcdnScriptLicences < ActiveRecord::Migration[5.1]
|
2
|
+
def change
|
3
|
+
|
4
|
+
create_table :phcscriptcdn_script_licences do |t|
|
5
|
+
|
6
|
+
t.string :lcncname
|
7
|
+
t.string :lcncdescript
|
8
|
+
t.text :lcncdescription
|
9
|
+
|
10
|
+
t.string :lcnccomgpl
|
11
|
+
t.string :lcncarvlfsf
|
12
|
+
t.string :lcncarvlosi
|
13
|
+
t.string :lcncarvlcopyfree
|
14
|
+
t.string :lcncarvldebian
|
15
|
+
t.string :lcncarvlfedora
|
16
|
+
|
17
|
+
t.string :slug
|
18
|
+
|
19
|
+
t.string :user_id
|
20
|
+
t.string :user_name
|
21
|
+
|
22
|
+
t.timestamps
|
23
|
+
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
@@ -1,15 +1,15 @@
|
|
1
|
-
class CreateFriendlyIdSlugs < ActiveRecord::Migration[5.1]
|
2
|
-
def change
|
3
|
-
create_table :friendly_id_slugs do |t|
|
4
|
-
t.string :slug, :null => false
|
5
|
-
t.integer :sluggable_id, :null => false
|
6
|
-
t.string :sluggable_type, :limit => 50
|
7
|
-
t.string :scope
|
8
|
-
t.datetime :created_at
|
9
|
-
end
|
10
|
-
add_index :friendly_id_slugs, :sluggable_id
|
11
|
-
add_index :friendly_id_slugs, [:slug, :sluggable_type], length: { slug: 140, sluggable_type: 50 }
|
12
|
-
add_index :friendly_id_slugs, [:slug, :sluggable_type, :scope], length: { slug: 70, sluggable_type: 50, scope: 70 }, unique: true
|
13
|
-
add_index :friendly_id_slugs, :sluggable_type
|
14
|
-
end
|
15
|
-
end
|
1
|
+
class CreateFriendlyIdSlugs < ActiveRecord::Migration[5.1]
|
2
|
+
def change
|
3
|
+
create_table :friendly_id_slugs do |t|
|
4
|
+
t.string :slug, :null => false
|
5
|
+
t.integer :sluggable_id, :null => false
|
6
|
+
t.string :sluggable_type, :limit => 50
|
7
|
+
t.string :scope
|
8
|
+
t.datetime :created_at
|
9
|
+
end
|
10
|
+
add_index :friendly_id_slugs, :sluggable_id
|
11
|
+
add_index :friendly_id_slugs, [:slug, :sluggable_type], length: { slug: 140, sluggable_type: 50 }
|
12
|
+
add_index :friendly_id_slugs, [:slug, :sluggable_type, :scope], length: { slug: 70, sluggable_type: 50, scope: 70 }, unique: true
|
13
|
+
add_index :friendly_id_slugs, :sluggable_type
|
14
|
+
end
|
15
|
+
end
|
data/lib/phcscriptcdn.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require "phcscriptcdn/engine"
|
2
|
-
|
3
|
-
module Phcscriptcdn
|
4
|
-
end
|
1
|
+
require "phcscriptcdn/engine"
|
2
|
+
|
3
|
+
module Phcscriptcdn
|
4
|
+
end
|
data/lib/phcscriptcdn/engine.rb
CHANGED
@@ -1,68 +1,68 @@
|
|
1
|
-
module Phcscriptcdn
|
2
|
-
class Engine < ::Rails::Engine
|
3
|
-
|
4
|
-
# Main Dependencies
|
5
|
-
require 'paper_trail'
|
6
|
-
|
7
|
-
# UI & Frontend Dependencies
|
8
|
-
require 'jquery-rails'
|
9
|
-
require 'jquery-ui-rails'
|
10
|
-
require 'sass-rails'
|
11
|
-
require 'bootstrap-sass'
|
12
|
-
require 'font-awesome-rails'
|
13
|
-
require 'country_select'
|
14
|
-
require 'gravtastic'
|
15
|
-
require 'webpacker'
|
16
|
-
|
17
|
-
# WYSIWYG Editor Dependencies
|
18
|
-
require 'tinymce-rails'
|
19
|
-
|
20
|
-
# API Dependencies
|
21
|
-
require 'rabl'
|
22
|
-
require 'oj'
|
23
|
-
require 'multi_json'
|
24
|
-
require 'responders'
|
25
|
-
|
26
|
-
# Upload & Media Dependencies
|
27
|
-
require 'carrierwave'
|
28
|
-
require 'cloudinary'
|
29
|
-
|
30
|
-
# Clean URLS
|
31
|
-
require 'friendly_id'
|
32
|
-
|
33
|
-
# PHCEngine Dependencies
|
34
|
-
require 'phcnotifi'
|
35
|
-
require 'phctitleseo'
|
36
|
-
|
37
|
-
# PHCTheme Dependencies
|
38
|
-
require 'phctheme1'
|
39
|
-
require 'phctheme2'
|
40
|
-
|
41
|
-
# PHCAdmin Dependencies
|
42
|
-
require 'phcadmin1'
|
43
|
-
require 'phcadmin2'
|
44
|
-
require 'phcadmin3'
|
45
|
-
|
46
|
-
# Isolate Namespace
|
47
|
-
isolate_namespace Phcscriptcdn
|
48
|
-
|
49
|
-
# Testing Generator
|
50
|
-
config.generators do |g|
|
51
|
-
g.test_framework :rspec,
|
52
|
-
fixtures: true,
|
53
|
-
view_specs: false,
|
54
|
-
helper_specs: false,
|
55
|
-
routing_specs: false,
|
56
|
-
controller_specs: true,
|
57
|
-
request_specs: false
|
58
|
-
g.fixture_replacement :factory_girl, dir: "spec/factories"
|
59
|
-
end
|
60
|
-
|
61
|
-
# Load Requried Helper Files
|
62
|
-
config.to_prepare do
|
63
|
-
Phcnotifi::ApplicationController.helper(ApplicationHelper)
|
64
|
-
Phctitleseo::ApplicationController.helper(ApplicationHelper)
|
65
|
-
end
|
66
|
-
|
67
|
-
end
|
68
|
-
end
|
1
|
+
module Phcscriptcdn
|
2
|
+
class Engine < ::Rails::Engine
|
3
|
+
|
4
|
+
# Main Dependencies
|
5
|
+
require 'paper_trail'
|
6
|
+
|
7
|
+
# UI & Frontend Dependencies
|
8
|
+
require 'jquery-rails'
|
9
|
+
require 'jquery-ui-rails'
|
10
|
+
require 'sass-rails'
|
11
|
+
require 'bootstrap-sass'
|
12
|
+
require 'font-awesome-rails'
|
13
|
+
require 'country_select'
|
14
|
+
require 'gravtastic'
|
15
|
+
require 'webpacker'
|
16
|
+
|
17
|
+
# WYSIWYG Editor Dependencies
|
18
|
+
require 'tinymce-rails'
|
19
|
+
|
20
|
+
# API Dependencies
|
21
|
+
require 'rabl'
|
22
|
+
require 'oj'
|
23
|
+
require 'multi_json'
|
24
|
+
require 'responders'
|
25
|
+
|
26
|
+
# Upload & Media Dependencies
|
27
|
+
require 'carrierwave'
|
28
|
+
require 'cloudinary'
|
29
|
+
|
30
|
+
# Clean URLS
|
31
|
+
require 'friendly_id'
|
32
|
+
|
33
|
+
# PHCEngine Dependencies
|
34
|
+
require 'phcnotifi'
|
35
|
+
require 'phctitleseo'
|
36
|
+
|
37
|
+
# PHCTheme Dependencies
|
38
|
+
require 'phctheme1'
|
39
|
+
require 'phctheme2'
|
40
|
+
|
41
|
+
# PHCAdmin Dependencies
|
42
|
+
require 'phcadmin1'
|
43
|
+
require 'phcadmin2'
|
44
|
+
require 'phcadmin3'
|
45
|
+
|
46
|
+
# Isolate Namespace
|
47
|
+
isolate_namespace Phcscriptcdn
|
48
|
+
|
49
|
+
# Testing Generator
|
50
|
+
config.generators do |g|
|
51
|
+
g.test_framework :rspec,
|
52
|
+
fixtures: true,
|
53
|
+
view_specs: false,
|
54
|
+
helper_specs: false,
|
55
|
+
routing_specs: false,
|
56
|
+
controller_specs: true,
|
57
|
+
request_specs: false
|
58
|
+
g.fixture_replacement :factory_girl, dir: "spec/factories"
|
59
|
+
end
|
60
|
+
|
61
|
+
# Load Requried Helper Files
|
62
|
+
config.to_prepare do
|
63
|
+
Phcnotifi::ApplicationController.helper(ApplicationHelper)
|
64
|
+
Phctitleseo::ApplicationController.helper(ApplicationHelper)
|
65
|
+
end
|
66
|
+
|
67
|
+
end
|
68
|
+
end
|