Comments (4)
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.
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.
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.
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)
- Load up test events by reading file HOT 3
- Test handler as well as schedule HOT 1
- Speed up runs to progress through time faster than actual duration HOT 1
- Support for Database Events HOT 7
- clockwork 2.0.1 breaks clockwork-test HOT 7
- Clockwork::DatabaseEvents HOT 1
- Test against latest ruby point versions
- Test against ruby 2.5 HOT 2
- Forces `config/clock.rb` HOT 2
- Testing 2 clock instances HOT 3
- Release new version HOT 1
- Redefining constants HOT 13
- Wildcards for times not supported? HOT 7
- times_run doesn't count when using at: option HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clockwork-test.