I regularly use the Ruby gem clean
command to keep the local gem repository in shape.
However, due to dependency issues, many a times the command returns a prompt such as:
XXXXX-1.0.6 depends on [YYYYYY (~> 0.8.4)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn]
While this is simple enough, it requires manual intervention (for the [Yn]
response), and hence this is preventing me from creating a simple cron
script to automate this process.
Any ideas on how to default the response for these gem
prompts?