2018-08-21 14:12:28 +00:00
|
|
|
class Topgrade < Formula
|
|
|
|
desc "Upgrade all the things"
|
|
|
|
homepage "https://github.com/r-darwish/topgrade"
|
|
|
|
url "https://github.com/r-darwish/topgrade/archive/v0.13.0.tar.gz"
|
|
|
|
sha256 "c1a7fe9675a4572f77afad21849ce5e512c194e4e00de17ce5590f5588ad38b9"
|
|
|
|
|
2018-08-28 04:46:45 +00:00
|
|
|
bottle do
|
|
|
|
sha256 "505ca928e99e82a7348447c6d9b5dde05a2d7b38d1f6513be5d7f0294a7a39ec" => :high_sierra
|
|
|
|
sha256 "35293faa14fb545edade34e576e9440dcfd585174dd93fd230f02b77b4f68028" => :sierra
|
|
|
|
sha256 "15777fae3e45142facd9421a59febe4a846d89c8ef6d252d645e67c5782fda67" => :el_capitan
|
|
|
|
end
|
|
|
|
|
2018-08-21 14:12:28 +00:00
|
|
|
depends_on "rust" => :build
|
|
|
|
|
|
|
|
def install
|
2018-08-29 12:46:13 +00:00
|
|
|
system "cargo", "install", "--root", prefix, "--path", "."
|
2018-08-21 14:12:28 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
output = shell_output("#{bin}/topgrade -n")
|
|
|
|
assert_match "Dry running: #{HOMEBREW_PREFIX}/bin/brew upgrade", output
|
|
|
|
end
|
|
|
|
end
|