homebrew-core/Formula/rbenv-readline.rb
Xu Cheng f129cb6f0d modernize and add test for rbenv and its family
Closes Homebrew/homebrew#36496.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-02-03 16:20:42 +00:00

19 lines
476 B
Ruby

class RbenvReadline < Formula
homepage "https://github.com/tpope/rbenv-readline"
url "https://github.com/tpope/rbenv-readline/archive/v1.0.0.tar.gz"
sha1 "2b9484548bb9ea6a72757a0ff750e48b74b9e1f7"
head "https://github.com/tpope/rbenv-readline.git"
depends_on "rbenv"
depends_on "ruby-build"
depends_on "readline"
def install
prefix.install Dir["*"]
end
test do
assert shell_output("rbenv hooks install").include? "readline-brew.bash"
end
end