-
-
Notifications
You must be signed in to change notification settings - Fork 256
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
Improve help text/examples for updating versions? #345
Comments
You should be able to fetch the latest versions from postmodern/ruby-versions with: ruby-install --latest Does |
It does.. that was a brain fail on my part, thanks for pointing it out. Edited my original post as I discovered that (before I saw your post):
Any thoughts on tweaking the help text/examples/etc to call this out better? |
I thought about naming |
Convention for package managers (according to My opinion is that If you prefer keeping the current behavior, I propose revising the README.md and List supported Rubies and their versions (from local cache):
Fetch latest supported Rubies and list their versions:
Install the current stable version of Ruby (from local cache):
Fetch and install the latest version of Ruby:
|
Looking at https://github.com/postmodern/ruby-versions/blob/master/ruby/stable.txt#L2 2.4.6 is included, but when I run
ruby-install
it's not listed:Is there some way I can force my version to pull the latest list?
Alternatively, maybe the version on
brew
is outdated?Which seems to match the latest release: https://github.com/postmodern/ruby-install/releases/tag/v0.7.0
Looking at https://github.com/postmodern/ruby-install/blob/master/share/ruby-install/ruby-versions.sh#L6
it's trying to check against https://raw.githubusercontent.com/postmodern/ruby-versions/master, but when i try to view that in my browser I get aI can see that https://raw.githubusercontent.com/postmodern/ruby-versions/master/ruby/versions.txt correctly lists400: Invalid request
(though maybe that is just the base url that is used to fetch the specific files)2.4.6
I can see that my local cache doesn't have it, which explains why it isn't showing up:
Looking at https://github.com/postmodern/ruby-install/blob/master/bin/ruby-install#L12-L15 there appears to be a force update function, but that doesn't seem to be listed in
ruby-install -h
(usage ref)I can see that
--latest
will setforce_update
https://github.com/postmodern/ruby-install/blob/master/share/ruby-install/ruby-install.sh#L186-L189 and I guess re-reading the help for it.. it's probably actually what I want..-L, --latest Downloads the latest ruby versions and checksums
I wonder if it would be useful to include this check automatically sometimes (like how
brew
auto updates itself these days), and/or include an alias like--update
or similar, or just call it out in the examples/help text more explicitly?The text was updated successfully, but these errors were encountered: