From 765d61593a088902debbffb62ed8ffb459643ce1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Thu, 30 May 2024 21:50:05 +0200 Subject: [rubygems/rubygems] Remove per uri options constant I don't think we should add more of these. https://github.com/rubygems/rubygems/commit/9eee9948cc --- lib/bundler/settings.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/bundler/settings.rb b/lib/bundler/settings.rb index 6318c7c761..4cd189af12 100644 --- a/lib/bundler/settings.rb +++ b/lib/bundler/settings.rb @@ -523,16 +523,14 @@ module Bundler YAMLSerializer end - PER_URI_OPTIONS = %w[ - fallback_timeout - ].freeze + FALLBACK_TIMEOUT_URI_OPTION = "fallback_timeout" NORMALIZE_URI_OPTIONS_PATTERN = / \A (\w+\.)? # optional prefix key (https?.*?) # URI - (\.#{Regexp.union(PER_URI_OPTIONS)})? # optional suffix key + (\.#{FALLBACK_TIMEOUT_URI_OPTION})? # optional suffix key \z /ix -- cgit v1.2.3