From 8ce6059544d1453f06c3aba7103ea1720d97498f Mon Sep 17 00:00:00 2001 From: Sam Ford <1584702+samford@users.noreply.github.com> Date: Thu, 21 Oct 2021 09:28:54 -0400 Subject: [PATCH] Gnu: Update generated URL to use HTTPS --- Library/Homebrew/livecheck/strategy/gnu.rb | 2 +- Library/Homebrew/test/livecheck/strategy/gnu_spec.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/livecheck/strategy/gnu.rb b/Library/Homebrew/livecheck/strategy/gnu.rb index 86e4eeb143..f0200b7ac5 100644 --- a/Library/Homebrew/livecheck/strategy/gnu.rb +++ b/Library/Homebrew/livecheck/strategy/gnu.rb @@ -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("\\-", "-") diff --git a/Library/Homebrew/test/livecheck/strategy/gnu_spec.rb b/Library/Homebrew/test/livecheck/strategy/gnu_spec.rb index c75e7125ca..e76a878e4a 100644 --- a/Library/Homebrew/test/livecheck/strategy/gnu_spec.rb +++ b/Library/Homebrew/test/livecheck/strategy/gnu_spec.rb @@ -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: {},