devel/ruby-anonymous_loader - The NetBSD Packages Collection

Load Ruby source files inside anonymous namespaces

AnonymousLoader

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.

Build dependencies

pkgtools/mktools lang/ruby33 pkgtools/cwrappers

Runtime dependencies

devel/ruby-version_gem lang/ruby33

Binary packages

OSArchitectureVersion
(none)

Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.

Available build options

(none)

Known vulnerabilities

The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.

Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.


Problem reports, updates or suggestions for this package should be reported with send-pr.