Skip to content

Commit 3f3436e

Browse files
committed
yamlresume 0.7.5 (new formula)
Signed-off-by: Rui Chen <[email protected]>
1 parent 7c70ab4 commit 3f3436e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Formula/y/yamlresume.rb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
class Yamlresume < Formula
2+
desc "Resumes as code in YAML"
3+
homepage "https://github.com/yamlresume/yamlresume"
4+
url "https://registry.npmjs.org/yamlresume/-/yamlresume-0.7.5.tgz"
5+
sha256 "77a1ff0ffa031a3e335d0eb453c12439c90dd54273889ef3434667b5539e52d3"
6+
license "MIT"
7+
8+
depends_on "node"
9+
10+
def install
11+
system "npm", "install", *std_npm_args
12+
bin.install_symlink Dir["#{libexec}/bin/*"]
13+
end
14+
15+
test do
16+
assert_match version.to_s, shell_output("#{bin}/yamlresume --version")
17+
18+
system bin/"yamlresume", "new"
19+
assert_match "YAMLResume provides a builtin schema", (testpath/"resume.yml").read
20+
21+
output = shell_output("#{bin}/yamlresume validate resume.yml")
22+
assert_match "Resume validation passed", output
23+
end
24+
end

0 commit comments

Comments
 (0)