homebrew-core/Formula/gem-completion.rb

25 lines
599 B
Ruby

class GemCompletion < Formula
desc "Bash completion for gem"
homepage "https://github.com/mernen/completion-ruby"
url "https://github.com/mernen/completion-ruby.git",
revision: "f3e4345042b0cc48317e45b673dfd3d23904b9a7"
version "2"
license "MIT"
head "https://github.com/mernen/completion-ruby.git"
livecheck do
skip "No version information available"
end
bottle :unneeded
def install
bash_completion.install "completion-gem" => "gem"
end
test do
assert_match "-F __gem",
shell_output("source #{bash_completion}/gem && complete -p gem")
end
end