head 1.23; access; symbols pkgsrc-2026Q1:1.23.0.2 pkgsrc-2026Q1-base:1.23 pkgsrc-2025Q4:1.21.0.6 pkgsrc-2025Q4-base:1.21 pkgsrc-2025Q3:1.21.0.4 pkgsrc-2025Q3-base:1.21 pkgsrc-2025Q2:1.21.0.2 pkgsrc-2025Q2-base:1.21 pkgsrc-2025Q1:1.20.0.6 pkgsrc-2025Q1-base:1.20 pkgsrc-2024Q4:1.20.0.4 pkgsrc-2024Q4-base:1.20 pkgsrc-2024Q3:1.20.0.2 pkgsrc-2024Q3-base:1.20 pkgsrc-2024Q2:1.19.0.2 pkgsrc-2024Q2-base:1.19 pkgsrc-2024Q1:1.17.0.2 pkgsrc-2024Q1-base:1.17 pkgsrc-2023Q4:1.16.0.2 pkgsrc-2023Q4-base:1.16 pkgsrc-2023Q3:1.15.0.2 pkgsrc-2023Q3-base:1.15 pkgsrc-2023Q2:1.13.0.2 pkgsrc-2023Q2-base:1.13 pkgsrc-2023Q1:1.12.0.2 pkgsrc-2023Q1-base:1.12 pkgsrc-2022Q4:1.11.0.2 pkgsrc-2022Q4-base:1.11 pkgsrc-2022Q3:1.9.0.2 pkgsrc-2022Q3-base:1.9 pkgsrc-2022Q2:1.8.0.4 pkgsrc-2022Q2-base:1.8 pkgsrc-2022Q1:1.8.0.2 pkgsrc-2022Q1-base:1.8 pkgsrc-2021Q4:1.7.0.2 pkgsrc-2021Q4-base:1.7 pkgsrc-2021Q3:1.4.0.6 pkgsrc-2021Q3-base:1.4 pkgsrc-2021Q2:1.4.0.4 pkgsrc-2021Q2-base:1.4 pkgsrc-2021Q1:1.4.0.2 pkgsrc-2021Q1-base:1.4 pkgsrc-2020Q4:1.3.0.4 pkgsrc-2020Q4-base:1.3 pkgsrc-2020Q3:1.3.0.2 pkgsrc-2020Q3-base:1.3 pkgsrc-2020Q2:1.2.0.4 pkgsrc-2020Q2-base:1.2 pkgsrc-2020Q1:1.2.0.2 pkgsrc-2020Q1-base:1.2; locks; strict; comment @# @; 1.23 date 2026.02.23.15.28.20; author taca; state Exp; branches; next 1.22; commitid MMUWidEjoGG3YvvG; 1.22 date 2026.01.17.17.01.08; author taca; state Exp; branches; next 1.21; commitid c5hooiaFwRhDFLqG; 1.21 date 2025.05.29.14.55.16; author taca; state Exp; branches; next 1.20; commitid DF9JhmjuQT3NsOWF; 1.20 date 2024.09.18.15.29.31; author taca; state Exp; branches; next 1.19; commitid P8Wzuxss1KgKMiqF; 1.19 date 2024.06.15.15.52.04; author taca; state Exp; branches; next 1.18; commitid q88KXswJtviNX5eF; 1.18 date 2024.05.26.15.29.50; author taca; state Exp; branches; next 1.17; commitid ODvydpn8cxQ0uwbF; 1.17 date 2024.02.06.15.05.38; author taca; state Exp; branches; next 1.16; commitid Ck9UGb8X0TLVSnXE; 1.16 date 2023.11.11.12.34.05; author taca; state Exp; branches; next 1.15; commitid 45Kyz1U4dMElQbME; 1.15 date 2023.08.05.08.57.31; author taca; state Exp; branches; next 1.14; commitid HjXjfcjMfoYlNzzE; 1.14 date 2023.07.30.04.09.01; author taca; state Exp; branches; next 1.13; commitid R4oZRdjzUg2loMyE; 1.13 date 2023.04.29.13.41.52; author taca; state Exp; branches; next 1.12; commitid cedBfAYQZE9dw0nE; 1.12 date 2023.02.11.13.48.12; author taca; state Exp; branches; next 1.11; commitid 8cewa4XoUYeQ17dE; 1.11 date 2022.11.30.14.31.41; author taca; state Exp; branches; next 1.10; commitid uV5qRub6yCteCJ3E; 1.10 date 2022.10.09.07.37.47; author taca; state Exp; branches; next 1.9; commitid 1w7hXpxuWGzSZ0XD; 1.9 date 2022.08.26.14.55.20; author taca; state Exp; branches; next 1.8; commitid KOayB9dJgdFEPoRD; 1.8 date 2022.02.12.15.22.38; author taca; state Exp; branches; next 1.7; commitid cZcMFtfYFM7EflsD; 1.7 date 2021.11.09.14.46.28; author taca; state Exp; branches; next 1.6; commitid bNP0OvjpEpuv68gD; 1.6 date 2021.10.26.10.19.53; author nia; state Exp; branches; next 1.5; commitid XMBRkrafc79x2jeD; 1.5 date 2021.10.07.13.44.28; author nia; state Exp; branches; next 1.4; commitid TK9Y8OXA04EYMSbD; 1.4 date 2021.01.11.13.33.22; author taca; state Exp; branches; next 1.3; commitid Om1wHEec1FokpjDC; 1.3 date 2020.09.14.13.12.27; author taca; state Exp; branches; next 1.2; commitid 3rXf1NvRyhlj71oC; 1.2 date 2020.03.23.16.06.45; author taca; state Exp; branches; next 1.1; commitid qtqRbNdpVVPKHx1C; 1.1 date 2020.01.19.15.04.46; author taca; state Exp; branches; next ; commitid PcKigSpMiVv2qjTB; desc @@ 1.23 log @devel/ruby-zeitwerk: update to 2.7.5 2.7.5 (2025-02-19) * If available, tree traversal is based on Dir.scan, which saves syscalls in common platforms. This method is a recent addition to Ruby contributed by @@byroot, so you need to be on Ruby master to leverage this for now. * Tree traversal is a tad more performant, regardless of the previous point. Gains are marginal when eager loading, because it is dominated by loading the code, but Zeitwerk::Loader#all_expected_cpaths was 14% faster in some benchmarks, for example. * README.md documents how to collect autoloaded constants using an on_load callback. * Internal maintenance. @ text @$NetBSD: distinfo,v 1.22 2026/01/17 17:01:08 taca Exp $ BLAKE2s (zeitwerk-2.7.5.gem) = 10ef483ba8eefb829104d28db8b69427d9d76dfca42463605c1abc17ea38dac4 SHA512 (zeitwerk-2.7.5.gem) = a2b9a720a890a25f1de9c40e90e08be1ac270541e8f5d67e3ada552baf04156c97cbcf12618840b01342b59907b5e8847c3035fb92373010d24fdbe14232bccc Size (zeitwerk-2.7.5.gem) = 41472 bytes @ 1.22 log @devel/ruby-zeitwerk: update to 2.7.4 2.7.4 (16 Dec 2025) * Loaders have to manage disjoint source trees. Therefore, when a root directory is configured Zeitwerk ensures it is not already managed by some other loader. The performance of this validation has been improved. * Thanks to @@ngan for sharing some benchmarks that led to revise this logic. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.21 2025/05/29 14:55:16 taca Exp $ d3 3 a5 3 BLAKE2s (zeitwerk-2.7.4.gem) = 54df8d93ff592095d3bb02948346b57b30958ca3b616687605c7171aaeda9e42 SHA512 (zeitwerk-2.7.4.gem) = d08fc95c07c1b83330e09babc879371037222b100d17de46aecef8e7dd1cdd797797217a719f5c8866e2aa45ff2bdd1f25e7a721c22991b775c7660cbf041af6 Size (zeitwerk-2.7.4.gem) = 40960 bytes @ 1.21 log @devel/ruby-zeitwerk: update to 2.7.3 2.7.0 (2024-10-11) * Explicit namespaces can now also be defined using constant assignments. While constant assignments like # coordinates.rb Coordinates = Data.define(:x, :y) worked for most objects, they did not for classes and modules that were also namespaces (i.e., those defined by a file and matching subdirectories). In such cases, their child constants could not be autoloaded. This limitation has been removed. * TracePoint is no longer used. * Requires Ruby 3.2 or later. Gems that work with previous versions of Zeitwerk also work with this one. If they support Ruby versions older than 3.2 they can specify a relaxed version constraint for Zeitwerk like "~> 2.6", for example. In client projects, Bundler takes the Ruby requirement into account when resolving dependencies, so Gemfile.lock will get one compatible with the Ruby version being used. 2.7.1 (2024-10-19) * Micro-optimization in a hot path. * Raises Zeitwerk::Error if an autoloaded constant expected to represent a namespace does not store a class or module object. * Adds truffleruby-head to CI, except for autoloading thread-safety (see why in oracle/truffleruby#2431). 2.7.2 (2025-02-18) * Internal improvements and micro-optimizations. * Add stable TruffleRuby to CI. 2.7.3 (2025-05-20) * The helper Zeitwerk::Loader#cpath_expected_at did not work correctly if the inflector had logic that relied on the absolute path of the given file or directory. This has been fixed. * This bug was found by Codex. * Perpetual internal work. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.20 2024/09/18 15:29:31 taca Exp $ d3 3 a5 3 BLAKE2s (zeitwerk-2.7.3.gem) = d7f332be2ed386bf68dfc04ee53da17a1f9fbf426841cba7fd8370f5822981d8 SHA512 (zeitwerk-2.7.3.gem) = 3b5412ea49b44796546a021df9513499580100ad1d95664ca6f917e5897606a9ecb291b98d3fcbaafa84251000edd1f24cb3474fbc648b9c2d53a145a2832255 Size (zeitwerk-2.7.3.gem) = 40448 bytes @ 1.20 log @devel/ruby-zeitwerk: update to 2.6.18 2.6.17 (2024-07-29) * Fix log message when eager loading a directory ends. 2.6.18 (2024-09-02) * Fixes a bug in which projects reopening the main namespace of a gem dependency managed by its own Zeitwerk loader could not reload the constants they added to that external namespace. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.19 2024/06/15 15:52:04 taca Exp $ d3 3 a5 3 BLAKE2s (zeitwerk-2.6.18.gem) = f7aa43d1b4b0133a552d2b6f1d583ab5e68888e02e8984c84414ccb026013869 SHA512 (zeitwerk-2.6.18.gem) = 033babd1af0c2f58950251398ba3d73b2d71ec1987e5d28cc76263d9a08ba60550ae74bf6620e5948427e842c65dcdec9c848f833993198c3e52b83673545811 Size (zeitwerk-2.6.18.gem) = 40448 bytes @ 1.19 log @devel/ruby-zeitwerk: update to 2.6.16 2.6.16 (2024-06-15) * Logging prints a message when a directory that was not ignored is skipped anyway because it contains no Ruby files. * Internal refactors. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.18 2024/05/26 15:29:50 taca Exp $ d3 3 a5 3 BLAKE2s (zeitwerk-2.6.16.gem) = 41dfcf7068c33f945073d4f34badc115df0c9ada8232eda72d485ecaa973455c SHA512 (zeitwerk-2.6.16.gem) = e530ff2f97b648ea73735f54e475beb22c4ec0d989e0b17c9d07167fb14458c7a778a6a7de3e4a20f55e81097b65a1f6c5c9f4d5281b2bd32aa496416ce90000 Size (zeitwerk-2.6.16.gem) = 39936 bytes @ 1.18 log @devel/ruby-zeitwerk: update to 2.6.15 2.6.14 (2024-05-14) * Implements Zeitwerk::Loader#all_expected_cpaths, which returns a hash that maps the absolute paths of the files and directories managed by the receiver to their expected constant paths. * Please, check its documentation for further details. 2.6.15 (2024-05-26) * Internal improvements. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.17 2024/02/06 15:05:38 taca Exp $ d3 3 a5 3 BLAKE2s (zeitwerk-2.6.15.gem) = fb798a696fa0fab035093598e3df071f30e06e16a06d78b802e1989dd1a38d75 SHA512 (zeitwerk-2.6.15.gem) = 54100a26e368c710350b1f5a9521cb5f4a2593d631d72c2659d4d35764e139f51a5db15613d2c0593b0878d7d7252662bcdf50d12b3d09ad00faa6480523b287 Size (zeitwerk-2.6.15.gem) = 39936 bytes @ 1.17 log @devel/ruby-zeitwerk: update to 2.6.13 2.6.13 (2024-02-06) * There is a new experimental null inflector that simply returns its input unchanged: loader.inflector = Zeitwerk::NullInflector.new Projects using this inflector are expected to define their constants in files and directories with names exactly matching them: User.rb -> User HTMLParser.rb -> HTMLParser Admin/Role.rb -> Admin::Role Please see its documentation for further details. * Documentation improvements. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.16 2023/11/11 12:34:05 taca Exp $ d3 3 a5 3 BLAKE2s (zeitwerk-2.6.13.gem) = ddc3802e3940b2cbccb6bbd6a923314817a50e3de40b5bd3360469f5f5fa0ea2 SHA512 (zeitwerk-2.6.13.gem) = 57f3b1dfe5cc0f7773fa95c6694ab42cb7ccc5c38eb051b77bdac02c7dd160bfe6d4af0f2f14acb2cf1f98af8ef34171b8fb9df3cfc5198ad3f0af656fb4df84 Size (zeitwerk-2.6.13.gem) = 38912 bytes @ 1.16 log @devel/ruby-zeitwerk: update to 2.6.12 2.6.12 (2023-09-25) * Maintenance release with some internal polishing. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.15 2023/08/05 08:57:31 taca Exp $ d3 3 a5 3 BLAKE2s (zeitwerk-2.6.12.gem) = 9e83ebc0efbe573fc589825c3139373f5bd69507d644055c52f3226bd88f34f9 SHA512 (zeitwerk-2.6.12.gem) = 88863ba04d57036d00b31ddea29d577ee74b2e9fbac5495ce862f5318ea65fb730e97f20f0f28ea090f9959826a4a246879c6b3aa8a50ffed468271cf67717ca Size (zeitwerk-2.6.12.gem) = 38400 bytes @ 1.15 log @devel/ruby-zeitwerk: update to 2.6.11 2.6.10 (2023-07-30) * Improve validation of the values returned by the inflector's camelize. 2.6.11 (2023-08-02) * Let on_load callbacks for implicit namespaces autoload other implicit namespaces. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.14 2023/07/30 04:09:01 taca Exp $ d3 3 a5 3 BLAKE2s (zeitwerk-2.6.11.gem) = eac037959c4fca6be600679aca8746b030df0df9663a26550355f961601baf9e SHA512 (zeitwerk-2.6.11.gem) = 328d096eb608e0f2a05a260c905e003ea482837f8b4d616bed40d4743280cef585ab5fa8daffd0db7412cec77648fa41e0d97c8c0f0b30d551c6ffb7fbdb6ad5 Size (zeitwerk-2.6.11.gem) = 38400 bytes @ 1.14 log @devel/ruby-zeitwerk: update to 2.6.9 2.6.9 (2023-07-25) * Given a path as a string or Pathname object, Zeitwerk::Loader#cpath_expected_at returns a string with the corresponding expected constant path. Some examples, assuming that app/models is a root directory: loader.cpath_expected_at("app/models") # => "Object" loader.cpath_expected_at("app/models/user.rb") # => "User" loader.cpath_expected_at("app/models/hotel") # => "Hotel" loader.cpath_expected_at("app/models/hotel/billing.rb") # => "Hotel::Billing" This method returns nil for some input like ignored files, and may raise errors too. Please check its documentation for further details. * Zeitwerk::Loader#load_file raises with a more informative error if given a hidden file or directory. * Zeitwerk::Loader#eager_load_dir does nothing if the argument is a hidden file or directory. This is coherent with its existing behavior for eager load exclusions and ignored paths. Before, that kind of argument would result in a non-deliberate NameError. * Documentation improvements. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.13 2023/04/29 13:41:52 taca Exp $ d3 3 a5 3 BLAKE2s (zeitwerk-2.6.9.gem) = 51205d7b4ce4530322f527be4b5db8333c6db10309d45546d51f4ff455aae7f1 SHA512 (zeitwerk-2.6.9.gem) = a860a4970f5a70a501858705947dafd36e59b7caefad662937e069ec9c58902f0d94b88c6d1249662dc6f23c61463db8e3c65b42d064b9295afc838fa96cce98 Size (zeitwerk-2.6.9.gem) = 38400 bytes @ 1.13 log @devel/ruby-zeitwerk: update to 2.6.8 2.6.8 (2023-04-28) * The new Zeitwerk::Loader.for_gem_extension gives you a loader configured according to the conventions of a gem extension. * Please check its documentation for further details. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.12 2023/02/11 13:48:12 taca Exp $ d3 3 a5 3 BLAKE2s (zeitwerk-2.6.8.gem) = d0405d721d93db587786d88e520afc9e61944b371f44017a42cd901254f91a0d SHA512 (zeitwerk-2.6.8.gem) = 937f972b2581685aa4fbe1e5fcccfa91230cfcae84553bedb4f2278483b392133bdb6593681c247086a3da6720e4d0d9c5e291f9afaeb6c0e63871422d3898b7 Size (zeitwerk-2.6.8.gem) = 37376 bytes @ 1.12 log @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. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.11 2022/11/30 14:31:41 taca Exp $ d3 3 a5 3 BLAKE2s (zeitwerk-2.6.7.gem) = 274828f584a9505012d509581132e4d2631829ba385aca1db119394c50993f5b SHA512 (zeitwerk-2.6.7.gem) = 58abf4296baab1c07c902cd612f92e8178a319cc6d69c854743e089b9444f8c2cdb5e7119d999a56bb95ccd128369cdbaf0125291ab10d9f61283389199f53d3 Size (zeitwerk-2.6.7.gem) = 36352 bytes @ 1.11 log @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. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.10 2022/10/09 07:37:47 taca Exp $ d3 3 a5 3 BLAKE2s (zeitwerk-2.6.6.gem) = 7e00cfea30e805fceee2b03fd8a4425f76e3e5b8d17c6c520db189339caa83ee SHA512 (zeitwerk-2.6.6.gem) = 63dc0d8dec0cddaf278a7eb7d622a576832ab8cd9b8135df6aba1681af4b23f9bdfa47e20f3a0c53d5476e52b6344738cacafdd3562fa19eff07708742355312 Size (zeitwerk-2.6.6.gem) = 36352 bytes @ 1.10 log @devel/ruby-zeitwerk: update to 2.6.1 2.6.1 (2022-10-01) * Zeitwerk::Loader#dirs allows you to instrospect the root directories configured in the receiver. Please check its documentation for details. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.9 2022/08/26 14:55:20 taca Exp $ d3 3 a5 3 BLAKE2s (zeitwerk-2.6.1.gem) = c76d6bd2dc1d55691577c62ebd10725fb3286728d32cf50b00407d99b4a23def SHA512 (zeitwerk-2.6.1.gem) = 931877c9228c1e6731779be9a767e3d7b99636ba75d8264316db7cc8ed9805b81445cd8fd036edb3c1fcedc862b93adccc404f398155689122a26036bd591a1e Size (zeitwerk-2.6.1.gem) = 32256 bytes @ 1.9 log @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. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.8 2022/02/12 15:22:38 taca Exp $ d3 3 a5 3 BLAKE2s (zeitwerk-2.6.0.gem) = b0977498be96bc4d062185919093104ce7b2258e7938539f41fffba896119672 SHA512 (zeitwerk-2.6.0.gem) = c39679347dc2c57ab1afa9136b872ab70f925e0b2b80bfbdb2b8a3b2b818c70c8214ee1c7ad8d7a2bc4f3f3a4ed7747a7a6ae8786db571e6ff4ef867fb9917c4 Size (zeitwerk-2.6.0.gem) = 32256 bytes @ 1.8 log @devel/ruby-zeitwerk: update to 2.5.4 2.5.4 (2022-01-28) * If a file did not define the expected constant, there was a reload, and there were on_unload callbacks, Zeitwerk still tried to access the constant during reload, which raised. This has been corrected. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.7 2021/11/09 14:46:28 taca Exp $ d3 3 a5 3 BLAKE2s (zeitwerk-2.5.4.gem) = b313ff623e9c4f06a4eeeae0007d7a3a9699da004def183fe47b3576d0ce65dd SHA512 (zeitwerk-2.5.4.gem) = 2481811e3754c2901b2c621de0d329580e32ca8f3e476a30419a747041b7d951ed64ee8953785b107655ecbbe44ab01fcf69d76132439105ace97ebfd9f492e8 Size (zeitwerk-2.5.4.gem) = 30720 bytes @ 1.7 log @devel/ruby-zeitwerk: update to 2.5.1 2.5.1 (20 October 2021) * Restores support for namespaces that are not hashable. For example namespaces that override the hash method with a different arity as shown in #188. 2.5.0 (20 October 2021) Breaking changes * Requires Ruby 2.5. * Deletes the long time deprecated preload API. Instead of: loader.preload("app/models/user.rb") just reference the constant on setup: loader.on_setup { User } If you want to eager load a namespace, use the constants API: loader.on_setup do Admin.constants(false).each { |cname| Admin.const_get(cname) } end Bug fixes * Fixes a bug in which a certain valid combination of overlapping trees managed by different loaders and ignored directories was mistakenly reported as having conflicting directories. * Detects external namespaces defined with Module#autoload. If your project reopens a 3rd party namespace, Zeitwerk already detected it and did not consider the namespace to be managed by the loader (automatically descends, ignored for reloads, etc.). However, the loader did not do that if the namespace had only an autoload in the 3rd party code yet to be executed. Now it does. Callbacks * Implements Zeitwerk::Loader#on_setup, which allows you to configure blocks of code to be executed on setup and on each reload. When the callback is fired, the loader is ready, you can refer to project constants in the block. See the documentation for further details. * There is a new catch-all Zeitwerk::Loader#on_load that takes no argument and is triggered for all loaded objects: loader.on_load do |cpath, value, abspath| # ... end Please, remember that if you want to trace the activity of a loader, Zeitwerk::Loader#log! logs plenty of information. See the documentation for further details. * The block of the existing Zeitwerk::Loader#on_load receives also the value stored in the constant, and the absolute path to its corresponding file or directory: loader.on_load("Service::NotificationsGateway") do |klass, abspath| # ... end Remember that blocks can be defined to take less arguments than passed. So this change is backwards compatible. If you had loader.on_load("Service::NotificationsGateway") do Service::NotificationsGateway.endpoint = ... end That works. * Implements Zeitwerk::Loader#on_unload, which allows you to configure blocks of code to be executed before a certain class or module gets unloaded: loader.on_unload("Country") do |klass, _abspath| klass.clear_cache end These callbacks are invoked during unloading, which happens in an unspecified order. Therefore, they should not refer to reloadable constants. You can also be called for all unloaded objects: loader.on_unload do |cpath, value, abspath| # ... end Please, remember that if you want to trace the activity of a loader, Zeitwerk::Loader#log! logs plenty of information. See the documentation for further details. Assorted * Performance improvements. * Documentation improvements. * The method Zeitwerk::Loader#eager_load accepts a force flag: loader.eager_load(force: true) * If passed, eager load exclusions configured with do_not_eager_load are not honoured (but ignored files and directories are). * This may be handy for test suites that eager load in order to ensure all files define the expected constant. * Eliminates internal use of File.realpath. One visible consequence is that in logs root dirs are shown as configured if they contain symlinks. * When an autoloaded file does not define the expected constant, Ruby clears state differently starting with Ruby 3.1. Unloading has been revised to be compatible with both behaviours. * Logging prints a few new traces. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.6 2021/10/26 10:19:53 nia Exp $ d3 3 a5 3 BLAKE2s (zeitwerk-2.5.1.gem) = b8c50df87f970328ae7e1a5d59179ebe62537a764b6b0811ee31cadac5a5f527 SHA512 (zeitwerk-2.5.1.gem) = 7e9013cb2344254404f0130bb82fa04651edfd9f3e4e91d5144308be1eb34e815071073bc7f7a53bc58a2defddbabc434074b6653959ed7ac51d036d8a421cbd Size (zeitwerk-2.5.1.gem) = 30208 bytes @ 1.6 log @archivers: Replace RMD160 checksums with BLAKE2s checksums All checksums have been double-checked against existing RMD160 and SHA512 hashes Could not be committed due to merge conflict: devel/py-traitlets/distinfo The following distfiles were unfetchable (note: some may be only fetched conditionally): ./devel/pvs/distinfo pvs-3.2-solaris.tgz ./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.5 2021/10/07 13:44:28 nia Exp $ d3 3 a5 3 BLAKE2s (zeitwerk-2.4.2.gem) = 147cc4ecddb8aca5782bdc56256aedca89f9593ee2623ce3a768d40961338410 SHA512 (zeitwerk-2.4.2.gem) = d475b8dbc37f4feadeba283d2ec0865023a1871a5a237ac71f3abd92c92b747120aa95dbc0863d4ff9daddfdf4e1c6ae857382cbefe8e9dae1aa24a719de0c59 Size (zeitwerk-2.4.2.gem) = 26624 bytes @ 1.5 log @devel: Remove SHA1 hashes for distfiles @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.4 2021/01/11 13:33:22 taca Exp $ d3 1 a3 1 RMD160 (zeitwerk-2.4.2.gem) = ba334825f4eac316eb66ba84efa4461bbde938f3 @ 1.4 log @devel/ruby-zeitwerk: update to 2.4.2 2.4.2 (27 November 2020) * Implements Zeitwerk::Loader#on_load, which allows you to configure blocks of code to be executed after a certain class or module have been loaded: # config/environments/development.rb loader.on_load("SomeApiClient") do SomeApiClient.endpoint = "https://api.dev" # config/environments/production.rb loader.on_load("SomeApiClient") do SomeApiClient.endpoint = "https://api.prod" end See the documentation for further details. 2.4.1 (29 October 2020) * Use __send__ instead of send internally. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.3 2020/09/14 13:12:27 taca Exp $ a2 1 SHA1 (zeitwerk-2.4.2.gem) = 4f8421387fc3286370c4627ef842c04db65462dc @ 1.3 log @devel/ruby-zeitwerk: update to 2.4.0 Update ruby-zeitwerk to 2.4.0. 2.4.0 (15 July 2020) * Zeitwerk::Loader#push_dir supports an optional namespace keyword argument. Pass a class or module object if you want the given root directory to be associated with it instead of Object. Said class or module object cannot be reloadable. * The default inflector is even more performant. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.2 2020/03/23 16:06:45 taca Exp $ d3 4 a6 4 SHA1 (zeitwerk-2.4.0.gem) = 0431bb8cb2a6c57e74d61a5b167ed471c977ec54 RMD160 (zeitwerk-2.4.0.gem) = 7b9cb5d23f1f6305e61be0886db1c1faa570f193 SHA512 (zeitwerk-2.4.0.gem) = aceb86543339fee8ea069af84a2324d94866e81608170b05627903731f5ee93f651ccf1b0e53e9c05e5bb5397b53b0633405c0d6637a6aec2dfe4db40b67bc6e Size (zeitwerk-2.4.0.gem) = 25600 bytes @ 1.2 log @devel/ruby-zeitwerk: update to 2.3.0 Update ruby-zeitwerk to 2.3.0. 2.3.0 (3 March 2020) * Adds support for collapsing directories. For example, if booking/actions/create.rb is meant to define Booking::Create because the subdirectory actions is there only for organizational purposes, you can tell Zeitwerk with collapse: loader.collapse("booking/actions") The method also accepts glob patterns to support standardized project structures: loader.collapse("*/actions") Please check the documentation for more details. * Eager loading is idempotent, but now you can eager load again after reloading. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.1 2020/01/19 15:04:46 taca Exp $ d3 4 a6 4 SHA1 (zeitwerk-2.3.0.gem) = b4a665e0adc3cd862264eb3e19578c0a470c2e30 RMD160 (zeitwerk-2.3.0.gem) = fea89f013b988e18bbb7c73ed2e42eba113f96c8 SHA512 (zeitwerk-2.3.0.gem) = 164b3e1b987f91d43da81c993329e07dcb3520be4e6b33f9d3a541114d159d0685cb9aa3c1eb8d94b86b51a1959e8405a8a3ef444d7c58718a69b3761ce16db0 Size (zeitwerk-2.3.0.gem) = 24064 bytes @ 1.1 log @devel/ruby-zeitwerk: add version 2.2.2 package Add ruby-zeitwerk version 2.2.2 package. Zeitwerk is an efficient and thread-safe code loader for Ruby. Given a conventional file structure, Zeitwerk is able to load your project's classes and modules on demand (autoloading), or upfront (eager loading). You don't need to write `require` calls for your own files, rather, you can streamline your programming knowing that your classes and modules are available everywhere. This feature is efficient, thread-safe, and matches Ruby's semantics for constants. Zeitwerk is also able to reload code, which may be handy while developing web applications. Coordination is needed to reload in a thread-safe manner. The documentation below explains how to do this. @ text @d1 1 a1 1 $NetBSD$ d3 4 a6 4 SHA1 (zeitwerk-2.2.2.gem) = 0c671da0e494281d575ce84c4a6c293462e938c8 RMD160 (zeitwerk-2.2.2.gem) = 7ce982f94d53dbd65c82929629e93ab6cde93c45 SHA512 (zeitwerk-2.2.2.gem) = 888928b47a1b07d89fbdba4d3d862182f01efe192b9a16f984cc2dea1a9d7c1ee84d4b00017299a2b9b6c96c15fb04f7f7493fb184d5a258202b469181486809 Size (zeitwerk-2.2.2.gem) = 23552 bytes @