just 0.3.1 (new formula)
Closes #19320. Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
This commit is contained in:
parent
dc9f6715a9
commit
739888e36e
1 changed files with 22 additions and 0 deletions
22
Formula/just.rb
Normal file
22
Formula/just.rb
Normal 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
|
Loading…
Reference in a new issue