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.
MIT License
3.36k stars 223 forks source link

Revert "Better: Add ruby 3.1 compatibility." #405

Closed joshuacronemeyer closed 1 year ago

joshuacronemeyer commented 1 year ago

Reverts travisjeffery/timecop#279

This PR isn't working on ruby 3.1 build

/home/runner/work/timecop/timecop/lib/timecop/time_extensions.rb:7:in `mock_time': stack level too deep (SystemStackError)