20 lines
669 B
Ruby
20 lines
669 B
Ruby
class Gibo < Formula
|
|
desc "Access GitHub's .gitignore boilerplates"
|
|
homepage "https://github.com/simonwhitaker/gibo"
|
|
url "https://github.com/simonwhitaker/gibo/archive/2.0.0.tar.gz"
|
|
sha256 "3e6fadfc23080a500353a70231851ed5381067bc99bd3d32058da9abe045b018"
|
|
|
|
bottle :unneeded
|
|
|
|
def install
|
|
bin.install "gibo"
|
|
bash_completion.install "shell-completions/gibo-completion.bash"
|
|
zsh_completion.install "shell-completions/gibo-completion.zsh" => "_gibo"
|
|
fish_completion.install "shell-completions/gibo.fish"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/gibo", "update"
|
|
assert_includes shell_output("#{bin}/gibo dump Python"), "Python.gitignore"
|
|
end
|
|
end
|