Skip to content

Fix handling of Ruby versions.#1833

Merged
pauld-msft merged 1 commit into
microsoft:mainfrom
cwize1:chrisgun/fixRuby
Jun 29, 2026
Merged

Fix handling of Ruby versions.#1833
pauld-msft merged 1 commit into
microsoft:mainfrom
cwize1:chrisgun/fixRuby

Conversation

@cwize1

@cwize1 cwize1 commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

This change strips off the platform from the Ruby version strings.

Ruby version strings are formatted differently from pure semantic versioning. Specifically, everything after the dash is the platform, not the pre-release version. For example: "1.19.4-x86_64-linux-gnu". Ruby represents pre-release versions by placing a letter in the main version string. For example: "2.0.0.rc1".

See: https://guides.rubygems.org/patterns/#prerelease-gems

This change strips off the platform from the Ruby version strings.

Ruby version strings are formatted differently from pure semantic
versioning. Specifically, everything after the dash is the platform,
not the pre-release version. For example: "1.19.4-x86_64-linux-gnu".
Ruby represents pre-release versions by placing a letter in the main
version string. For example: "2.0.0.rc1".

See: https://guides.rubygems.org/patterns/#prerelease-gems
@cwize1 cwize1 requested a review from a team as a code owner June 22, 2026 23:40
@cwize1 cwize1 requested review from Copilot and grvillic and removed request for Copilot June 22, 2026 23:40
@pauld-msft pauld-msft merged commit b5d05e9 into microsoft:main Jun 29, 2026
12 checks passed
@github-actions

Copy link
Copy Markdown

👋 Hi! It looks like you modified some files in the Detectors folder.
You may need to bump the detector versions if any of the following scenarios apply:

  • The detector detects more or fewer components than before
  • The detector generates different parent/child graph relationships than before
  • The detector generates different devDependencies values than before

If none of the above scenarios apply, feel free to ignore this comment 🙂

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

Successfully merging this pull request may close these issues.

2 participants