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:           Wed Nov 30 14:31:42 UTC 2022

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

Log Message:
devel/ruby-zeitwerk: update to 2.6.6

2.6.2 (2022-10-31)

* Zeitwerk::Loader#load_file allows you to load an individual Ruby file.
  Check its documentation for details.

* Zeitwerk::Loader#eager_load_dir allows you to eager load a directory,
  recursively.  Check its documentation for details.

* Zeitwerk::Loader#eager_load_namespace allows you to eager a namespace,
  recursively.  Namespaces are global, this method loads only what the
  receiver manages from that namespace, if anything.  Check its
  documentation for details.

* Zeitwerk::Loader.eager_load_namespace broadcasts eager_load_namespace to
  all registered loaders.  Check its documentation for details.

* Documents shadowed files.  They always existed, but were not covered by
  the documentation.

* Other assorted documentation improvements.

2.6.3 (2022-10-31)

* v2.6.2 introduced a regression in the logic that checks whether two
  loaders want to manage the same root directories.  It has been fixed.

2.6.4 (2022-11-01)

Ruby does not have gem-level visibility, so sometimes you need things to be
public for them to be accessible internally.  But they do not belong to the
public interface of the gem.

A method that is undocumented and marked as @private in the source code is
clearly private API, regardless of its formal Ruby visibility.

This release starts a series of gradual patches in which private interface
is enforced with stricter formal visibility.

2.6.5 (2022-11-06)

* Controlled errors in a couple of situations:

  o Attempting to eager load or reload without previously invoking setup now
    raises Zeitwerk::SetupRequired.

  o The method Zeitwerk::Loader#push_dir raises Zeitwerk::Error if it gets
    an anonymous custom namespace.

* These should be backwards compatible, because they raise in circumstances
  that didn't work anyway.  The goal here is to provide a meaningful error
  upfront.

* Enforcement of private interfaces continues with another gradual patch.

2.6.6 (2022-11-08)

* The new eager_load_namespace had a bug when eager loading certain
  namespaces with collapsed directories.  This has been fixed.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 pkgsrc/devel/ruby-zeitwerk/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/ruby-zeitwerk/PLIST
cvs rdiff -u -r1.10 -r1.11 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.8 pkgsrc/devel/ruby-zeitwerk/Makefile:1.9
--- pkgsrc/devel/ruby-zeitwerk/Makefile:1.8     Sun Oct  9 07:37:47 2022
+++ pkgsrc/devel/ruby-zeitwerk/Makefile Wed Nov 30 14:31:41 2022
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.8 2022/10/09 07:37:47 taca Exp $
+# $NetBSD: Makefile,v 1.9 2022/11/30 14:31:41 taca Exp $
 
-DISTNAME=      zeitwerk-2.6.1
+DISTNAME=      zeitwerk-2.6.6
 CATEGORIES=    devel
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost

Index: pkgsrc/devel/ruby-zeitwerk/PLIST
diff -u pkgsrc/devel/ruby-zeitwerk/PLIST:1.3 pkgsrc/devel/ruby-zeitwerk/PLIST:1.4
--- pkgsrc/devel/ruby-zeitwerk/PLIST:1.3        Fri Aug 26 14:55:20 2022
+++ pkgsrc/devel/ruby-zeitwerk/PLIST    Wed Nov 30 14:31:41 2022
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2022/08/26 14:55:20 taca Exp $
+@comment $NetBSD: PLIST,v 1.4 2022/11/30 14:31:41 taca Exp $
 ${GEM_HOME}/cache/${GEM_NAME}.gem
 ${GEM_LIBDIR}/MIT-LICENSE
 ${GEM_LIBDIR}/README.md
@@ -8,10 +8,12 @@ ${GEM_LIBDIR}/lib/zeitwerk/explicit_name
 ${GEM_LIBDIR}/lib/zeitwerk/gem_inflector.rb
 ${GEM_LIBDIR}/lib/zeitwerk/gem_loader.rb
 ${GEM_LIBDIR}/lib/zeitwerk/inflector.rb
+${GEM_LIBDIR}/lib/zeitwerk/internal.rb
 ${GEM_LIBDIR}/lib/zeitwerk/kernel.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/eager_load.rb
 ${GEM_LIBDIR}/lib/zeitwerk/loader/helpers.rb
 ${GEM_LIBDIR}/lib/zeitwerk/real_mod_name.rb
 ${GEM_LIBDIR}/lib/zeitwerk/registry.rb

Index: pkgsrc/devel/ruby-zeitwerk/distinfo
diff -u pkgsrc/devel/ruby-zeitwerk/distinfo:1.10 pkgsrc/devel/ruby-zeitwerk/distinfo:1.11
--- pkgsrc/devel/ruby-zeitwerk/distinfo:1.10    Sun Oct  9 07:37:47 2022
+++ pkgsrc/devel/ruby-zeitwerk/distinfo Wed Nov 30 14:31:41 2022
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.10 2022/10/09 07:37:47 taca Exp $
+$NetBSD: distinfo,v 1.11 2022/11/30 14:31:41 taca Exp $
 
-BLAKE2s (zeitwerk-2.6.1.gem) = c76d6bd2dc1d55691577c62ebd10725fb3286728d32cf50b00407d99b4a23def
-SHA512 (zeitwerk-2.6.1.gem) = 931877c9228c1e6731779be9a767e3d7b99636ba75d8264316db7cc8ed9805b81445cd8fd036edb3c1fcedc862b93adccc404f398155689122a26036bd591a1e
-Size (zeitwerk-2.6.1.gem) = 32256 bytes
+BLAKE2s (zeitwerk-2.6.6.gem) = 7e00cfea30e805fceee2b03fd8a4425f76e3e5b8d17c6c520db189339caa83ee
+SHA512 (zeitwerk-2.6.6.gem) = 63dc0d8dec0cddaf278a7eb7d622a576832ab8cd9b8135df6aba1681af4b23f9bdfa47e20f3a0c53d5476e52b6344738cacafdd3562fa19eff07708742355312
+Size (zeitwerk-2.6.6.gem) = 36352 bytes



Home | Main Index | Thread Index | Old Index