diff options
Diffstat (limited to 'Library/Formula/rbenv.rb')
| -rw-r--r-- | Library/Formula/rbenv.rb | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/Library/Formula/rbenv.rb b/Library/Formula/rbenv.rb index b19bbd76f..cc84a7e85 100644 --- a/Library/Formula/rbenv.rb +++ b/Library/Formula/rbenv.rb @@ -1,15 +1,13 @@ -require 'formula' - class Rbenv < Formula - homepage 'https://github.com/sstephenson/rbenv' - url 'https://github.com/sstephenson/rbenv/archive/v0.4.0.tar.gz' - sha1 '825ceec55805b8bb80a6d6003fd3cef824d7ff14' + homepage "https://github.com/sstephenson/rbenv" + url "https://github.com/sstephenson/rbenv/archive/v0.4.0.tar.gz" + sha1 "825ceec55805b8bb80a6d6003fd3cef824d7ff14" - head 'https://github.com/sstephenson/rbenv.git' + head "https://github.com/sstephenson/rbenv.git" def install - inreplace 'libexec/rbenv', '/usr/local', HOMEBREW_PREFIX - prefix.install Dir['*'] + inreplace "libexec/rbenv", "/usr/local", HOMEBREW_PREFIX + prefix.install Dir["*"] end def caveats; <<-EOS.undent @@ -20,4 +18,8 @@ class Rbenv < Formula if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi EOS end + + test do + shell_output("eval \"$(#{bin}/rbenv init -)\" && rbenv versions") + end end |
