This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

chruby 0.3.1

Closes #16789.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information...
1 parent dc7f327 commit aecbee6cdd86f0f6d575b714ca29573826b49289 @havenwood havenwood committed with klausmeyer Dec 29, 2012
Showing with 15 additions and 13 deletions.
  1. +15 −13 Library/Formula/chruby.rb
View
@@ -2,8 +2,8 @@
class Chruby < Formula
homepage 'https://github.com/postmodern/chruby#readme'
- url 'https://github.com/postmodern/chruby/archive/v0.3.0.tar.gz'
- sha1 '3c207a7b43d8e66928704237aadc043353799a5d'
+ url 'https://github.com/postmodern/chruby/archive/v0.3.1.tar.gz'
+ sha1 '90c3fce7a512acc8b60d5efd3e6a2eeadcd5a238'
head 'https://github.com/postmodern/chruby.git'
@@ -12,28 +12,30 @@ def install
end
def caveats; <<-EOS.undent
- For a system wide install, add the following to /etc/profile.d/chruby.sh.
- #!/bin/sh
- source #{opt_prefix}/share/chruby/chruby.sh
- RUBIES=(/opt/rubies/*)
+ Add the following to the /etc/profile.d/chruby.sh, ~/.bashrc or
+ ~/.zshrc file:
- For a local install, add the following to ~/.bashrc or ~/.zshrc.
+ source #{HOMEBREW_PREFIX}/opt/chruby/share/chruby/chruby.sh
- #!/bin/sh
- source #{opt_prefix}/share/chruby/chruby.sh
- RUBIES=(~/.rubies/*)
+ By default chruby will search for Rubies installed into /opt/rubies/ or
+ ~/.rubies/. For non-standard installation locations, simply set the RUBIES
+ variable:
- To use existing Rubies installed by RVM, rbenv or rbfu, set RUBIES to
- the following:
+ 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 #{opt_prefix}/share/chruby/auto.sh
+ source #{HOMEBREW_PREFIX}/opt/chruby/share/chruby/auto.sh
EOS
end

0 comments on commit aecbee6

Please sign in to comment.