Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gem] clarify the platform qualifier for rubygems #292

Open
prabhu opened this issue Feb 12, 2024 · 2 comments
Open

[gem] clarify the platform qualifier for rubygems #292

prabhu opened this issue Feb 12, 2024 · 2 comments

Comments

@prabhu
Copy link

prabhu commented Feb 12, 2024

The guidance says that the platform defaults to ruby.

https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst#gem

However, Gemfile.lock files specify a list of platforms and make a subtle distinction between platforms and Ruby VM. RubyGems API, however, works around the problem by supporting ruby_version in addition to the platform.

E.g.:

PLATFORMS
  aarch64-linux
  arm64-darwin
  ruby
  x86_64-darwin
  x86_64-linux

Doc: https://bundler.io/v2.5/man/bundle-platform.1.html
Rubygems API: https://guides.rubygems.org/rubygems-org-api-v2/

@pombredanne
Copy link
Member

@prabhu what would be your recommendation? (BTW, note also that java is a thing for Ruby)

@andrew
Copy link
Contributor

andrew commented Mar 8, 2024

I believe the ruby_version field in the rubygems API is seperate from the platform: https://guides.rubygems.org/specification-reference/#required_ruby_version (i.e. >= 2.7.0) where as platform is for selecting from multiple versions to match your environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants