BSD Ports

devel/rubygem-anonymous_loader-gitlab 0.1.3 FreeBSD

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

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Port added
Last update
Commit
8bfcaa80e6
License
MIT
Categories
devel, rubygems
Package size
27.2 KiB, 92.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.

Install

Binary package:

pkg install rubygem-anonymous_loader-gitlab

From the ports tree:

cd /usr/ports/devel/rubygem-anonymous_loader-gitlab/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	rubygem-anonymous_loader-gitlab>0:devel/rubygem-anonymous_loader-gitlab

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.1.30.1.3--0.1.3
FreeBSD:14:quarterly0.1.30.1.3n/a-0.1.3
FreeBSD:15:latest0.1.30.1.3n/a--
FreeBSD:15:quarterly0.1.30.1.3n/an/an/a
FreeBSD:16:latest0.1.30.1.3n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Runtime 1

The full lists below include those, and their dependencies in turn.

Build dependencies 6
Run dependencies 7

Configuration

No options to configure.

USES
gem
Service scripts
none

Files

distinfo 1
FileSizeSHA256
rubygem/anonymous_loader-0.1.3.gem35840084a18e2439144d955447dc11dfc982f41fcd1583ad32d4d55151325dc44cb55
Master sites 1
  • RG

Commit history 1

DateCommitCreditsLog message
8bfcaa80e6 Matthias Fechner www/gitlab: new ports required for 19.3.0