GithubHelp home page GithubHelp logo

Comments (4)

kevin-j-m avatar kevin-j-m commented on July 19, 2024

Good question/suggestion which I don't have an entirely satisfying answer for how to proceed. I'm a fan of ActiveSupport's travel_to features and use them in my new rails projects.

ActiveSupport is currently a dev dependency of the project (for ease of test writing), but is not part of the dependencies for the gem proper.

However, it's unclear to me what the future of clockwork's relationship with ActiveSupport is. It was removed, but that was then reverted. I'm not sure if there's still appetite to remove ActiveSupport.

That said, we could have AS as a dependency and if users want to use this gem, then they'll have pulled in AS by using this, whether or not clockwork includes it. I wonder if keeping Timecop helps in having a smaller library targeted towards a specific problem, rather than pulling in all of AS for this one feature of it.

What do you think?

from clockwork-test.

brain-geek avatar brain-geek commented on July 19, 2024

Yeah, it's a good question. If/when clockwork removes AS dependency, it would be a bad idea to have it in this project, as it's too big dependency to have.

One other thing to consider: it feels like Rubocop is more dead than alive. Even deprecation-fix PRs from 6+ month ago are not merged . While it works now, it may break. For example, Ruby 2.4 time objects have timezone-related changes, so it may function incorrectly.

from clockwork-test.

kevin-j-m avatar kevin-j-m commented on July 19, 2024

I'm certainly wary of dependencies and the affects they may have in your library, and should we start to see issues with Timecop, then I'm much more motivated to consider alternatives (of which, the only one I'm aware of that still has any traction or use would be AS).

However, at this time, I'm concerned that this may be trying to solve a problem that we don't have right now, and our time may be better spent in other ways. Do you think that's a fair assessment?

from clockwork-test.

brain-geek avatar brain-geek commented on July 19, 2024

This decision is up to you - and at the moment this may be a bit too early - Timecop is still good.

Thanks for discussing this anyway! 😄

from clockwork-test.

Related Issues (15)

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.