File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -749,6 +749,7 @@ duckdb
749749duckscript
750750dufs
751751dug
752+ dum
752753dumpling
753754dunamai
754755dune
Original file line number Diff line number Diff line change 1+ class Dum < Formula
2+ desc "Npm scripts runner written in Rust"
3+ homepage "https://github.com/egoist/dum"
4+ url "https://github.com/egoist/dum/archive/refs/tags/v0.1.19.tar.gz"
5+ sha256 "94af37a8f9a0689ea27d7f338b495793349b75f56b516c17cd207e7c47c52c4f"
6+ license "MIT"
7+ head "https://github.com/egoist/dum.git" , branch : "main"
8+
9+ bottle do
10+ sha256 cellar : :any_skip_relocation , arm64_sequoia : "1b55256519cfd40c69330dea974562920fbe8202d5d20d87e8027044e7303bde"
11+ sha256 cellar : :any_skip_relocation , arm64_sonoma : "85cd3cb907cdd12a19237962c258ef81776fbc82f47a652125fe938fd2af76a5"
12+ sha256 cellar : :any_skip_relocation , arm64_ventura : "7451cfdf6ce688112b40e8fc8fdd688c33b1eb08f028f77cb41d004989896dd1"
13+ sha256 cellar : :any_skip_relocation , sonoma : "b31347772c05158e37b9432f1d621bbd925369feccbe67abb5b026513e397aa0"
14+ sha256 cellar : :any_skip_relocation , ventura : "407cf2dfc43a84146ebe0c18773888393d889a9eb2473a3b4c69d8fc68d509ab"
15+ sha256 cellar : :any_skip_relocation , x86_64_linux : "2e8958901da48fb93e4955c0d2e9009682681398dee8d768c5a8e6b7e22dc98c"
16+ end
17+
18+ depends_on "rust" => :build
19+
20+ def install
21+ system "cargo" , "install" , *std_cargo_args
22+ end
23+
24+ test do
25+ ( testpath /"package.json" ) . write <<~JSON
26+ {
27+ "scripts": {
28+ "hello": "echo 'Hello, dum!'"
29+ }
30+ }
31+ JSON
32+
33+ output = shell_output ( "#{ bin } /dum run hello" )
34+ assert_match "Hello, dum!" , output
35+
36+ assert_match version . to_s , shell_output ( "#{ bin } /dum --version" )
37+ end
38+ end
You can’t perform that action at this time.
0 commit comments