Skip to content

Commit 5831bfb

Browse files
authored
Merge pull request Homebrew#199175 from Homebrew/dum
dum 0.1.19 (new formula)
2 parents 884a5ad + c743afc commit 5831bfb

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/autobump.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,7 @@ duckdb
749749
duckscript
750750
dufs
751751
dug
752+
dum
752753
dumpling
753754
dunamai
754755
dune

Formula/d/dum.rb

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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

0 commit comments

Comments
 (0)