mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 06:34:19 +02:00
Fix compatibility to ruby-3.2
... which is the default ruby version on Github Actions.
This commit is contained in:
committed by
Benoit Daloze
parent
708024e6c9
commit
5fcbc91943
@@ -21,7 +21,7 @@ WINDOWS_TOOLCHAIN_VERSIONS_URLS_REGEXPS = [
|
||||
# Validate all the URLs in the versions json
|
||||
def validate(versions, allowed_urls_regexps)
|
||||
versions.values.flat_map(&:values).each do |url|
|
||||
if allowed_urls_regexps.none? { |regexp| regexp.match? url }
|
||||
if allowed_urls_regexps.none? { |regexp| regexp.match? url.to_s }
|
||||
raise SecurityError, "Unexpected URL: #{url}"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user