Class
Constants
No documentation available
Software Package Data
Exchange (SPDX) standard open-source software license identifiers
No documentation available
Class Methods
lib/rubygems/util/licenses.rb
View on GitHub
# File tmp/rubies/ruby-2.3.8/lib/rubygems/util/licenses.rb, line 331
def self.match?(license)
!REGEXP.match(license).nil?
end
No documentation available
lib/rubygems/util/licenses.rb
View on GitHub
# File tmp/rubies/ruby-2.3.8/lib/rubygems/util/licenses.rb, line 335
def self.suggestions(license)
by_distance = IDENTIFIERS.group_by do |identifier|
levenshtein_distance(identifier, license)
end
lowest = by_distance.keys.min
return unless lowest < license.size
by_distance[lowest]
end
No documentation available