2017-10-11 09:39:07 +00:00
|
|
|
class Just < Formula
|
|
|
|
desc "Handy way to save and run project-specific commands"
|
|
|
|
homepage "https://github.com/casey/just"
|
2018-06-20 05:25:43 +00:00
|
|
|
url "https://github.com/casey/just/archive/v0.3.12.tar.gz"
|
|
|
|
sha256 "e5ca71efd19db8f157131cddb14d75ba161851e79e1cc9fc709e2c674d2c943b"
|
2017-10-11 09:39:07 +00:00
|
|
|
|
2017-11-07 16:31:37 +00:00
|
|
|
bottle do
|
2018-06-20 05:46:04 +00:00
|
|
|
sha256 "a3cf6e47a38bd3cbf8bfb09dce648f447dffec708eed07994491b1509bf857a8" => :high_sierra
|
|
|
|
sha256 "b1e19274a73e5bf4d0b3b38bd26270d9b4ff97e4191ffd3ecdee353e0dae468e" => :sierra
|
|
|
|
sha256 "a46cd86aa51e106d8025ab98cc560b3c1adee3524a7121d81ce63ae274403573" => :el_capitan
|
2017-11-07 16:31:37 +00:00
|
|
|
end
|
|
|
|
|
2017-10-11 09:39:07 +00:00
|
|
|
depends_on "rust" => :build
|
|
|
|
|
|
|
|
def install
|
2018-06-10 09:01:24 +00:00
|
|
|
system "cargo", "install", "--root", prefix
|
2017-10-11 09:39:07 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2017-11-07 19:51:11 +00:00
|
|
|
(testpath/"justfile").write <<~EOS
|
2017-10-11 09:39:07 +00:00
|
|
|
default:
|
|
|
|
touch it-worked
|
|
|
|
EOS
|
|
|
|
system "#{bin}/just"
|
|
|
|
assert_predicate testpath/"it-worked", :exist?
|
|
|
|
end
|
|
|
|
end
|