Gnu: Update generated URL to use HTTPS

This commit is contained in:
Sam Ford 2021-10-21 09:28:54 -04:00
parent ca7b28c8ed
commit 8ce6059544
No known key found for this signature in database
GPG Key ID: 95209E46C7FFDEFE
2 changed files with 4 additions and 4 deletions

View File

@ -64,7 +64,7 @@ module Homebrew
return values if match.blank?
# The directory listing page for the project's files
values[:url] = "http://ftp.gnu.org/gnu/#{match[:project_name]}/"
values[:url] = "https://ftp.gnu.org/gnu/#{match[:project_name]}/"
regex_name = Regexp.escape(T.must(match[:project_name])).gsub("\\-", "-")

View File

@ -19,15 +19,15 @@ describe Homebrew::Livecheck::Strategy::Gnu do
let(:generated) {
{
no_version_dir: {
url: "http://ftp.gnu.org/gnu/abc/",
url: "https://ftp.gnu.org/gnu/abc/",
regex: %r{href=.*?abc[._-]v?(\d+(?:\.\d+)*)(?:\.[a-z]+|/)}i,
},
software_page: {
url: "http://ftp.gnu.org/gnu/abc/",
url: "https://ftp.gnu.org/gnu/abc/",
regex: %r{href=.*?abc[._-]v?(\d+(?:\.\d+)*)(?:\.[a-z]+|/)}i,
},
subdomain: {
url: "http://ftp.gnu.org/gnu/abc/",
url: "https://ftp.gnu.org/gnu/abc/",
regex: %r{href=.*?abc[._-]v?(\d+(?:\.\d+)*)(?:\.[a-z]+|/)}i,
},
savannah: {},