phcscriptcdnpro 78.4.0 → 79.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/Rakefile +4 -18
- data/app/assets/config/phcscriptcdnpro_manifest.js +2 -2
- data/app/controllers/phcscriptcdnpro/application_controller.rb +4 -5
- data/app/controllers/phcscriptcdnpro/script/authors_controller.rb +1 -1
- data/app/controllers/phcscriptcdnpro/script/extensions_controller.rb +1 -1
- data/app/controllers/phcscriptcdnpro/script/licences_controller.rb +1 -1
- data/app/controllers/phcscriptcdnpro/script/listings_controller.rb +1 -1
- data/app/controllers/phcscriptcdnpro/script/urls_controller.rb +2 -2
- data/app/controllers/phcscriptcdnpro/script/versions_controller.rb +1 -1
- data/app/models/phcscriptcdnpro/script/url.rb +16 -16
- data/app/views/layouts/phcscriptcdnpro/application.html.erb +58 -64
- data/app/views/layouts/phcscriptcdnpro/components/backend/footer/_footer.html.erb +14 -6
- data/app/views/layouts/phcscriptcdnpro/components/backend/navigation/_top_menu.html.erb +41 -37
- data/app/views/layouts/phcscriptcdnpro/components/backend/sidebars/_side_menu.html.erb +921 -189
- data/app/views/phcscriptcdnpro/script/authors/_form.html.erb +15 -15
- data/app/views/phcscriptcdnpro/script/authors/edit.html.erb +21 -17
- data/app/views/phcscriptcdnpro/script/authors/index.html.erb +26 -25
- data/app/views/phcscriptcdnpro/script/authors/new.html.erb +21 -17
- data/app/views/phcscriptcdnpro/script/authors/show.html.erb +15 -15
- data/app/views/phcscriptcdnpro/script/extensions/_form.html.erb +13 -13
- data/app/views/phcscriptcdnpro/script/extensions/edit.html.erb +21 -17
- data/app/views/phcscriptcdnpro/script/extensions/index.html.erb +26 -25
- data/app/views/phcscriptcdnpro/script/extensions/new.html.erb +21 -17
- data/app/views/phcscriptcdnpro/script/extensions/show.html.erb +15 -15
- data/app/views/phcscriptcdnpro/script/licences/_form.html.erb +29 -29
- data/app/views/phcscriptcdnpro/script/licences/edit.html.erb +21 -17
- data/app/views/phcscriptcdnpro/script/licences/index.html.erb +26 -25
- data/app/views/phcscriptcdnpro/script/licences/new.html.erb +21 -17
- data/app/views/phcscriptcdnpro/script/licences/show.html.erb +15 -15
- data/app/views/phcscriptcdnpro/script/listings/_form.html.erb +34 -34
- data/app/views/phcscriptcdnpro/script/listings/edit.html.erb +21 -17
- data/app/views/phcscriptcdnpro/script/listings/index.html.erb +26 -25
- data/app/views/phcscriptcdnpro/script/listings/new.html.erb +21 -17
- data/app/views/phcscriptcdnpro/script/listings/show.html.erb +15 -15
- data/app/views/phcscriptcdnpro/script/urls/_form.html.erb +19 -19
- data/app/views/phcscriptcdnpro/script/urls/edit.html.erb +21 -17
- data/app/views/phcscriptcdnpro/script/urls/index.html.erb +26 -25
- data/app/views/phcscriptcdnpro/script/urls/new.html.erb +21 -17
- data/app/views/phcscriptcdnpro/script/urls/show.html.erb +15 -15
- data/app/views/phcscriptcdnpro/script/versions/_form.html.erb +10 -10
- data/app/views/phcscriptcdnpro/script/versions/edit.html.erb +21 -17
- data/app/views/phcscriptcdnpro/script/versions/index.html.erb +26 -25
- data/app/views/phcscriptcdnpro/script/versions/new.html.erb +21 -17
- data/app/views/phcscriptcdnpro/script/versions/show.html.erb +15 -15
- data/config/routes.rb +18 -21
- data/db/migrate/20160821183652_create_phcscriptcdnpro_script_listings.rb +33 -0
- data/db/migrate/20160821183714_create_phcscriptcdnpro_script_authors.rb +22 -0
- data/db/migrate/20160821183735_create_phcscriptcdnpro_script_extensions.rb +20 -0
- data/db/migrate/20160821183805_create_phcscriptcdnpro_script_licences.rb +26 -0
- data/db/migrate/20160821183830_create_phcscriptcdnpro_script_urls.rb +24 -0
- data/db/migrate/20160821183946_create_phcscriptcdnpro_script_versions.rb +18 -0
- data/db/migrate/20170509002355_create_phcscriptcdnpro_friendly_id_slugs.rb +18 -0
- data/db/migrate/20170517064030_create_phcscriptcdnpro_extension_versions.rb +17 -0
- data/db/migrate/20170517064049_create_phcscriptcdnpro_listing_versions.rb +17 -0
- data/db/migrate/20170517064114_create_phcscriptcdnpro_scriptversion_versions.rb +17 -0
- data/db/migrate/20170517064150_create_phcscriptcdnpro_url_versions.rb +17 -0
- data/db/migrate/20170517064208_create_phcscriptcdnpro_author_versions.rb +17 -0
- data/db/migrate/20170517064427_create_phcscriptcdnpro_licence_versions.rb +17 -0
- data/lib/phcscriptcdnpro/engine.rb +30 -56
- data/lib/phcscriptcdnpro/version.rb +1 -1
- data/lib/phcscriptcdnpro.rb +2 -0
- metadata +73 -389
- data/app/assets/javascripts/phcscriptcdnpro/application.js +0 -2
- data/app/assets/stylesheets/phcscriptcdnpro/application.scss +0 -2
@@ -1,27 +1,27 @@
|
|
1
|
-
<!-- Title
|
1
|
+
<!-- -PHCDEV- Title Variables -->
|
2
2
|
<% phc_title "Script Listings Manager" %>
|
3
3
|
<% phc_title_tagline "Script Version Details" %>
|
4
4
|
<% phc_breadcrumb_one link_to "Script Index", phcscriptcdnpro.script_listings_path %>
|
5
5
|
<% phc_breadcrumb_two link_to "Script Version Index", phcscriptcdnpro.script_versions_path %>
|
6
6
|
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
7
|
-
<!-- Title
|
7
|
+
<!-- -PHCDEV- Title Variables -->
|
8
8
|
|
9
|
-
<!--
|
10
|
-
<ol class="breadcrumb
|
9
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
10
|
+
<ol class="breadcrumb float-xl-end">
|
11
11
|
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
12
|
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
13
13
|
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
14
14
|
</ol>
|
15
|
-
<!--
|
15
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
16
16
|
|
17
|
-
<!--
|
17
|
+
<!-- -PHCDEV- Header -->
|
18
18
|
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
19
|
-
<!--
|
19
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
20
20
|
|
21
|
-
<!--
|
21
|
+
<!-- -PHCDEV- Panel -->
|
22
22
|
<div class="row">
|
23
23
|
|
24
|
-
<!-- Button Panel -->
|
24
|
+
<!-- -PHCDEV- Button Panel -->
|
25
25
|
<div class="col-lg-4">
|
26
26
|
|
27
27
|
<div class="panel panel-inverse">
|
@@ -31,19 +31,19 @@
|
|
31
31
|
</div>
|
32
32
|
<div class="panel-body">
|
33
33
|
<div class="btn-group d-flex" role="group">
|
34
|
-
<%= link_to
|
35
|
-
<%= link_to
|
34
|
+
<%= link_to "Update", phcscriptcdnpro.edit_script_version_path, class: "btn btn-primary" %>
|
35
|
+
<%= link_to "Remove", phcscriptcdnpro.script_version_path, method: :delete, data: { confirm: "Are you sure?" }, class: "btn btn-danger" %>
|
36
36
|
</div>
|
37
37
|
</div>
|
38
38
|
</div>
|
39
39
|
|
40
40
|
</div>
|
41
|
-
<!-- Button Panel -->
|
41
|
+
<!-- -PHCDEV- Button Panel -->
|
42
42
|
|
43
|
-
<!-- Main Panel -->
|
43
|
+
<!-- -PHCDEV- Main Panel -->
|
44
44
|
<div class="col-lg-8">
|
45
45
|
</div>
|
46
|
-
<!-- Main Panel -->
|
46
|
+
<!-- -PHCDEV- Main Panel -->
|
47
47
|
|
48
48
|
</div>
|
49
|
-
<!--
|
49
|
+
<!-- -PHCDEV- Panel -->
|
data/config/routes.rb
CHANGED
@@ -1,26 +1,23 @@
|
|
1
1
|
Phcscriptcdnpro::Engine.routes.draw do
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
3
|
+
# API Routes
|
4
|
+
namespace :api, :path => "", :constraints => {:subdomain => "api"} do
|
5
|
+
namespace :v1 do
|
6
|
+
resources :mains, defaults: {format: "json"}
|
7
|
+
resources :informations, defaults: {format: "json"}
|
8
|
+
resources :versions, defaults: {format: "json"}
|
9
|
+
end
|
10
|
+
end
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
# PHCAccounts Routes
|
24
|
-
mount Phcaccountspro::Engine, :at => '/'
|
12
|
+
# Script CDN Routes
|
13
|
+
namespace :script do
|
14
|
+
resources :listings, class_name: "Phcscriptcdnpro::Script::Listing" do
|
15
|
+
resources :urls, class_name: "Phcscriptcdnpro::Script::Url"
|
16
|
+
end
|
17
|
+
resources :authors, class_name: "Phcscriptcdnpro::Script::Author"
|
18
|
+
resources :extensions, class_name: "Phcscriptcdnpro::Script::Extension"
|
19
|
+
resources :versions, class_name: "Phcscriptcdnpro::Script::Version"
|
20
|
+
resources :licences, class_name: "Phcscriptcdnpro::Script::Licence"
|
21
|
+
end
|
25
22
|
|
26
23
|
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
class CreatePhcscriptcdnproScriptListings < ActiveRecord::Migration[7.0]
|
2
|
+
def change
|
3
|
+
|
4
|
+
create_table :phcscriptcdnpro_script_listings do |t|
|
5
|
+
|
6
|
+
t.string :script_title
|
7
|
+
t.text :script_description
|
8
|
+
t.string :script_source
|
9
|
+
|
10
|
+
t.string :script_website
|
11
|
+
t.string :script_github
|
12
|
+
|
13
|
+
t.date :script_initial_release
|
14
|
+
t.date :script_lastest_release
|
15
|
+
t.date :script_beta_release
|
16
|
+
t.date :script_lastest_release_cdn
|
17
|
+
|
18
|
+
t.string :script_status
|
19
|
+
|
20
|
+
t.string :slug
|
21
|
+
|
22
|
+
t.string :user_id
|
23
|
+
t.string :org_id
|
24
|
+
|
25
|
+
t.references :licence
|
26
|
+
t.references :author
|
27
|
+
|
28
|
+
t.timestamps
|
29
|
+
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
class CreatePhcscriptcdnproScriptAuthors < ActiveRecord::Migration[7.0]
|
2
|
+
def change
|
3
|
+
|
4
|
+
create_table :phcscriptcdnpro_script_authors do |t|
|
5
|
+
|
6
|
+
t.string :author_first_name
|
7
|
+
t.string :author_last_name
|
8
|
+
|
9
|
+
t.string :author_website
|
10
|
+
t.string :author_github
|
11
|
+
|
12
|
+
t.string :slug
|
13
|
+
|
14
|
+
t.string :user_id
|
15
|
+
t.string :org_id
|
16
|
+
|
17
|
+
t.timestamps
|
18
|
+
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
class CreatePhcscriptcdnproScriptExtensions < ActiveRecord::Migration[7.0]
|
2
|
+
def change
|
3
|
+
|
4
|
+
create_table :phcscriptcdnpro_script_extensions do |t|
|
5
|
+
|
6
|
+
t.string :script_extension_name
|
7
|
+
t.text :script_extension_description
|
8
|
+
t.string :script_extension
|
9
|
+
|
10
|
+
t.string :slug
|
11
|
+
|
12
|
+
t.string :user_id
|
13
|
+
t.string :org_id
|
14
|
+
|
15
|
+
t.timestamps
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class CreatePhcscriptcdnproScriptLicences < ActiveRecord::Migration[7.0]
|
2
|
+
def change
|
3
|
+
|
4
|
+
create_table :phcscriptcdnpro_script_licences do |t|
|
5
|
+
|
6
|
+
t.string :licence_name
|
7
|
+
t.text :licence_description
|
8
|
+
|
9
|
+
t.string :licence_compatible_gpl
|
10
|
+
t.string :licence_approval_fsf
|
11
|
+
t.string :licence_approval_osi
|
12
|
+
t.string :licence_approval_copyfree
|
13
|
+
t.string :licence_approval_debian
|
14
|
+
t.string :licence_approval_fedora
|
15
|
+
|
16
|
+
t.string :slug
|
17
|
+
|
18
|
+
t.string :user_id
|
19
|
+
t.string :org_id
|
20
|
+
|
21
|
+
t.timestamps
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
class CreatePhcscriptcdnproScriptUrls < ActiveRecord::Migration[7.0]
|
2
|
+
def change
|
3
|
+
|
4
|
+
create_table :phcscriptcdnpro_script_urls do |t|
|
5
|
+
|
6
|
+
t.string :script_url
|
7
|
+
t.date :script_url_release
|
8
|
+
t.date :script_url_cdn_update
|
9
|
+
|
10
|
+
t.string :slug
|
11
|
+
|
12
|
+
t.string :user_id
|
13
|
+
t.string :org_id
|
14
|
+
|
15
|
+
t.references :listing
|
16
|
+
t.references :extension
|
17
|
+
t.references :version
|
18
|
+
|
19
|
+
t.timestamps
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
class CreatePhcscriptcdnproScriptVersions < ActiveRecord::Migration[7.0]
|
2
|
+
def change
|
3
|
+
|
4
|
+
create_table :phcscriptcdnpro_script_versions do |t|
|
5
|
+
|
6
|
+
t.string :script_version_number
|
7
|
+
|
8
|
+
t.string :slug
|
9
|
+
|
10
|
+
t.string :user_id
|
11
|
+
t.string :org_id
|
12
|
+
|
13
|
+
t.timestamps
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
class CreatePhcscriptcdnproFriendlyIdSlugs < ActiveRecord::Migration[7.0]
|
2
|
+
def change
|
3
|
+
|
4
|
+
create_table :phcscriptcdnpro_friendly_id_slugs do |t|
|
5
|
+
t.string :slug, :null => false
|
6
|
+
t.integer :sluggable_id, :null => false
|
7
|
+
t.string :sluggable_type, :limit => 50
|
8
|
+
t.string :scope
|
9
|
+
t.datetime :created_at
|
10
|
+
end
|
11
|
+
|
12
|
+
add_index :phcscriptcdnpro_friendly_id_slugs, :sluggable_id
|
13
|
+
add_index :phcscriptcdnpro_friendly_id_slugs, [:slug, :sluggable_type], name: 'scriptcdnpro_fri_id_slugable_type', length: { slug: 140, sluggable_type: 50 }
|
14
|
+
add_index :phcscriptcdnpro_friendly_id_slugs, [:slug, :sluggable_type, :scope], name: 'scriptcdnpro_fri_id_slugable_scope_type', length: { slug: 70, sluggable_type: 50, scope: 70 }, unique: true
|
15
|
+
add_index :phcscriptcdnpro_friendly_id_slugs, :sluggable_type
|
16
|
+
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class CreatePhcscriptcdnproExtensionVersions < ActiveRecord::Migration[7.0]
|
2
|
+
TEXT_BYTES = 1_073_741_823
|
3
|
+
def change
|
4
|
+
|
5
|
+
create_table :phcscriptcdnpro_extension_versions do |t|
|
6
|
+
t.string :item_type, {:null=>false}
|
7
|
+
t.integer :item_id, null: false
|
8
|
+
t.string :event, null: false
|
9
|
+
t.string :whodunnit
|
10
|
+
t.text :object, limit: TEXT_BYTES
|
11
|
+
t.datetime :created_at
|
12
|
+
end
|
13
|
+
|
14
|
+
add_index :phcscriptcdnpro_extension_versions, %i(item_type item_id), :name => 'scriptcdnpro_ext_versions'
|
15
|
+
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class CreatePhcscriptcdnproListingVersions < ActiveRecord::Migration[7.0]
|
2
|
+
TEXT_BYTES = 1_073_741_823
|
3
|
+
def change
|
4
|
+
|
5
|
+
create_table :phcscriptcdnpro_listing_versions do |t|
|
6
|
+
t.string :item_type, {:null=>false}
|
7
|
+
t.integer :item_id, null: false
|
8
|
+
t.string :event, null: false
|
9
|
+
t.string :whodunnit
|
10
|
+
t.text :object, limit: TEXT_BYTES
|
11
|
+
t.datetime :created_at
|
12
|
+
end
|
13
|
+
|
14
|
+
add_index :phcscriptcdnpro_listing_versions, %i(item_type item_id), :name => 'scriptcdnpro_listing_versions'
|
15
|
+
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class CreatePhcscriptcdnproScriptversionVersions < ActiveRecord::Migration[7.0]
|
2
|
+
TEXT_BYTES = 1_073_741_823
|
3
|
+
def change
|
4
|
+
|
5
|
+
create_table :phcscriptcdnpro_scriptversion_versions do |t|
|
6
|
+
t.string :item_type, {:null=>false}
|
7
|
+
t.integer :item_id, null: false
|
8
|
+
t.string :event, null: false
|
9
|
+
t.string :whodunnit
|
10
|
+
t.text :object, limit: TEXT_BYTES
|
11
|
+
t.datetime :created_at
|
12
|
+
end
|
13
|
+
|
14
|
+
add_index :phcscriptcdnpro_scriptversion_versions, %i(item_type item_id), :name => 'scriptcdnpro_scriptversion_versions'
|
15
|
+
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class CreatePhcscriptcdnproUrlVersions < ActiveRecord::Migration[7.0]
|
2
|
+
TEXT_BYTES = 1_073_741_823
|
3
|
+
def change
|
4
|
+
|
5
|
+
create_table :phcscriptcdnpro_url_versions do |t|
|
6
|
+
t.string :item_type, {:null=>false}
|
7
|
+
t.integer :item_id, null: false
|
8
|
+
t.string :event, null: false
|
9
|
+
t.string :whodunnit
|
10
|
+
t.text :object, limit: TEXT_BYTES
|
11
|
+
t.datetime :created_at
|
12
|
+
end
|
13
|
+
|
14
|
+
add_index :phcscriptcdnpro_url_versions, %i(item_type item_id), :name => 'scriptcdnpro_url_versions'
|
15
|
+
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class CreatePhcscriptcdnproAuthorVersions < ActiveRecord::Migration[7.0]
|
2
|
+
TEXT_BYTES = 1_073_741_823
|
3
|
+
def change
|
4
|
+
|
5
|
+
create_table :phcscriptcdnpro_author_versions do |t|
|
6
|
+
t.string :item_type, {:null=>false}
|
7
|
+
t.integer :item_id, null: false
|
8
|
+
t.string :event, null: false
|
9
|
+
t.string :whodunnit
|
10
|
+
t.text :object, limit: TEXT_BYTES
|
11
|
+
t.datetime :created_at
|
12
|
+
end
|
13
|
+
|
14
|
+
add_index :phcscriptcdnpro_author_versions, %i(item_type item_id), :name => 'scriptcdnpro_author_versions'
|
15
|
+
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class CreatePhcscriptcdnproLicenceVersions < ActiveRecord::Migration[7.0]
|
2
|
+
TEXT_BYTES = 1_073_741_823
|
3
|
+
def change
|
4
|
+
|
5
|
+
create_table :phcscriptcdnpro_licence_versions do |t|
|
6
|
+
t.string :item_type, {:null=>false}
|
7
|
+
t.integer :item_id, null: false
|
8
|
+
t.string :event, null: false
|
9
|
+
t.string :whodunnit
|
10
|
+
t.text :object, limit: TEXT_BYTES
|
11
|
+
t.datetime :created_at
|
12
|
+
end
|
13
|
+
|
14
|
+
add_index :phcscriptcdnpro_licence_versions, %i(item_type item_id), :name => 'scriptcdnpro_licence_versions'
|
15
|
+
|
16
|
+
end
|
17
|
+
end
|
@@ -1,69 +1,43 @@
|
|
1
1
|
module Phcscriptcdnpro
|
2
2
|
class Engine < ::Rails::Engine
|
3
3
|
|
4
|
-
#
|
5
|
-
require
|
6
|
-
require
|
7
|
-
require
|
8
|
-
|
9
|
-
|
10
|
-
require
|
11
|
-
require
|
12
|
-
|
13
|
-
#
|
14
|
-
require
|
15
|
-
require
|
16
|
-
require
|
17
|
-
require
|
18
|
-
|
19
|
-
|
20
|
-
require
|
21
|
-
|
22
|
-
|
23
|
-
require 'phccorehelpers'
|
24
|
-
require 'phcmenus'
|
25
|
-
require 'phcnotifi'
|
26
|
-
require 'phctitleseo'
|
4
|
+
# Load Main Dependencies
|
5
|
+
require "jbuilder"
|
6
|
+
require "paper_trail"
|
7
|
+
require "friendly_id"
|
8
|
+
|
9
|
+
# Load Theme Dependencies
|
10
|
+
require "phcthemes_admin_panel_pack"
|
11
|
+
require "phcthemes_web_theme_pack"
|
12
|
+
|
13
|
+
# Load Helper Dependencies
|
14
|
+
require "phcdevworks_core"
|
15
|
+
require "phcdevworks_active_menus"
|
16
|
+
require "phcdevworks_notifications"
|
17
|
+
require "phcdevworks_titleseo"
|
18
|
+
|
19
|
+
# Load Upload Dependencies
|
20
|
+
require "aws-sdk-s3"
|
21
|
+
require "google-cloud-storage"
|
22
|
+
require "mini_magick"
|
27
23
|
|
28
24
|
# Frontend Dependencies
|
29
|
-
require
|
30
|
-
require
|
31
|
-
|
32
|
-
# Upload Dependencies
|
33
|
-
require 'aws-sdk-s3'
|
34
|
-
require 'google-cloud-storage'
|
35
|
-
require 'mini_magick'
|
25
|
+
require "wicked"
|
26
|
+
require "gravtastic"
|
27
|
+
require "friendly_id"
|
36
28
|
|
37
|
-
#
|
38
|
-
require
|
39
|
-
require 'pg'
|
29
|
+
# Mailer Dependencies
|
30
|
+
require "mail_form"
|
40
31
|
|
41
|
-
#
|
42
|
-
require 'phcaccountspro'
|
43
|
-
|
44
|
-
# Isolate Namespace
|
32
|
+
# Engine Namespace
|
45
33
|
isolate_namespace Phcscriptcdnpro
|
46
34
|
|
47
|
-
#
|
35
|
+
# Rspec Generators
|
48
36
|
config.generators do |g|
|
49
|
-
g.test_framework :rspec
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
routing_specs: false,
|
54
|
-
controller_specs: true,
|
55
|
-
request_specs: false
|
56
|
-
g.fixture_replacement :factory_bot,
|
57
|
-
dir: "spec/factories"
|
58
|
-
end
|
59
|
-
|
60
|
-
# Load Requried Helper Files
|
61
|
-
config.to_prepare do
|
62
|
-
Phcaccountspro::ApplicationController.helper(ApplicationHelper)
|
63
|
-
Phccorehelpers::ApplicationController.helper(ApplicationHelper)
|
64
|
-
Phcmenus::ApplicationController.helper(ApplicationHelper)
|
65
|
-
Phcnotifi::ApplicationController.helper(ApplicationHelper)
|
66
|
-
Phctitleseo::ApplicationController.helper(ApplicationHelper)
|
37
|
+
g.test_framework :rspec
|
38
|
+
g.fixture_replacement :factory_bot
|
39
|
+
g.factory_bot dir: 'spec/factories'
|
40
|
+
g.factory_bot suffix: "factory"
|
67
41
|
end
|
68
42
|
|
69
43
|
end
|