I must be missing something because last night I was astonished to find that googling for check gem dependencies and similar didn’t reveal the answer for this.
I’m basically after a rough equivalent of rpm -V – a command that will go through some or all my installed gems and make sure that their dependencies are also installed. Since gem install by default installs any dependent gems, normally this is not necessary; however, if you gem uninstall a gem and tell it to proceed with the uninstall even though other gems depend on the one being uninstalled, then obviously you will end up with broken dependencies. The question is, how do you then list those broken dependencies without installing / uninstalling / updating any gems?
N.B. answers which involve Bundler are not much use to me, since I’m still stuck on Rails 2.x for various reasons.
I know you said you weren’t interested in answers about Bundler, but…
Bundler will handle gem dependency resolution for you and is compatible with Rails 2.3. I’ve used Bundler with a number of Rails 2 apps and not had any problems with it.
There are instructions for installing Bundler on Rails 2.3 here: http://gembundler.com/rails23.html