Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions generate-windows-versions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# 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.to_s }
if allowed_urls_regexps.none? { |regexp| regexp.match? url }
raise SecurityError, "Unexpected URL: #{url}"
end
end
Expand Down Expand Up @@ -112,7 +112,7 @@ def validate(versions, allowed_urls_regexps)
raise "#{toolchain.empty? ? 'no' : 'multiple'} toolchains found for #{raw_version} #{raw_arch}: #{toolchain}"
end

archs[raw_arch] = URI.join(base_url, toolchain.first[:href])
archs[raw_arch] = URI.join(base_url, toolchain.first[:href]).to_s
end
end

Expand Down