25 lines
656 B
Ruby
25 lines
656 B
Ruby
class DjangoCompletion < Formula
|
|
desc "Bash completion for Django"
|
|
homepage "https://github.com/django/django"
|
|
url "https://github.com/django/django/archive/3.1.2.tar.gz"
|
|
sha256 "e6d1af7438b0d397b931c7ace6bd77359731cb29d90e7ac2d0931e8021453310"
|
|
license "BSD-3-Clause"
|
|
head "https://github.com/django/django.git"
|
|
|
|
livecheck do
|
|
url :head
|
|
regex(/^v?(\d+(?:\.\d+)+)$/i)
|
|
end
|
|
|
|
bottle :unneeded
|
|
|
|
def install
|
|
bash_completion.install "extras/django_bash_completion" => "django"
|
|
end
|
|
|
|
test do
|
|
assert_match "-F _django_completion",
|
|
shell_output("source #{bash_completion}/django && complete -p django-admin.py")
|
|
end
|
|
end
|