class RubyBuild < Formula desc "Install various Ruby versions and implementations" homepage "https://github.com/rbenv/ruby-build" url "https://github.com/rbenv/ruby-build/archive/v20191111.tar.gz" sha256 "9cbadf9c7cb4cd92b05b1d3e8c59937c524748c5c29b05a5b68ee66f84160899" head "https://github.com/rbenv/ruby-build.git" bottle :unneeded depends_on "autoconf" depends_on "pkg-config" depends_on "readline" def install ENV["PREFIX"] = prefix system "./install.sh" end test do assert_match "2.0.0", shell_output("#{bin}/ruby-build --definitions") end end