rubygems/rubygems.org
47.2
Weak · 6 November 2026
27.4k
lines of production code
Ruby
primary language
4
measurements over time
What this system is
Features
Add RubyGems.org policy pages
The application now includes dedicated policy pages for users to review the Terms of Service, Privacy Notice, Acceptable Use Policy, and Copyright Policy. These new pages provide clear information on account security, data collection, content guidelines, and legal procedures such as DMCA takedowns, enhancing transparency and compliance for RubyGems.org users.
app/views/policies · high confidence
Add WebAuthn credential management UI
Users can now register and manage WebAuthn security devices directly from the profile view. The new interface includes a form to add a new device with a nickname and a list view to display existing credentials, each with a delete button that prompts for confirmation before removal.
_app/views/webauthn\credentials · high confidence
Add bin/ directory with development and CI tooling scripts
The bin/ directory now includes a set of executable scripts to streamline local development and continuous integration. This includes standard Rails binstubs (rails, rake, bundle), a setup script (bin/setup) that installs dependencies, configures the database, seeds data, and precompiles assets, and an update script (bin/update) for applying migrations and restarting the server. New tooling scripts have been added for JavaScript linting with Prettier (bin/prettier), static security analysis with Brakeman (bin/brakeman), code style checking with RuboCop (bin/rubocop), and system testing with Playwright (bin/playwright). Additionally, a local CI script (bin/ci) is provided for running tests, alongside scripts for managing the Shoryuken SQS worker (bin/shoryuken, bin/shoryuken-worker) and filling locale files (bin/fill-locales).
bin · high confidence
Add email and scope boolean filters to admin dashboard
Two new filter components are now available in the Avo admin interface: an EmailFilter that allows searching records by email address using regular expressions, and a ScopeBooleanFilter that enables filtering by multiple boolean scopes with a default-all behavior. These filters provide users with more granular control over data visibility in the admin dashboard.
app/avo/filters · high confidence
Add internal ping and revision endpoints
A new Internal::PingController has been added to provide lightweight health-check and version-inspection capabilities. The ping endpoint returns a simple "PONG" response, while the revision endpoint exposes the current application version via AppRevision.version, allowing monitoring systems to verify service availability and track deployments.
app/controllers/internal · high confidence
Added welcome card to Avo admin dashboard
The admin dashboard now includes a welcome card component that displays the currently logged-in user's login name as a link to their GitHub user resource page.
app/views/avo/cards · high confidence
Admin dashboard now supports managing additional resource types
The admin dashboard (Avo) has been extended with new resource controllers, enabling administrators to view and manage a broader set of data directly from the interface. This update adds support for managing GitHub users, security advisories, API keys and their gem scopes, sigstore attestations, audit logs, blocked email domains, gem deletions, dependencies, email domain allowlists, event logs (both user and gem events), gem downloads, gem name reservations, gem typo exceptions, GeoIP information, IP addresses, link verifications, link sets, log tickets, maintenance task runs, organization memberships and invites, OIDC providers and trusted publishers (including GitHub Actions integration), organizations, ownerships, Ruby gem transfers, Ruby gems, SendGrid events, subscriptions, users, gem versions, webhooks, and WebAuthn credentials.
app/controllers/avo · high confidence
Initial database schema and foundational migrations
This change introduces the complete initial database schema for the application, establishing the core tables for users, rubygems, versions, dependencies, linksets, and ownerships. It also includes migrations for supporting features such as delayed job processing, web hooks, subscriptions, and OAuth (Doorkeeper), along with various schema refinements like adding indexes, renaming columns, and adjusting data types to support the platform's early functionality.
db/migrate · high confidence
Initial implementation of RSTUF API client
Added a new \Rstuf::Client\ class in \lib/rstuf/client.rb\ that provides methods to interact with the RSTUF service. This client enables posting and deleting artifacts, as well as checking task states, by making HTTP requests to the \/api/v1/\ endpoints using Faraday with JSON serialization and logging.
lib/rstuf · high confidence
Initial implementation of RSTUF artifact management jobs
This change introduces a new set of background jobs (\Rstuf::AddJob\, \Rstuf::RemoveJob\, and \Rstuf::CheckJob\) that integrate with the RSTUF service to manage gem artifacts. \AddJob\ and \RemoveJob\ handle uploading and deleting artifact metadata via the RSTUF client, while \CheckJob\ monitors the asynchronous task status, supporting states like \PRE\_RUN\, \SUCCESS\, and \FAILURE\, with automatic retries for transient states. The jobs are gated by an \Rstuf.enabled?\ check in the base \ApplicationJob\ class to ensure the feature is only active when configured.
app/jobs/rstuf · high confidence
Introduce OIDC API controllers for trusted publishing and role assumption
This change adds new API endpoints under the /api/v1/oidc namespace to support OpenID Connect workflows. The \TrustedPublisherController\ allows CI/CD systems to exchange OIDC tokens for temporary RubyGems API keys with push scopes, enabling trusted publishing. The \ApiKeyRolesController\ provides an \assume\_role\ endpoint to generate API keys based on predefined OIDC roles, while \ProvidersController\, \IdTokensController\, and \RubygemTrustedPublishersController\ expose management endpoints for OIDC providers, issued tokens, and trusted publisher configurations respectively.
app/controllers/api/v1/oidc · high confidence
Introduce OIDC API key roles and trusted publisher management
Users can now manage OpenID Connect (OIDC) configurations directly from the profile settings. This change adds controllers and views for creating and managing API key roles (including GitHub Actions workflow integration), viewing issued ID tokens, and configuring trusted publishers for specific gems. The implementation enforces stricter parameter validation using \params.expect\ and integrates session verification to ensure secure access to these new OIDC resources.
app/controllers/oidc · high confidence
Introduce OIDC access policies and trusted publisher support
This change adds new models to the OIDC subsystem: \OIDC::AccessPolicy\ enables administrators to define fine-grained access control rules (allow/deny) based on JWT claims and principals, with complexity limits to prevent overly complex policies; \OIDC::ApiKeyPermissions\ provides a structured way to define scopes, validity periods, and gem ownership for API keys generated via OIDC; and \OIDC::TrustedPublisher\ introduces a registry for trusted CI/CD publishers (currently GitHub Actions), laying the groundwork for secure, automated publishing workflows.
app/models/oidc · high confidence
Introduce Organization management views
Users can now access a dedicated section for managing organizations, including a dashboard to view memberships, an organization detail page showing gem history and members, and the ability to edit organization settings. New capabilities include listing organization gems, inviting members, and reserving gem names, with access to these features gated by specific organization policies.
app/views/organizations · high confidence
Introduce gem security advisories via OSV integration
Added new model classes to support fetching, mapping, and storing security advisories from the Open Source Vulnerabilities (OSV) database. The \Advisory::Fetcher\ and \Advisory::OSV::Fetcher\ classes handle downloading and parsing OSV data, while \Advisory::OSV::Mapper\ transforms this data into structured records. This change enables the platform to display security vulnerability information for gems, enhancing user awareness of potential risks.
app/models · high confidence
Introduce organization management features
This change adds the backend controllers for the new Organizations feature, enabling users to create and manage organizations. Key capabilities include inviting members and managing membership status (accepting, declining, or resending invitations with expiry handling), listing and reserving gem names, viewing organization-owned gems, and completing an onboarding flow. The controllers enforce authentication, MFA requirements, and authorization policies for these actions.
app/controllers/organizations · high confidence
Introduce organization onboarding flow
Adds a new multi-step onboarding process for creating organizations, implemented via a set of controllers (Name, Gems, Users, Confirm) under the Organizations::Onboarding namespace. The flow guides users through setting the organization name and handle, selecting RubyGems, inviting team members with specific roles, and confirming the setup. The creator is automatically designated as the owner of the organization, and the entire flow is gated behind the 'Organizations' feature flag, ensuring it remains disabled until explicitly enabled.
app/controllers/organizations/onboarding · high confidence
Introduce security event logging and organization management infrastructure
Added new models and event definitions to support security auditing and organizational features. This includes \Events::RubygemEvent\ and \Events::UserEvent\ to record granular actions like version pushes, yanks, and API key creation, alongside \Events::OrganizationEvent\ for organization lifecycle tracking. The diff also introduces \Membership\ and \GemNameReservation\ models to enable organization invite, membership management, and gem name reservation capabilities, as well as \Admin::GitHubUser\ and \Audit\ models to support admin access control and change tracking.
ruby · high confidence
Introduce structured security event logging with user agent parsing
The application now records detailed security events for user and rubygem activities, capturing IP address, geolocation data, and trace IDs. A new user agent parser extracts structured information (such as browser, OS, and device) from request headers, storing this data in the event logs. If parsing fails, the system logs the event without the user agent details rather than failing entirely. This change enhances auditability by providing richer context for security monitoring.
app/models/events · high confidence
Introduces Auditable concern for tracking resource changes
Adds a new \Auditable\ concern to the Avo resource layer, enabling automatic capture and storage of attribute changes during create, update, and destroy actions. This concern wraps operations in a transaction that listens to ActiveRecord SQL notifications to detect modified records, then persists a structured audit log entry containing the specific field changes, the acting admin user, and associated arguments. It also includes a helper to normalize nested data structures for JSON serialization, ensuring compatibility with Rails 8.1's JSON encoding behavior.
app/avo/concerns · high confidence
New Avo field types for arrays, nested records, and JSON inspection
The admin interface now includes several new Avo field implementations to improve data handling and display. The ArrayOfField and NestedField allow for the editing and display of complex, nested data structures within resources. A new GlobalIdField provides safer resolution of polymorphic associations by handling missing records gracefully. Additionally, the JsonViewerField offers a formatted, syntax-highlighted view of JSON data, and the SelectRecordField simplifies record selection by treating the ID as the foreign key. These changes enhance the admin experience for managing complex resource relationships and data.
app/avo/fields · high confidence
New Kubernetes deployment manifests for web, jobs, and infrastructure
This change introduces a comprehensive set of new Kubernetes YAML manifests in the \config/deploy\ directory, defining the infrastructure for the application's runtime components. It adds a \db-migrate.yaml\ for running database migrations as a one-time pod, an \ingress.yaml\ configuring the AWS Application Load Balancer with TLS and least-outstanding-requests routing, and a \service.yaml\ exposing the web traffic. The web application itself is defined in \web.yaml\ using Puma, while background processing is split into dedicated deployments: \jobs.yaml\ and \jobs\_within\_24\_hours.yaml\ for Good Job queues, \maintenance.yaml\ for maintenance tasks, and \shoryuken.yaml\ for SQS-based workers. Additionally, \nginx-configmap.yaml\ configures the sidecar Nginx with rate limiting, caching, and logging, and \versions-list-update-monthly.yaml\ sets up a monthly CronJob for S3 updates.
config/deploy · high confidence
New RuboCop cop to flag repeated nested factory creation
A new RuboCop cop, \RepeatedNestedCreate\, has been added to the \lib/cops\ directory to detect patterns where \FactoryBot.create\ is called repeatedly inside a loop (e.g., \n.times { ... }\). This cop flags such instances for manual review, suggesting that users prefer \create\_list\ with factory associations if the nested creates are redundant, or to document why each iteration requires a fresh record. The cop is designed to never autocorrect, as the appropriate fix depends on specific factory association logic.
lib/cops · high confidence
New RubyGems transfer workflow for organizations
Users can now transfer multiple RubyGems to an organization in a single transaction. This change introduces a new set of controllers (Rubygems::Transfer::OrganizationsController, Rubygems::Transfer::RubygemsController, Rubygems::Transfer::UsersController, Rubygems::Transfer::ConfirmationsController, and Rubygems::TransfersController) that handle the step-by-step process of selecting an organization, choosing gems, assigning user roles, confirming the transfer, and canceling pending transfers.
app/controllers/rubygems · high confidence
New admin view for auditing record changes
Administrators can now view a structured, field-by-field diff of audited record changes within the Avo admin interface. This new component renders a visual breakdown of modifications, using icons to distinguish between different change types (such as additions, deletions, or updates) and displaying the specific field values for each change, providing a clearer history of data modifications.
_app/components/avo/audited\_changes\_record\diff · high confidence
New administrative Rake tasks for data migration, integrity auditing, and maintenance
This change introduces a suite of new Rake tasks in lib/tasks to support various administrative operations. Key additions include \api\_keys:migrate\ to migrate legacy user API keys to the new ApiKey model, \multifactor\_auth:migrate\_ui\_only\ to update MFA levels, and \users:verify\ to block users with expired email domains. It also adds integrity and maintenance tasks such as \audit\_attestation\_subject\_digest\ to verify attestation SHA256 hashes, \compact\_index\ tasks to backfill and correct checksums and yanked\_at times, \dependency:dangling\_rubygem\_id\_purge\ to clean up orphaned dependencies, and \linkset:clean\ to remove invalid URLs. Additional tasks cover formatting code (\format\), verifying importmap packages (\importmap:verify\), flushing memcached (\memcached:flush\), and generating ERDs (\gen\_erd\).
lib/tasks · high confidence
New administrative scripts for user and gem management
This change introduces a suite of new command-line scripts in the \script/\ directory to assist administrators with account and gem operations. Key additions include \block\_user\ and \yank\_user\ for locking accounts and revoking push access, \disable\_mfa\ for resetting user authentication, and \merge\_users\ for consolidating duplicate accounts. It also adds \permadelete\ and \restore\_version\ for permanent deletion and recovery of gem versions, \yank\_gem\ for removing specific gems, \add\_owner\ for granting ownership, \change\_email\ for updating user emails, \reset\_api\_key\ for regenerating API keys, \release\_reserved\_namespace\ for freeing gem names, and \update-rubygems\ for automating version updates in CI and Docker configurations. Utility scripts \s3\_utils.rb\ and \load-pg-dump\ are also added for S3 data inspection and database restoration.
script · high confidence
New custom ActiveModel types for arrays, durations, GlobalIDs, and JSON
Added four new type classes in lib/types to handle specific data casting and serialization needs: ArrayOf for typed arrays, Duration for parsing and serializing ActiveSupport::Duration objects, GlobalId for seamless GlobalID parsing, and JsonDeserializable for robust JSON deserialization that normalizes subclasses to prevent unexpected structures in Rails 8.1.
lib/types · high confidence
New dedicated page for managing push notification preferences
Users now have a dedicated settings page to configure push notifications for their owned gems and organization memberships. The interface allows toggling push notifications on or off for each gem ownership and organization membership, with recommended defaults indicated. This change consolidates notification settings into a single, organized view with clear headings for gems and organizations.
app/views/notifiers · high confidence
New helper modules for API keys, organizations, and user profiles
This change introduces a suite of new view helper modules to support recent feature additions. The ApiKeysHelper manages API key scope checkboxes and parameter processing, including tooltips for soft-deleted gems. The OrganizationsHelper displays invitation expiry times with tooltips. The OwnersHelper handles ownership confirmation status, MFA status indicators, and policy-based checks for adding or modifying owners. The UsersHelper adds Twitter profile links and email obfuscation for privacy. Other new helpers include AttestationsHelper, DurationHelper, DynamicErrorsHelper (extracted from the dynamic\_form gem), IconHelper for SVG icons, OIDC helpers, ProseHelper for styling, RubygemsHelper for gem page links and subscriptions, SearchesHelper for Elasticsearch suggestions and aggregations, and VersionsHelper for version dates and download counts.
app/helpers · high confidence
New helper modules for compact index checksums and importmap verification
Added two new helper modules in lib/tasks/helpers: CompactIndexTasksHelper, which updates the info checksum (v2) for the last version of a rubygem (handling both indexed and yanked states), and ImportmapHelper, which provides a custom Packager class to verify and manage vendored JavaScript packages via jspm.io, including logic to handle importmap-rails comment headers and source maps.
lib/tasks/helpers · high confidence
New library components for search, security, and validation
This change introduces a suite of new library files to enhance core platform capabilities. Search functionality is improved with the addition of ElasticSearcher and SearchQuerySanitizer, which handle OpenSearch queries and protect against DoS attacks by sanitizing user input. Security is strengthened by adding GitHubSecretScanning for verifying secret scanning payloads, PasswordBreachChecker for checking passwords against HIBP, and a ClearanceBackdoor for development authentication. Gem validation is expanded with GemValidator (including schema and package validation), GemRequirementsValidator, and NameFormatValidator to enforce stricter gemspec and naming rules. Additional utilities include GemCachePurger for cache invalidation, RubygemFs for S3/local storage abstraction, and Fastly for CDN purging.
lib · high confidence
New maintenance tasks for data backfills and security remediation
This update introduces a suite of new maintenance tasks to the application, enabling administrators to perform specific data repairs and security operations. Key capabilities include backfilling missing data such as user creation timestamps, WebAuthn IDs, gem platform information, spec SHA-256 checksums, and S3 metadata; repairing broken attestation records; and linking version metadata to gem linksets. Additionally, new tasks support security remediation by allowing the revocation of cache-exposed API keys, notifying affected users via staggered mail jobs, discarding spam accounts, and blocking users associated with suspicious API keys. Verification tasks are also added to validate gem contents and spec checksums against stored hashes.
app/tasks · high confidence
New model concerns for MFA, search, and data integrity
This change introduces several new concerns in app/models/concerns. UserMultifactorMethods, UserTotpMethods, and UserWebauthnMethods consolidate and refactor multi-factor authentication logic, including TOTP and WebAuthn verification, MFA level management, and recovery code handling. RubygemSearchable integrates Searchkick for gem search, defining mappings and data structures for indexing. CompactIndexVersions provides methods for generating compact index data for gems. EmailDomainNormalization adds validation and normalization for email domains. PasswordResettable implements secure password reset token generation and validation. AttestationBundleRepair adds functionality to repair issues in Sigstore attestation bundles.
app/models/concerns · high confidence
New news page with tabbed navigation and gem listings
Users can now view a dedicated news page that displays recent releases from all gems or popular gems via tabbed navigation. The page uses a card component for layout, includes pagination controls, and renders individual gem entries using a reusable component.
app/views/news · high confidence
New organization invitation email templates
Added HTML and text email templates for the organization invitation flow. Users receiving an invitation to join an organization on rubygems.org will now see a styled email with a clear call-to-action button to accept the invitation, or a plain text version with the acceptance link for email clients that do not support HTML.
_app/views/organization\mailer · high confidence
New owner notification and confirmation emails
Users now receive new HTML and text-only emails for owner-added, owner-removed, and owner-updated events, providing clear instructions on how to secure their account if the change was unexpected. Additionally, a new ownership confirmation email has been introduced, requiring users to verify their role via a secure link before gaining access.
_app/views/owners\mailer · high confidence
New password change and compromised password reset email templates
Added new email view templates for the password mailer, including \change\_password\ and \compromised\_password\_reset\ for both HTML and text formats. These templates provide users with styled emails containing buttons to change their password, specifically handling cases where a password is suspected to be compromised by including a reason parameter and support contact information.
_app/views/password\mailer · high confidence
New security incident notifications and standardized email templates
Users will now receive specific security notices regarding the legacy API key exposure incident ([GHSA redacted]), with separate emails for accounts where keys were already inactive versus those where active keys were revoked and require re-authentication. The system also introduces a standardized email design featuring a reusable button component and consistent layout, alongside new templates for administrative manual messages, account deletion status, and API key lifecycle events (creation and revocation).
app/views/mailer · high confidence
New v2 API endpoints for gem contents checksums and version details with Ruby ABI support
The API v2 now exposes two new endpoints: GET /api/v2/rubygems/:gem\_name/versions/:version\_number.sha256 (and .json/.yaml) to retrieve content-addressable checksums for a specific gem version, and GET /api/v2/rubygems/:gem\_name/versions/:version\_number (and .json/.yaml) to fetch detailed version information. Both endpoints support an optional ruby\_abi parameter (format X.Y) to target specific Ruby ABI variants, which requires the platform parameter to be specified. The checksums endpoint returns a 404 if content is unavailable, and the version endpoint returns a 404 if the version is not found. Both endpoints include caching headers and surrogate keys for efficient cache invalidation.
app/controllers/api/v2 · high confidence
Policy update announcement email added
Users will now receive an email notification informing them that RubyGems.org is adopting new Terms of Service, Privacy Notice, Acceptable Use Policy, and Copyright Policy. The email outlines the review period concluding on June 4th and directs users to provide feedback or join the discussion on Slack.
_app/views/policies\mailer · high confidence
Project initialization and development environment setup
The repository has been initialized with a new Ruby on Rails application structure, specifying Ruby 4.0.6 and configuring RuboCop for code style enforcement. A multi-stage Dockerfile and docker-compose.yml are provided to containerize the application and its dependencies (PostgreSQL, Memcached, OpenSearch), while CONTRIBUTING.md and AGENTS.md document the local development setup, testing, and formatting workflows.
(repo-wide) · high confidence
Redesigned versions list and added Atom feeds
The versions index page has been redesigned with a modern layout, displaying version numbers, dates, platforms, Ruby ABI, sizes, and yanked status in a paginated list. It also introduces Atom feeds for both the global latest gems and per-gem version updates, allowing users to subscribe to version changes via standard RSS/Atom readers.
app/views/versions · high confidence
Staging deployment configuration and secrets initialization
The staging environment now includes a complete set of Kubernetes deployment manifests (web, jobs, shoryuken, maintenance, db-migrate) and an ingress configuration, all linked via symlinks to shared templates. A new encrypted secrets file (secrets.ejson) has been added, provisioning essential credentials for the staging instance, including database URLs, AWS access keys, Sendgrid email credentials, Fastly CDN settings, GitHub OAuth details, and Nginx basic authentication.
config/deploy/staging · high confidence
Behavioural changes
1 commit (0 fixes) modifying .agents
A change to existing behaviour in .agents — 1 commit, 2 files: “Add agent setup and resume scripts (\#7005)” (refs \#7005).
.agents · medium confidence · unverified
4 commits (0 fixes) modifying lib/gem\_validator
A change to existing behaviour in lib/gem\_validator — 4 commits, 3 files: “Merge commit from fork”; “Assign a new gem to an organization from gemspec metadata (\#6856)”; “Enable frozen string literals for safety and performance” (refs \#6856).
_lib/gem\validator · medium confidence · unverified
API authorization now enforced via Pundit policies
API endpoints for RubyGems, ownership, and webhooks now require explicit authorization checks using Pundit policies. Access is determined by a combination of API key scopes (such as push\_rubygem, add\_owner, or access\_webhooks) and user-level permissions, with Multi-Factor Authentication (MFA) requirements enforced for sensitive actions like creating gems or modifying ownership. This change ensures that API requests are validated against specific scope permissions and user roles before execution.
app/policies/api · high confidence
API controllers refactored into a centralized base controller with new compact index and deprecation endpoints
The API controller structure has been reorganized to improve security, maintainability, and performance. A new \Api::BaseController\ centralizes common logic, including API key authentication, MFA verification, Pundit authorization, and session skipping, while removing the need for individual controller boilerplate. A new \Api::CompactIndexController\ implements the v2 compact index protocol, supporting range requests, ETags, and SHA-256 digests for efficient gem metadata retrieval. Additionally, an \Api::DeprecatedController\ now returns a 403 Forbidden status for legacy plugin versions, guiding users to update. These changes streamline API access control and enhance response caching and integrity verification for gem consumers.
app/controllers/api · high confidence
Add Pundit policies for OIDC trusted publishers
New authorization policies have been introduced for managing OIDC trusted publishers, restricting access based on user ownership and organizational roles. The \PendingTrustedPublisherPolicy\ allows users to view, create, and delete pending publisher records only for records they own. The \RubygemTrustedPublisherPolicy\ restricts viewing, creating, and deleting trusted publisher records for a specific Ruby gem to users who are owners of that gem and hold at least the admin role within the associated organization.
app/policies/oidc · high confidence
Admin actions migrated to a unified, audited base class
The admin panel's Avo actions now inherit from a new \Avo::Actions::ApplicationAction\ base class that enforces a mandatory comment field (minimum 10 characters) and automatically wraps every action in an audited transaction, logging the admin user, action name, and parameters to the audit trail. This change standardizes the behavior of all admin operations—including user management, gem yanking, and API key handling—ensuring that every administrative change is recorded for compliance and review.
app/avo/actions · high confidence
Admin authorization now uses a custom Pundit client to scope policies
The admin interface now uses a dedicated \Admin::AuthorizationClient\ to handle authorization checks. This change ensures that Pundit policies for admin resources are automatically scoped under the \:admin\ namespace, keeping them separate from global policies and allowing for more granular access control within the admin area.
lib/admin · high confidence
Admin dashboard now displays key metrics and push activity charts
The admin dashboard has been updated to include a new layout with specific metric cards and a chart. Users can now see the total number of users, as well as counts for RubyGems and versions pushed, with the latter two supporting time-range filters (7 days, 30 days, 60 days, 365 days, Today, Month to date, Quarter to date, Year to date, and All). Additionally, a line chart visualizes the number of pushes by day over the last 30 days. These components are arranged in a grid and are visible only to users with the 'rubygems-org' team membership.
app/avo/cards, app/avo/dashboards · high confidence
Admin namespace protected by GitHub OAuth
The new admin dashboard area is now secured by requiring GitHub OAuth authentication. A base controller for the admin namespace has been introduced, which includes the GitHub OAuthable module to enforce this protection, and provides a logout action to end the admin session.
app/controllers/admin · high confidence
Admin panel resources migrated to Avo 3
The admin panel's resource definitions have been upgraded to Avo 3, introducing a new resource structure for all managed models (including User, Rubygem, Version, API Key, Organization, and OIDC entities). This migration brings updated field rendering, new search and filter capabilities (such as prefix matching for gems and creation-time filtering for users), and integrated admin actions (like API key revocation, user blocking, and attestation repair) directly within the resource views.
app/avo/resources · high confidence
Agent skills directory restructured
The .claude/skills path is now a symbolic link pointing to ../.agents/skills, centralizing agent skill definitions in the .agents directory.
.claude · high confidence
Audit logging requires a mandatory comment for resource actions
A new concern, AvoAuditableResource, has been added to enforce audit logging for Avo resource actions. When creating, updating, or destroying records, users are now required to provide a comment of at least 10 characters explaining the action, which is then saved to the audit log. This ensures that all significant changes to resources are traceable with context.
app/avo/resources/concerns · high confidence
Avo 3 field view components for array, nested, and JSON fields
The admin interface's Avo fields now use dedicated view components for rendering in index, show, and edit contexts. Array fields support adding and removing nested items with error display, nested fields render their sub-fields in tables or lists, and JSON fields display formatted output in index views. These changes update how these specific field types are presented in the admin panel.
app/components/avo/fields · high confidence
Avo JavaScript loaded via Importmap
The Avo administration interface now loads its custom JavaScript assets using the Importmap system. This change replaces the previous asset loading mechanism with a new partial that explicitly includes the 'avo.custom' script via importmap tags, ensuring consistent and modern module resolution for Avo's client-side functionality.
app/views/avo/partials · high confidence
Block registration with disposable and reserved email domains
Users can no longer register accounts using email addresses from disposable mail providers or reserved special-use domains. The system now validates email addresses against a list of blocked domains (synced from upstream and admin-added entries) and rejects addresses using reserved TLDs and domains such as .test, .example, .invalid, .localhost, .local, and .onion, as well as specific reserved second-level domains like example.com. When a registration is rejected, the error message displays the specific domain that caused the block.
app/validators · high confidence
Compact index versions file now includes content-addressable checksums
The compact index's versions list file format has been updated to include an \info\_checksum\ for each gem, enabling content-addressable verification. This change allows clients to verify the integrity of gem metadata by comparing the checksum against the content, improving reliability when fetching version information.
_lib/compact\index · high confidence
Database schema updated to Rails 8.1 with new security and organization features
The database schema has been regenerated for Rails 8.1, introducing several structural changes that affect user data and permissions. New tables include \admin\_github\_users\ for storing admin GitHub identities, \attestations\ for storing sigstore attestation data alongside gem versions, and \deletions\ to track gem yanks separately from versions. The \api\_keys\ table now supports polymorphic ownership (allowing keys to belong to users or organizations), enforces non-null scopes, and includes an MFA flag. Organization management is supported by new \organizations\, \memberships\, and \org\_events\ tables, enabling role-based access control. Security enhancements include the \blocked\_email\_domains\ table to prevent registration from anonymous providers, and the \advisories\ table for storing security vulnerability data. Additionally, the \versions\ table now stores SHA256 checksums, Ruby ABI information, and pusher identities, while legacy columns and tables like \version\_histories\ and \rubyforge\_project\ have been removed.
db · high confidence
Downloads API endpoints return 410 Gone
The new \Api::V1::Versions::DownloadsController\ explicitly deprecates the \index\ and \search\ endpoints by returning a 410 Gone status with a plain-text message indicating they are no longer supported. This change removes access to version download statistics via the API, signaling that these features have been retired or moved.
app/controllers/api/v1/versions · high confidence
Enhanced security, logging, and request handling infrastructure
This change introduces several foundational improvements to the application's request processing and observability. Security is hardened by adding a dedicated markdown rendering module that sanitizes HTML output using a strict allowlist of tags and attributes, preventing potential XSS vulnerabilities in policy pages. Request handling now includes robust IP address resolution with Fastly edge verification via proxy tokens, enabling accurate geo-IP tracking only for verified traffic while correctly identifying bypassed requests. Observability is significantly improved with a new structured logging payload that captures detailed context including the acting user or API key owner, HTTP details, and edge bypass status, alongside a new user-agent parser that accurately identifies clients like Bundler, RubyGems, and OIDC actions for better telemetry.
lib/gemcutter · high confidence
Gems directory converted to a symlink
The server/gems directory is now a symbolic link pointing to the cache directory, replacing the previous unpacked structure. This change simplifies the file layout by removing the need to maintain a separate unpacked gems folder, as the gems are now accessed via the symlink.
server · high confidence
Homepage redesign with new search and support sections
The homepage has been completely redesigned to feature a prominent, accessible search bar with autocomplete functionality, a display of today's download count, and a call-to-action to install RubyGems. The layout also introduces new sections highlighting community supporters and donation opportunities, replacing previous content such as the leaderboard and MFA banners.
app/views/home · high confidence
Introduce API key management and hardened authentication flows
Users can now manage multiple API keys with granular scopes and expiration dates via the new ApiKeysController, which supports creating, editing, expiring, and bulk-resetting keys. The application enforces stricter authentication by requiring MFA for sensitive actions like adding/removing gem owners, updating email addresses, and changing password reset tokens. Password reset and email confirmation flows now support WebAuthn and OTP verification to prevent MFA bypass, and session handling has been updated to store user identifiers as strings and expire tokens after 15 minutes.
app/controllers · high confidence
Introduce RubygemContents::Entry model for optimized gem content processing
The system now uses a dedicated \RubygemContents::Entry\ class to handle individual files within gem archives. This change introduces a 100 MB size limit for content entries and optimizes memory usage by reusing the \libmagic\ instance during MIME type detection, which reduces the overhead of opening new instances for each file. The model also standardizes how file metadata (such as path, size, SHA256, and MIME type) is parsed from tar entries and persisted metadata, ensuring consistent handling of symlinks, text detection, and body persistence.
_app/models/rubygem\contents · high confidence
Introduce centralized ApplicationMailer with email delivery tracking and standardized formatting
The mailer system now inherits from a new ApplicationMailer that enforces a consistent mailer layout, forces the default locale for all email content, and automatically records every sent email as a user event for audit and analytics purposes. This change standardizes how all notification emails (including gem push/yank, ownership changes, MFA/TOTP status, API key events, and policy announcements) are generated, ensuring they include both HTML and text parts, use the correct sender, and are logged upon delivery.
app/mailers · high confidence
Introduce granular Avo admin policies for all resources
The admin panel now enforces explicit, resource-level access controls via a new set of Pundit policies under the Admin:: namespace. This change adds a base Admin::ApplicationPolicy and individual policies for every managed entity (such as Users, Gems, Organizations, API Keys, OIDC providers, and various event logs). These policies define which records are visible in the admin dashboard (e.g., restricting most lists to rubygems-org admins while allowing broader access for public data like gem downloads) and which actions (index, show, create, update, destroy) are permitted. This ensures that administrative operations are audited and restricted to authorized personnel, replacing previous implicit or missing access checks.
app/policies/admin · high confidence
Introduces Pundit-based authorization for organizations, memberships, and gem ownerships
This change replaces previous access-control mechanisms with a new Pundit policy layer for the \app/policies\ directory. It introduces granular authorization for organization management (creating, updating, adding/removing gems, managing memberships, and reserving gem names) based on specific roles such as \:owner\, \:admin\, and \:maintainer\. It also standardizes ownership checks for RubyGems, ensuring that actions like adding, updating, or removing owners, as well as configuring trusted publishers, require appropriate ownership or organizational roles. This provides a consistent, role-based permission model for users interacting with organizations and gem ownerships.
app/policies · high confidence
Major API v1 controller refactoring and feature expansion
The API v1 controllers have been completely rewritten and expanded. New capabilities include an Activities API (latest and just\_updated endpoints), an Attestations endpoint for content-addressable gem support, a Deletions controller for yanking gems with Ruby ABI targeting, and a TimeframeVersions endpoint for querying versions by creation date. The Owners controller now supports role-based ownership management and lists gems by owner handle. The API Keys controller has been restructured to support scoped keys with MFA requirements and expiration dates. The Rubygems controller now accepts sigstore attestations during push and includes CORS support. Search functionality has been migrated to Elasticsearch with query sanitization and autocomplete. The Dependencies endpoint has been deprecated with a 404 response. Existing endpoints like Downloads, Profiles, and WebHooks have been refactored to use strong parameters, improved caching, and consistent JSON/YAML responses.
app/controllers/api/v1 · high confidence
Migrate JavaScript module loading to Importmap and restructure application entry points
The application now uses Importmap for JavaScript module resolution, replacing previous bundling or script-tag methods. The new \application.js\ entry point explicitly imports core libraries (Turbo, Rails UJS, LocalTime) and specific feature modules (OIDC API key form, pages, webauthn, github-buttons), while disabling Turbo's default drive behavior. Additionally, Avo admin customizations are now loaded via a dedicated \avo.custom.js\ file that registers the \stimulus-rails-nested-form\ controller, centralizing Stimulus controller registration.
app/javascript · high confidence
Migrate background jobs to ActiveJob with GoodJob adapter
The application has migrated its background job processing from the legacy DelayedJob system to Rails ActiveJob, using GoodJob as the adapter. This change introduces a standardized \ApplicationJob\ base class with built-in retry logic for standard errors and deadlocks, along with automatic discarding and metrics reporting for deserialization failures. All existing background tasks—including gem indexing, Fastly log processing, webhook notifications, user deletion, and stats collection—have been refactored into ActiveJob classes. This migration enables better job concurrency control, priority-based queueing, and improved observability through StatsD metrics, while ensuring that job failures are handled more gracefully with automatic retries and proper error reporting.
app/jobs · high confidence
Migrate frontend interactivity to Stimulus.js
The application has adopted the Stimulus.js framework to manage client-side behavior, replacing previous JavaScript implementations. This change introduces a new application entry point that registers core controllers and integrates specific components like clipboard and checkbox-select-all. Users will experience improved interactivity across several areas: search functionality now includes an accessible autocomplete feature with keyboard navigation and proper ARIA attributes; the data dumps page dynamically fetches and renders PostgreSQL dump links from S3; API key forms now support exclusive checkbox logic; and account security features include a password strength meter, recovery code copy protection, and a username confirmation dialog for self-removal. Additionally, UI elements like avatars, dialogs, dropdowns, and onboarding forms are now handled by dedicated Stimulus controllers for better maintainability and accessibility.
app/javascript/controllers · high confidence
Migrate frontend scripts to vanilla JavaScript
The JavaScript codebase in app/javascript/src has been rewritten using vanilla JavaScript, removing the previous dependency on jQuery. This change includes new implementations for OIDC API key role forms (handling nested field addition/removal), MFA section toggling on the gems page, dynamic loading of transitive dependency lists, and WebAuthn credential registration and session handling. Users will experience the same functionality with a lighter, modern JavaScript stack that no longer relies on the jQuery library.
app/javascript/src · high confidence
Migrate to Tailwind CSS v4 configuration syntax
The application's Tailwind CSS setup has been updated to use the v4 configuration style. The main stylesheet now uses the new \@config\, \@import "tailwindcss"\, and \@plugin\ directives to load core styles and the forms, aspect-ratio, and typography plugins, replacing the previous compilation method.
app/assets/tailwind · high confidence
Multi-step UI for transferring RubyGems to an organization
The RubyGems transfer flow now uses a redesigned, multi-step interface that guides users through selecting the target organization, choosing which gems to transfer, and managing member permissions before finalizing. This update introduces a progress stepper, a summary view, and specific UI components for each step, including a 'Select all' checkbox for gems and a permission details accordion that explains the roles (Outside Contributor, Maintainer, Admin, Owner) available when inviting existing gem owners to the organization.
app/views/rubygems/transfer · high confidence
New Hostess middleware for gem downloads and Redirector for host validation
A new Hostess middleware class has been added to handle static file serving for gem specifications and indexes, while also intercepting download paths to track gem downloads in the database. Additionally, a new Redirector middleware has been introduced to enforce host validation, redirecting requests from unauthorized hosts to the primary host, while explicitly allowing specific rubygems.org subdomains and the newly added rubygems.team domain.
lib/gemcutter/middleware · high confidence
New controller concerns for API keys, MFA, and auditing
This change introduces a suite of new controller concerns in the application to centralize and standardize key security and administrative behaviors. The \ApiKeyable\ concern provides utilities for generating and hashing unique RubyGems API keys. \ApplicationMultifactorMethods\ and \MfaExpiryMethods\ handle MFA redirection logic and session expiry management, ensuring users are guided to settings when MFA is required or expired. \RequireMfa\ and \SessionVerifiable\ enforce multi-factor authentication and session verification flows, including WebAuthn integration via \WebauthnVerifiable\. Additionally, \AvoAuditable\ and \MaintenanceTasksAuditable\ add audit logging capabilities to admin actions, while \JwtValidation\ and \LatestVersion\ handle JWT parsing and version lookups. These concerns replace scattered logic with reusable, testable components for authentication, authorization, and admin auditing.
app/controllers/concerns · high confidence
New dedicated admin login page with GitHub OAuth and dev mode support
Admin users now access the admin panel via a new, standalone login page at /avo/login.html.erb. This page provides a primary 'Log in with GitHub' button that initiates OAuth authentication (with Turbo disabled to ensure reliable session handling) and includes a fallback for development environments: when ENABLE\_DEVELOPMENT\_LOG\_IN is active, admins can directly log in as any existing GitHub admin user from a list, or create one by running db:seed. The page also links back to the main RubyGems.org site.
app/views/avo · high confidence
New maintenance page with status link and SVG asset
A new maintenance page has been added at public/maintenance/index.html, replacing previous inline or base64 assets with an external SVG image (gem\_wrench.svg) and a link to the real-time status page at status.rubygems.org. The page displays a simple 'Under maintenance' message and uses the site's static stylesheet.
public/maintenance · high confidence
New stylesheet for account menu animations and dialog styling
A new stylesheet (hammy.css) has been added to manage specific UI behaviors, including smooth open/close animations for the account menu and backdrop effects for modal dialogs. It also introduces utility classes to hide scrollbars across various browsers and a hidden-state class for legacy JavaScript toggles.
app/assets/stylesheets · high confidence
Notifications for webhook deletion and automatic disabling
Users will now receive email notifications when a webhook is deleted or automatically disabled due to persistent failures. The new mailer views provide both HTML and text formats, detailing the specific webhook URL, the associated Ruby gem (if applicable), the reason for the action, and the number of failures that triggered the change.
_app/views/web\_hooks\mailer · high confidence
Prevent organization handles from clashing with reserved routes and keywords
Organization handles are now validated against a comprehensive list of reserved path segments (such as 'api', 'admin', 'gems'), static asset paths, future route placeholders, and sensitive keywords related to trust, safety, and Ruby core identity. This ensures that user-created organization names cannot conflict with existing or planned application routes, nor impersonate official registry entities or security roles, thereby preventing URL collisions and potential confusion or abuse.
app/models/organization · high confidence
Production deployment configuration migrated to Kubernetes manifests and secrets
The production deployment configuration has been updated to use Kubernetes-native resources. Most deployment manifests (web, jobs, ingress, service, nginx config, etc.) are now implemented as symbolic links to shared templates, centralizing configuration management. Additionally, a new \secrets.ejson\ file has been added to store encrypted production secrets, including database URLs, AWS credentials, API keys for services like SendGrid and Fastly, and OAuth tokens, replacing previous secret management methods.
config/deploy/production · high confidence
Rails 7.1 configuration update and application booting
The application has been upgraded to Rails 7.1, bringing a comprehensive set of configuration changes to the \config/initializers\ directory. This update includes enabling the Zeitwerk autoloader, activating YJIT for performance improvements, and configuring the session store with strict SameSite cookies. Security and reliability are enhanced through the addition of a cookie rotator for graceful secret key rotation, a Content Security Policy with nonce generation, and a hardened YAML parser that disables aliases. The upgrade also introduces new initializers for modern tooling and integrations, including Avo 3 for the admin dashboard, GoodJob for background jobs, Flipper for feature flags, and OpenSearch for search functionality, alongside updated configurations for Datadog, Honeybadger, and rate limiting via Rack::Attack.
config/initializers · high confidence
Rails 8.0.1 environment configuration update
The development, test, staging, and production environment files have been updated to align with Rails 8.0.1 defaults and conventions. Key changes include enabling code reloading via \config.enable\_reloading\ in development, disabling it in production/staging/test, and adopting \config.action\_dispatch.log\_rescued\_responses = false\ in production and staging to suppress rescued response logging. The development environment now supports a \PROFILE\ environment variable to switch to production-like settings (eager loading, JSON logging, asset compilation) for local benchmarking. Production and staging environments now use a memcached cache store with a 2MB value max size, enforce SSL with HSTS (1-year expiry, subdomains), and exclude \/internal\ paths from SSL redirects. The test environment now uses a random test order, disables exception templates, and includes a clearance backdoor middleware for easier testing.
config/environments · high confidence
Redesign of the gem dependencies page with reverse dependencies
The gem dependencies view has been completely redesigned to present dependencies in a structured table format, separating runtime and development scopes. The page now explicitly displays required version constraints for each dependency and includes a new section listing reverse dependencies (gems that depend on the current gem), showing their latest version, release date, and download counts. This replaces the previous list-based layout with a more detailed, tabular presentation that improves readability and provides deeper context about the gem's ecosystem.
app/views/dependencies · high confidence
Redesigned API key management with granular scopes and expiration
The API keys settings page has been redesigned to support more granular control and security. Users can now create and edit API keys with specific gem scopes, set expiration dates, and enable multi-factor authentication (MFA) on a per-key basis. The interface displays all gems if no specific gem scope is selected, and the key index view has been paginated for better usability. Additionally, the form has been converted to use Stimulus controllers for exclusive checkbox behavior, and the layout has been updated to use Tailwind CSS classes.
_app/views/api\keys · high confidence
Redesigned MFA verification and recovery code pages
The multifactor authentication verification and recovery code views have been redesigned with a modern UI, featuring a centered card layout, dark mode support, and updated styling. The MFA prompt page now consolidates WebAuthn and TOTP/recovery code entry into a single flow, while the recovery code page introduces a clickable copy-to-clipboard feature for the generated codes and requires explicit user acknowledgment before continuing.
_app/views/multifactor\auths · high confidence
Redesigned OIDC API key roles and trusted publisher management interfaces
The OIDC settings pages have been redesigned to use Phlex view components, providing a modernized interface for managing API key roles, access policies, and trusted publishers. Users can now create and edit API key roles with granular access policies (defining effects, principals, and conditions), view detailed permission scopes, and manage GitHub Actions workflow integrations. The redesign also introduces dedicated pages for listing and configuring trusted publishers (including GitHub Actions) for both global and per-gem contexts, with improved navigation, consistent styling, and clearer presentation of configuration details.
app/views/oidc · high confidence
Redesigned TOTP setup interface with modern styling
The TOTP setup view has been redesigned to provide a cleaner, more modern user experience. The new interface features a centered card layout with improved typography and spacing, displaying the QR code, account details, and secret key more clearly. The input field for the OTP code now includes better visual feedback with focus states and uses a primary color button for submission, enhancing usability and accessibility.
app/views/totps · high confidence
Redesigned UI components using Phlex
The application's view layer has been migrated from traditional ERB templates to Phlex-based Ruby components. This change introduces a new set of reusable UI elements—including alerts, buttons, cards, and navigation bars—that provide a refreshed visual design with updated styling and dark-mode support. Additionally, new components have been added to render security events, OIDC API keys, and trusted publisher configurations, ensuring these features are presented with the new design system.
app/views/components · high confidence
Redesigned WebAuthn verification flow with dedicated status pages
The WebAuthn verification interface has been redesigned to provide clearer feedback during the authentication process. Users now encounter a dedicated prompt page that displays their name and initiates the WebAuthn session, replacing the previous generic view. Upon completion, the system redirects to distinct success or failure pages: the success page confirms the verification with a checkmark, while the failure page displays an error icon and any specific error message returned by the backend, helping users understand why the attempt did not succeed.
_app/views/webauthn\verifications · high confidence
Redesigned email confirmation request page
The email confirmation request interface has been updated with a modern, responsive design. Users now see a centered card layout with clear typography and form styling, including a dedicated email input field and a primary submit button, improving the visual consistency and usability of the email confirmation flow.
_app/views/email\confirmations · high confidence
Redesigned gem show pages with new layout and information hierarchy
The gem show pages have been completely redesigned to improve readability and information access. The layout now features a primary sidebar displaying the gem name, latest version, download counts, and MFA status, alongside a secondary sidebar for links, licenses, and ownership details. The main content area presents the gem description, installation instructions, and version history in a cleaner structure, with specific handling for yanked gems that restricts access and displays appropriate notices. New components include version navigation, a dedicated security events page, and improved display of release metadata such as SHA-256 checksums and provenance attestations.
app/views/rubygems · high confidence
Redesigned organization membership and invitation management UI
The organization membership interface has been completely redesigned with new views for the member index, editing memberships, inviting new members, and handling invitation acceptance. Users can now see the join date for confirmed members and clear expiration status for pending invitations on the index and edit pages. The invitation acceptance page explicitly displays when the invitation expires and provides options to accept or decline. Additionally, organization owners can now resend invitations for pending members directly from the edit page.
app/views/organizations/members · high confidence
Redesigned organization onboarding flow with step-by-step wizard
The organization creation process has been restructured into a multi-step wizard to guide users through setup more clearly. The new flow includes distinct stages for naming the organization (including the permanent handle), selecting associated gems, and managing member invitations, all tracked by a visual progress indicator. A summary view is now available at each step to review selections, and the final confirmation screen explicitly warns that the organization handle is permanent and cannot be changed without support assistance.
app/views/organizations/onboarding · high confidence
Redesigned owners management interface with role-based access and self-removal safeguards
The owners index and edit pages have been redesigned to use a new layout, featuring a responsive table that displays owner name, confirmation status, MFA status, authorizer, role, and confirmation date. The interface now supports role-based ownership (allowing maintainers to view and manage roles), and includes a safeguard requiring username confirmation when a user attempts to remove themselves as an owner. The edit page allows authorized users to change an owner's role, while the index page provides a form to add new owners with a specified role.
app/views/owners · high confidence
Redesigned password reset and edit forms with API key reset options
The password reset workflow now uses custom, redesigned views for requesting a reset link (new), entering a new password (edit), and confirming success (create). The edit form includes a password strength meter, displays alerts if the password was found in a breach (HIBP), and allows users to optionally reset their API keys or all scoped API keys during the password change. The forms use modern styling with dark mode support and Turbo-disabled submission for the edit action.
app/views/passwords · high confidence
Redesigned reverse dependencies page with new search and table layout
The reverse dependencies view has been completely rewritten to feature a modern, responsive design. Users now see a dedicated search form at the top of the page to filter reverse dependencies by query. The list of dependencies is displayed in a clean table format showing the gem name, version, date, and download counts, with mobile-friendly adjustments that hide less critical columns on smaller screens. Pagination has been simplified to use a 'plain paginate' helper, removing the explicit page number links in favor of a more streamlined navigation experience.
_app/views/reverse\dependencies · high confidence
Redesigned search interface with advanced filtering and aggregation stats
The search experience has been redesigned to include a dedicated Advanced Search page and enhanced result displays. Users can now access advanced filtering options via a new form that allows searching by name, summary, description, downloads, and update date, powered by a Stimulus.js controller for interactive input handling. Search results pages now feature a new aggregation bar that displays match counts for different fields, date range filters, and yanked gem status, alongside improved pagination and search suggestion prompts. The layout utilizes new UI components like CardComponent and RubygemComponent for a consistent visual style.
app/views/searches · high confidence
Redesigned settings page with WebAuthn support and new account navigation
The settings edit page has been redesigned to include a dedicated section for managing WebAuthn credentials, displaying a status badge and allowing users to add new keys. The Multi-Factor Authentication (MFA) section now explicitly shows the MFA level for enabled accounts and provides controls for TOTP. Additionally, the Account section has been updated to include direct links to API keys, OIDC pending trusted publishers, and OIDC API key roles, improving visibility for these features.
app/views/settings · high confidence
Redesigned sign-in and verification pages with modern styling
The sign-in and password verification pages have been updated with a new visual design, featuring a centered card layout, improved spacing, and support for dark mode. The login form now accepts either an email address or a handle in the 'who' field, and the password input includes the 'current-password' autocomplete attribute to assist password managers. Additionally, the verification page now conditionally displays a WebAuthn prompt if the user has multi-factor authentication enabled.
app/views/sessions · high confidence
Redesigned site layout with new header, navigation, and account menu
The application layout has been completely overhauled to support a new visual design. The main \application.html.erb\ layout now features a redesigned header with a desktop navigation menu, a mobile slide-out navigation dialog, and a search bar with autocomplete. User authentication is handled by a new \\_session.html.erb\ partial that provides a dropdown account menu for signed-in users and sign-in/sign-up buttons for guests. Additional layout components include a new breadcrumb navigation (\\_breadcrumbs.html.erb\), a policies acknowledgement banner (\\_policies\_acknowledgement\_hammy.html.erb\), and specialized layouts for onboarding (\onboarding.html.erb\) and subject-focused pages like profiles (\subject.html.erb\).
app/views/layouts · high confidence
Redesigned static pages with new content and components
The static pages in the application have been completely redesigned and updated. The About page now features a structured layout with purpose statements, founding history, and sponsor acknowledgments, including a direct link to download logos. The Download page has been updated to display the latest RubyGems version dynamically, providing clear manual and automatic upgrade instructions alongside buttons for various distribution formats (tgz, zip, gem, git). A new Data page offers access to sanitized weekly PostgreSQL data dumps, utilizing a Stimulus.js controller for dynamic list rendering. The Security page has been restructured to clarify reporting procedures for RubyGems client issues versus gem vulnerabilities, explicitly stating that monetary bug bounties are no longer offered, and includes a direct link to the new Security Engineers in Residence FAQ. This FAQ page details the new program funded by Alpha-Omega and run by Ruby Central, explaining the team's process for scanning, verifying, and disclosing vulnerabilities in the Ruby ecosystem. The Supporters page now highlights the RubyGems Supporter Program, listing open-source sponsors and infrastructure donors. Additionally, a new index page provides a central list of all available static pages.
app/views/pages · high confidence
Redesigned stats page with modern UI and pagination
The stats page has been completely redesigned with a modern, responsive layout using Tailwind CSS classes for cards, grids, and typography. Key changes include the addition of pagination for the 'most downloaded gems' list (using the Kaminari gem), improved number formatting with delimiters, and the integration of a Stimulus.js controller for animated download meters. The page now features a cleaner visual hierarchy with icon-tagged labels, a prominent 'Click Gems' call-to-action button, and dark mode support.
app/views/stats · high confidence
Redesigned user dashboard with sidebar navigation and organization promotion
The dashboard view has been completely redesigned to feature a new layout with a sidebar navigation component (\\_subject.html.erb\) that includes links to the dashboard, subscriptions, settings, and organizations (for members). The main content area now displays a promotional banner for the new Organizations feature (visible only to users with the feature flag enabled and no existing memberships), followed by cards showing the user's latest gem updates, owned gems, and subscribed gems. This change introduces a modern UI structure with Tailwind CSS styling and integrates the new Organizations capability directly into the user's primary landing page.
app/views/dashboards · high confidence
Redesigned user profile pages with modern UI and new security features
The user profile experience has been completely overhauled with a new visual design, introducing dedicated pages for viewing profile details, editing settings, and deleting accounts. The public profile now displays the user's handle, full name, email (if public), and X/Twitter username, alongside a list of their published gems with version and download counts. Users can now edit their profile to update their handle, Twitter username, email, and full name, with validation requiring a password for changes. A new 'Delete Profile' page allows users to permanently remove their account, listing any gems they solely own that would be affected. Additionally, a new Security Events view has been added, allowing users to review their account's security activity via a dedicated Phlex-based component.
app/views/profiles · high confidence
Redesigned user sign-up form with handle and public email options
The user sign-up experience has been redesigned with a new form layout that now requires users to set a handle in addition to their email and password. The form includes a new optional full name field and a checkbox to allow users to make their email public. The password field has been updated to include the autocomplete attribute set to 'new-password' for better security and browser compatibility. The sign-up page also displays a link to the terms of service and respects the signup\_enabled? configuration to allow or disable new registrations.
app/views/users · high confidence
Restrict RubyGem event management to owners
A new policy for RubyGem events has been introduced that restricts all write operations (create, update, and destroy) to return false, effectively disabling these actions for all users. The only permitted action is viewing events (show), which is now gated by an ownership check, allowing access only if the current user owns the associated RubyGem.
app/policies/events · high confidence
SQS worker now enqueues Fastly log processing jobs via Active Job
The SQS worker has been updated to process incoming S3 log records by creating LogTicket records and enqueuing FastlyLogProcessorJob instances using Active Job, replacing the previous direct processing logic. This change introduces StatsD instrumentation to track metrics for fetched entries, enqueued jobs, and duplicate record attempts, and ensures the worker class is properly loaded by adding the lib folder to eager\_load\_paths.
lib/shoryuken · high confidence
Standardize styling for static pages and admin login
A new static stylesheet (static.css) has been introduced to centralize visual presentation for error pages and the admin login interface. This change removes previously inline styles from error pages, ensuring consistent typography, layout, and spacing across these views. It also defines specific styles for the admin login button and error illustrations, including a bounce animation for the error page graphic, replacing the previous ad-hoc styling approach.
public/stylesheets · high confidence
Standardized error pages and search configuration
The site now serves consistent, branded HTML error pages for client and server errors (400, 403, 404, 406, 422, 500, 502, 503) using a unified layout and SVG illustrations. Search engine indexing is controlled via a new robots.txt file that disallows /search, /downloads, /gems?letter=\*, /names, and /news. Additionally, an OpenSearch description file has been added to enable native browser search integration for RubyGems.org.
public · high confidence
Upgrade to Rails 8.1 defaults and modernize application configuration
The application configuration has been updated to load Rails 8.1 defaults, bringing the app in line with the latest framework standards. This change includes configuring the Good Job adapter for Active Job background processing, enabling the Flipper feature flagging library, and setting up the middleware stack with Rack::Sanitizer, Rack::Attack, and Rack::Deflater. Additionally, the configuration now supports multiple locales, enforces UTF-8 encoding, and integrates with the Avo admin interface via importmap for JavaScript dependencies.
config · high confidence
Test coverage
23 commits adding/updating tests in test/integration/api/v1; 3 commits adding/updating tests in test/factories/oidc/trusted\_publisher; 5 commits adding/updating tests in test/integration/gem\_validator; 6 commits adding/updating tests in test/integration/organizations; Added Fastly sample log fixture for testing; Added admin policy test coverage; Added component tests and Lookbook previews; Added factory for MaintenanceTasks::Run; Added functional tests for API v1 controllers; Added functional tests for API v2 contents and versions endpoints; Added functional tests for OIDC API key roles controller; Added functional tests for core application controllers; Added functional tests for organization features; Added functional tests for organization onboarding controllers; Added functional tests for the RubyGems transfer workflow; Added integration test for GoodJob admin dashboard access; Added integration tests for API, caching, avatars, dashboard, and organizations; Added integration tests for Avo admin dashboard resources; Added integration tests for OIDC API key roles and trusted publishers; Added integration tests for the API v2 version information endpoint; Added mailer previews and automated tests for email notifications; Added model tests for Admin::GitHubUser; Added model tests for MFA, search, and compact index concerns; Added model tests for advisory, API key, and gem management components; Added policy tests for API authorization; Added policy tests for OIDC admin resources; Added policy tests for organization, membership, and gem ownership authorization; Added system tests for new and redesigned features; Added test coverage for mailer delivery and content; Added test factories for OIDC integration testing; Added test factories for new security and organizational features; Added test factories for security event logging; Added test fixture for sigstore attestation verification; Added tests for API deprecation routing; Added tests for Gemcutter configuration loading; Added tests for MFA warning logic in user JSON serialization; Added tests for OIDC Trusted Publisher GitHub Action model; Added tests for OIDC model validations and access control logic; Added tests for OIDC trusted publisher policies; Added tests for RSTUF job lifecycle; Added tests for Rubygem event policy; Added tests for access control, compact index, markdown rendering, password breach checking, and search query sanitization; Added tests for background job behavior and metrics; Added tests for compact index dependency and version handling; Added tests for internal ping and revision endpoints; Added tests for maintenance tasks; Added tests for the FactoryBot/RepeatedNestedCreate cop; Added tests for the audit attestation subject digest rake task; Added tests for the versions downloads controller; Added tests for user, rubygem, and user agent event models; Added unit tests for Avo admin actions; Added unit tests for Duration and JsonDeserializable types; Added unit tests for Hostess and Redirector middleware; Added unit tests for certificate chain serialization, ERB safety, Fastly caching, and WebAuthn verification; Added unit tests for helper methods; Added unit tests for request IP address handling and user agent parsing; Added unit tests for the RSTUF API client; Integration tests for OIDC API endpoints; Integration tests for the Compact Index API; Migrate system tests to Playwright and establish new test infrastructure; New test helpers for admin, API policies, Avo, compact index, Datadog, email, search, feature flags, gems, OAuth, passwords, policies, rake, rate limits, and WebAuthn; System tests for Avo admin actions.
Dependencies
3992 commits updating dependencies (7 manifests)
A dependency / build maintenance change in (dependencies) — 3992 commits (66 fixs), 7 files.
(dependencies) · high confidence · unverified
Upgrade Stimulus to v3.2.2 and add Rails UJS v7.1.3-4
The application now uses Hotwired Stimulus version 3.2.2, which introduces native support for controller outlets and updated internal observers, alongside the addition of @rails/ujs version 7.1.3-4 to handle legacy unobtrusive JavaScript features like remote forms and data-confirm dialogs. These vendor JavaScript files are now explicitly managed in the repository, ensuring consistent behavior for interactive elements and form submissions across the application.
vendor/javascript · high confidence
Housekeeping
Added log directory placeholder; Placeholder for asset builds directory; Placeholder for reports directory.
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 46 → 47 (+0.7)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.
Lenses
- Code Health 45 → 46 (+0.0)
- Architecture 83 → 82 (-1.4)
- Maturity 45 → 49 (+3.7)
- Readiness 67 → 67 (-0.1)
- Security 65 → 63 (-2.6)
- Domain Modelling 42 → 43 (+0.8)
- Accessibility 54 → 53 (-0.7)
- Performance 100 → 100 (+0.0)
Resolved (11)
- Documentation: no installation or build instructions (README.md)
- Documentation: no project overview (README.md)
- Off-boarding risk: anonymized user #1
- Orphaned file (app/controllers/api/v1/github_secret_scanning_controller.rb)
- Orphaned file (app/models/api_key.rb)
- Orphaned file (app/models/oidc/api_key_role.rb)
- Outdated: faraday
- Outdated: herb
- Outdated: pghero
- Outdated: rubocop-capybara
- Outdated: webmock
New (13)
- High secret: WD-SECRET-0005 (config/secrets.yml)
- Low cohesion: Rubygem (LCOM4 15) (app/models/rubygem.rb)
- Off-boarding risk: anonymized user #1
- Orphaned file (app/controllers/owners_controller.rb)
- Orphaned file (app/models/concerns/rubygem_searchable.rb)
- Outdated: csv
- Outdated: faraday_middleware-aws-sigv4
- Outdated: honeybadger
- Outdated: prop_initializer
- Outdated: rack
- Outdated: rotp
- Outdated: rubocop
- Outdated: searchkick
Changes since last survey
- 45 commits — 42 feature/other, 3 fixes
By area
- (root) — 9 commits
- config/deploy — 7 commits
- config/locales — 5 commits
- test/system — 3 commits
- .github/workflows — 2 commits
- app/assets — 2 commits
- app/controllers — 2 commits
- db/migrate — 2 commits
- test/integration — 2 commits
- (repo) — 1 commit
- .agents/resume — 1 commit
- .github/actions — 1 commit
- app/avo — 1 commit
- app/models — 1 commit
- app/views — 1 commit
- bin/shoryuken-worker — 1 commit
- config/initializers — 1 commit
- db/seeds.rb — 1 commit
- lib/gem_validator — 1 commit
- test/models — 1 commit
Notable commits
- fix: Fix Datadog profiler compatibility with Semantic Logger (#7004)
- fix: Fix Shoryuken polling configuration (#6981)
- fix: Fix gem filter system test synchronization race (#6992)
- change: Add agent setup and resume scripts (#7005)
- change: Add partial versions index for reverse dependencies (#6990)
- change: Add the defmethod svg logo with name (#7021)
- change: Assign a new gem to an organization from gemspec metadata (#6856)
- change: Avoid duplicate API key revocation notifications (#7006)
- change: Bump avo from 3.33.1 to 3.33.2 (#6994)
- change: Bump ruby/setup-ruby in / (#7015)
- change: Bump the bundler group across 1 directory with 9 updates (#6996)
- change: Bump the bundler group with 16 updates (#7016)
- change: Bump the github-actions group across 1 directory with 5 updates (#6995)
- change: Bump the github-actions group across 1 directory with 5 updates (#7014)
- change: Clear organization ownership when a gem name is reclaimed (#7009)
- change: Codecov's patch status failed on cf71ca2 (76/78 diff lines, 97.44%, (#7001)
- change: Configure things for the PostgreSQL 18 upgrade in Production (#6985)
- change: Create Prefix Reservations in Avo (#6880)
- change: Enable ALB deletion protection in production and staging (#6991)
- change: Filter expected GoodJob cron deduplication errors (#7000)
- …and 25 more
Architecture
- Unchanged — 0 containers · 1 contexts · 0 edges
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
rubygems/rubygems.org was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 6 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 324491a597d3b70bd56414cb3670a95cefafb4af — the exact code this score is about.
- Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.2+preprod-5c4e66d9318b.