Repository navigation
Cover the remaining documented API endpoints - #142
Merged
Merged
Conversation
sferik
added this pull request to stack #141
September 10, 2026 16:05
sferik
force-pushed
the
api-coverage
branch
from
September 10, 2026 16:24
13bd002 to
9857dc8
Compare
sferik
force-pushed
the
api-coverage
branch
2 times, most recently
from
September 10, 2026 16:50
c2bca44 to
f816919
Compare
Merged
hsbt
approved these changes
Sep 18, 2026
hsbt
left a comment
Member
There was a problem hiding this comment.
I pushed three fixes so that yank, unyank, and downloads keep the platform of a Gems::Version, and profile and owned_gems use the user ID instead of the email address in the URL path when an owner has no handle.
yank and unyank resolved only the version number, so passing a Gems::Version for a non-ruby platform yanked the ruby build instead. version, contents, and attestations already default the platform this way. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
downloads joined the gem name and version number by hand, so a Gems::Version for a non-ruby platform fetched the ruby build counts. full_name_of already builds the name the endpoint looks up. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
profile and owned_gems interpolate the identifier into the path, and those endpoints take a handle or a user ID, never an email address. handle_of resolves the email parameter of the owner endpoints, so an owner with no handle produced /api/v1/profiles/someone@example.com.json. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
sferik
force-pushed
the
api-coverage
branch
from
September 18, 2026 03:37
1244b28 to
a43834f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds every remaining feature documented in the RubyGems.org API docs:
autocompletefor gem name suggestionsplatformoption onversioncontentsfor the SHA-256 of every file in a versionattestationsfor a version's sigstore bundlestimeframe_versionsfor versions created in a window of up to seven days, withfromandtoasTimeor ISO 8601 stringsroleoption onadd_owner, andupdate_ownerfor changing an existing owner's roleprofileandme, returning a newProfileresource that is also accepted as a user identifierexpires_at,rubygem_name, andmfaoptions oncreate_api_key, typed in RBS instead of riding along in the scopes splatAPImodule split into one mixin per topic (Gems::API::GemEndpoints,VersionEndpoints, and so on), which brings RuboCop's module length back to its default of 100Based on #140