|
|
@ -8,7 +8,7 @@ Local Gem Installation
|
|
|
|
----------------------
|
|
|
|
----------------------
|
|
|
|
|
|
|
|
|
|
|
|
When a Ruby version manager is not detected, local gems are installed in
|
|
|
|
When a Ruby version manager is not detected, local gems are installed in
|
|
|
|
*~/Library/Ruby/Gems/1.8* on Mac OS X.
|
|
|
|
*~/.gems*; otherwise, they are installed according to the manager.
|
|
|
|
|
|
|
|
|
|
|
|
RVM
|
|
|
|
RVM
|
|
|
|
---
|
|
|
|
---
|
|
|
@ -23,12 +23,27 @@ may conflict with shell scripts.
|
|
|
|
rbenv
|
|
|
|
rbenv
|
|
|
|
-----
|
|
|
|
-----
|
|
|
|
|
|
|
|
|
|
|
|
An alternative RVM is to use [rbenv][3], which allows for switching between multiple,
|
|
|
|
An alternative RVM is to use [rbenv][3], which allows for switching between
|
|
|
|
isolated Ruby installations in the home directory.
|
|
|
|
multiple, isolated Ruby installations in the home directory.
|
|
|
|
|
|
|
|
|
|
|
|
While it is not as feature rich as RVM, it is not loaded into the shell and is
|
|
|
|
While it is not as feature rich as RVM, it is not loaded into the shell and is
|
|
|
|
not known to cause conflicts with shell scripts.
|
|
|
|
not known to cause conflicts with shell scripts.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
chruby
|
|
|
|
|
|
|
|
------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Yet another alternative is [chruby][6], which is simpler than both RVM and
|
|
|
|
|
|
|
|
rbenv.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Settings
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### Auto-Switch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
To enable auto switching the Ruby version on directory change based on the
|
|
|
|
|
|
|
|
.ruby-version file, add the following line to *zpreztorc*:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
zstyle ':prezto:module:ruby:chruby' auto-switch 'yes'
|
|
|
|
|
|
|
|
|
|
|
|
Bundler
|
|
|
|
Bundler
|
|
|
|
-------
|
|
|
|
-------
|
|
|
|
|
|
|
|
|
|
|
@ -87,4 +102,4 @@ Authors
|
|
|
|
[3]: https://github.com/sstephenson/rbenv
|
|
|
|
[3]: https://github.com/sstephenson/rbenv
|
|
|
|
[4]: http://gembundler.com
|
|
|
|
[4]: http://gembundler.com
|
|
|
|
[5]: https://github.com/sorin-ionescu/prezto/issues
|
|
|
|
[5]: https://github.com/sorin-ionescu/prezto/issues
|
|
|
|
|
|
|
|
[6]: https://github.com/postmodern/chruby
|
|
|
|