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
|
2018-01-05 13:38:21 +00:00
|
|
|
sha256 "52f800707225d5847ab43967f4d0d50b6a1b96763bedee300829ea6fcc3b9eed" => :high_sierra
|
|
|
|
sha256 "e1ad66bef5b0dabd2be8a2af72d129d3d6a2e81b5570a6b1a9a56f9f869246ce" => :sierra
|
|
|
|
sha256 "959efe969763984c165acc69364cccd766d19d3ae087e304b648e926a34ef9fb" => :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
|