pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/ruby-zeitwerk devel/ruby-zeitwerk: update to 2.6.6



details:   https://anonhg.NetBSD.org/pkgsrc/rev/01dce75b335c
branches:  trunk
changeset: 389116:01dce75b335c
user:      taca <taca%pkgsrc.org@localhost>
date:      Wed Nov 30 14:31:41 2022 +0000

description:
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.

diffstat:

 devel/ruby-zeitwerk/Makefile |  4 ++--
 devel/ruby-zeitwerk/PLIST    |  4 +++-
 devel/ruby-zeitwerk/distinfo |  8 ++++----
 3 files changed, 9 insertions(+), 7 deletions(-)

diffs (47 lines):

diff -r 85c88b4f000f -r 01dce75b335c devel/ruby-zeitwerk/Makefile
--- a/devel/ruby-zeitwerk/Makefile      Wed Nov 30 14:27:13 2022 +0000
+++ b/devel/ruby-zeitwerk/Makefile      Wed Nov 30 14:31:41 2022 +0000
@@ -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
diff -r 85c88b4f000f -r 01dce75b335c devel/ruby-zeitwerk/PLIST
--- a/devel/ruby-zeitwerk/PLIST Wed Nov 30 14:27:13 2022 +0000
+++ b/devel/ruby-zeitwerk/PLIST Wed Nov 30 14:31:41 2022 +0000
@@ -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/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
diff -r 85c88b4f000f -r 01dce75b335c devel/ruby-zeitwerk/distinfo
--- a/devel/ruby-zeitwerk/distinfo      Wed Nov 30 14:27:13 2022 +0000
+++ b/devel/ruby-zeitwerk/distinfo      Wed Nov 30 14:31:41 2022 +0000
@@ -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