method

validate_licenses

validate_licenses()
private

No documentation available.

# File lib/rubygems/specification_policy.rb, line 302
  def validate_licenses
    licenses.each { |license|
      if license.length > 64
        error "each license must be 64 characters or less"
      end

      if !Gem::Licenses.match?(license)
        suggestions = Gem::Licenses.suggestions(license)
        message = license value '#{license}' is invalid.  Use a license identifier fromhttp://spdx.org/licenses or '#{Gem::Licenses::NONSTANDARD}' for a nonstandard license.
        message += "Did you mean #{suggestions.map { |s| "'#{s}'"}.join(', ')}?\n" unless suggestions.nil?
        warning(message)
      end
    }

    warning licenses is empty, but is recommended.  Use a license identifier fromhttp://spdx.org/licenses or '#{Gem::Licenses::NONSTANDARD}' for a nonstandard license. if licenses.empty?
  end