I can't seem to find an easy way to identify the latest release of RVM from command line or rvm.beginrescueend.com!?!
I currently type rvm get latest
every few days or so to update RVM. If version is same, RVM goes through the download & update process regardless. I'd like to be able to first 'see' if there's an update to get.
Anyone know how? I'm sure I'm missing the obvious...
First of all, update your RVM installation by running rvm get stable . To make sure you're running the new RVM version, you'll then need to run rvm reload (or just open a new terminal). Once that's done, you can ask RVM to list the ruby versions available to install by running rvm list known .
you could use this one liner to check version:
$ curl -sS https://api.github.com/repos/wayneeseguin/rvm/git/refs/tags | awk -F": |\"" '$2=="ref"{sub(/.*\//,"",$5); print $5}' | sort -V | tail -n 1
1.15.8
or a pure ruby one liner:
$ ruby -ropen-uri -rjson -e 'open("https://api.github.com/repos/wayneeseguin/rvm/git/refs/tags"){|r| puts JSON.parse(r.read).map{|l| l["ref"].gsub(/.*\//,"").split(".").map(&:to_i)}.sort.last.join(".") }'
1.15.8
but the simplest thing to do is:
$ curl https://raw.github.com/wayneeseguin/rvm/stable/VERSION
1.15.8
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With