rails_app 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 950e88ffd5cb494ab170e0195ea2f7b3fd0ae91f78be6e7bc2c15c5c41d33cd2
4
- data.tar.gz: 0e261dacae4e68f6553791bbb5935b8ac4a277cbf2b02e1f939d84b5bde45389
3
+ metadata.gz: c8b906accbb46439adce6dab7127ca3fc9e8ef311e0818e2cdc29abedfb6fa05
4
+ data.tar.gz: 54be8a47f22b245c1c8810c14819e7e4630d756e960d4d17c215bef003639b86
5
5
  SHA512:
6
- metadata.gz: bfd248a9575bd294fa228beaa3eb099b7e365fb96a2cb26944dc1553d9dded192f694209758fbdea794a162d0674dc08ad097322b1fe02f03e8ff9fb2407e47f
7
- data.tar.gz: 23120127039675a3e50be730baffa5eee1ffe1a05f1dd93249005709ed273207eb7bca9fb4273530f3397c2a51283ed0904473130023aba318d3ca2c733a95f4
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsApp
4
- VERSION = "0.4.0"
4
+ VERSION = "0.5.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chuck Smith