BSD Ports

devel/chruby 0.3.9 DragonFly

Changes the current Ruby

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
devel, ruby
Package size
3.2 KiB, 4.9 KiB installed

Description

Changes the current Ruby.

In the other systems

SystemPortVersion
DragonFlydevel/chruby0.3.9
FreeBSDdevel/chruby0.3.9

Install

Binary package:

pkg install chruby

From DPorts:

cd /usr/dports/devel/chruby && make install clean

Dependencies

Run dependencies 1

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

Add the following to the /etc/profile.d/chruby.sh, ~/.bash_profile or
~/.zprofile file:

source /usr/local/share/chruby/chruby.sh

By default chruby will search for Rubies installed into /opt/rubies/ or
~/.rubies/. For non-standard installation locations, simply set the RUBIES
variable:

RUBIES=(
  /opt/jruby-1.7.0
  $HOME/src/rubinius
)

If you are migrating from another Ruby manager, set `RUBIES` accordingly:

RVM: RUBIES=(~/.rvm/rubies/*)
rbenv: RUBIES=(~/.rbenv/versions/*)
rbfu: RUBIES=('~/.rbfu/rubies/*)

To enable auto-switching of Rubies specified by .ruby-version files:

source /usr/local/share/chruby/auto.sh