27 lines
791 B
Ruby
27 lines
791 B
Ruby
class DjangoCompletion < Formula
|
|
desc "Bash completion for Django"
|
|
homepage "https://www.djangoproject.com/"
|
|
url "https://github.com/django/django/archive/4.0.2.tar.gz"
|
|
sha256 "9ec30c68ce4b904e6839e396d4dcbdc2cf0dff72e2d7984221c59787b6c7bacc"
|
|
license "BSD-3-Clause"
|
|
head "https://github.com/django/django.git", branch: "main"
|
|
|
|
livecheck do
|
|
url :stable
|
|
regex(/^v?(\d+(?:\.\d+)+)$/i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "7d395b56a03ac4522e89dd7dc46f4e272aa026d71390ef167d1a5526999d9c7a"
|
|
end
|
|
|
|
def install
|
|
bash_completion.install "extras/django_bash_completion" => "django"
|
|
end
|
|
|
|
test do
|
|
assert_match "-F _django_completion",
|
|
shell_output("bash -c 'source #{bash_completion}/django && complete -p django-admin'")
|
|
end
|
|
end
|