Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove hardcoded Ruby/Rails versions, add --rebuild flag #47

Merged
merged 4 commits into from
Jan 16, 2025

Conversation

skipkayhil
Copy link
Member

Add --rebuild flag to force rebuilding the image

Currently, rails-new must be released to use any newly released
versions of Ruby/Rails by default. To address this, I'd like to remove
the fallback versions of Ruby/Rails in the CLI arguments. However, this
will mean that the image name no longer contains the Rails version, and
that can lead to a stale Rails version when running rails-new if it
has been previously built.

This commit addresses that by providing a --rebuild option which
forces the container to be rebuilt and ensures the latest version of
Rails is installed and used.


Remove default Rails version

This enables gem install rails in the Dockerfile to always install the
latest Rails version instead of the default value in rails-new.


Replace default Ruby version with "latest"

This will prevent having to update and release a new version of
rails-new when new versions of Ruby are released.

skipkayhil and others added 4 commits January 16, 2025 12:41
Currently, `rails-new` must be released to use any newly released
versions of Ruby/Rails by default. To address this, I'd like to remove
the fallback versions of Ruby/Rails in the CLI arguments. However, this
will mean that the image name no longer contains the Rails version, and
that can lead to a stale Rails version when running `rails-new` if it
has been previously built.

This commit addresses that by providing a `--rebuild` option which
forces the container to be rebuilt and ensures the latest version of
Rails is installed and used.
This enables `gem install rails` in the Dockerfile to always install the
latest Rails version instead of the default value in `rails-new`.
This will prevent having to update and release a new version of
`rails-new` when new versions of Ruby are released.
@rafaelfranca rafaelfranca merged commit bf3494d into rails:main Jan 16, 2025
3 checks passed
@skipkayhil skipkayhil deleted the hm-no-versions branch January 16, 2025 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants