jackett 0.22.1382
[Homebrew/homebrew-core.git] / Formula / b / bundler-completion.rb
blob3a76aad796072cd4a44816dafc4c2883d709a856
1 class BundlerCompletion < Formula
2   desc "Bash completion for Bundler"
3   homepage "https://github.com/mernen/completion-ruby"
4   url "https://github.com/mernen/completion-ruby/archive/refs/tags/v1.0.2.tar.gz"
5   sha256 "70b9ae9154076b561f0d7b2b74893258dc00168ded3e8686f14e349f4a324914"
6   license "MIT"
7   version_scheme 1
8   head "https://github.com/mernen/completion-ruby.git", branch: "main"
10   livecheck do
11     formula "ruby-completion"
12   end
14   bottle do
15     sha256 cellar: :any_skip_relocation, all: "f08e58b28795cd4563c8c7c868db8760b1a7fd0bb23fbfb75f31c999288df683"
16   end
18   def install
19     bash_completion.install "completion-bundle" => "bundler"
20   end
22   test do
23     assert_match "-F __bundle",
24       shell_output("bash -c 'source #{bash_completion}/bundler && complete -p bundle'")
25   end
26 end