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/v20181207.tar.gz" sha256 "74b4ffac4e8d6e68685afad035c64573280e93dfb2ab81fd7b613085e8a69c23" head "https://github.com/rbenv/ruby-build.git" bottle :unneeded depends_on "autoconf" depends_on "openssl" depends_on "pkg-config" def install ENV["PREFIX"] = prefix system "./install.sh" end test do assert_match "2.0.0", shell_output("#{bin}/ruby-build --definitions") end end