pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/ruby-zeitwerk
Module Name: pkgsrc
Committed By: taca
Date: Sun May 31 05:48:37 UTC 2026
Modified Files:
pkgsrc/devel/ruby-zeitwerk: Makefile PLIST distinfo
Log Message:
devel/ruby-zeitwerk: update to 2.8.2
2.8.0 (2026-05-18)
* Adds support for namespace files, nsfiles for short.
If a loader has an nsfile configured (nil by default):
loader.nsfile = 'ns.rb' # must be set before setup
explicit namespaces can be defined by such special file inside their
directories:
my_component/ns.rb # MyComponent
my_component/widget.rb # MyComponent::Widget
This may be handy for self-contained units for which a my_component.rb
file in the parent directory would feel unnatural.
If an nsfile is set, you can still define explicit namespaces as always.
Both styles can coexist in the project. However, it is an error condition
to try to define the same namespace using both conventions.
For further details, please check the documentation for nsfiles.
* When a file is shadowed because the constant path it maps to already
exists, the location of said constant is included in the log message.
2.8.1 (2026-05-19)
* Replace anonymous block parameters with regular named ones.
Ruby 3.3.0 has a bug: it does not parse anonymous block parameters, which
were introduced in Ruby 3.1.
While this is a Ruby bug and people could upgrade to 3.3.1, I prefer users
just do not hit this. At the end of the day, it is cosmetic.
2.8.2 (2026-05-23)
* on_load and on_unload accept constant paths with leading colons. For example:
loader.on_load('::User') { ... }
* on_load and on_unload validate that their input is a constant path. For
example:
loader.on_load(':User') { ... }
raises NameError.
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 pkgsrc/devel/ruby-zeitwerk/Makefile
cvs rdiff -u -r1.8 -r1.9 pkgsrc/devel/ruby-zeitwerk/PLIST
cvs rdiff -u -r1.23 -r1.24 pkgsrc/devel/ruby-zeitwerk/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/ruby-zeitwerk/Makefile
diff -u pkgsrc/devel/ruby-zeitwerk/Makefile:1.21 pkgsrc/devel/ruby-zeitwerk/Makefile:1.22
--- pkgsrc/devel/ruby-zeitwerk/Makefile:1.21 Mon Feb 23 15:28:20 2026
+++ pkgsrc/devel/ruby-zeitwerk/Makefile Sun May 31 05:48:37 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.21 2026/02/23 15:28:20 taca Exp $
+# $NetBSD: Makefile,v 1.22 2026/05/31 05:48:37 taca Exp $
-DISTNAME= zeitwerk-2.7.5
+DISTNAME= zeitwerk-2.8.2
CATEGORIES= devel
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
Index: pkgsrc/devel/ruby-zeitwerk/PLIST
diff -u pkgsrc/devel/ruby-zeitwerk/PLIST:1.8 pkgsrc/devel/ruby-zeitwerk/PLIST:1.9
--- pkgsrc/devel/ruby-zeitwerk/PLIST:1.8 Mon Feb 23 15:28:20 2026
+++ pkgsrc/devel/ruby-zeitwerk/PLIST Sun May 31 05:48:37 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.8 2026/02/23 15:28:20 taca Exp $
+@comment $NetBSD: PLIST,v 1.9 2026/05/31 05:48:37 taca Exp $
${GEM_HOME}/cache/${GEM_NAME}.gem
${GEM_LIBDIR}/MIT-LICENSE
${GEM_LIBDIR}/README.md
@@ -15,6 +15,7 @@ ${GEM_LIBDIR}/lib/zeitwerk/internal.rb
${GEM_LIBDIR}/lib/zeitwerk/loader.rb
${GEM_LIBDIR}/lib/zeitwerk/loader/callbacks.rb
${GEM_LIBDIR}/lib/zeitwerk/loader/config.rb
+${GEM_LIBDIR}/lib/zeitwerk/loader/constant_path_validator.rb
${GEM_LIBDIR}/lib/zeitwerk/loader/eager_load.rb
${GEM_LIBDIR}/lib/zeitwerk/loader/file_system.rb
${GEM_LIBDIR}/lib/zeitwerk/loader/helpers.rb
Index: pkgsrc/devel/ruby-zeitwerk/distinfo
diff -u pkgsrc/devel/ruby-zeitwerk/distinfo:1.23 pkgsrc/devel/ruby-zeitwerk/distinfo:1.24
--- pkgsrc/devel/ruby-zeitwerk/distinfo:1.23 Mon Feb 23 15:28:20 2026
+++ pkgsrc/devel/ruby-zeitwerk/distinfo Sun May 31 05:48:37 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.23 2026/02/23 15:28:20 taca Exp $
+$NetBSD: distinfo,v 1.24 2026/05/31 05:48:37 taca Exp $
-BLAKE2s (zeitwerk-2.7.5.gem) = 10ef483ba8eefb829104d28db8b69427d9d76dfca42463605c1abc17ea38dac4
-SHA512 (zeitwerk-2.7.5.gem) = a2b9a720a890a25f1de9c40e90e08be1ac270541e8f5d67e3ada552baf04156c97cbcf12618840b01342b59907b5e8847c3035fb92373010d24fdbe14232bccc
-Size (zeitwerk-2.7.5.gem) = 41472 bytes
+BLAKE2s (zeitwerk-2.8.2.gem) = 2ea9835a8a0107212bd0170517b7e56083058e61e6d3b8c46e7eb6a26aa62108
+SHA512 (zeitwerk-2.8.2.gem) = d349ad39cc89453596b6c6a75d62a61855d17e8193c3d9301962538515628c29eead68e2e8b95e93b0f03f3f5c902591bda5578f292ec731df6f3cfbcfa93ca2
+Size (zeitwerk-2.8.2.gem) = 44032 bytes
Home |
Main Index |
Thread Index |
Old Index