Skip to content

Add cooldown support for RubyGems#69

Merged
andrew merged 1 commit intomainfrom
add-rubygems-cooldown
Apr 6, 2026
Merged

Add cooldown support for RubyGems#69
andrew merged 1 commit intomainfrom
add-rubygems-cooldown

Conversation

@andrew
Copy link
Copy Markdown
Contributor

@andrew andrew commented Apr 6, 2026

Filter versions from the RubyGems compact index (/info/{name}) by concurrently fetching timestamps from the versions API (/api/v1/versions/{name}.json).

The compact index format doesn't include publish timestamps, so the handler fetches created_at from the versions API in parallel with the index request. If the versions API is unavailable, the index is proxied unfiltered as a graceful fallback.

Handles platform-specific versions (e.g. 1.0.0-java) by matching the compact index version format.

Filter versions from the compact index (/info/{name}) by fetching
timestamps from the versions API (/api/v1/versions/{name}.json).
Both requests run concurrently to minimize latency. If the versions
API is unavailable, the compact index is proxied unfiltered.

Handles platform-specific versions (e.g. 1.0.0-java) by matching
the compact index format.
@andrew andrew force-pushed the add-rubygems-cooldown branch from 705aa1d to cb9bbbc Compare April 6, 2026 12:16
@andrew andrew merged commit 9708fe3 into main Apr 6, 2026
5 checks passed
@andrew andrew deleted the add-rubygems-cooldown branch April 6, 2026 18:32
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.

1 participant