rails_app 0.3.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -1
- data/lib/rails_app/cli.rb +1 -1
- data/lib/rails_app/template/app_postcss/assets/stylesheets/application.postcss.css +2 -0
- data/lib/rails_app/template/app_postcss/assets/stylesheets/custom.css +49 -0
- data/lib/rails_app/template/app_postcss/views/devise/confirmations/new.html.erb +16 -0
- data/lib/rails_app/template/app_postcss/views/devise/mailer/confirmation_instructions.html.erb +5 -0
- data/lib/rails_app/template/app_postcss/views/devise/mailer/email_changed.html.erb +7 -0
- data/lib/rails_app/template/app_postcss/views/devise/mailer/password_change.html.erb +3 -0
- data/lib/rails_app/template/app_postcss/views/devise/mailer/reset_password_instructions.html.erb +8 -0
- data/lib/rails_app/template/app_postcss/views/devise/mailer/unlock_instructions.html.erb +7 -0
- data/lib/rails_app/template/app_postcss/views/devise/passwords/edit.html.erb +25 -0
- data/lib/rails_app/template/app_postcss/views/devise/passwords/new.html.erb +16 -0
- data/lib/rails_app/template/app_postcss/views/devise/registrations/edit.html.erb +43 -0
- data/lib/rails_app/template/app_postcss/views/devise/registrations/new.html.erb +29 -0
- data/lib/rails_app/template/app_postcss/views/devise/sessions/new.html.erb +26 -0
- data/lib/rails_app/template/app_postcss/views/devise/shared/_error_messages.html.erb +15 -0
- data/lib/rails_app/template/app_postcss/views/devise/shared/_links.html.erb +25 -0
- data/lib/rails_app/template/app_postcss/views/devise/unlocks/new.html.erb +16 -0
- data/lib/rails_app/template/app_postcss/views/layouts/application.html.erb +19 -0
- data/lib/rails_app/template/app_postcss/views/layouts/mailer.html.erb +13 -0
- data/lib/rails_app/template/app_postcss/views/layouts/mailer.text.erb +1 -0
- data/lib/rails_app/template/app_postcss/views/shared/_navbar.html.erb +11 -0
- data/lib/rails_app/template/app_postcss/views/static/home.html.erb +2 -0
- data/lib/rails_app/template/config/gems/app.rb +3 -0
- data/lib/rails_app/template/template.rb +21 -1
- data/lib/rails_app/version.rb +1 -1
- data/screenshot_cli.png +0 -0
- metadata +23 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8b906accbb46439adce6dab7127ca3fc9e8ef311e0818e2cdc29abedfb6fa05
|
4
|
+
data.tar.gz: 54be8a47f22b245c1c8810c14819e7e4630d756e960d4d17c215bef003639b86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f7a2931dd0f7f6b798876ae41ffed36c0111fc47f40113a261e5ff124865b42fc69b6080a910148843a45623404ec7cb931107815b16079d884f4e04bfdb50c
|
7
|
+
data.tar.gz: 188fe26e84ed2b1182a31689505883bda5d2932790aceb58b2139b8bea7eb68d6a720588c338f969d6697574f4d29cd49bc34b64021bacc9b05df8c5280b0fb5
|
data/CHANGELOG.md
CHANGED
@@ -1,12 +1,31 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [0.5.0](https://github.com/eclectic-coding/rails_app/tree/0.5.0) (2024-04-04)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/eclectic-coding/rails_app/compare/0.4.0...0.5.0)
|
6
|
+
|
7
|
+
**Implemented enhancements:**
|
8
|
+
|
9
|
+
- Add more development tools [\#15](https://github.com/eclectic-coding/rails_app/issues/15)
|
10
|
+
- Enable Annotate rendered view with file names [\#12](https://github.com/eclectic-coding/rails_app/issues/12)
|
11
|
+
- Added annotate and bullet to development environment [\#16](https://github.com/eclectic-coding/rails_app/pull/16) ([eclectic-coding](https://github.com/eclectic-coding))
|
12
|
+
- Uncomment annotating of rendered view filenames [\#13](https://github.com/eclectic-coding/rails_app/pull/13) ([eclectic-coding](https://github.com/eclectic-coding))
|
13
|
+
|
14
|
+
## [0.4.0](https://github.com/eclectic-coding/rails_app/tree/0.4.0) (2024-04-04)
|
15
|
+
|
16
|
+
[Full Changelog](https://github.com/eclectic-coding/rails_app/compare/0.3.0...0.4.0)
|
17
|
+
|
18
|
+
**Implemented enhancements:**
|
19
|
+
|
20
|
+
- postcss [\#8](https://github.com/eclectic-coding/rails_app/issues/8)
|
21
|
+
- Add Postcss styling option [\#11](https://github.com/eclectic-coding/rails_app/pull/11) ([eclectic-coding](https://github.com/eclectic-coding))
|
22
|
+
|
3
23
|
## [0.3.0](https://github.com/eclectic-coding/rails_app/tree/0.3.0) (2024-04-03)
|
4
24
|
|
5
25
|
[Full Changelog](https://github.com/eclectic-coding/rails_app/compare/0.2.0...0.3.0)
|
6
26
|
|
7
27
|
**Implemented enhancements:**
|
8
28
|
|
9
|
-
- Add user option to select other styling systems [\#2](https://github.com/eclectic-coding/rails_app/issues/2)
|
10
29
|
- add user option to select sass styling systems [\#7](https://github.com/eclectic-coding/rails_app/pull/7) ([eclectic-coding](https://github.com/eclectic-coding))
|
11
30
|
|
12
31
|
## [0.2.0](https://github.com/eclectic-coding/rails_app/tree/0.2.0) (2024-04-03)
|
data/lib/rails_app/cli.rb
CHANGED
@@ -13,7 +13,7 @@ module RailsApp
|
|
13
13
|
{name: "Bootstrap", value: "bootstrap"},
|
14
14
|
{name: "Tailwind CSS", value: "tailwindcss", disabled: "(coming soon)"},
|
15
15
|
{name: "Bulma", value: "bulma", disabled: "(coming soon)"},
|
16
|
-
{name: "PostCSS", value: "postcss"
|
16
|
+
{name: "PostCSS", value: "postcss"},
|
17
17
|
{name: "SASS", value: "sass"}
|
18
18
|
]
|
19
19
|
styling = prompt.select("How would you like to manage styling?", styling_choices)
|
@@ -0,0 +1,49 @@
|
|
1
|
+
a {
|
2
|
+
text-decoration: none;
|
3
|
+
}
|
4
|
+
|
5
|
+
body {
|
6
|
+
background-color: #eceeef;
|
7
|
+
font-family: Verdana, Helvetica, Arial;
|
8
|
+
font-size: 14px;
|
9
|
+
|
10
|
+
.container {
|
11
|
+
width: 80%;
|
12
|
+
margin: 0 auto;
|
13
|
+
background-color: #fff;
|
14
|
+
padding: 20px 40px;
|
15
|
+
margin-top: 25px;
|
16
|
+
border: solid 1px black;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
nav ul {
|
21
|
+
list-style-type: none;
|
22
|
+
margin: 0;
|
23
|
+
padding: 0;
|
24
|
+
overflow: hidden;
|
25
|
+
display: flex;
|
26
|
+
|
27
|
+
li {
|
28
|
+
margin-right: 1rem;
|
29
|
+
|
30
|
+
a {
|
31
|
+
display: block;
|
32
|
+
color: black;
|
33
|
+
text-align: center;
|
34
|
+
padding: 14px 16px;
|
35
|
+
text-decoration: none;
|
36
|
+
|
37
|
+
&:hover {
|
38
|
+
border-radius: 5px;
|
39
|
+
background-color: #ececec;
|
40
|
+
color: black;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
.field,
|
47
|
+
.actions {
|
48
|
+
margin-bottom: 1rem;
|
49
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<h2>Resend confirmation instructions</h2>
|
2
|
+
|
3
|
+
<%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %>
|
4
|
+
<%= render "devise/shared/error_messages", resource: resource %>
|
5
|
+
|
6
|
+
<div class="field">
|
7
|
+
<%= f.label :email %><br />
|
8
|
+
<%= f.email_field :email, autofocus: true, autocomplete: "email", value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<div class="actions">
|
12
|
+
<%= f.submit "Resend confirmation instructions" %>
|
13
|
+
</div>
|
14
|
+
<% end %>
|
15
|
+
|
16
|
+
<%= render "devise/shared/links" %>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<p>Hello <%= @email %>!</p>
|
2
|
+
|
3
|
+
<% if @resource.try(:unconfirmed_email?) %>
|
4
|
+
<p>We're contacting you to notify you that your email is being changed to <%= @resource.unconfirmed_email %>.</p>
|
5
|
+
<% else %>
|
6
|
+
<p>We're contacting you to notify you that your email has been changed to <%= @resource.email %>.</p>
|
7
|
+
<% end %>
|
data/lib/rails_app/template/app_postcss/views/devise/mailer/reset_password_instructions.html.erb
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
<p>Hello <%= @resource.email %>!</p>
|
2
|
+
|
3
|
+
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
|
4
|
+
|
5
|
+
<p><%= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) %></p>
|
6
|
+
|
7
|
+
<p>If you didn't request this, please ignore this email.</p>
|
8
|
+
<p>Your password won't change until you access the link above and create a new one.</p>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<p>Hello <%= @resource.email %>!</p>
|
2
|
+
|
3
|
+
<p>Your account has been locked due to an excessive number of unsuccessful sign in attempts.</p>
|
4
|
+
|
5
|
+
<p>Click the link below to unlock your account:</p>
|
6
|
+
|
7
|
+
<p><%= link_to 'Unlock my account', unlock_url(@resource, unlock_token: @token) %></p>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<h2>Change your password</h2>
|
2
|
+
|
3
|
+
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
|
4
|
+
<%= render "devise/shared/error_messages", resource: resource %>
|
5
|
+
<%= f.hidden_field :reset_password_token %>
|
6
|
+
|
7
|
+
<div class="field">
|
8
|
+
<%= f.label :password, "New password" %><br />
|
9
|
+
<% if @minimum_password_length %>
|
10
|
+
<em>(<%= @minimum_password_length %> characters minimum)</em><br />
|
11
|
+
<% end %>
|
12
|
+
<%= f.password_field :password, autofocus: true, autocomplete: "new-password" %>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<div class="field">
|
16
|
+
<%= f.label :password_confirmation, "Confirm new password" %><br />
|
17
|
+
<%= f.password_field :password_confirmation, autocomplete: "new-password" %>
|
18
|
+
</div>
|
19
|
+
|
20
|
+
<div class="actions">
|
21
|
+
<%= f.submit "Change my password" %>
|
22
|
+
</div>
|
23
|
+
<% end %>
|
24
|
+
|
25
|
+
<%= render "devise/shared/links" %>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<h2>Forgot your password?</h2>
|
2
|
+
|
3
|
+
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>
|
4
|
+
<%= render "devise/shared/error_messages", resource: resource %>
|
5
|
+
|
6
|
+
<div class="field">
|
7
|
+
<%= f.label :email %><br />
|
8
|
+
<%= f.email_field :email, autofocus: true, autocomplete: "email" %>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<div class="actions">
|
12
|
+
<%= f.submit "Send me reset password instructions" %>
|
13
|
+
</div>
|
14
|
+
<% end %>
|
15
|
+
|
16
|
+
<%= render "devise/shared/links" %>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<h2>Edit <%= resource_name.to_s.humanize %></h2>
|
2
|
+
|
3
|
+
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
|
4
|
+
<%= render "devise/shared/error_messages", resource: resource %>
|
5
|
+
|
6
|
+
<div class="field">
|
7
|
+
<%= f.label :email %><br />
|
8
|
+
<%= f.email_field :email, autofocus: true, autocomplete: "email" %>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
|
12
|
+
<div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
|
13
|
+
<% end %>
|
14
|
+
|
15
|
+
<div class="field">
|
16
|
+
<%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
|
17
|
+
<%= f.password_field :password, autocomplete: "new-password" %>
|
18
|
+
<% if @minimum_password_length %>
|
19
|
+
<br />
|
20
|
+
<em><%= @minimum_password_length %> characters minimum</em>
|
21
|
+
<% end %>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<div class="field">
|
25
|
+
<%= f.label :password_confirmation %><br />
|
26
|
+
<%= f.password_field :password_confirmation, autocomplete: "new-password" %>
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<div class="field">
|
30
|
+
<%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br />
|
31
|
+
<%= f.password_field :current_password, autocomplete: "current-password" %>
|
32
|
+
</div>
|
33
|
+
|
34
|
+
<div class="actions">
|
35
|
+
<%= f.submit "Update" %>
|
36
|
+
</div>
|
37
|
+
<% end %>
|
38
|
+
|
39
|
+
<h3>Cancel my account</h3>
|
40
|
+
|
41
|
+
<div>Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?", turbo_confirm: "Are you sure?" }, method: :delete %></div>
|
42
|
+
|
43
|
+
<%= link_to "Back", :back %>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<h2>Sign up</h2>
|
2
|
+
|
3
|
+
<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
|
4
|
+
<%= render "devise/shared/error_messages", resource: resource %>
|
5
|
+
|
6
|
+
<div class="field">
|
7
|
+
<%= f.label :email %><br />
|
8
|
+
<%= f.email_field :email, autofocus: true, autocomplete: "email" %>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<div class="field">
|
12
|
+
<%= f.label :password %>
|
13
|
+
<% if @minimum_password_length %>
|
14
|
+
<em>(<%= @minimum_password_length %> characters minimum)</em>
|
15
|
+
<% end %><br />
|
16
|
+
<%= f.password_field :password, autocomplete: "new-password" %>
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<div class="field">
|
20
|
+
<%= f.label :password_confirmation %><br />
|
21
|
+
<%= f.password_field :password_confirmation, autocomplete: "new-password" %>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<div class="actions">
|
25
|
+
<%= f.submit "Sign up" %>
|
26
|
+
</div>
|
27
|
+
<% end %>
|
28
|
+
|
29
|
+
<%= render "devise/shared/links" %>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<h2>Log in</h2>
|
2
|
+
|
3
|
+
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
|
4
|
+
<div class="field">
|
5
|
+
<%= f.label :email %><br />
|
6
|
+
<%= f.email_field :email, autofocus: true, autocomplete: "email" %>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<div class="field">
|
10
|
+
<%= f.label :password %><br />
|
11
|
+
<%= f.password_field :password, autocomplete: "current-password" %>
|
12
|
+
</div>
|
13
|
+
|
14
|
+
<% if devise_mapping.rememberable? %>
|
15
|
+
<div class="field">
|
16
|
+
<%= f.check_box :remember_me %>
|
17
|
+
<%= f.label :remember_me %>
|
18
|
+
</div>
|
19
|
+
<% end %>
|
20
|
+
|
21
|
+
<div class="actions">
|
22
|
+
<%= f.submit "Log in" %>
|
23
|
+
</div>
|
24
|
+
<% end %>
|
25
|
+
|
26
|
+
<%= render "devise/shared/links" %>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<% if resource.errors.any? %>
|
2
|
+
<div id="error_explanation" data-turbo-cache="false">
|
3
|
+
<h2>
|
4
|
+
<%= I18n.t("errors.messages.not_saved",
|
5
|
+
count: resource.errors.count,
|
6
|
+
resource: resource.class.model_name.human.downcase)
|
7
|
+
%>
|
8
|
+
</h2>
|
9
|
+
<ul>
|
10
|
+
<% resource.errors.full_messages.each do |message| %>
|
11
|
+
<li><%= message %></li>
|
12
|
+
<% end %>
|
13
|
+
</ul>
|
14
|
+
</div>
|
15
|
+
<% end %>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<%- if controller_name != 'sessions' %>
|
2
|
+
<%= link_to "Log in", new_session_path(resource_name) %><br />
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<%- if devise_mapping.registerable? && controller_name != 'registrations' %>
|
6
|
+
<%= link_to "Sign up", new_registration_path(resource_name) %><br />
|
7
|
+
<% end %>
|
8
|
+
|
9
|
+
<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
|
10
|
+
<%= link_to "Forgot your password?", new_password_path(resource_name) %><br />
|
11
|
+
<% end %>
|
12
|
+
|
13
|
+
<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
|
14
|
+
<%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %><br />
|
15
|
+
<% end %>
|
16
|
+
|
17
|
+
<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
|
18
|
+
<%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %><br />
|
19
|
+
<% end %>
|
20
|
+
|
21
|
+
<%- if devise_mapping.omniauthable? %>
|
22
|
+
<%- resource_class.omniauth_providers.each do |provider| %>
|
23
|
+
<%= button_to "Sign in with #{OmniAuth::Utils.camelize(provider)}", omniauth_authorize_path(resource_name, provider), data: { turbo: false } %><br />
|
24
|
+
<% end %>
|
25
|
+
<% end %>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<h2>Resend unlock instructions</h2>
|
2
|
+
|
3
|
+
<%= form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f| %>
|
4
|
+
<%= render "devise/shared/error_messages", resource: resource %>
|
5
|
+
|
6
|
+
<div class="field">
|
7
|
+
<%= f.label :email %><br />
|
8
|
+
<%= f.email_field :email, autofocus: true, autocomplete: "email" %>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<div class="actions">
|
12
|
+
<%= f.submit "Resend unlock instructions" %>
|
13
|
+
</div>
|
14
|
+
<% end %>
|
15
|
+
|
16
|
+
<%= render "devise/shared/links" %>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Catapp</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<%= csrf_meta_tags %>
|
7
|
+
<%= csp_meta_tag %>
|
8
|
+
|
9
|
+
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
|
10
|
+
<%= javascript_include_tag "application", "data-turbo-track": "reload", type: "module" %>
|
11
|
+
</head>
|
12
|
+
|
13
|
+
<body>
|
14
|
+
<div class="container">
|
15
|
+
<%= render 'shared/navbar' %>
|
16
|
+
<%= yield %>
|
17
|
+
</div>
|
18
|
+
</body>
|
19
|
+
</html>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= yield %>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<nav>
|
2
|
+
<ul>
|
3
|
+
<li><%= link_to 'Home', root_path %></li>
|
4
|
+
<% if user_signed_in? %>
|
5
|
+
<li><%= button_to "Log out", destroy_user_session_path, method: :delete %></li>
|
6
|
+
<% else %>
|
7
|
+
<li><%= link_to "Login", new_user_session_path %></li>
|
8
|
+
<li><%= link_to "Sign Up", new_user_registration_path %></li>
|
9
|
+
<% end%>
|
10
|
+
</ul>
|
11
|
+
</nav>
|
@@ -2,12 +2,15 @@ gem "devise"
|
|
2
2
|
|
3
3
|
group :development, :test do
|
4
4
|
gem "faker"
|
5
|
+
gem "annotate"
|
5
6
|
end
|
6
7
|
|
7
8
|
group :development do
|
8
9
|
gem "rubocop-rails-omakase", require: false
|
9
10
|
gem "bundle-audit", require: false
|
10
11
|
gem "brakeman", require: false
|
12
|
+
gem "bullet"
|
13
|
+
# gem "strong_migrations"
|
11
14
|
end
|
12
15
|
|
13
16
|
group :test do
|
@@ -63,6 +63,23 @@ def add_users
|
|
63
63
|
gsub_file "config/initializers/devise.rb", / {2}# config.secret_key = .+/, " config.secret_key = Rails.application.credentials.secret_key_base"
|
64
64
|
end
|
65
65
|
|
66
|
+
def dev_tools
|
67
|
+
generate "annotate:install"
|
68
|
+
|
69
|
+
inject_into_file "config/environments/development.rb", after: "Rails.application.configure do\n" do
|
70
|
+
<<-CODE
|
71
|
+
config.after_initialize do
|
72
|
+
Bullet.enable = true
|
73
|
+
Bullet.alert = false
|
74
|
+
Bullet.bullet_logger = true
|
75
|
+
Bullet.console = true
|
76
|
+
Bullet.rails_logger = true
|
77
|
+
Bullet.add_footer = true
|
78
|
+
end\n
|
79
|
+
CODE
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
66
83
|
def add_static
|
67
84
|
generate "controller static home"
|
68
85
|
|
@@ -77,7 +94,7 @@ def add_styling
|
|
77
94
|
elsif options[:css] == "bulma"
|
78
95
|
say "BULMA COMING SOON", :red
|
79
96
|
elsif options[:css] == "postcss"
|
80
|
-
|
97
|
+
directory "app_postcss", "app", force: true
|
81
98
|
elsif options[:css] == "sass"
|
82
99
|
directory "app_sass", "app", force: true
|
83
100
|
end
|
@@ -94,6 +111,8 @@ def copy_templates
|
|
94
111
|
copy_file "Brewfile", "Brewfile"
|
95
112
|
|
96
113
|
directory "bin", "bin", force: true
|
114
|
+
|
115
|
+
gsub_file "config/environments/development.rb", / {2}# config.action_view.annotate_rendered_view_with_filenames = true/, " config.action_view.annotate_rendered_view_with_filenames = true"
|
97
116
|
end
|
98
117
|
|
99
118
|
def database_setup
|
@@ -137,6 +156,7 @@ after_bundle do
|
|
137
156
|
add_javascript
|
138
157
|
add_esbuild_script
|
139
158
|
add_users
|
159
|
+
dev_tools
|
140
160
|
add_static
|
141
161
|
add_styling
|
142
162
|
setup_rspec
|
data/lib/rails_app/version.rb
CHANGED
data/screenshot_cli.png
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chuck Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bootsnap
|
@@ -117,6 +117,27 @@ files:
|
|
117
117
|
- lib/rails_app/template/app_bootstrap/views/shared/_navbar.html.erb
|
118
118
|
- lib/rails_app/template/app_bootstrap/views/shared/_notices.html.erb
|
119
119
|
- lib/rails_app/template/app_bootstrap/views/static/home.html.erb
|
120
|
+
- lib/rails_app/template/app_postcss/assets/stylesheets/application.postcss.css
|
121
|
+
- lib/rails_app/template/app_postcss/assets/stylesheets/custom.css
|
122
|
+
- lib/rails_app/template/app_postcss/views/devise/confirmations/new.html.erb
|
123
|
+
- lib/rails_app/template/app_postcss/views/devise/mailer/confirmation_instructions.html.erb
|
124
|
+
- lib/rails_app/template/app_postcss/views/devise/mailer/email_changed.html.erb
|
125
|
+
- lib/rails_app/template/app_postcss/views/devise/mailer/password_change.html.erb
|
126
|
+
- lib/rails_app/template/app_postcss/views/devise/mailer/reset_password_instructions.html.erb
|
127
|
+
- lib/rails_app/template/app_postcss/views/devise/mailer/unlock_instructions.html.erb
|
128
|
+
- lib/rails_app/template/app_postcss/views/devise/passwords/edit.html.erb
|
129
|
+
- lib/rails_app/template/app_postcss/views/devise/passwords/new.html.erb
|
130
|
+
- lib/rails_app/template/app_postcss/views/devise/registrations/edit.html.erb
|
131
|
+
- lib/rails_app/template/app_postcss/views/devise/registrations/new.html.erb
|
132
|
+
- lib/rails_app/template/app_postcss/views/devise/sessions/new.html.erb
|
133
|
+
- lib/rails_app/template/app_postcss/views/devise/shared/_error_messages.html.erb
|
134
|
+
- lib/rails_app/template/app_postcss/views/devise/shared/_links.html.erb
|
135
|
+
- lib/rails_app/template/app_postcss/views/devise/unlocks/new.html.erb
|
136
|
+
- lib/rails_app/template/app_postcss/views/layouts/application.html.erb
|
137
|
+
- lib/rails_app/template/app_postcss/views/layouts/mailer.html.erb
|
138
|
+
- lib/rails_app/template/app_postcss/views/layouts/mailer.text.erb
|
139
|
+
- lib/rails_app/template/app_postcss/views/shared/_navbar.html.erb
|
140
|
+
- lib/rails_app/template/app_postcss/views/static/home.html.erb
|
120
141
|
- lib/rails_app/template/app_sass/assets/stylesheets/application.sass.scss
|
121
142
|
- lib/rails_app/template/app_sass/assets/stylesheets/custom.sass.scss
|
122
143
|
- lib/rails_app/template/app_sass/views/devise/confirmations/new.html.erb
|