phcdevworks_scripts 8.2.0 → 9.0.2
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 +3 -1
- data/Rakefile +8 -8
- data/app/assets/config/phcdevworks_scripts_manifest.js +2 -3
- data/app/controllers/phcdevworks_scripts/application_controller.rb +0 -0
- data/app/controllers/phcdevworks_scripts/script/authors_controller.rb +0 -0
- data/app/controllers/phcdevworks_scripts/script/extensions_controller.rb +0 -0
- data/app/controllers/phcdevworks_scripts/script/listings_controller.rb +0 -0
- data/app/controllers/phcdevworks_scripts/script/urls_controller.rb +0 -0
- data/app/controllers/phcdevworks_scripts/script/versions_controller.rb +0 -0
- data/app/controllers/phcdevworks_scripts/snippet/posts_controller.rb +0 -0
- data/app/controllers/phcdevworks_scripts/snippet/urls_controller.rb +0 -0
- data/app/helpers/phcdevworks_scripts/application_helper.rb +0 -0
- data/app/helpers/phcdevworks_scripts/script/authors_helper.rb +0 -0
- data/app/helpers/phcdevworks_scripts/script/extensions_helper.rb +0 -0
- data/app/helpers/phcdevworks_scripts/script/listings_helper.rb +0 -0
- data/app/helpers/phcdevworks_scripts/script/urls_helper.rb +0 -0
- data/app/helpers/phcdevworks_scripts/script/versions_helper.rb +0 -0
- data/app/helpers/phcdevworks_scripts/snippet/posts_helper.rb +0 -0
- data/app/helpers/phcdevworks_scripts/snippet/urls_helper.rb +0 -0
- data/app/jobs/phcdevworks_scripts/application_job.rb +0 -0
- data/app/mailers/phcdevworks_scripts/application_mailer.rb +0 -0
- data/app/models/phcdevworks_scripts/application_record.rb +0 -0
- data/app/models/phcdevworks_scripts/script/author.rb +0 -0
- data/app/models/phcdevworks_scripts/script/extension.rb +0 -0
- data/app/models/phcdevworks_scripts/script/listing.rb +0 -0
- data/app/models/phcdevworks_scripts/script/url.rb +0 -0
- data/app/models/phcdevworks_scripts/script/version.rb +0 -0
- data/app/models/phcdevworks_scripts/script.rb +0 -0
- data/app/models/phcdevworks_scripts/script_author_versions.rb +0 -0
- data/app/models/phcdevworks_scripts/script_extension_versions.rb +0 -0
- data/app/models/phcdevworks_scripts/script_listing_versions.rb +0 -0
- data/app/models/phcdevworks_scripts/script_url_versions.rb +0 -0
- data/app/models/phcdevworks_scripts/script_version_versions.rb +0 -0
- data/app/models/phcdevworks_scripts/snippet/post.rb +0 -0
- data/app/models/phcdevworks_scripts/snippet/url.rb +0 -0
- data/app/models/phcdevworks_scripts/snippet.rb +0 -0
- data/app/models/phcdevworks_scripts/snippet_post_versions.rb +0 -0
- data/app/models/phcdevworks_scripts/snippet_url_versions.rb +0 -0
- data/app/views/layouts/phcdevworks_scripts/application.html.erb +73 -131
- data/app/views/layouts/phcdevworks_scripts/components/backend/footer/_footer.html.erb +10 -9
- data/app/views/layouts/phcdevworks_scripts/components/backend/navigation/_top_menu.html.erb +26 -25
- data/app/views/layouts/phcdevworks_scripts/components/backend/sidebars/_side_menu.html.erb +491 -349
- data/app/views/phcdevworks_scripts/script/authors/_form.html.erb +16 -16
- data/app/views/phcdevworks_scripts/script/authors/edit.html.erb +23 -31
- data/app/views/phcdevworks_scripts/script/authors/index.html.erb +50 -58
- data/app/views/phcdevworks_scripts/script/authors/new.html.erb +23 -31
- data/app/views/phcdevworks_scripts/script/authors/show.html.erb +13 -13
- data/app/views/phcdevworks_scripts/script/extensions/_form.html.erb +14 -14
- data/app/views/phcdevworks_scripts/script/extensions/edit.html.erb +23 -31
- data/app/views/phcdevworks_scripts/script/extensions/index.html.erb +46 -54
- data/app/views/phcdevworks_scripts/script/extensions/new.html.erb +23 -31
- data/app/views/phcdevworks_scripts/script/extensions/show.html.erb +13 -13
- data/app/views/phcdevworks_scripts/script/listings/_form.html.erb +29 -29
- data/app/views/phcdevworks_scripts/script/listings/edit.html.erb +23 -31
- data/app/views/phcdevworks_scripts/script/listings/index.html.erb +50 -58
- data/app/views/phcdevworks_scripts/script/listings/new.html.erb +23 -31
- data/app/views/phcdevworks_scripts/script/listings/show.html.erb +13 -13
- data/app/views/phcdevworks_scripts/script/urls/_form.html.erb +18 -18
- data/app/views/phcdevworks_scripts/script/urls/edit.html.erb +27 -35
- data/app/views/phcdevworks_scripts/script/urls/index.html.erb +48 -56
- data/app/views/phcdevworks_scripts/script/urls/new.html.erb +23 -31
- data/app/views/phcdevworks_scripts/script/urls/show.html.erb +13 -13
- data/app/views/phcdevworks_scripts/script/versions/_form.html.erb +10 -10
- data/app/views/phcdevworks_scripts/script/versions/edit.html.erb +23 -31
- data/app/views/phcdevworks_scripts/script/versions/index.html.erb +43 -51
- data/app/views/phcdevworks_scripts/script/versions/new.html.erb +23 -31
- data/app/views/phcdevworks_scripts/script/versions/show.html.erb +13 -13
- data/app/views/phcdevworks_scripts/snippet/posts/_form.html.erb +12 -12
- data/app/views/phcdevworks_scripts/snippet/posts/edit.html.erb +23 -31
- data/app/views/phcdevworks_scripts/snippet/posts/index.html.erb +54 -62
- data/app/views/phcdevworks_scripts/snippet/posts/new.html.erb +23 -31
- data/app/views/phcdevworks_scripts/snippet/posts/show.html.erb +25 -25
- data/app/views/phcdevworks_scripts/snippet/urls/_form.html.erb +10 -10
- data/app/views/phcdevworks_scripts/snippet/urls/edit.html.erb +23 -31
- data/app/views/phcdevworks_scripts/snippet/urls/index.html.erb +52 -60
- data/app/views/phcdevworks_scripts/snippet/urls/new.html.erb +23 -31
- data/app/views/phcdevworks_scripts/snippet/urls/show.html.erb +25 -25
- data/config/routes.rb +0 -4
- data/config/spring.rb +0 -0
- data/db/migrate/20170517064030_create_phcdevworks_scripts_script_extension_versions.rb +1 -1
- data/db/migrate/20170517064049_create_phcdevworks_scripts_script_listing_versions.rb +1 -1
- data/db/migrate/20170517064114_create_phcdevworks_scripts_script_version_versions.rb +1 -1
- data/db/migrate/20170517064150_create_phcdevworks_scripts_script_url_versions.rb +1 -1
- data/db/migrate/20170517064208_create_phcdevworks_scripts_script_author_versions.rb +1 -1
- data/db/migrate/20190818022002_create_phcdevworks_scripts_snippet_posts.rb +1 -1
- data/db/migrate/20190818022024_create_phcdevworks_scripts_snippet_urls.rb +1 -1
- data/db/migrate/20190818022939_create_phcdevworks_scripts_script_authors.rb +1 -1
- data/db/migrate/20190818023353_create_phcdevworks_scripts_script_listings.rb +1 -1
- data/db/migrate/20190818023709_create_phcdevworks_scripts_script_extensions.rb +1 -1
- data/db/migrate/20190818023911_create_phcdevworks_scripts_script_urls.rb +1 -1
- data/db/migrate/20190818031653_create_phcdevworks_scripts_script_versions.rb +1 -1
- data/db/migrate/20191102092649_create_phcdevworks_scripts_snippet_url_versions.rb +1 -1
- data/db/migrate/20191102092711_create_phcdevworks_scripts_snippet_post_versions.rb +1 -1
- data/lib/phcdevworks_scripts/engine.rb +47 -47
- data/lib/phcdevworks_scripts/version.rb +1 -1
- data/lib/phcdevworks_scripts.rb +6 -6
- data/lib/tasks/phcdevworks_scripts_tasks.rake +4 -4
- metadata +34 -85
- data/app/assets/stylesheets/phcdevworks_scripts/application.scss +0 -15
- data/app/assets/stylesheets/phcdevworks_scripts/script/authors.scss +0 -3
- data/app/assets/stylesheets/phcdevworks_scripts/script/extensions.scss +0 -3
- data/app/assets/stylesheets/phcdevworks_scripts/script/listings.scss +0 -3
- data/app/assets/stylesheets/phcdevworks_scripts/script/urls.scss +0 -3
- data/app/assets/stylesheets/phcdevworks_scripts/script/versions.scss +0 -3
- data/app/assets/stylesheets/phcdevworks_scripts/snippet/posts.scss +0 -3
- data/app/assets/stylesheets/phcdevworks_scripts/snippet/urls.scss +0 -3
@@ -1,80 +1,72 @@
|
|
1
|
-
<!--
|
1
|
+
<!-- -PHCDEV- Title Variables -->
|
2
2
|
<% phc_title "Code Snippet Manager" %>
|
3
3
|
<% phc_title_tagline "Update Asset Index" %>
|
4
4
|
<% phc_breadcrumb_one yield(:phc_title_tagline) %>
|
5
5
|
<% phc_breadcrumb_two link_to "Code Snippet Index", phcdevworks_scripts.snippet_posts_path %>
|
6
|
-
<!--
|
6
|
+
<!-- -PHCDEV- Title Variables -->
|
7
7
|
|
8
|
-
<!--
|
9
|
-
<ol class="breadcrumb
|
8
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
9
|
+
<ol class="breadcrumb float-xl-end">
|
10
10
|
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
11
|
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
12
|
</ol>
|
13
|
-
<!--
|
13
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
14
14
|
|
15
|
-
<!--
|
16
|
-
<
|
17
|
-
<!--
|
15
|
+
<!-- -PHCDEV- Header -->
|
16
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
17
|
+
<!-- -PHCDEV- Header -->
|
18
18
|
|
19
|
-
<!--
|
20
|
-
<div class="
|
21
|
-
<div class="col-lg-12">
|
19
|
+
<!-- -PHCDEV- Panel -->
|
20
|
+
<div class="panel panel-inverse">
|
22
21
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
29
|
-
</div>
|
30
|
-
<!-- Panel - Heading -->
|
31
|
-
|
32
|
-
<!-- Panel - Body -->
|
33
|
-
<div class="panel-body">
|
34
|
-
|
35
|
-
<!-- Index - Table -->
|
36
|
-
<div class="table-responsive">
|
37
|
-
<table class="table table-striped table-bordered">
|
38
|
-
|
39
|
-
<thead>
|
40
|
-
<tr>
|
41
|
-
<th>Script Url</th>
|
42
|
-
<th></th>
|
43
|
-
</tr>
|
44
|
-
</thead>
|
22
|
+
<!-- -PHCDEV- Panel - Heading -->
|
23
|
+
<div class="panel-heading">
|
24
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
25
|
+
</div>
|
26
|
+
<!-- -PHCDEV- Panel - Heading -->
|
45
27
|
|
46
|
-
|
47
|
-
|
48
|
-
<tr>
|
49
|
-
<td><%= snippet_url.snippet_url %></td>
|
50
|
-
<td>
|
51
|
-
<div class="btn-group d-flex" role="group">
|
52
|
-
<%= link_to "URL Details", snippet_post_url_path(snippet_url.post, snippet_url), class: "btn btn-purple btn-xs" %>
|
53
|
-
<%= link_to "Update URL", edit_snippet_post_url_path(snippet_url.post, snippet_url), class: "btn btn-primary btn-xs" %>
|
54
|
-
<%= link_to "Remove URL", snippet_post_url_path(snippet_url.post, snippet_url), method: :delete, data: { confirm: "Are you sure? This action cannot be reversed." }, class: "btn btn-danger btn-xs" %>
|
55
|
-
</div>
|
56
|
-
</td>
|
57
|
-
</tr>
|
58
|
-
<% end %>
|
59
|
-
</tbody>
|
28
|
+
<!-- -PHCDEV- Panel - Body -->
|
29
|
+
<div class="panel-body">
|
60
30
|
|
61
|
-
|
62
|
-
|
63
|
-
|
31
|
+
<!-- -PHCDEV- Index - Table -->
|
32
|
+
<div class="table-responsive">
|
33
|
+
<table class="table table-striped table-bordered">
|
64
34
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
35
|
+
<thead>
|
36
|
+
<tr>
|
37
|
+
<th>Script Url</th>
|
38
|
+
<th></th>
|
39
|
+
</tr>
|
40
|
+
</thead>
|
71
41
|
|
72
|
-
|
73
|
-
|
42
|
+
<tbody>
|
43
|
+
<% @snippet_urls.each do |snippet_url| %>
|
44
|
+
<tr>
|
45
|
+
<td><%= snippet_url.snippet_url %></td>
|
46
|
+
<td>
|
47
|
+
<div class="btn-group d-flex" role="group">
|
48
|
+
<%= link_to "URL Details", snippet_post_url_path(snippet_url.post, snippet_url), class: "btn btn-purple btn-xs" %>
|
49
|
+
<%= link_to "Update URL", edit_snippet_post_url_path(snippet_url.post, snippet_url), class: "btn btn-primary btn-xs" %>
|
50
|
+
<%= link_to "Remove URL", snippet_post_url_path(snippet_url.post, snippet_url), method: :delete, data: { confirm: "Are you sure? This action cannot be reversed." }, class: "btn btn-danger btn-xs" %>
|
51
|
+
</div>
|
52
|
+
</td>
|
53
|
+
</tr>
|
54
|
+
<% end %>
|
55
|
+
</tbody>
|
74
56
|
|
57
|
+
</table>
|
75
58
|
</div>
|
76
|
-
<!--
|
59
|
+
<!-- -PHCDEV- Index - Table -->
|
60
|
+
|
61
|
+
<!-- -PHCDEV- New Button -->
|
62
|
+
<%= link_to phcdevworks_scripts.new_snippet_post_url_path, class: "btn btn-primary btn-sm" do %>
|
63
|
+
<i class="fad fa-plus-circle"></i>
|
64
|
+
Add a New Script URL
|
65
|
+
<% end %>
|
66
|
+
<!-- -PHCDEV- New Button -->
|
77
67
|
|
78
68
|
</div>
|
69
|
+
<!-- -PHCDEV- Panel - Body -->
|
70
|
+
|
79
71
|
</div>
|
80
|
-
<!--
|
72
|
+
<!-- -PHCDEV- Panel -->
|
@@ -1,47 +1,39 @@
|
|
1
|
-
<!--
|
1
|
+
<!-- -PHCDEV- Title Variables -->
|
2
2
|
<% phc_title "Code Snippet Manager" %>
|
3
3
|
<% phc_title_tagline "Create a New Asset URL" %>
|
4
4
|
<% phc_breadcrumb_one link_to "Code Snippet Index", phcdevworks_scripts.snippet_posts_path %>
|
5
5
|
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!--
|
6
|
+
<!-- -PHCDEV- Title Variables -->
|
7
7
|
|
8
|
-
<!--
|
9
|
-
<ol class="breadcrumb
|
8
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
9
|
+
<ol class="breadcrumb float-xl-end">
|
10
10
|
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
11
|
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
12
|
</ol>
|
13
|
-
<!--
|
13
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
14
14
|
|
15
|
-
<!--
|
16
|
-
<
|
17
|
-
<!--
|
15
|
+
<!-- -PHCDEV- Header -->
|
16
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
17
|
+
<!-- -PHCDEV- Header -->
|
18
18
|
|
19
|
-
<!--
|
20
|
-
<div class="
|
21
|
-
<div class="col-lg-12">
|
19
|
+
<!-- -PHCDEV- Panel -->
|
20
|
+
<div class="panel panel-inverse">
|
22
21
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
29
|
-
</div>
|
30
|
-
<!-- Panel - Heading -->
|
31
|
-
|
32
|
-
<!-- Panel - Body -->
|
33
|
-
<div class="panel-body">
|
34
|
-
|
35
|
-
<!-- New Form -->
|
36
|
-
<%= render "form", { form_url: snippet_post_urls_path } %>
|
37
|
-
<!-- New Form -->
|
22
|
+
<!-- -PHCDEV- Panel - Heading -->
|
23
|
+
<div class="panel-heading">
|
24
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
25
|
+
</div>
|
26
|
+
<!-- -PHCDEV- Panel - Heading -->
|
38
27
|
|
39
|
-
|
40
|
-
|
28
|
+
<!-- -PHCDEV- Panel - Body -->
|
29
|
+
<div class="panel-body">
|
41
30
|
|
42
|
-
|
43
|
-
|
31
|
+
<!-- -PHCDEV- New Form -->
|
32
|
+
<%= render "form", { form_url: snippet_post_urls_path } %>
|
33
|
+
<!-- -PHCDEV- New Form -->
|
44
34
|
|
45
35
|
</div>
|
36
|
+
<!-- -PHCDEV- Panel - Body -->
|
37
|
+
|
46
38
|
</div>
|
47
|
-
<!--
|
39
|
+
<!-- -PHCDEV- Panel -->
|
@@ -1,51 +1,51 @@
|
|
1
|
-
<!-- Title System -->
|
1
|
+
<!-- -PHCDEV- Title System -->
|
2
2
|
<% phc_title "Code Snippet Manager" %>
|
3
3
|
<% phc_title_tagline "Asset URL Details" %>
|
4
4
|
<% phc_breadcrumb_one link_to "Code Snippet Index", phcdevworks_scripts.snippet_posts_path %>
|
5
5
|
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!-- Title System -->
|
6
|
+
<!-- -PHCDEV- Title System -->
|
7
7
|
|
8
|
-
<!--
|
9
|
-
<ol class="breadcrumb
|
8
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
9
|
+
<ol class="breadcrumb float-xl-end">
|
10
10
|
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
11
|
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
12
|
</ol>
|
13
|
-
<!--
|
13
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
14
14
|
|
15
|
-
<!--
|
15
|
+
<!-- -PHCDEV- Header -->
|
16
16
|
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
17
|
-
<!--
|
17
|
+
<!-- -PHCDEV- Header -->
|
18
18
|
|
19
|
-
<!-- Page Content -->
|
19
|
+
<!-- -PHCDEV- Page Content -->
|
20
20
|
<div class="row">
|
21
21
|
|
22
|
-
<!-- Button Area -->
|
22
|
+
<!-- -PHCDEV- Button Area -->
|
23
23
|
<div class="col-lg-4">
|
24
|
-
<!-- Button Panel -->
|
24
|
+
<!-- -PHCDEV- Button Panel -->
|
25
25
|
<div class="panel panel-inverse">
|
26
|
-
<!-- Panel Heading -->
|
26
|
+
<!-- -PHCDEV- Panel Heading -->
|
27
27
|
<div class="panel-heading">
|
28
28
|
<h4 class="panel-title">Options Panel</h4>
|
29
29
|
</div>
|
30
|
-
<!-- Panel Heading -->
|
31
|
-
<!-- Panel Body -->
|
30
|
+
<!-- -PHCDEV- Panel Heading -->
|
31
|
+
<!-- -PHCDEV- Panel Body -->
|
32
32
|
<div class="panel-body">
|
33
33
|
<div class="btn-group d-flex" role="group">
|
34
34
|
<%= link_to 'Update', phcdevworks_scripts.edit_snippet_post_url_path, class: "btn btn-primary" %>
|
35
35
|
<%= link_to 'Remove', phcdevworks_scripts.snippet_post_urls_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
|
36
36
|
</div>
|
37
37
|
</div>
|
38
|
-
<!-- Panel Body -->
|
38
|
+
<!-- -PHCDEV- Panel Body -->
|
39
39
|
</div>
|
40
|
-
<!-- Button Panel -->
|
40
|
+
<!-- -PHCDEV- Button Panel -->
|
41
41
|
</div>
|
42
|
-
<!-- Button Area -->
|
42
|
+
<!-- -PHCDEV- Button Area -->
|
43
43
|
|
44
|
-
<!-- Main Area -->
|
44
|
+
<!-- -PHCDEV- Main Area -->
|
45
45
|
<div class="col-lg-8">
|
46
|
-
<!-- Main Panel -->
|
46
|
+
<!-- -PHCDEV- Main Panel -->
|
47
47
|
<div class="panel panel-inverse">
|
48
|
-
<!-- Panel Heading -->
|
48
|
+
<!-- -PHCDEV- Panel Heading -->
|
49
49
|
<div class="panel-heading">
|
50
50
|
<div class="panel-heading-btn">
|
51
51
|
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
|
@@ -54,18 +54,18 @@
|
|
54
54
|
</div>
|
55
55
|
<h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
|
56
56
|
</div>
|
57
|
-
<!-- Panel Heading -->
|
58
|
-
<!-- Panel Body -->
|
57
|
+
<!-- -PHCDEV- Panel Heading -->
|
58
|
+
<!-- -PHCDEV- Panel Body -->
|
59
59
|
<div class="panel-body">
|
60
60
|
<p class="h3">Script Snippet URL</p>
|
61
61
|
<hr>
|
62
62
|
<pre><code><%= @snippet_url.snippet_url %></code></pre>
|
63
63
|
</div>
|
64
|
-
<!-- Panel Body -->
|
64
|
+
<!-- -PHCDEV- Panel Body -->
|
65
65
|
</div>
|
66
|
-
<!-- Main Panel -->
|
66
|
+
<!-- -PHCDEV- Main Panel -->
|
67
67
|
</div>
|
68
|
-
<!-- Main Area -->
|
68
|
+
<!-- -PHCDEV- Main Area -->
|
69
69
|
|
70
70
|
</div>
|
71
|
-
<!-- Page Content -->
|
71
|
+
<!-- -PHCDEV- Page Content -->
|
data/config/routes.rb
CHANGED
data/config/spring.rb
CHANGED
File without changes
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class CreatePhcdevworksScriptsScriptExtensionVersions < ActiveRecord::Migration[
|
1
|
+
class CreatePhcdevworksScriptsScriptExtensionVersions < ActiveRecord::Migration[7.0]
|
2
2
|
TEXT_BYTES = 1_073_741_823
|
3
3
|
def change
|
4
4
|
create_table :phcdevworks_scripts_script_extension_versions do |t|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class CreatePhcdevworksScriptsScriptListingVersions < ActiveRecord::Migration[
|
1
|
+
class CreatePhcdevworksScriptsScriptListingVersions < ActiveRecord::Migration[7.0]
|
2
2
|
TEXT_BYTES = 1_073_741_823
|
3
3
|
def change
|
4
4
|
create_table :phcdevworks_scripts_script_listing_versions do |t|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class CreatePhcdevworksScriptsScriptVersionVersions < ActiveRecord::Migration[
|
1
|
+
class CreatePhcdevworksScriptsScriptVersionVersions < ActiveRecord::Migration[7.0]
|
2
2
|
TEXT_BYTES = 1_073_741_823
|
3
3
|
def change
|
4
4
|
create_table :phcdevworks_scripts_script_version_versions do |t|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class CreatePhcdevworksScriptsScriptAuthorVersions < ActiveRecord::Migration[
|
1
|
+
class CreatePhcdevworksScriptsScriptAuthorVersions < ActiveRecord::Migration[7.0]
|
2
2
|
TEXT_BYTES = 1_073_741_823
|
3
3
|
def change
|
4
4
|
create_table :phcdevworks_scripts_script_author_versions do |t|
|
@@ -1,47 +1,47 @@
|
|
1
|
-
module PhcdevworksScripts
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
end
|
1
|
+
module PhcdevworksScripts
|
2
|
+
class Engine < ::Rails::Engine
|
3
|
+
|
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"
|
23
|
+
|
24
|
+
# Frontend Dependencies
|
25
|
+
require "wicked"
|
26
|
+
require "gravtastic"
|
27
|
+
require "friendly_id"
|
28
|
+
|
29
|
+
# Mailer Dependencies
|
30
|
+
require "mail_form"
|
31
|
+
|
32
|
+
# PHCDevworks Plugins
|
33
|
+
require "phcdevworks_core_modules"
|
34
|
+
|
35
|
+
# Engine Namespace
|
36
|
+
isolate_namespace PhcdevworksScripts
|
37
|
+
|
38
|
+
# Rspec Generators
|
39
|
+
config.generators do |g|
|
40
|
+
g.test_framework :rspec
|
41
|
+
g.fixture_replacement :factory_bot
|
42
|
+
g.factory_bot dir: 'spec/factories'
|
43
|
+
g.factory_bot suffix: "factory"
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
end
|
data/lib/phcdevworks_scripts.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
require "phcdevworks_scripts/version"
|
2
|
-
require "phcdevworks_scripts/engine"
|
3
|
-
|
4
|
-
module PhcdevworksScripts
|
5
|
-
# Your code goes here...
|
6
|
-
end
|
1
|
+
require "phcdevworks_scripts/version"
|
2
|
+
require "phcdevworks_scripts/engine"
|
3
|
+
|
4
|
+
module PhcdevworksScripts
|
5
|
+
# Your code goes here...
|
6
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# desc "Explaining what the task does"
|
2
|
-
# task :phcdevworks_scripts do
|
3
|
-
# # Task goes here
|
4
|
-
# end
|
1
|
+
# desc "Explaining what the task does"
|
2
|
+
# task :phcdevworks_scripts do
|
3
|
+
# # Task goes here
|
4
|
+
# end
|