Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find full path of a gem in rails

How do I find the full installation path of a gem in rails.

bundle show gem_name

gives

/var/lib/gems/1.9.1/gems/gem_name-version

My problem is, what directory is the 'var' folder in? I've tried looking in C:/Ruby but it's a really large folder and I don't want to spend all day manually combing my hard drive.

like image 472
A.Dreyt Avatar asked Mar 04 '14 09:03

A.Dreyt


1 Answers

On Windows, you typically find them back in (depending on your ruby version)

C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems

From within your Rails application, you can also run

Gem.loaded_specs['gem_name'].full_gem_path
like image 60
Danny Avatar answered Sep 20 '22 17:09

Danny