Merge pull request #12289 from samford/livecheck/gnu-update-url-to-use-https

Gnu: Update generated URL to use HTTPS
This commit is contained in:
Sam Ford 2021-10-21 09:58:47 -04:00 committed by GitHub
commit 2f734270fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: {},