Skip to content

Commit

Permalink
Prefer suspenders-main over suspenders_main
Browse files Browse the repository at this point in the history
Co-authored-by: Steve Polito <[email protected]>
  • Loading branch information
louis-antonopoulos and stevepolitodesign committed Oct 8, 2024
1 parent b3e2c18 commit f1ed654
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ rails new app_name \

```
rails new app_name \
--suspenders_main \
--suspenders-main \
--skip_rubocop \
--skip-test \
-d=postgresql \
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/suspenders/install/web_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class WebGenerator < Rails::Generators::Base
```
rails new app_name \\
--suspenders_main \\
--suspenders-main \\
--skip_rubocop \\
--skip-test \\
-d=postgresql \\
Expand Down
4 changes: 2 additions & 2 deletions lib/install/web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def apply_template!
if options[:database] == "postgresql" && options[:skip_test] && options[:skip_rubocop]
after_bundle do
gem_group :development, :test do
if ARGV.include?("--suspenders_main")
if ARGV.include?("--suspenders-main")
gem "suspenders", github: "thoughtbot/suspenders", branch: "main"
else
gem "suspenders"
Expand Down Expand Up @@ -54,7 +54,7 @@ def apply_template!
# OR use the current (possibly unreleased) `main` branch of suspenders:
rails new <app_name> \\
--suspenders_main \\
--suspenders-main \\
--skip-rubocop \\
--skip-test \\
-d=postgresql \\
Expand Down

0 comments on commit f1ed654

Please sign in to comment.