How to Install and Uninstall ruby-timecop Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 09,2024

1. Install "ruby-timecop" package

Please follow the guidance below to install ruby-timecop on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install ruby-timecop

2. Uninstall "ruby-timecop" package

Please follow the step by step instructions below to uninstall ruby-timecop on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove ruby-timecop $ sudo apt autoclean && sudo apt autoremove

3. Information about the ruby-timecop package on Ubuntu 21.10 (Impish Indri)

Package: ruby-timecop
Architecture: all
Version: 0.9.1-1
Priority: optional
Section: universe/ruby
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Ruby Extras Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 38
Depends: ruby | ruby-interpreter
Filename: pool/universe/r/ruby-timecop/ruby-timecop_0.9.1-1_all.deb
Size: 10252
MD5sum: 049f01ee6210051b81128854c9ec5e18
SHA1: 0da4b47af60c963a6cbc08ca02cbe37c663998fb
SHA256: 4f9de4c0b904c2743710dd5677e32dd20c22c797064a6c2ffe389428eb619d30
SHA512: e73d2e8a1985f2bb8c1bcfdfdd40645378f70e8a26d8f9bfb65fcb545399fe4db5a30f217285df031e49dd597320e3222b4a23d18e4b2fdff3be49f071bebc29
Homepage: https://github.com/travisjeffery/timecop
Description-en: Ruby library to easily test time-dependent code
Timecop makes it easy to travel through or freeze time for creating a
predictable and ultimately testable scenario.
.
It is a wrapper class for manipulating the extensions to the Time, Date,
and DateTime objects. It avoids overloading of functions with optional
arguments while writing test cases. It is possible to nest multiple
calls to Timecop.travel and Timecop.freeze, with each block maintaining
concept of "now". Having no dependencies, it works with regular Ruby projects
and Ruby on Rails projects.
Description-md5: 1ce6edc8e35ae0828b72a1a6470ffdc9
Ruby-Versions: all