Sat Feb 11 13:48:12 2023 UTC ()
devel/ruby-zeitwerk: update to 2.6.7
2.6.7 (2023-02-10)
* Reset module state on Zeitwerk::NameError.
If an autoload is triggered, the file is loaded successfully, but the
expected constant does not get defined, Ruby resets the state of the
module. In particular, autoload? returns nil for that constant name, and
constants does not include the constant name (starting with Ruby 3.1).
Zeitwerk is more strict, not defining the expected constant is an error
condition and the loader raises Zeitwerk::NameError. But this happens
during the require call and the exception prevents Ruby from doing that
cleanup.
With this change, the parent module is left in a state that makes more
sense and is consistent with what Ruby does.
* A message is logged if an autoload did not define the expected constant.
When that happens, Zeitwerk::NameError is raised and you normally see the
exception. But if the error is shallowed, and you are inspecting the logs
to investigate something, this new message may be helpful.
* By default, Zeitwerk::Loader#dirs filters ignored root directories
out. Please, pass ignored: true if you want them included.
It is very strange to configure a root directory and also ignore it, the
edge case is supported only for completeness. However, in that case,
client code listing root directories rarely needs the ignored ones.
* Documentation improvements.
* Enforcement of private interfaces continues with another gradual patch.
(taca)
diff -r1.9 -r1.10 pkgsrc/devel/ruby-zeitwerk/Makefile
diff -r1.11 -r1.12 pkgsrc/devel/ruby-zeitwerk/distinfo
--- pkgsrc/devel/ruby-zeitwerk/Makefile 2022/11/30 14:31:41 1.9
+++ pkgsrc/devel/ruby-zeitwerk/Makefile 2023/02/11 13:48:12 1.10
| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.9 2022/11/30 14:31:41 taca Exp $ | | 1 | # $NetBSD: Makefile,v 1.10 2023/02/11 13:48:12 taca Exp $ |
2 | | | 2 | |
3 | DISTNAME= zeitwerk-2.6.6 | | 3 | DISTNAME= zeitwerk-2.6.7 |
4 | CATEGORIES= devel | | 4 | CATEGORIES= devel |
5 | | | 5 | |
6 | MAINTAINER= pkgsrc-users@NetBSD.org | | 6 | MAINTAINER= pkgsrc-users@NetBSD.org |
7 | HOMEPAGE= https://github.com/fxn/zeitwerk | | 7 | HOMEPAGE= https://github.com/fxn/zeitwerk |
8 | COMMENT= Efficient and thread-safe constant autoloader | | 8 | COMMENT= Efficient and thread-safe constant autoloader |
9 | LICENSE= mit | | 9 | LICENSE= mit |
10 | | | 10 | |
11 | USE_LANGUAGES= # none | | 11 | USE_LANGUAGES= # none |
12 | | | 12 | |
13 | .include "../../lang/ruby/gem.mk" | | 13 | .include "../../lang/ruby/gem.mk" |
14 | .include "../../mk/bsd.pkg.mk" | | 14 | .include "../../mk/bsd.pkg.mk" |
--- pkgsrc/devel/ruby-zeitwerk/distinfo 2022/11/30 14:31:41 1.11
+++ pkgsrc/devel/ruby-zeitwerk/distinfo 2023/02/11 13:48:12 1.12
| @@ -1,5 +1,5 @@ | | | @@ -1,5 +1,5 @@ |
1 | $NetBSD: distinfo,v 1.11 2022/11/30 14:31:41 taca Exp $ | | 1 | $NetBSD: distinfo,v 1.12 2023/02/11 13:48:12 taca Exp $ |
2 | | | 2 | |
3 | BLAKE2s (zeitwerk-2.6.6.gem) = 7e00cfea30e805fceee2b03fd8a4425f76e3e5b8d17c6c520db189339caa83ee | | 3 | BLAKE2s (zeitwerk-2.6.7.gem) = 274828f584a9505012d509581132e4d2631829ba385aca1db119394c50993f5b |
4 | SHA512 (zeitwerk-2.6.6.gem) = 63dc0d8dec0cddaf278a7eb7d622a576832ab8cd9b8135df6aba1681af4b23f9bdfa47e20f3a0c53d5476e52b6344738cacafdd3562fa19eff07708742355312 | | 4 | SHA512 (zeitwerk-2.6.7.gem) = 58abf4296baab1c07c902cd612f92e8178a319cc6d69c854743e089b9444f8c2cdb5e7119d999a56bb95ccd128369cdbaf0125291ab10d9f61283389199f53d3 |
5 | Size (zeitwerk-2.6.6.gem) = 36352 bytes | | 5 | Size (zeitwerk-2.6.7.gem) = 36352 bytes |