Skip to content
CAI
Software that uses CAICheck a score

palkan/active_event_store

62.0

Adequate · 10 November 2026

710

lines of production code

Ruby

primary language

10

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is a Ruby gem that provides a Rails integration layer for Ruby Event Store, enabling the configuration of event clients, repositories, and mappers. It facilitates asynchronous event processing by allowing users to schedule subscribers with delays via Active Job and offers comprehensive testing utilities, including RSpec matchers and Minitest helpers, to verify event publication and job enqueuing.

Features

ActiveEventStore 1.4.0 release with Rails integration and async subscriber support

This release introduces the ActiveEventStore gem (version 1.4.0) as a Rails integration layer for Ruby Event Store. It provides an Engine that configures the event store client, repository, and mappers, including support for asynchronous subscribers via ActiveJob. The gem includes a custom Event class with attribute validation, a DomainEvent mapper for serialization, and a SubscriberJob base class for handling async events. It also adds RSpec matchers and a TestHelper for asserting event publication and async job enqueuing.

_lib/active\_event\store · high confidence

Add event publication assertion matcher for tests

The test helper now includes an EventPublishedMatcher class, enabling users to assert that specific events were published during test execution. This matcher supports verifying event types and attributes, and allows for flexible count expectations such as exactly, at least, or at most a certain number of events, as well as refuting publication.

_lib/active\_event\_store/test\helper · high confidence

New RSpec matchers for async subscribers and published events

Added two new RSpec matchers to the testing library: \have\_enqueued\_async\_subscriber\_for\ and \have\_published\_event\. The former allows verifying that an async subscriber job was enqueued with specific event data, integrating with \rspec-rails\ and respecting the configured serializer. The latter enables assertions on the number and attributes of events published to the event store within a block, supporting flexible count expectations (exactly, at least, at most).

_lib/active\_event\store/rspec · high confidence

Behavioural changes

Async subscription scheduling with wait and wait\_until options

The library now supports scheduling async event subscribers using the \wait:\ and \wait\_until:\ options on \subscribe\. When these options are provided, they are forwarded to Active Job's \.set\ method, allowing users to delay job execution by a specific duration or until a specific time. The implementation includes validation to ensure \wait:\ is a numeric value or ActiveSupport::Duration and \wait\_until:\ is a time-like object, raising an error if used with synchronous subscribers or invalid values.

lib · high confidence

Support delayed async subscriptions and Rails Event Store 3.0 compatibility

Users can now schedule asynchronous event subscribers to run after a delay by passing \wait:\ or \wait\_until:\ options to \subscribe\, which are forwarded to Active Job. The gem also adds support for Rails Event Store 3.0 by adapting to its renamed dispatcher and repository classes, ensuring compatibility with the latest RES versions while maintaining fallbacks for older releases.

(repo-wide) · high confidence

Test coverage

Added test suite for ActiveEventStore core components; Added test suite for event subscription behaviors; Added test support infrastructure for Rails and Event Store specs; Added tests for ActiveEventStore test helper assertions; Introduce centralized test helper for Minitest suite.

Dependencies

Expanded CI support for Rails 7.1, Rails 8, and Rails Event Store master

The CI configuration now tests against Rails 7.1 and Rails 8 (using sqlite3 \~\> 2.0 for Rails 8), in addition to existing Rails 5, 6, and 7 versions. Support for Rails Event Store (RES) master has been added, and the Rails 6 gemfile now pins RES to versions below 2.18.0. The \railsmaster\ gemfile has been updated to use sqlite3 \~\> 2.0 and includes \activerecord-import\. Rubocop linting tools have been upgraded to \standard \~\> 1.0\ and \rubocop-md \~\> 2.0\.

gemfiles · high confidence

Update Ruby and Rails requirements; switch to debug gem and minitest

The gem now requires Ruby 2.7 or higher (dropping support for 2.5) and defaults to Rails 7.0 instead of 6.0. The development dependency on pry-byebug has been replaced with the debug gem, and the test suite has shifted from RSpec to Minitest (with rspec-rails retained as a dependency). Additionally, the gem now explicitly depends on rails\_event\_store version 2.11.0 or later.

(dependencies) · high 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 63 → 62 (-0.6)
  • 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 53 → 53 (+0.0)
  • Readiness 71 → 71 (+0.0)
  • Security 80 → 71 (-9.3)

Resolved (4)

  • Functional overlap: TestHelper.assert_event_published appears to be a procedural wrapper that likely instantiates and executes HavePublishedEvent.matches?. This duplicates the intent of the matcher class, creating two ways to assert the same condition (one via a helper method, one via a matcher object).
  • Off-boarding risk: anonymized user #1
  • Redundant accessors: Similar to Config, Event exposes both a Property and a Method named 'identifier'. This is inconsistent with standard API design where one access pattern should dominate.
  • Redundant accessors: The Config type exposes both Properties (e.g., Config.repository) and Methods with identical names (e.g., Config.repository()). In most languages, this creates ambiguity or redundancy, as the method likely just delegates to the property or vice versa.

New (1)

  • Off-boarding risk: anonymized user #1

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

Survey your own repository

palkan/active_event_store 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 10 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 ddc03251f9e09dc537e8b530ad3f708ec87f875a — 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.