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.0
details: https://anonhg.NetBSD.org/pkgsrc/rev/a8e7c0c4ec49
branches: trunk
changeset: 384066:a8e7c0c4ec49
user: taca <taca%pkgsrc.org@localhost>
date: Fri Aug 26 14:55:20 2022 +0000
description:
devel/ruby-zeitwerk: update to 2.6.0
2.6.0 (13 June 2022)
* Directories are processed in lexicographic order.
Different file systems may list directories in different order, and with
this change we ensure that client code eager loads consistently across
platforms, for example.
* Before this release, subdirectories of root directories always represented
namespaces (unless ignored or collapsed). From now on, to be considered
namespaces they also have to contain at least one non-ignored Ruby file
with extension .rb, directly or recursively.
If you know beforehand a certain directory or directory pattern does not
represent a namespace, it is intentional and more efficient to tell
Zeitwerk to ignore it.
However, if you don't do so and have a directory tasks that only contains
Rake files, arguably that directory is not meant to represent a Ruby
module. Before, Zeitwerk would define a top-level Tasks module after it;
now, it does not.
This feature is also handy for projects that have directories with
auxiliary resources mixed in the project tree in a way that is too
dynamic for an ignore pattern to be practical. See #216.
In the unlikely case that an existing project has an empty directory for
the sole purpose of defining a totally empty module (no code, and no
nested classes or modules), such module has now to be defined in a file.
Directories are scanned again on reloads.
* On setup, loaders created with Zeitwerk::Loader.for_gem issue warnings if
lib has extra, non-ignored Ruby files or directories.
This is motivated by existing gems with directories under lib that are not
meant to define Ruby modules, like directories for Rails generators, for
instance.
This warning can be silenced in the unlikely case that the extra stuff is
actually autoloadable and has to be managed by Zeitwerk.
Please, check the documentation for further details.
This method returns an instance of a private subclass of Zeitwerk::Loader
now, but you cannot rely on the type, just on the interface.
diffstat:
devel/ruby-zeitwerk/Makefile | 4 ++--
devel/ruby-zeitwerk/PLIST | 3 ++-
devel/ruby-zeitwerk/distinfo | 8 ++++----
3 files changed, 8 insertions(+), 7 deletions(-)
diffs (42 lines):
diff -r 1b495888df74 -r a8e7c0c4ec49 devel/ruby-zeitwerk/Makefile
--- a/devel/ruby-zeitwerk/Makefile Fri Aug 26 14:48:47 2022 +0000
+++ b/devel/ruby-zeitwerk/Makefile Fri Aug 26 14:55:20 2022 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.6 2022/02/12 15:22:38 taca Exp $
+# $NetBSD: Makefile,v 1.7 2022/08/26 14:55:20 taca Exp $
-DISTNAME= zeitwerk-2.5.4
+DISTNAME= zeitwerk-2.6.0
CATEGORIES= devel
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
diff -r 1b495888df74 -r a8e7c0c4ec49 devel/ruby-zeitwerk/PLIST
--- a/devel/ruby-zeitwerk/PLIST Fri Aug 26 14:48:47 2022 +0000
+++ b/devel/ruby-zeitwerk/PLIST Fri Aug 26 14:55:20 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2021/11/09 14:46:28 taca Exp $
+@comment $NetBSD: PLIST,v 1.3 2022/08/26 14:55:20 taca Exp $
${GEM_HOME}/cache/${GEM_NAME}.gem
${GEM_LIBDIR}/MIT-LICENSE
${GEM_LIBDIR}/README.md
@@ -6,6 +6,7 @@
${GEM_LIBDIR}/lib/zeitwerk/error.rb
${GEM_LIBDIR}/lib/zeitwerk/explicit_namespace.rb
${GEM_LIBDIR}/lib/zeitwerk/gem_inflector.rb
+${GEM_LIBDIR}/lib/zeitwerk/gem_loader.rb
${GEM_LIBDIR}/lib/zeitwerk/inflector.rb
${GEM_LIBDIR}/lib/zeitwerk/kernel.rb
${GEM_LIBDIR}/lib/zeitwerk/loader.rb
diff -r 1b495888df74 -r a8e7c0c4ec49 devel/ruby-zeitwerk/distinfo
--- a/devel/ruby-zeitwerk/distinfo Fri Aug 26 14:48:47 2022 +0000
+++ b/devel/ruby-zeitwerk/distinfo Fri Aug 26 14:55:20 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.8 2022/02/12 15:22:38 taca Exp $
+$NetBSD: distinfo,v 1.9 2022/08/26 14:55:20 taca Exp $
-BLAKE2s (zeitwerk-2.5.4.gem) = b313ff623e9c4f06a4eeeae0007d7a3a9699da004def183fe47b3576d0ce65dd
-SHA512 (zeitwerk-2.5.4.gem) = 2481811e3754c2901b2c621de0d329580e32ca8f3e476a30419a747041b7d951ed64ee8953785b107655ecbbe44ab01fcf69d76132439105ace97ebfd9f492e8
-Size (zeitwerk-2.5.4.gem) = 30720 bytes
+BLAKE2s (zeitwerk-2.6.0.gem) = b0977498be96bc4d062185919093104ce7b2258e7938539f41fffba896119672
+SHA512 (zeitwerk-2.6.0.gem) = c39679347dc2c57ab1afa9136b872ab70f925e0b2b80bfbdb2b8a3b2b818c70c8214ee1c7ad8d7a2bc4f3f3a4ed7747a7a6ae8786db571e6ff4ef867fb9917c4
+Size (zeitwerk-2.6.0.gem) = 32256 bytes
Home |
Main Index |
Thread Index |
Old Index