just 0.3.1 (new formula)

Closes #19320.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
This commit is contained in:
Eevert Saukkokoski 2017-10-11 12:39:07 +03:00 committed by Alex Dunn
parent dc9f6715a9
commit 739888e36e

22
Formula/just.rb Normal file
View file

@ -0,0 +1,22 @@
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.1.tar.gz"
sha256 "acb8e967906357476fc9328636292a1a2b369f84903a114573607ec0215bf0e7"
depends_on "rust" => :build
def install
system "cargo", "build", "--release"
bin.install "target/release/just"
end
test do
(testpath/"justfile").write <<-EOS.undent
default:
touch it-worked
EOS
system "#{bin}/just"
assert_predicate testpath/"it-worked", :exist?
end
end