Whenever I do
rails new, I always have to check the effect of
--skip-xxx, so I created a repository.
What I made
In this repository, the code output from running
rails new with the
Rails version and
flag combination can be referenced by git tags.
The name of the tag is in the form
For example, Rails 7.0.1 code output with
--minimal can be referenced by the tag
Currently, the supported Rails versions are as follows
It may be obvious when you see it, but just in case, here is how to use it.
For example, in Rails 7.0.1, there is a flag called
--api and you want to find out how specifying it changes the generated code.
Table in README.markdown(Following is an excerpt) to the
--api flag line, click on the 🔍 at the
7.0.1 position to see the diff on GitHub.
(Diff. display as of 2022-01-08)
From the above, we can see that specifying
--api makes the following difference in the output results.
- Gemfile に
jbuilder, ... (Omitted) ... is removed
- Parent class of
- Middleware configuration changes to the minimum required by adding
config.api_only = truesetting.
- And so on...
You can also compare arbitrary Tags by writing your own URLs. For more information on how to compare tags on GitHub, please refer to the following document.
Top comments (0)