Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit def1849

Browse files
committed
Added a homebrew recipe for chruby.
1 parent c87fb5a commit def1849

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

homebrew/chruby.rb

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
require 'formula'
2+
3+
class Chruby < Formula
4+
5+
url 'https://github.com/downloads/postmodern/chruby/chruby-0.2.0.tar.gz'
6+
homepage 'https://github.com/postmodern/chruby#readme'
7+
md5 '6b6424e0455101e9f071fd72515c3b38'
8+
head 'https://github.com/postmodern/chruby.git'
9+
10+
def install
11+
system 'make', 'install', "PREFIX=#{prefix}"
12+
end
13+
14+
def caveats; <<-EOS.undent
15+
Add chruby to ~/.bashrc or ~/.profile:
16+
17+
. #{prefix}/share/chruby/chruby.sh
18+
19+
RUBIES=(
20+
/usr/local/ruby-1.9.3
21+
/opt/jruby-1.7.0
22+
)
23+
24+
For system-wide installation, add the above text to /etc/profile.d/chruby.sh
25+
26+
EOS
27+
end
28+
end

0 commit comments

Comments
 (0)