Ross ROSS = Recommend OSS · open-source software intelligence for agents

travisjeffery/timecop

A gem providing "time travel", "time freezing", and "time acceleration" capabilities, making it simple to test time-dependent code. It provides a unified method to mock Time.now, Date.today, and DateTime.now in a single call. observed · 2026-08-28

github.com/travisjeffery/timecop · Ruby · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

67/100

  • Activity 77
  • Release rhythm 35
  • Longevity 100

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 6508
  • days_rel: n/a
  • days_push: 143
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

3425 stars · 227 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

Timecop is a Ruby gem that provides time travel, time freezing, and time acceleration capabilities for testing time-dependent code. It offers a unified API to mock Time.now, Date.today, DateTime.now, and Process.clock_gettime in a single call.

Use cases

  • freeze time in tests to assert time-dependent behavior
  • mock Time.now and Date.today in Ruby test suites
  • simulate the passage of time in unit tests
  • test expiring subscriptions or mortgage due dates
  • set a fixed test date for a Rails test environment
  • accelerate time to test scheduled or timeout logic

When to choose

  • you write Ruby or Rails tests involving time-sensitive logic
  • you need to freeze, travel, or scale time deterministically in specs
  • you want a dependency-free gem that mocks multiple time APIs uniformly

When to avoid

  • your project is not in Ruby
  • you only need simple stubbing already covered by your mocking framework
  • you need to mock time in production code rather than tests

Facets

library · maturity stable

testing mocking date-time testing developer-tools programming-languages ruby cli time-mocking ruby-gem time-freezing time-travel rails-testing

1 source

Member repositories

RepositoryRoleHealth v2
travisjeffery/timecopmain67

For agents

markdown · JSON · MCP: product_card(name="travisjeffery/timecop")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem