Is there a way to make RubyGems tell if there are any updates available? I find myself constantly running sudo gem update
-- often several times every day.
If I could run the command with a flag like --dry-run, then I could asses if the changed gems were significant to add (and also only run it when my tests on my current project were green.
Any suggestions?
You can check your Ruby version by running ruby --version , and you can check your RubyGems version by running gem --version . If you need to upgrade Ruby, use your ruby version manager's instructions. If you need to upgrade RubyGems, run gem update --system .
Use `gem install -v` You may already be familiar with gem install , but if you add the -v flag, you can specify the version of the gem to install. Using -v you can specify an exact version or use version comparators.
Try:
gem outdated
It will display all gems that need updates (listing both your current version and the latest version).
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