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

Allow self-update via regular install/update commands #7316

Open
indirect opened this issue Dec 20, 2023 · 3 comments
Open

Allow self-update via regular install/update commands #7316

indirect opened this issue Dec 20, 2023 · 3 comments

Comments

@indirect
Copy link
Member

Today, upgrading RubyGems and Bundler requires "special" commands (gem update --system and bundle update --bundler, respectively).

It would improve the user experience if upgrading used the same commands to upgrade other gems. This would not only make it easier to remember how to upgrade, it would also get us more in line with other package managers, like pip (pip upgrade pip) and npm (npm install npm).

I propose we handle gem install gem and gem update gem, installing the latest version of RubyGems.

I also propose we allow bundle update bundler as a way to both 1) install the newest Bundler version (e.g. gem install bundler), and also 2) update the Bundler version used by the current Gemfile (e.g. bundle update --bundler).

Open questions:

  1. Should we also handle gem install rubygems and gem update rubygems?
  2. Should we also handle bundle update bundle?
  3. Should we deprecate the existing update commands, or just leave them there for anyone who still remembers them?
@deivid-rodriguez
Copy link
Member

I also propose we allow bundle update bundler as a way to both 1) install the newest Bundler version (e.g. gem install bundler), and also 2) update the Bundler version used by the current Gemfile (e.g. bundle update --bundler).

Not that bundle update --bundler already does both, so it'd be just a matter of "aliasing" bundle update bundler to what bundle update --bundler does.

@hsbt
Copy link
Member

hsbt commented Dec 22, 2023

How gem selfupdate and bundle selfupdate?

@indirect
Copy link
Member Author

@hsbt I think users will guess "gem update gem" or "gem install gem" because of other package managers (like npm, pip, etc) that use "npm install npm" or "pip update pip". Do you think users will guess selfupdate?

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

No branches or pull requests

3 participants