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