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
9- sha256 cellar : :any_skip_relocation , arm64_sequoia : "225b195421259af7c9c695cac4a7c4339b09acfae183f7d6a8e6339ec85b4ebf "
10- sha256 cellar : :any_skip_relocation , arm64_sonoma : "225b195421259af7c9c695cac4a7c4339b09acfae183f7d6a8e6339ec85b4ebf "
11- sha256 cellar : :any_skip_relocation , arm64_ventura : "225b195421259af7c9c695cac4a7c4339b09acfae183f7d6a8e6339ec85b4ebf "
12- sha256 cellar : :any_skip_relocation , sonoma : "8712666f7e32801dd54cd048a6a131da04ff9f6420294a321011217ef7e3a43c "
13- sha256 cellar : :any_skip_relocation , ventura : "8712666f7e32801dd54cd048a6a131da04ff9f6420294a321011217ef7e3a43c "
14- sha256 cellar : :any_skip_relocation , x86_64_linux : "225b195421259af7c9c695cac4a7c4339b09acfae183f7d6a8e6339ec85b4ebf "
9+ sha256 cellar : :any_skip_relocation , arm64_sequoia : "9b1b147779b35017530569c1a7a9512e76c404fd6ef3b5a4fbdaddcf95910f63 "
10+ sha256 cellar : :any_skip_relocation , arm64_sonoma : "9b1b147779b35017530569c1a7a9512e76c404fd6ef3b5a4fbdaddcf95910f63 "
11+ sha256 cellar : :any_skip_relocation , arm64_ventura : "9b1b147779b35017530569c1a7a9512e76c404fd6ef3b5a4fbdaddcf95910f63 "
12+ sha256 cellar : :any_skip_relocation , sonoma : "30669093f23d7e3da4628175fdaf08001e1f69edd3ba08a4d5baed5dddc3833c "
13+ sha256 cellar : :any_skip_relocation , ventura : "30669093f23d7e3da4628175fdaf08001e1f69edd3ba08a4d5baed5dddc3833c "
14+ sha256 cellar : :any_skip_relocation , x86_64_linux : "9b1b147779b35017530569c1a7a9512e76c404fd6ef3b5a4fbdaddcf95910f63 "
1515 end
1616
1717 depends_on "node"
@@ -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
0 commit comments