class Bibliothecary::PurlUtil
Constants
- PURL_TYPE_MAPPING
If a purl type (key) exists, it will be used in a manifest for the key’s value. If not, it’s ignored.
Public Class Methods
full_name(purl)
click to toggle source
@param purl [PackageURL] @return [String] The properly namespaced package name
# File lib/bibliothecary/purl_util.rb, line 26 def self.full_name(purl) return nil if purl.nil? parts = [purl.namespace, purl.name].compact case purl.type when "maven" parts.join(":") else parts.join("/") end end