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.6.tar.gz"
|
|
sha256 "d219f72443e736e7042206f6a190fc9ed6b4563b9a4a73a72b47b0a2b4b06d89"
|
|
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: "618eb557494fc257b884ea381c89ef870e7e207b0531b4ab9bd3734dd449da05"
|
|
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
|