How do I update rubygems on the Ruby on Rails droplet image?

  • Posted on September 13, 2014
  • TrevokeAsked by Trevoke

The Ruby on Rails image seems to be using rvm to handle Ruby. All fine and good.

I need to install ZenTest 4.7.0 which requires a high version of rubygems… But running gem update --system doesn’t seem to be doing the right thing. As much as it tells me the latest (2.4.1) is installed, when I run “gem install ZenTest -v 4.7.0”, I get a complaint that I’m using an old version of Rubygems.

What’s going on - how can I successfully install ZenTest?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

gem update --system will update rubygems to the latest version. This instead seems like a problem in the version checking done by older versions of ZenTest. For instance, I hit the same issue if I run gem install ZenTest -v 4.7.0 but if I install a more recent version of ZenTest it installs cleanly:

gem install ZenTest -v 4.10.1

Reading through this bug report, it looks like it might just be a confussing error message. The ZenTest version you are trying to install needs rubygems >= 1.8 but also < 2.1