Sudo gem update --dry-run?

ruby, rubygems

Solution

Try:

gem outdated

It will display all gems that need updates (listing both your current version and the latest version).

Problem

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?

Original source