diff options
| author | Shannon Skipper | 2012-12-20 19:26:10 -0800 |
|---|---|---|
| committer | Jack Nagel | 2012-12-21 12:17:49 -0600 |
| commit | 7fb7353ef0f59dd3d7aa377e022108efa4c520ed (patch) | |
| tree | 3a39337e65ae8d1faedb117a2a96b07e93d5dcd3 /Library/Formula | |
| parent | 9fc7fdacb17524dda4d76519d3fa31a62d89c9c6 (diff) | |
| download | homebrew-7fb7353ef0f59dd3d7aa377e022108efa4c520ed.tar.bz2 | |
chruby 0.3.0
Closes #16689.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/chruby.rb | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Library/Formula/chruby.rb b/Library/Formula/chruby.rb index 5ab98fb15..67a7ed686 100644 --- a/Library/Formula/chruby.rb +++ b/Library/Formula/chruby.rb @@ -1,10 +1,9 @@ require 'formula' class Chruby < Formula - homepage 'https://github.com/postmodern/chruby#readme' - url 'https://github.com/postmodern/chruby/archive/v0.2.5.tar.gz' - sha1 '0b4819754f320ea32a66aaae91a4e426dcc264fc' + url 'https://github.com/postmodern/chruby/archive/v0.3.0.tar.gz' + sha1 '3c207a7b43d8e66928704237aadc043353799a5d' head 'https://github.com/postmodern/chruby.git' @@ -16,13 +15,13 @@ class Chruby < Formula For a system wide install, add the following to /etc/profile.d/chruby.sh. #!/bin/sh - source #{HOMEBREW_PREFIX}/opt/chruby/share/chruby/chruby.sh + source #{opt_prefix}/share/chruby/chruby.sh RUBIES=(/opt/rubies/*) For a local install, add the following to ~/.bashrc or ~/.zshrc. #!/bin/sh - source #{HOMEBREW_PREFIX}/opt/chruby/share/chruby/chruby.sh + source #{opt_prefix}/share/chruby/chruby.sh RUBIES=(~/.rubies/*) To use existing Rubies installed by RVM, rbenv or rbfu, set RUBIES to @@ -32,6 +31,10 @@ class Chruby < Formula 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 + EOS end end |
