List of installed gems?

Prakash Raman picture Prakash Raman · Mar 3, 2011 · Viewed 168.8k times · Source

Is there a Ruby method I can call to get the list of installed gems?

I want to parse the output of gem list. Is there a different way to do this?

Answer

frankstuner picture frankstuner · Mar 9, 2013

This lists all the gems I have installed.

gem query --local

http://guides.rubygems.org/command-reference/#gem-list

See 2.7 Listing all installed gems