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

Last updated: May 18,2024

1. Install "ruby-webmock" package

In this section, we are going to explain the necessary steps to install ruby-webmock on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install ruby-webmock

2. Uninstall "ruby-webmock" package

Please follow the steps below to uninstall ruby-webmock on Ubuntu 21.10 (Impish Indri):

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

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

Package: ruby-webmock
Architecture: all
Version: 3.8.3-1ubuntu1
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: 233
Depends: ruby-addressable (>= 2.3.6), ruby-crack (>= 0.3.2), ruby-hashdiff (>= 0.4.0), ruby-hashdiff (<< 2.0.0)
Recommends: ca-certificates
Filename: pool/universe/r/ruby-webmock/ruby-webmock_3.8.3-1ubuntu1_all.deb
Size: 46216
MD5sum: 52d4f2b40348f3c2743ce49c54c35754
SHA1: 246c47ed3e46042c0821d1ac8fd612d688917be6
SHA256: dc616c9f13ba572bc7b7c3606f5493db5f2d558d3f512befaef61dc5e7eeddf9
SHA512: 65ac49a252931d9138e57df453c8dbc1f9b370be862a288547e3c816e519e5047c829fabda6d615a7570c25f5163640d7a3a8ac770dd6836f623d880e921f832
Homepage: https://github.com/bblimke/webmock
Description-en: library for stubbing HTTP requests in Ruby
WebMock allows stubbing HTTP requests and setting expectations on HTTP
requests.
.
Features
.
* Stubbing HTTP requests at low http client lib level (no need to change
tests when you change HTTP library).
* Setting and verifying expectations on HTTP requests.
* Matching requests based on method, URI, headers and body.
* Smart matching of the same URIs in different representations (also encoded
and non encoded forms).
* Smart matching of the same headers in different representations.
Description-md5: 83ffa69d71660251c94341505328406f
Ruby-Versions: all