[DRE-maint] Bug#654550: Bug#654550: rbenv: Should work seamlessly with system rubygems.
Antonio Terceiro
terceiro at debian.org
Sun Jan 8 20:11:24 UTC 2012
Matijs van Zuijlen escreveu isso aí:
> What I would really like to happen is one of the following:
>
> - Bug #637914 is resolved, and rbenv adds the path that is appropriate for
> the selected Ruby verion to PATH.
> - rbenv creates shims for any script it finds in /usr/local/bin that starts
> with a ruby hashbang.
What do you think of:
- forget about /usr/local, since rbenv is meant to manage interpreters
on a per-user basis.
- `rbenv exec` sets GEM_HOME to ~/.rbenv/versions/1.8.7-debian/gems, so
that Rubygems and bundler will install stuff to there.
- `rbenv rehash` symlinks all programs installed in $GEM_HOME/bin into
~/.rbenv/versions/1.8.7-debian/bin so that they all get shims in
~/.rbenv/shims
This way the interpreters installed by `rbenv alternatives` will behave
more like regular rbenv-installed interpreters. And your gem programs
installed under one interpreter are only available to that interpreter.
--
Antonio Terceiro <terceiro at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20120108/99c63543/attachment-0001.pgp>
More information about the Pkg-ruby-extras-maintainers
mailing list