From a0a6986fddc77d62b2acdb8f6411f92bba0b75be Mon Sep 17 00:00:00 2001 From: Brad Gessler Date: Mon, 24 Jul 2023 16:14:51 -0700 Subject: [PATCH] Bump Zeitwerk version and rename cpath_at to expected_cpath_at --- Gemfile.lock | 2 +- lib/guard/zeitwerk.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 0563e71..8101fac 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,6 +1,6 @@ GIT remote: https://github.com/fxn/zeitwerk.git - revision: 607e162a6086901240e334480ff495cf25acfcd7 + revision: 278ea85cd8169a32bc7a14d88f0e7b76d4ebe056 specs: zeitwerk (2.6.8) diff --git a/lib/guard/zeitwerk.rb b/lib/guard/zeitwerk.rb index 3443773..c587d52 100644 --- a/lib/guard/zeitwerk.rb +++ b/lib/guard/zeitwerk.rb @@ -51,7 +51,7 @@ def process(paths) next unless File.zero?(path) ::Zeitwerk::Registry.loaders.each do |loader| - namespace = loader.cpath_at(path) + namespace = loader.expected_cpath_at(path) next if namespace.nil? *constant_names, object_name = namespace.split("::")