homebrew-core/Formula/just.rb

29 lines
871 B
Ruby
Raw Normal View History

class Just < Formula
desc "Handy way to save and run project-specific commands"
homepage "https://github.com/casey/just"
url "https://github.com/casey/just/archive/v0.3.10.tar.gz"
sha256 "b1b73609799883500bf57060ef48d056cc191662d67e18b300bbcc6e644d1529"
2017-11-07 16:31:37 +00:00
bottle do
2018-03-20 15:56:42 +00:00
sha256 "dad62ae38d82394db7ff411217adc5bc356112ce8e0d688389884ce3841f5dcd" => :high_sierra
sha256 "d0ad5ed53d328ca6ce27668c3d49bd70c4dd964b9c97a5c27fef6f90e4d36ba6" => :sierra
sha256 "4b2ae72a3d10c74f1b8c60cd4d13438dfc3a340740ff32fb07db21bf2f3f3edb" => :el_capitan
2017-11-07 16:31:37 +00:00
end
depends_on "rust" => :build
def install
system "cargo", "build", "--release"
bin.install "target/release/just"
end
test do
2017-11-07 19:51:11 +00:00
(testpath/"justfile").write <<~EOS
default:
touch it-worked
EOS
system "#{bin}/just"
assert_predicate testpath/"it-worked", :exist?
end
end