zeitwerk 1.2.0.beta → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zeitwerk/loader.rb +5 -2
- data/lib/zeitwerk/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f27e00c74f6a46e57850f8b6ad1453efac2d7f287a5f8d8e390d5afe59c30b0a
|
4
|
+
data.tar.gz: e3350166f6c3c6276a684d6f969a9045a06efc9a4308390dbc893df5eb3647a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4ef494343f7c01dd1ac0d61f9feff1bc58aae0d05e12d903d639e121f28a845f49d8de76914c1f85c5387aa8905d79b5dd58e16b6bbd5c631454669a52fe91b
|
7
|
+
data.tar.gz: 4c758643e0a9e57d8b5462c638b62c3149d7efaa2f604ebd30e70019486cb24a3268a537110282d644621545ffaa0072358bb9bc11d642c04840312ac5ebea94
|
data/lib/zeitwerk/loader.rb
CHANGED
@@ -98,6 +98,8 @@ module Zeitwerk
|
|
98
98
|
attr_reader :tracer
|
99
99
|
|
100
100
|
def initialize
|
101
|
+
@initialized_at = Time.now
|
102
|
+
|
101
103
|
@tag = SecureRandom.hex(3)
|
102
104
|
@inflector = Inflector.new
|
103
105
|
@logger = self.class.default_logger
|
@@ -556,9 +558,10 @@ module Zeitwerk
|
|
556
558
|
|
557
559
|
loader.dirs.each do |already_managed_dir|
|
558
560
|
if dir.start_with?(already_managed_dir) || already_managed_dir.start_with?(dir)
|
561
|
+
require "pp"
|
559
562
|
raise ConflictingDirectory,
|
560
|
-
"loader\n\n
|
561
|
-
" which is already managed by\n\n
|
563
|
+
"loader\n\n#{pretty_inspect}\n\nwants to manage directory #{dir}," \
|
564
|
+
" which is already managed by\n\n#{loader.pretty_inspect}\n"
|
562
565
|
EOS
|
563
566
|
end
|
564
567
|
end
|
data/lib/zeitwerk/version.rb
CHANGED
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: 1.2.0
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Xavier Noria
|
@@ -44,9 +44,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
44
44
|
version: 2.4.4
|
45
45
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- - "
|
47
|
+
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version:
|
49
|
+
version: '0'
|
50
50
|
requirements: []
|
51
51
|
rubygems_version: 3.0.1
|
52
52
|
signing_key:
|