zeitwerk 2.6.2 → 2.6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7faace5f41a2ea580759f539f13136531f9291010d68821fe430ee0e0b89cbb
4
- data.tar.gz: c1da4a297fc7339d19bbfecf453972576b22f27498a780cc2534ff4d1a2731e7
3
+ metadata.gz: a554ef9e7a26b8edb48779c400a620aa694e54313626505d231fa3c72d4f66fe
4
+ data.tar.gz: 779e40bff86dbb627aef9dfd3ed897620994f7578a3673b640fad2a449c61a61
5
5
  SHA512:
6
- metadata.gz: dc9ba4bd627b775bdd01bcc0ef5d902c348519b63ac12d4bfb3177f1da1f9b4c0308a611327cad9c092b84ebecc50b72e419ad51e4c44f95c8ed029d2f073a8e
7
- data.tar.gz: addc0120d3b187668e0a8128eaf904dbe406f9bd78bd1192eef4ada7bcc35c252396a9f01c2e07bf7e1ba5d1aff3ae5646ca05cec498d7cc4b659f1f6ebd5388
6
+ metadata.gz: a9038b69db15d5800aec43f5e6d2367df5ea04f19b00f0cd9a76c36eebac1f7cc2e085442e05b4ece448ef0a717b8f10c5c75367d63dbdbfb916a3e2bf505fed
7
+ data.tar.gz: 065c3b61d2cc6fb82ae3e98ddca31c4d6842cb3d7f68187c822c7b6c97720cdbfa8de9c11b5b1ff749fc655d408cc98f72dd1107e08979a5249ba6451e2539ed
data/README.md CHANGED
@@ -536,7 +536,7 @@ The method `Zeitwerk::Loader.eager_load_namespace` broadcasts `eager_load_namesp
536
536
  Zeitwerk::Loader.eager_load_namespace(MyFramework::Routes)
537
537
  ```
538
538
 
539
- This may be handy, for example, if a framework supports plugins and a shared namespace needs to be eager loaded for the project to function properly.
539
+ This may be handy, for example, if a framework supports plugins and a shared namespace needs to be eager loaded for the framework to function properly.
540
540
 
541
541
  Please, note that loaders only eager load namespaces they manage, as documented above. Therefore, this method does not allow you to eager load namespaces not managed by Zeitwerk loaders.
542
542
 
@@ -445,15 +445,15 @@ module Zeitwerk
445
445
  next if loader == self
446
446
  next if loader.ignores?(dir)
447
447
 
448
- dir = dir + "/"
448
+ suffixed_dir = dir + "/"
449
449
  loader.root_dirs.each do |root_dir, _namespace|
450
450
  next if ignores?(root_dir)
451
451
 
452
452
  root_dir = root_dir + "/"
453
- if dir.start_with?(root_dir) || root_dir.start_with?(dir)
453
+ if suffixed_dir.start_with?(root_dir) || root_dir.start_with?(suffixed_dir)
454
454
  require "pp" # Needed for pretty_inspect, even in Ruby 2.5.
455
455
  raise Error,
456
- "loader\n\n#{pretty_inspect}\n\nwants to manage directory #{dir.chop}," \
456
+ "loader\n\n#{pretty_inspect}\n\nwants to manage directory #{dir}," \
457
457
  " which is already managed by\n\n#{loader.pretty_inspect}\n"
458
458
  EOS
459
459
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Zeitwerk
4
- VERSION = "2.6.2"
4
+ VERSION = "2.6.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zeitwerk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.2
4
+ version: 2.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xavier Noria