29 lines
1.2 KiB
Ruby
29 lines
1.2 KiB
Ruby
require "language/node"
|
|
|
|
class Gitmoji < Formula
|
|
desc "Interactive command-line tool for using emoji in commit messages"
|
|
homepage "https://gitmoji.dev"
|
|
url "https://registry.npmjs.org/gitmoji-cli/-/gitmoji-cli-4.7.0.tgz"
|
|
sha256 "ec602331cef124b9b3064b4291e01370048eb703ffda26dc5f399d894d4232a8"
|
|
license "MIT"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "8bcb44e8427347f0c761adb99eaca5344fc886dfc288a51098a21277aa96f3d5"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "07195afc3abf49df75264de636d55ec69b6aa305a03e41c30a435fe366779d61"
|
|
sha256 cellar: :any_skip_relocation, catalina: "07195afc3abf49df75264de636d55ec69b6aa305a03e41c30a435fe366779d61"
|
|
sha256 cellar: :any_skip_relocation, mojave: "07195afc3abf49df75264de636d55ec69b6aa305a03e41c30a435fe366779d61"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "8bcb44e8427347f0c761adb99eaca5344fc886dfc288a51098a21277aa96f3d5"
|
|
end
|
|
|
|
depends_on "node"
|
|
|
|
def install
|
|
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
|
|
bin.install_symlink Dir["#{libexec}/bin/*"]
|
|
end
|
|
|
|
test do
|
|
assert_match ":bug:", shell_output("#{bin}/gitmoji --search bug")
|
|
end
|
|
end
|