File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 11class WikibaseCli < Formula
22 desc "Command-line interface to Wikibase"
33 homepage "https://github.com/maxlath/wikibase-cli"
4- url "https://registry.npmjs.org/wikibase-cli/-/wikibase-cli-18.2.2 .tgz"
5- sha256 "7745aa0e89506fe13502ee094dba848ccdf935df16e20a693a97162382e3fbeb "
4+ url "https://registry.npmjs.org/wikibase-cli/-/wikibase-cli-18.3.0 .tgz"
5+ sha256 "40a3d289e43d28caacc72bfa54f671037292b6a5c103bab33e9355d1fa6e38c1 "
66 license "MIT"
77
88 bottle do
@@ -22,6 +22,13 @@ def install
2222 end
2323
2424 test do
25+ config_file = testpath /".wikibase-cli.json"
26+ config_file . write "{\" instance\" :\" https://www.wikidata.org\" }"
27+
28+ ENV [ "WB_CONFIG" ] = config_file
29+
2530 assert_equal "human" , shell_output ( "#{ bin } /wd label Q5 --lang en" ) . strip
31+
32+ assert_match version . to_s , shell_output ( "#{ bin } /wd --version" )
2633 end
2734end
You can’t perform that action at this time.
0 commit comments