pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/ruby-anonymous_loader



Module Name:    pkgsrc
Committed By:   taca
Date:           Sat Jul 18 14:58:27 UTC 2026

Added Files:
        pkgsrc/devel/ruby-anonymous_loader: DESCR Makefile PLIST distinfo

Log Message:
devel/anonymous_loader: add version 0.1.3

This package is required by ruby-oauth-tty 1.0.13.

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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/ruby-anonymous_loader/DESCR \
    pkgsrc/devel/ruby-anonymous_loader/Makefile \
    pkgsrc/devel/ruby-anonymous_loader/PLIST \
    pkgsrc/devel/ruby-anonymous_loader/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/ruby-anonymous_loader/DESCR
diff -u /dev/null pkgsrc/devel/ruby-anonymous_loader/DESCR:1.1
--- /dev/null   Sat Jul 18 14:58:27 2026
+++ pkgsrc/devel/ruby-anonymous_loader/DESCR    Sat Jul 18 14:58:27 2026
@@ -0,0 +1,15 @@
+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.
Index: pkgsrc/devel/ruby-anonymous_loader/Makefile
diff -u /dev/null pkgsrc/devel/ruby-anonymous_loader/Makefile:1.1
--- /dev/null   Sat Jul 18 14:58:27 2026
+++ pkgsrc/devel/ruby-anonymous_loader/Makefile Sat Jul 18 14:58:27 2026
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2026/07/18 14:58:27 taca Exp $
+
+DISTNAME=      anonymous_loader-0.1.3
+CATEGORIES=    devel
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/ruby-oauth/anonymous_loader
+COMMENT=       Load Ruby source files inside anonymous namespaces
+LICENSE=       mit
+
+DEPENDS+=      ${RUBY_PKGPREFIX}-version_gem>=1.1.14<2:../../devel/ruby-version_gem
+
+USE_LANGUAGES= # none
+
+.include "../../lang/ruby/gem.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/ruby-anonymous_loader/PLIST
diff -u /dev/null pkgsrc/devel/ruby-anonymous_loader/PLIST:1.1
--- /dev/null   Sat Jul 18 14:58:27 2026
+++ pkgsrc/devel/ruby-anonymous_loader/PLIST    Sat Jul 18 14:58:27 2026
@@ -0,0 +1,18 @@
+@comment $NetBSD: PLIST,v 1.1 2026/07/18 14:58:27 taca Exp $
+${GEM_HOME}/cache/${GEM_NAME}.gem
+${GEM_LIBDIR}/CHANGELOG.md
+${GEM_LIBDIR}/CITATION.cff
+${GEM_LIBDIR}/CODE_OF_CONDUCT.md
+${GEM_LIBDIR}/CONTRIBUTING.md
+${GEM_LIBDIR}/FUNDING.md
+${GEM_LIBDIR}/LICENSE.md
+${GEM_LIBDIR}/MIT.md
+${GEM_LIBDIR}/README.md
+${GEM_LIBDIR}/RUBOCOP.md
+${GEM_LIBDIR}/SECURITY.md
+${GEM_LIBDIR}/certs/pboling.pem
+${GEM_LIBDIR}/lib/anonymous_loader.rb
+${GEM_LIBDIR}/lib/anonymous_loader/version.rb
+${GEM_LIBDIR}/sig/anonymous_loader.rbs
+${GEM_LIBDIR}/sig/anonymous_loader/version.rbs
+${GEM_HOME}/specifications/${GEM_NAME}.gemspec
Index: pkgsrc/devel/ruby-anonymous_loader/distinfo
diff -u /dev/null pkgsrc/devel/ruby-anonymous_loader/distinfo:1.1
--- /dev/null   Sat Jul 18 14:58:27 2026
+++ pkgsrc/devel/ruby-anonymous_loader/distinfo Sat Jul 18 14:58:27 2026
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2026/07/18 14:58:27 taca Exp $
+
+BLAKE2s (anonymous_loader-0.1.3.gem) = 8433b717d20c969c88f14dda5c78e24fdd8405b1b421fe08dc1630dab20332f9
+SHA512 (anonymous_loader-0.1.3.gem) = bf239e6f3bd60d5473a110c7d6ad6712a1ea0ec5fdfe9c413df08c02ab55af9f37578c6045647d1690a5d905db9b2e5bb833181ba9835af10975900ddbc0d611
+Size (anonymous_loader-0.1.3.gem) = 35840 bytes



Home | Main Index | Thread Index | Old Index