René's URL Explorer Experiment


Title: feat(gem,maven): extend multi-platform release patching to RubyGems + Maven by mikolalysenko · Pull Request #91 · SocketDev/socket-patch · GitHub

Open Graph Title: feat(gem,maven): extend multi-platform release patching to RubyGems + Maven by mikolalysenko · Pull Request #91 · SocketDev/socket-patch

X Title: feat(gem,maven): extend multi-platform release patching to RubyGems + Maven by mikolalysenko · Pull Request #91 · SocketDev/socket-patch

Description: Summary Generalizes the PyPI multi-release machinery from #90 (release-variant qualifiers, narrow/broad download, base-PURL remove/rollback) to the other ecosystems that ship multiple platform/release artifacts per package@version: Ecosystem Variant qualifier Notes RubyGems ?platform=x86_64-linux one platform gem installed per env — mirrors PyPI exactly Maven ?classifier=linux-x86_64&ext=jar classifier jars coexist in one version dir (experimental) NuGet / npm / Cargo / Go / Composer / Deno are unaffected — they ship one artifact per version (platform splits live under separate package names), so they keep the 1:1 PURL-match path. Shared generalization Ecosystem::supports_release_variants() (Pypi | Gem | Maven) replaces the scattered == Ecosystem::Pypi gates in apply / get / dispatch. Dispatch: dedup_pypi_purls/merge_pypi_qualified → generic dedup_qualified_purls/merge_qualified, now applied to the gem and maven scan blocks. The crawler is queried with base PURLs and the installed variant is resolved by hashing on-disk files — the same model PyPI uses. Plural selector: select_installed_variant → select_installed_variants returning all present-and-matching variants. PyPI/RubyGems install exactly one distribution per env (≤1 match — unchanged), but Maven classifier jars coexist, so several may match. apply.rs applies every matching variant (no early break); the get narrow-filter and rollback dedupe keep all matches. RubyGems RubyCrawler::parse_dir_name_version now splits at the first dash-digit and drops the trailing - suffix, fixing a misparse that folded the platform into the version (nokogiri-1.16.5-x86_64-linux → version 1.16.5-x86_64-linux). New locate_gem_dir resolves a base name/version to the installed platform-suffixed gem directory. Maven No crawler change: find_by_purls already emits the base PURL keyed to the version dir; each classifier variant is hash-resolved against its jar file. Stays behind SOCKET_EXPERIMENTAL_MAVEN; still leaves .jar.sha1 sidecars stale (no fixup — unchanged, out of scope). Tests in_process_gem_multi_platform.rs — synthetic platform gem (no gem binary) + wiremock: narrow keeps the installed platform, broad keeps all, remove base PURL clears all variants and rolls back, rollback-all exits 0. in_process_remote_ecosystems_apply.rs — maven_multi_classifier test proving the plural selector patches every coexisting classifier jar. Unit tests for gem dir-name platform parsing (incl. the regression case and a trailing-OS-version platform) and the supports_release_variants predicate. Full workspace suite: 1580 passed, 0 failed; clippy gate clean. Companion backend change (separate, depscan repo) The patch API must emit qualified PURLs for gem/maven. In depscan, orgs/patches/{by-package,batch}.ts drop the && type===PYPI gate (normalizeArtifactPURL already converts a non-PyPI artifact_id into qualifiers). Per-platform gem artifact rows already exist; note the autopatch pipeline currently authors gem patches against the canonical platform=ruby artifact, so full per-platform patch authoring is a separate pipeline change. Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

Open Graph Description: Summary Generalizes the PyPI multi-release machinery from #90 (release-variant qualifiers, narrow/broad download, base-PURL remove/rollback) to the other ecosystems that ship multiple platform/rele...

X Description: Summary Generalizes the PyPI multi-release machinery from #90 (release-variant qualifiers, narrow/broad download, base-PURL remove/rollback) to the other ecosystems that ship multiple platform/rele...

Opengraph URL: https://github.com/SocketDev/socket-patch/pull/91

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:2491369f-d9b2-8ac9-aacf-54b9f2563f81
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8954:33952:1775F87:1FE6AA5:6A4F0A9F
html-safe-noncecc9643608bd9c74feb1fd65efa7126eeeda486447336528b3d846779d84ffedb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTU0OjMzOTUyOjE3NzVGODc6MUZFNkFBNTo2QTRGMEE5RiIsInZpc2l0b3JfaWQiOiI1ODc4OTQ1NDIxMTYyNjQ2MTc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb2e7cc000c56f72ecc272c91c096d8f17ad5deca86ec653fe079c930841edfe2
hovercard-subject-tagpull_request:3764818104
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/SocketDev/socket-patch/pull/91/files
twitter:imagehttps://avatars.githubusercontent.com/u/231686?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/231686?s=400&v=4
og:image:altSummary Generalizes the PyPI multi-release machinery from #90 (release-variant qualifiers, narrow/broad download, base-PURL remove/rollback) to the other ecosystems that ship multiple platform/rele...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/SocketDev/socket-patch git https://github.com/SocketDev/socket-patch.git
octolytics-dimension-user_id69326764
octolytics-dimension-user_loginSocketDev
octolytics-dimension-repository_id1093661456
octolytics-dimension-repository_nwoSocketDev/socket-patch
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1093661456
octolytics-dimension-repository_network_root_nwoSocketDev/socket-patch
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2b8f23afb982271f1b22258a94aede67a6b77760
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/SocketDev/socket-patch/pull/91/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FSocketDev%2Fsocket-patch%2Fpull%2F91%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FSocketDev%2Fsocket-patch%2Fpull%2F91%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=SocketDev%2Fsocket-patch
Reloadhttps://github.com/SocketDev/socket-patch/pull/91/files
Reloadhttps://github.com/SocketDev/socket-patch/pull/91/files
Reloadhttps://github.com/SocketDev/socket-patch/pull/91/files
Please reload this pagehttps://github.com/SocketDev/socket-patch/pull/91/files
SocketDev https://github.com/SocketDev
socket-patchhttps://github.com/SocketDev/socket-patch
Notifications https://github.com/login?return_to=%2FSocketDev%2Fsocket-patch
Fork 0 https://github.com/login?return_to=%2FSocketDev%2Fsocket-patch
Star 3 https://github.com/login?return_to=%2FSocketDev%2Fsocket-patch
Code https://github.com/SocketDev/socket-patch
Issues 1 https://github.com/SocketDev/socket-patch/issues
Pull requests 1 https://github.com/SocketDev/socket-patch/pulls
Actions https://github.com/SocketDev/socket-patch/actions
Models https://github.com/SocketDev/socket-patch/models
Security and quality 0 https://github.com/SocketDev/socket-patch/security
Insights https://github.com/SocketDev/socket-patch/pulse
Code https://github.com/SocketDev/socket-patch
Issues https://github.com/SocketDev/socket-patch/issues
Pull requests https://github.com/SocketDev/socket-patch/pulls
Actions https://github.com/SocketDev/socket-patch/actions
Models https://github.com/SocketDev/socket-patch/models
Security and quality https://github.com/SocketDev/socket-patch/security
Insights https://github.com/SocketDev/socket-patch/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FSocketDev%2Fsocket-patch%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FSocketDev%2Fsocket-patch%2Fissues%2Fnew%2Fchoose
Mikola Lysenko (mikolalysenko)https://github.com/mikolalysenko
mainhttps://github.com/SocketDev/socket-patch/tree/main
feat/multi-platform-gem-mavenhttps://github.com/SocketDev/socket-patch/tree/feat/multi-platform-gem-maven
Conversation 0 https://github.com/SocketDev/socket-patch/pull/91
Commits 1 https://github.com/SocketDev/socket-patch/pull/91/commits
Checks 42 https://github.com/SocketDev/socket-patch/pull/91/checks
Files changed https://github.com/SocketDev/socket-patch/pull/91/files
Please reload this pagehttps://github.com/SocketDev/socket-patch/pull/91/files
feat(gem,maven): extend multi-platform release patching to RubyGems + Maven https://github.com/SocketDev/socket-patch/pull/91/files#top
Show all changes 1 commit https://github.com/SocketDev/socket-patch/pull/91/files
3d73973 feat(gem,maven): extend multi-platform release patching to RubyGems +… mikolalysenko May 28, 2026 https://github.com/SocketDev/socket-patch/pull/91/commits/3d73973c82bb9762ab25570e0703c1d510d05a7a
Clear filters https://github.com/SocketDev/socket-patch/pull/91/files
Please reload this pagehttps://github.com/SocketDev/socket-patch/pull/91/files
Please reload this pagehttps://github.com/SocketDev/socket-patch/pull/91/files
apply.rs https://github.com/SocketDev/socket-patch/pull/91/files#diff-613e6131c3d7005ade62351d4f879e7c817bafdc2f6d6fdd87e2b259bebfb9bf
get.rs https://github.com/SocketDev/socket-patch/pull/91/files#diff-ab141f0dfc26b35a483b70780ec703f5f1047866eaf1d3ccf9182fc5cdea164f
rollback.rs https://github.com/SocketDev/socket-patch/pull/91/files#diff-49bed4b7989d1153ce40e98f6686a0343d4aef1e9a8f241abfb0d6e006cda233
scan.rs https://github.com/SocketDev/socket-patch/pull/91/files#diff-1883639b2a07e6683c0c3a298c8a3883c627db76c610a78bfe7c235d6d5dc916
ecosystem_dispatch.rs https://github.com/SocketDev/socket-patch/pull/91/files#diff-b4621fd545be96d70879527496ba97342c59039dfb7683fbf42fdd3396dce794
in_process_gem_multi_platform.rs https://github.com/SocketDev/socket-patch/pull/91/files#diff-f2b75b3a676dc6a770857611caf2bce595d30a0f61499b7059d086ecf438f7dd
in_process_remote_ecosystems_apply.rs https://github.com/SocketDev/socket-patch/pull/91/files#diff-4c5bba315d1a797e14ba7ca3eb51e1e1648b67464dd0afce3a84f67d964b35e4
ruby_crawler.rs https://github.com/SocketDev/socket-patch/pull/91/files#diff-7bc7bac102e76bb7bfa54763158bc5a9e0e4e6ea96de36656a39d499a724cbf3
types.rs https://github.com/SocketDev/socket-patch/pull/91/files#diff-4c066db7874eab1bc3409140d19b2abdb8569c936d6819a6bc1a1b21c009b4fe
apply.rs https://github.com/SocketDev/socket-patch/pull/91/files#diff-fb7cb956a53ea36114f8f20652934dd030bd001b5df3f530da11b60dd09062ac
crates/socket-patch-cli/src/commands/apply.rshttps://github.com/SocketDev/socket-patch/pull/91/files#diff-613e6131c3d7005ade62351d4f879e7c817bafdc2f6d6fdd87e2b259bebfb9bf
View file https://github.com/SocketDev/socket-patch/blob/3d73973c82bb9762ab25570e0703c1d510d05a7a/crates/socket-patch-cli/src/commands/apply.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/SocketDev/socket-patch/pull/91/{{ revealButtonHref }}
https://github.com/SocketDev/socket-patch/pull/91/files#diff-613e6131c3d7005ade62351d4f879e7c817bafdc2f6d6fdd87e2b259bebfb9bf
https://github.com/SocketDev/socket-patch/pull/91/files#diff-613e6131c3d7005ade62351d4f879e7c817bafdc2f6d6fdd87e2b259bebfb9bf
https://github.com/SocketDev/socket-patch/pull/91/files#diff-613e6131c3d7005ade62351d4f879e7c817bafdc2f6d6fdd87e2b259bebfb9bf
https://github.com/SocketDev/socket-patch/pull/91/files#diff-613e6131c3d7005ade62351d4f879e7c817bafdc2f6d6fdd87e2b259bebfb9bf
https://github.com/SocketDev/socket-patch/pull/91/files#diff-613e6131c3d7005ade62351d4f879e7c817bafdc2f6d6fdd87e2b259bebfb9bf
crates/socket-patch-cli/src/commands/get.rshttps://github.com/SocketDev/socket-patch/pull/91/files#diff-ab141f0dfc26b35a483b70780ec703f5f1047866eaf1d3ccf9182fc5cdea164f
View file https://github.com/SocketDev/socket-patch/blob/3d73973c82bb9762ab25570e0703c1d510d05a7a/crates/socket-patch-cli/src/commands/get.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/SocketDev/socket-patch/pull/91/{{ revealButtonHref }}
https://github.com/SocketDev/socket-patch/pull/91/files#diff-ab141f0dfc26b35a483b70780ec703f5f1047866eaf1d3ccf9182fc5cdea164f
https://github.com/SocketDev/socket-patch/pull/91/files#diff-ab141f0dfc26b35a483b70780ec703f5f1047866eaf1d3ccf9182fc5cdea164f
https://github.com/SocketDev/socket-patch/pull/91/files#diff-ab141f0dfc26b35a483b70780ec703f5f1047866eaf1d3ccf9182fc5cdea164f
https://github.com/SocketDev/socket-patch/pull/91/files#diff-ab141f0dfc26b35a483b70780ec703f5f1047866eaf1d3ccf9182fc5cdea164f
https://github.com/SocketDev/socket-patch/pull/91/files#diff-ab141f0dfc26b35a483b70780ec703f5f1047866eaf1d3ccf9182fc5cdea164f
https://github.com/SocketDev/socket-patch/pull/91/files#diff-ab141f0dfc26b35a483b70780ec703f5f1047866eaf1d3ccf9182fc5cdea164f
https://github.com/SocketDev/socket-patch/pull/91/files#diff-ab141f0dfc26b35a483b70780ec703f5f1047866eaf1d3ccf9182fc5cdea164f
https://github.com/SocketDev/socket-patch/pull/91/files#diff-ab141f0dfc26b35a483b70780ec703f5f1047866eaf1d3ccf9182fc5cdea164f
https://github.com/SocketDev/socket-patch/pull/91/files#diff-ab141f0dfc26b35a483b70780ec703f5f1047866eaf1d3ccf9182fc5cdea164f
https://github.com/SocketDev/socket-patch/pull/91/files#diff-ab141f0dfc26b35a483b70780ec703f5f1047866eaf1d3ccf9182fc5cdea164f
https://github.com/SocketDev/socket-patch/pull/91/files#diff-ab141f0dfc26b35a483b70780ec703f5f1047866eaf1d3ccf9182fc5cdea164f
https://github.com/SocketDev/socket-patch/pull/91/files#diff-ab141f0dfc26b35a483b70780ec703f5f1047866eaf1d3ccf9182fc5cdea164f
https://github.com/SocketDev/socket-patch/pull/91/files#diff-ab141f0dfc26b35a483b70780ec703f5f1047866eaf1d3ccf9182fc5cdea164f
crates/socket-patch-cli/src/commands/rollback.rshttps://github.com/SocketDev/socket-patch/pull/91/files#diff-49bed4b7989d1153ce40e98f6686a0343d4aef1e9a8f241abfb0d6e006cda233
View file https://github.com/SocketDev/socket-patch/blob/3d73973c82bb9762ab25570e0703c1d510d05a7a/crates/socket-patch-cli/src/commands/rollback.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/SocketDev/socket-patch/pull/91/{{ revealButtonHref }}
https://github.com/SocketDev/socket-patch/pull/91/files#diff-49bed4b7989d1153ce40e98f6686a0343d4aef1e9a8f241abfb0d6e006cda233
https://github.com/SocketDev/socket-patch/pull/91/files#diff-49bed4b7989d1153ce40e98f6686a0343d4aef1e9a8f241abfb0d6e006cda233
https://github.com/SocketDev/socket-patch/pull/91/files#diff-49bed4b7989d1153ce40e98f6686a0343d4aef1e9a8f241abfb0d6e006cda233
https://github.com/SocketDev/socket-patch/pull/91/files#diff-49bed4b7989d1153ce40e98f6686a0343d4aef1e9a8f241abfb0d6e006cda233
https://github.com/SocketDev/socket-patch/pull/91/files#diff-49bed4b7989d1153ce40e98f6686a0343d4aef1e9a8f241abfb0d6e006cda233
https://github.com/SocketDev/socket-patch/pull/91/files#diff-49bed4b7989d1153ce40e98f6686a0343d4aef1e9a8f241abfb0d6e006cda233
crates/socket-patch-cli/src/commands/scan.rshttps://github.com/SocketDev/socket-patch/pull/91/files#diff-1883639b2a07e6683c0c3a298c8a3883c627db76c610a78bfe7c235d6d5dc916
View file https://github.com/SocketDev/socket-patch/blob/3d73973c82bb9762ab25570e0703c1d510d05a7a/crates/socket-patch-cli/src/commands/scan.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/SocketDev/socket-patch/pull/91/{{ revealButtonHref }}
https://github.com/SocketDev/socket-patch/pull/91/files#diff-1883639b2a07e6683c0c3a298c8a3883c627db76c610a78bfe7c235d6d5dc916
https://github.com/SocketDev/socket-patch/pull/91/files#diff-1883639b2a07e6683c0c3a298c8a3883c627db76c610a78bfe7c235d6d5dc916
Please reload this pagehttps://github.com/SocketDev/socket-patch/pull/91/files
Please reload this pagehttps://github.com/SocketDev/socket-patch/pull/91/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.