rails_app 0.4.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 +11 -0
- data/lib/rails_app/template/config/gems/app.rb +3 -0
- data/lib/rails_app/template/template.rb +20 -0
- data/lib/rails_app/version.rb +1 -1
- metadata +1 -1
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,5 +1,16 @@
|
|
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
|
+
|
3
14
|
## [0.4.0](https://github.com/eclectic-coding/rails_app/tree/0.4.0) (2024-04-04)
|
4
15
|
|
5
16
|
[Full Changelog](https://github.com/eclectic-coding/rails_app/compare/0.3.0...0.4.0)
|
@@ -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
|
|
@@ -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