Skip to content
CAI
Software that uses CAICheck a score

jedld/resugan

62.5

Adequate · 9 November 2026

236

lines of production code

Ruby

primary language

9

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Resugan is a Ruby library that provides an event-dispatching framework with support for namespaced event routing and configurable dispatchers. It allows developers to register and trigger events within specific namespaces, enabling flexible and thread-safe context management. The system includes comprehensive test coverage and is packaged as a Ruby gem with standard project metadata.

Features

Introduce Resugan event-dispatching framework with namespace support and custom dispatchers

This change introduces the Resugan library, providing a mechanism to register and dispatch events within specific namespaces. Users can now wrap code blocks in \resugan\ or \resugan!\ methods to capture events, which are then dispatched via a configurable dispatcher (defaulting to \InlineDispatcher\, with support for \MarshalledInlineDispatcher\). The framework supports multiple namespaces per listener, allows top-level context reuse, and includes thread-safe context management. A version bump to 0.1.15 is also included.

lib/resugan · high confidence

Test coverage

Added comprehensive test coverage for Resugan's event dispatching and namespace handling

Added extensive RSpec tests for the Resugan library, covering event firing, method hooks, and namespace-based event routing. The tests verify that events are correctly dispatched to listeners, support multiple namespaces per listener, and handle nested resugan blocks with configurable top-level context reuse. A custom dispatcher is also tested to ensure the dispatching mechanism works as expected.

spec · high confidence

Dependencies

Updated gemspec with project metadata and dependencies

The Resugan gemspec was updated to replace placeholder text with actual project details, including a summary and description identifying it as a Ruby event framework, setting the homepage to the GitHub repository, and configuring RubyGems push permissions. Additionally, the development dependencies were adjusted: the Bundler version constraint was removed, and the Pry gem was added as a development dependency.

(dependencies) · medium confidence

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 62 → 62 (+0.0)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 76 → 76 (+0.0)
  • Architecture 69 → 69 (+0.0)
  • Maturity 56 → 56 (+0.0)
  • Readiness 60 → 60 (+0.0)
  • Security 100 → 100 (+0.0)

Resolved (3)

  • Multiple distinct methods for registering event listeners with inconsistent signatures and naming conventions. Context.register takes params, Kernel.register takes a block, Kernel.register_with_namespace is verbose and specific, and Object._listener/_listener! are instance-level helpers with bang variants. This creates confusion about where and how to register events.
  • Presence of bang (!) and non-bang variants of the same method (resugan) without clear semantic distinction in the signature. Typically, bang methods imply mutation or side effects, but here both take identical arguments, suggesting redundancy or unclear intent.
  • Two different dispatcher types with identical method signatures (dispatch(namespace, events)). While they may differ in implementation (marshalled vs inline), the API surface exposes them as separate types with the same interface, which could be confusing if users need to choose between them without clear documentation on when to use which.

New (1)

  • Medium CVE: [GHSA redacted] (resugan.gemspec)

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

jedld/resugan 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 9 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 87d3080eb725640ea5d4d69087d00411dd572bff — 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.4+preprod-464a0040a931.