rubygems/rubygems.org — Issue #396: Allow to ensure correct installed/uninstalled state for a gem
Author: donv
Created: 2012-01-28 23:09:31+00:00
State: open

Hi!

I miss a way to ensure the installed/uninstalled state of a gem while changing as little as possible in the setup and still receive a return code of 0 from ruby gems.

```gem install --no-reinstall ```

should install the gem if not installed, and do nothing if the gem is installed. In both cases a 0 should be received as a return code. Similarly

```gem uninstall --ignore-missing ```

should uninstall the gem if it was installed and do nothing if it wasn't installed. In both cases it should return 0 as return code.

Actually, I wouldn't mind if this behavior was the default, and install would require a switch to re-install a gem.