Skip to content
CAI
Software that uses CAICheck a score

travisjeffery/timecop

61.1

Adequate · 14 November 2026

567

lines of production code

Ruby

primary language

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is the Timecop Ruby gem, a library designed to mock system time for testing purposes. It provides capabilities to freeze, travel, and scale time across various Ruby time classes and process clocks. The project includes development tools like an interactive console and comprehensive test coverage to ensure thread-safe operation and compatibility with modern Ruby versions.

Features

Added interactive Ruby console for development

A new executable script at bin/console has been added to the project. This script sets up the bundler environment and launches an interactive Ruby shell (IRB), allowing developers to easily experiment with the gem's code and dependencies during development.

bin · high confidence

Timecop v0.9.11: Initial release with time mocking and scaling capabilities

This entry introduces the Timecop library (version 0.9.11), enabling applications to mock system time for testing purposes. The library provides \Timecop.freeze\ to pause time, \Timecop.travel\ to move time forward or backward, and \Timecop.scale\ to accelerate time passage. It extends \Time\, \Date\, and \DateTime\ classes to respect these mocked states, supports \Process.clock\_gettime\ (CLOCK\_MONOTONIC and CLOCK\_REALTIME), and includes thread-safe operation modes. The implementation handles various argument formats (Time objects, dates, offsets) and integrates with ActiveSupport's Time.zone when available.

lib/timecop · high confidence

Removals

Removal of legacy timecop 0.1.0 gem package

The legacy timecop 0.1.0 package directory has been completely removed from the repository. This deletion eliminates the old gem skeleton, including its build configuration (Rakefile), documentation (README, History), and source files, effectively cleaning up obsolete version artifacts.

pkg, pkg/timecop-0.1.0 · high confidence

Test coverage

Expanded test coverage for date parsing, strptime, and process clock mocking

Added comprehensive test suites for \Date.parse\, \DateTime.parse\, and \Date.strptime\ scenarios, including specific tests for ISO 8601 week dates, year boundary handling, and timezone variations. Introduced tests for the new \Process.clock\_gettime\ mocking feature, verifying that \CLOCK\_MONOTONIC\ and \CLOCK\_REALTIME\ correctly freeze, travel, and scale. Added tests for \TimeStackItem\ initialization with various time types and DST transitions, and verified that Timecop functions correctly when the \date\ library is not loaded.

test · high confidence

Dependencies

Update gemspec and add Gemfile for modern Ruby support

The project now requires Ruby 2.1.0 or higher and has updated its gemspec to use a version constant from the library code instead of a hardcoded string. The gemspec authors have been updated to include Travis Jeffery, and the license is explicitly set to MIT. A new Gemfile has been added to manage development dependencies including rake, nokogiri, pry, mocha, activesupport, tzinfo, i18n, and minitest, along with a conditional dependency on concurrent-ruby for Ruby versions older than 2.7.

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

Lenses

  • Code Health 74 → 69 (-5.2)
  • Architecture 69 → 69 (+0.0)
  • Maturity 50 → 50 (+0.0)
  • Readiness 70 → 70 (+0.0)
  • Security 96 → 95 (-0.6)

Findings

  • No change — the same findings as the prior survey.

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

Survey your own repository

travisjeffery/timecop 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 14 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 76d7ffd9864ae18b5ce270685a317473f0f6e168 — the exact code this score is about.
  • Scored under rubric-2026.11.4 — 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.65+preprod-e1a3b69fc8ee.