Skip to content

Commit

Permalink
Bump Zeitwerk version and rename cpath_at to expected_cpath_at
Browse files Browse the repository at this point in the history
  • Loading branch information
bradgessler committed Jul 24, 2023
1 parent 90f38f2 commit a0a6986
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GIT
remote: https://github.com/fxn/zeitwerk.git
revision: 607e162a6086901240e334480ff495cf25acfcd7
revision: 278ea85cd8169a32bc7a14d88f0e7b76d4ebe056
specs:
zeitwerk (2.6.8)

Expand Down
2 changes: 1 addition & 1 deletion lib/guard/zeitwerk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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("::")
Expand Down

0 comments on commit a0a6986

Please sign in to comment.