Skip to main content

PURL Type Definition: gem

  • Type Name: RubyGems
  • Description: RubyGems
  • Schema ID: https://packageurl.org/types/gem-definition.json

PURL Syntax

The structure of a PURL for this package type is:

pkg:gem/<name>@<version>?<qualifiers>#<subpath>

Repository Information

Namespace definition

  • Requirement: Prohibited
  • Note: There is no namespace

Name definition

  • Requirement: Required
  • Native Label: name

Version definition

  • Requirement: Optional
  • Native Label: version

Qualifiers Definition

KeyRequirementNative nameDefault ValueDescription
platformOptionalplatformrubyqualifiers key is used to specify an alternative platform. such as java for JRuby. The implied default is ruby for Ruby MRI.

Examples

  • pkg:gem/ruby-advisory-db-check@0.12.4
  • pkg:gem/jruby-launcher@1.1.2?platform=java