Class
Constants
No documentation available
No documentation available
Software Package Data
Exchange (SPDX) standard open-source software license identifiers
No documentation available
exception identifiers
No documentation available
No documentation available
No documentation available
No documentation available
Class Methods
lib/rubygems/util/licenses.rb
View on GitHub
# File tmp/rubies/ruby-3.3.0/lib/rubygems/util/licenses.rb, line 726
def self.deprecated_exception_id?(license)
DEPRECATED_EXCEPTION_REGEXP.match?(license)
end
No documentation available
lib/rubygems/util/licenses.rb
View on GitHub
# File tmp/rubies/ruby-3.3.0/lib/rubygems/util/licenses.rb, line 722
def self.deprecated_license_id?(license)
DEPRECATED_LICENSE_REGEXP.match?(license)
end
No documentation available
lib/rubygems/util/licenses.rb
View on GitHub
# File tmp/rubies/ruby-3.3.0/lib/rubygems/util/licenses.rb, line 718
def self.match?(license)
VALID_REGEXP.match?(license)
end
No documentation available
lib/rubygems/util/licenses.rb
View on GitHub
# File tmp/rubies/ruby-3.3.0/lib/rubygems/util/licenses.rb, line 730
def self.suggestions(license)
by_distance = LICENSE_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