instance method
Gem::SpecificationPolicy#validate_unique_links
validate_unique_links
lib/rubygems/specification_policy.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/specification_policy.rb, line 491
def validate_unique_links
links = @specification.metadata.slice(*METADATA_LINK_KEYS)
grouped = links.group_by {|_key, uri| uri }
grouped.each do |uri, copies|
next unless copies.length > 1
keys = copies.map(&:first).join("\n ")
warning <<~WARNING
You have specified the uri:
#{uri}
for all of the following keys:
#{keys}
Only the first one will be shown on rubygems.org
WARNING
end
end
No documentation available
See also
#validate_specification_version
#validate_values
#validate_shebang_line_in
also in
4.1 · 3.4 · 3.3