BSD Ports

devel/rubygem-anonymous_loader 0.1.3 DragonFly

Resolve Ruby files and evaluate them to avoid top-level namespace collisions

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
devel, rubygems
Package size
26.0 KiB, 93.0 KiB installed

Description

AnonymousLoader evaluates Ruby source files inside fresh anonymous modules. It is useful when a tool needs to inspect or reuse code that declares constants whose top-level names may collide with the host process.

The loaded source keeps its normal constant nesting, but that nesting starts inside the returned anonymous namespace. For example, source that declares Auth::Sanitizer becomes namespace::Auth::Sanitizer, and does not create Object::Auth.

AnonymousLoader can load explicitly named files, or resolve a file using RubyGems metadata with a $LOAD_PATH fallback. The fallback is intended for Bundler standalone and similar environments where code is loadable but a gem is not visible through Gem.loaded_specs or the normal RubyGems index.

In the other systems

The newest version among them is 0.1.5, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/rubygem-anonymous_loader0.1.3 behind since 2026-11-09none known-[email protected]-
FreeBSDdevel/rubygem-anonymous_loader0.1.5 newestnone known-[email protected]2026-11-09
HardenedBSDdevel/rubygem-anonymous_loader0.1.3 behind since 2026-11-09no data-[email protected]-
GhostBSDdevel/rubygem-anonymous_loader0.1.3 behind since 2026-11-09no data-[email protected]-

Version history 1

  1. 0.1.3

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

pkg install rubygem-anonymous_loader

From DPorts:

cd /usr/dports/devel/rubygem-anonymous_loader && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 3