Where do gems install?

I'm trying to edit one of the gem's config files and I can't find it. I'm not sure how I did this in the past.


Look at your gem environment.

In a terminal run gem env

You should see an entry INSTALLATION DIRECTORY, but there is also GEM PATHS which is where it's loading all your gems from in your current environment.


Rvm

$ rvm gemdir

Or you can check:

echo $GEM_HOME

Bundler

$ bundle show --paths

For specific gem:

$ bundle show 'gem_name'

Gem

$ gem env

For specific gem:

$ gem which 'gem_name'