Giter Club home page Giter Club logo

Comments (5)

 avatar commented on July 3, 2024

Just saw this issue with Timecop.travel:

[1] > Time.now
=> 2013-01-08 21:55:09 -0700
[2] > Timecop.travel(1.hour.ago) { Time.now }
=> 2013-01-08 12:55:46 -0700

I just updated Timecop from 0.5.3 to 0.5.8

from timecop.

 avatar commented on July 3, 2024

This does not occur in 0.5.7:

[1] > Time.now
=> 2013-01-08 21:58:31 -0700
[2] > Timecop.travel(1.hour.ago) { Time.now }
=> 2013-01-08 20:58:32 -0700
[3] > Timecop.freeze(1.hour.ago) { Time.now }
=> 2013-01-08 20:58:44 -0700

from timecop.

travisjeffery avatar travisjeffery commented on July 3, 2024

Ah! I had seen that problem before and just didn't write a test to cover it at the time. Got a test in there now to cover this now though so to it won't happen again.

Fixed in v0.5.9 which I just released.

from timecop.

kyanny avatar kyanny commented on July 3, 2024

Thank you for your very quick fix.

Well, maybe you forgot to upgrade version number at https://github.com/travisjeffery/timecop/blob/master/lib/timecop/version.rb to 0.5.9?
It seems that v0.5.9 does not available on rubygems.org https://rubygems.org/gems/timecop/versions

from timecop.

travisjeffery avatar travisjeffery commented on July 3, 2024

@kyanny whoops, you're right. It's up there now for sure.

from timecop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.