File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments