Earlier this afternoon I was working on a development server that has a web server, a PostgreSQL database, Ruby, and rubygems installed on it. I was curious to find out if a specific gem I was about to install had any dependencies or other gems that would also be installed as dependents of the gem I wanted to test. Below I describe how to find out the dependencies of a specific gem by querying the remote server but also how to download a specific gem version to see what gems are dependents.
While creating a development environment for a Ruby project earlier I ran into an error installing some of the gems required by the project. I realized that I had installed an older version of RubyGems which was causing problems with some of the gem dependents that needed to be installed. Below I list one of the examples of the errors I was running into and how I resolved the issue.
rubygems.rb:578:in report_activate_error: RubyGem version error: rspec(1.1.11 not = 1.2.4) (Gem::LoadError)
Earlier when attempting to use request-log-analyzer on a new server I had just installed it on I got the error stated below. There are numerous updates to the gems I was using to fulfill all of the requirements of the request-log-analyzer gem. I went through and updated many of the gems until I ran into an issue with the hoe gem that required an update to rubygems. Once I upgraded rubygems everything worked properly without throwing any errors. I probably could have simply updated rubygems and things would have worked fine without upgrading all of the other gems it was complaining about.