uriparser: use secure head url
also use https protocol in URI parsing test
This commit is contained in:
parent
cb606089c3
commit
82bdf32687
1 changed files with 4 additions and 4 deletions
|
@ -14,7 +14,7 @@ class Uriparser < Formula
|
||||||
end
|
end
|
||||||
|
|
||||||
head do
|
head do
|
||||||
url "git://git.code.sf.net/p/uriparser/git"
|
url "https://git.code.sf.net/p/uriparser/git.git"
|
||||||
depends_on "automake" => :build
|
depends_on "automake" => :build
|
||||||
depends_on "autoconf" => :build
|
depends_on "autoconf" => :build
|
||||||
depends_on "libtool" => :build
|
depends_on "libtool" => :build
|
||||||
|
@ -36,11 +36,11 @@ class Uriparser < Formula
|
||||||
|
|
||||||
test do
|
test do
|
||||||
expected = <<-EOS.undent
|
expected = <<-EOS.undent
|
||||||
uri: http://brew.sh
|
uri: https://brew.sh
|
||||||
scheme: http
|
scheme: https
|
||||||
hostText: brew.sh
|
hostText: brew.sh
|
||||||
absolutePath: false
|
absolutePath: false
|
||||||
EOS
|
EOS
|
||||||
assert_equal expected, shell_output("#{bin}/uriparse http://brew.sh").chomp
|
assert_equal expected, shell_output("#{bin}/uriparse https://brew.sh").chomp
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue