Skip to content

Commit cb9fa3d

Browse files
authored
Merge pull request #246949 from Homebrew/yamlresume
yamlresume 0.7.5 (new formula)
2 parents 8bf17bc + 33323fc commit cb9fa3d

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Formula/y/yamlresume.rb

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
bottle do
9+
sha256 cellar: :any_skip_relocation, all: "da9c94b4ee2b7916a0f249f4fb5207fe14577b9a840f34cf2c1fa7fdbc32910a"
10+
end
11+
12+
depends_on "node"
13+
14+
def install
15+
system "npm", "install", *std_npm_args
16+
bin.install_symlink Dir["#{libexec}/bin/*"]
17+
end
18+
19+
test do
20+
assert_match version.to_s, shell_output("#{bin}/yamlresume --version")
21+
22+
system bin/"yamlresume", "new"
23+
assert_match "YAMLResume provides a builtin schema", (testpath/"resume.yml").read
24+
25+
output = shell_output("#{bin}/yamlresume validate resume.yml")
26+
assert_match "Resume validation passed", output
27+
end
28+
end

0 commit comments

Comments
 (0)