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-01-05 12:26:18 +00:00
|
|
|
url "https://github.com/casey/just/archive/v0.3.6.tar.gz"
|
|
|
|
sha256 "25b37ad9c44704a89a8ab570157c9c78da63c481aac75caa40757d9bc84a191a"
|
2017-10-11 09:39:07 +00:00
|
|
|
|
2017-11-07 16:31:37 +00:00
|
|
|
bottle do
|
2017-12-12 05:25:19 +00:00
|
|
|
sha256 "62b828fd3295c2978d26f321c0b16eaaf795e8d5cd92cabd2a49ff04289a60ec" => :high_sierra
|
|
|
|
sha256 "ab13445c92586431895e54c6ff18976c8668ee7c0ee8aa03bbc1b91ef7e29872" => :sierra
|
|
|
|
sha256 "d958f3da28c50164960a197b0e7fe06108a8580a5fbe1e6f76d89cc4697a9374" => :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
|
|
|
|
system "cargo", "build", "--release"
|
|
|
|
bin.install "target/release/just"
|
|
|
|
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
|