notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photos
All times are UTC
Ukraine
The recently imposed "must be logged in" restriction is a response to increased bot traffic on the site. This affects search, commits, and vuxml pages.
Port details on branch 2025Q3
rubygem-mocha Library for mocking and stubbing syntax like JMock and SchMock
3.1.0 devel on this many watch lists=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 3.0.2Version of this port present on the latest quarterly branch.
Maintainer: ruby@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2008-04-21 02:38:00
Last Update: 2026-04-27 13:08:09
Commit Hash: 5701755
Also Listed In: rubygems
License: BSD2CLAUSE RUBY MIT
WWW:
https://mocha.jamesmead.org/
https://github.com/freerange/mocha
Description:
Mocha is a library for mocking and stubbing using a syntax like that of JMock, and SchMock. One of its main advantages is that it allows you to mock and stub methods on real (non-mock) classes and instances.
HomepageHomepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
Expand this list (5 items)
Collapse this list.
  1. /usr/local/share/licenses/rubygem-mocha-3.1.0/catalog.mk
  2. /usr/local/share/licenses/rubygem-mocha-3.1.0/LICENSE
  3. /usr/local/share/licenses/rubygem-mocha-3.1.0/BSD2CLAUSE
  4. /usr/local/share/licenses/rubygem-mocha-3.1.0/RUBY
  5. /usr/local/share/licenses/rubygem-mocha-3.1.0/MIT
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • rubygem-mocha>0:devel/rubygem-mocha
To install the port:
cd /usr/ports/devel/rubygem-mocha/ && make install clean
To add the package, run one of these commands:
  • pkg install devel/rubygem-mocha
  • pkg install rubygem-mocha
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: rubygem-mocha
Flavors: there is no flavor information for this port.
distinfo:
TIMESTAMP = 1777252894 SHA256 (rubygem/mocha-3.1.0.gem) = 75f42d69ebfb1f10b32489dff8f8431d37a418120ecdfc07afe3bc183d4e1d56 SIZE (rubygem/mocha-3.1.0.gem) = 73216

Packages (timestamps in pop-ups are UTC):
rubygem-mocha
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest3.0.23.1.01.11.22.7.13.1.0n/an/an/a
FreeBSD:13:quarterly3.0.23.0.22.0.32.7.13.0.2n/an/an/a
FreeBSD:14:latest3.0.23.1.01.16.12.7.13.1.02.0.2-2.0.2
FreeBSD:14:quarterly3.0.23.0.2-2.7.13.0.22.1.02.1.02.1.0
FreeBSD:15:latest3.1.03.1.0n/a2.7.1n/an/a2.1.02.1.0
FreeBSD:15:quarterly3.0.23.0.2n/a-n/an/a--
FreeBSD:16:latest3.0.23.1.0n/a-n/an/a--
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. ruby34 : lang/ruby34
  2. gem : devel/ruby-gems
Runtime dependencies:
  1. rubygem-ruby2_keywords>=0.0.5 : devel/rubygem-ruby2_keywords
  2. ruby34 : lang/ruby34
  3. gem : devel/ruby-gems
Patch dependencies:
  1. ruby34 : lang/ruby34
  2. gem : devel/ruby-gems
Extract dependencies:
  1. ruby34 : lang/ruby34
This port is required by:
for Run
  1. www/redmine51
  2. www/redmine60
  3. www/redmine61
  4. www/rubygem-rfacebook

Configuration Options:
No options to configure
Options name:
devel_rubygem-mocha
USES:
gem
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://rubygems.org/downloads/
Collapse this list.

There are no commits on branch 2025Q3 for this port