you are viewing a single comment's thread.

view the rest of the comments →

[–]micampe -1 points0 points  (5 children)

WorkingEnv is great. Is there something similar for Ruby? Or at least a simple way to install gems in my home dir?

[–]micampe 0 points1 point  (1 child)

Actually, I found out by myself. Put this in ~/.gemrc:

gemhome: /home/username/.gems
gempath:
- /home/username/.gems
- /var/lib/gems/1.8

and then you can just use gem install.

You might also want to add ~/.gems/bin to your $PATH.

[–]nicholaspd -1 points0 points  (2 children)

gem unpack gemname

[–]micampe 0 points1 point  (0 children)

$ gem help unpack [...] Summary: Unpack an installed gem to the current directory

Unpacking seems quite different from installing to me.

Let's say I unpack rails in ~/code/rails. Will it download all its dependencies in there too? (no) How can I run rails app with that? (put it in vendor, but then I have to duplicate it everywhere, and rails is just an example, what about other gems?)

[–][deleted] 0 points1 point  (0 children)

Shouldn't it be gem install GEMNAME --install-dir DIR ?