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:           Sat Feb 11 13:48:12 UTC 2023

Modified Files:
        pkgsrc/devel/ruby-zeitwerk: Makefile distinfo

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 pkgsrc/devel/ruby-zeitwerk/Makefile
cvs rdiff -u -r1.11 -r1.12 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.9 pkgsrc/devel/ruby-zeitwerk/Makefile:1.10
--- pkgsrc/devel/ruby-zeitwerk/Makefile:1.9     Wed Nov 30 14:31:41 2022
+++ pkgsrc/devel/ruby-zeitwerk/Makefile Sat Feb 11 13:48:12 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.9 2022/11/30 14:31:41 taca Exp $
+# $NetBSD: Makefile,v 1.10 2023/02/11 13:48:12 taca Exp $
 
-DISTNAME=      zeitwerk-2.6.6
+DISTNAME=      zeitwerk-2.6.7
 CATEGORIES=    devel
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost

Index: pkgsrc/devel/ruby-zeitwerk/distinfo
diff -u pkgsrc/devel/ruby-zeitwerk/distinfo:1.11 pkgsrc/devel/ruby-zeitwerk/distinfo:1.12
--- pkgsrc/devel/ruby-zeitwerk/distinfo:1.11    Wed Nov 30 14:31:41 2022
+++ pkgsrc/devel/ruby-zeitwerk/distinfo Sat Feb 11 13:48:12 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.11 2022/11/30 14:31:41 taca Exp $
+$NetBSD: distinfo,v 1.12 2023/02/11 13:48:12 taca Exp $
 
-BLAKE2s (zeitwerk-2.6.6.gem) = 7e00cfea30e805fceee2b03fd8a4425f76e3e5b8d17c6c520db189339caa83ee
-SHA512 (zeitwerk-2.6.6.gem) = 63dc0d8dec0cddaf278a7eb7d622a576832ab8cd9b8135df6aba1681af4b23f9bdfa47e20f3a0c53d5476e52b6344738cacafdd3562fa19eff07708742355312
-Size (zeitwerk-2.6.6.gem) = 36352 bytes
+BLAKE2s (zeitwerk-2.6.7.gem) = 274828f584a9505012d509581132e4d2631829ba385aca1db119394c50993f5b
+SHA512 (zeitwerk-2.6.7.gem) = 58abf4296baab1c07c902cd612f92e8178a319cc6d69c854743e089b9444f8c2cdb5e7119d999a56bb95ccd128369cdbaf0125291ab10d9f61283389199f53d3
+Size (zeitwerk-2.6.7.gem) = 36352 bytes



Home | Main Index | Thread Index | Old Index