Sha256: 73eefb915382b062fb3077c1ff7219b1422210d2ae4915a90ea8541ccf7718c7

Contents?: true

Size: 545 Bytes

Versions: 6

Compression:

Stored size: 545 Bytes

Contents

module Bibliothecary
  # If a purl type (key) exists, it will be used in a manifest for
  # the key's value. If not, it's ignored.
  #
  # https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst
  PURL_TYPE_MAPPING = {
    "golang" => :go,
    "maven" => :maven,
    "npm" => :npm,
    "cargo" => :cargo,
    "composer" => :packagist,
    "conda" => :conda,
    "cran" => :cran,
    "gem" => :rubygems,
    "hackage" => :hackage,
    "hex" => :hex,
    "nuget" => :nuget,
    "pypi" => :pypi,
    "swift" => :swift_pm
  }.freeze
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bibliothecary-8.7.4 lib/bibliothecary/purl_util.rb
bibliothecary-8.7.3 lib/bibliothecary/purl_util.rb
bibliothecary-8.7.2 lib/bibliothecary/purl_util.rb
bibliothecary-8.7.1 lib/bibliothecary/purl_util.rb
bibliothecary-8.7.0 lib/bibliothecary/purl_util.rb
bibliothecary-8.6.5 lib/bibliothecary/purl_util.rb