aboutsummaryrefslogtreecommitdiff
path: root/devel/rubygem-anonymous_loader-gitlab
diff options
context:
space:
mode:
authorMatthias Fechner <mfechner@FreeBSD.org>2026-08-20 09:05:05 +0000
committerMatthias Fechner <mfechner@FreeBSD.org>2026-08-21 04:16:57 +0000
commit8bfcaa80e60ae8c66113cd812a069b7b07f51072 (patch)
treeadb32e1f20b34cd9423c50445c4ae7b10814ac0c /devel/rubygem-anonymous_loader-gitlab
parent4570baaa512a5c541bf3a8c79bcfa2d0576f406e (diff)
www/gitlab: new ports required for 19.3.0
Diffstat (limited to 'devel/rubygem-anonymous_loader-gitlab')
-rw-r--r--devel/rubygem-anonymous_loader-gitlab/Makefile21
-rw-r--r--devel/rubygem-anonymous_loader-gitlab/distinfo3
-rw-r--r--devel/rubygem-anonymous_loader-gitlab/pkg-descr13
3 files changed, 37 insertions, 0 deletions
diff --git a/devel/rubygem-anonymous_loader-gitlab/Makefile b/devel/rubygem-anonymous_loader-gitlab/Makefile
new file mode 100644
index 000000000000..498a5d856382
--- /dev/null
+++ b/devel/rubygem-anonymous_loader-gitlab/Makefile
@@ -0,0 +1,21 @@
+PORTNAME= anonymous_loader
+PORTVERSION= 0.1.3
+CATEGORIES= devel rubygems
+MASTER_SITES= RG
+PKGNAMESUFFIX= -gitlab
+
+MAINTAINER= mfechner@FreeBSD.org
+COMMENT= Resolve Ruby files and evaluate them to avoid top-level namespace collisions
+WWW= https://anonymous-loader.galtzo.com/ \
+ https://github.com/ruby-oauth/anonymous_loader
+
+LICENSE= MIT
+#LICENSE_FILE= ${WRKSRC}/MIT.md
+
+RUN_DEPENDS= rubygem-version_gem-gitlab>=1.1.14<2:devel/rubygem-version_gem-gitlab
+
+USES= gem
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/rubygem-anonymous_loader-gitlab/distinfo b/devel/rubygem-anonymous_loader-gitlab/distinfo
new file mode 100644
index 000000000000..d83892ed44f2
--- /dev/null
+++ b/devel/rubygem-anonymous_loader-gitlab/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1787212722
+SHA256 (rubygem/anonymous_loader-0.1.3.gem) = 084a18e2439144d955447dc11dfc982f41fcd1583ad32d4d55151325dc44cb55
+SIZE (rubygem/anonymous_loader-0.1.3.gem) = 35840
diff --git a/devel/rubygem-anonymous_loader-gitlab/pkg-descr b/devel/rubygem-anonymous_loader-gitlab/pkg-descr
new file mode 100644
index 000000000000..35e278584e72
--- /dev/null
+++ b/devel/rubygem-anonymous_loader-gitlab/pkg-descr
@@ -0,0 +1,13 @@
+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.