Sha256: f61ab7fb56ef75b98a03188005519370756acfe97bec1d87a1fa6c6ad8b41aae

Contents?: true

Size: 546 Bytes

Versions: 9

Compression:

Stored size: 546 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

9 entries across 9 versions & 1 rubygems

Version Path
bibliothecary-10.2.0 lib/bibliothecary/purl_util.rb
bibliothecary-10.1.0 lib/bibliothecary/purl_util.rb
bibliothecary-10.0.0 lib/bibliothecary/purl_util.rb
bibliothecary-9.1.0 lib/bibliothecary/purl_util.rb
bibliothecary-9.0.0 lib/bibliothecary/purl_util.rb
bibliothecary-8.8.1 lib/bibliothecary/purl_util.rb
bibliothecary-8.7.7 lib/bibliothecary/purl_util.rb
bibliothecary-8.7.6 lib/bibliothecary/purl_util.rb
bibliothecary-8.7.5 lib/bibliothecary/purl_util.rb