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: Fri Aug 26 14:55:20 UTC 2022
Modified Files:
pkgsrc/devel/ruby-zeitwerk: Makefile PLIST distinfo
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/ruby-zeitwerk/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/ruby-zeitwerk/PLIST
cvs rdiff -u -r1.8 -r1.9 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.6 pkgsrc/devel/ruby-zeitwerk/Makefile:1.7
--- pkgsrc/devel/ruby-zeitwerk/Makefile:1.6 Sat Feb 12 15:22:38 2022
+++ pkgsrc/devel/ruby-zeitwerk/Makefile Fri Aug 26 14:55:20 2022
@@ -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
Index: pkgsrc/devel/ruby-zeitwerk/PLIST
diff -u pkgsrc/devel/ruby-zeitwerk/PLIST:1.2 pkgsrc/devel/ruby-zeitwerk/PLIST:1.3
--- pkgsrc/devel/ruby-zeitwerk/PLIST:1.2 Tue Nov 9 14:46:28 2021
+++ pkgsrc/devel/ruby-zeitwerk/PLIST Fri Aug 26 14:55:20 2022
@@ -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.rb
${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
Index: pkgsrc/devel/ruby-zeitwerk/distinfo
diff -u pkgsrc/devel/ruby-zeitwerk/distinfo:1.8 pkgsrc/devel/ruby-zeitwerk/distinfo:1.9
--- pkgsrc/devel/ruby-zeitwerk/distinfo:1.8 Sat Feb 12 15:22:38 2022
+++ pkgsrc/devel/ruby-zeitwerk/distinfo Fri Aug 26 14:55:20 2022
@@ -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