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/v20190130.tar.gz" sha256 "d397913cf784fe295c2b6750aaa1f0b08d32fad6ccc5baeb7fb77e6c13dc28bb" 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