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

Ruby Gem Platform Specificity #24

Open
dometto opened this issue Feb 18, 2020 · 0 comments
Open

Ruby Gem Platform Specificity #24

dometto opened this issue Feb 18, 2020 · 0 comments

Comments

@dometto
Copy link
Contributor

dometto commented Feb 18, 2020

FYI: Just noticed that when running the app under JRuby, latest_version for RedCloth returns 4.2.3, as that is the latest version available for the platform, and Gem::SpecFetcher is, well, platform-specific. The latest version on MRI is (somwhat confusingly) 4.3.2.

This is not a bug as such, since something is indeed amiss: the newest JRuby version is older than the required version. So it's correctly showing up in ':unknown'.

However, it's good to be aware of this: if you run the app on MRI, this would not have showed up. The only thing we could, at some point, consider implementing is trying to find platform-specific latest versions based not on the platform on which the app is running, but on the ruby version set in the gemfile/gemspec, if it is indeed set. That would require implementing gemnasium/gemnasium-parser#30

(Feel free to close, or not if you think we should do something with this -- either in terms of improving the behavior, or documenting it)

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

1 participant