Where are my ruby ​​gems?

Linux newbie question i think ..

How can I find out where gem installs gems in my Ubuntu 10 system? I want to read the gem source code and maybe make a little difference.

+44
linux ruby gem
May 13, '10 at 14:17
source share
2 answers

Running gem environment should provide you with a little information about your RubyGems installation. The field you are looking for is “INSTALLATION”.

However, if you want to change some gems, there may be better ways to do this. Most gems, for example, are hosted on github.com. If you make a fork there and make any improvements, you can send them back to the maintainer in the form of traction requests. Most developers take patches with pleasure (why are they on github, right?), And you get warm fuzziness to make the world a little better for everyone else using this stone.

+70
May 13 '10 at 14:19
source share

From the application catalog, you can run bundle show rails to open the path to a specific gem.

Go to a directory like this

 cd `bundle show rails` 

Quickly open a gem in Sublime

 subl `bundle show rails` 
+4
May 04 '16 at 15:55
source share



All Articles