From c5e1cff717aeb84d9712674dce2f097b0d023b49 Mon Sep 17 00:00:00 2001 From: Shannon Skipper Date: Sat, 29 Dec 2012 10:27:55 -0800 Subject: chruby 0.3.1 Closes #16789. Signed-off-by: Adam Vandenberg --- Library/Formula/chruby.rb | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/chruby.rb b/Library/Formula/chruby.rb index 67a7ed686..20b3ea58c 100644 --- a/Library/Formula/chruby.rb +++ b/Library/Formula/chruby.rb @@ -2,8 +2,8 @@ require 'formula' 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,20 +12,22 @@ class Chruby < Formula 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/*) @@ -33,7 +35,7 @@ class Chruby < Formula 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 -- cgit v1.2.3