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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08f2b427ddbb6d8f7b995820ebafc52933ae2682fd19779097b6ab8c95205644'
4
- data.tar.gz: 16b8e508f9026e87f2a66ecfe587a4b19dcc213e3393743b00d82e560ea601fb
3
+ metadata.gz: f27e00c74f6a46e57850f8b6ad1453efac2d7f287a5f8d8e390d5afe59c30b0a
4
+ data.tar.gz: e3350166f6c3c6276a684d6f969a9045a06efc9a4308390dbc893df5eb3647a0
5
5
  SHA512:
6
- metadata.gz: 1a41b015721362e40fdc5ae4402e388dfd38814d642a87e89aa4a90f36dca863cb562be68b11269817269a58862bf89761f1b671ff9be8b24dd220114a85298e
7
- data.tar.gz: b2f7d5b6f61ee132a0608550f1e18bc58c8b2eff7eba154534742945373c4409e82eb7556a09a4179aca903d9b0c2136d2833902e2a3ea1743f4ade792902c91
6
+ metadata.gz: d4ef494343f7c01dd1ac0d61f9feff1bc58aae0d05e12d903d639e121f28a845f49d8de76914c1f85c5387aa8905d79b5dd58e16b6bbd5c631454669a52fe91b
7
+ data.tar.gz: 4c758643e0a9e57d8b5462c638b62c3149d7efaa2f604ebd30e70019486cb24a3268a537110282d644621545ffaa0072358bb9bc11d642c04840312ac5ebea94
@@ -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\t#{inspect}\n\nwants to manage directory #{dir}," \
561
- " which is already managed by\n\n\t#{loader.inspect}"
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Zeitwerk
4
- VERSION = "1.2.0.beta"
4
+ VERSION = "1.2.0"
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: 1.2.0.beta
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: 1.3.1
49
+ version: '0'
50
50
  requirements: []
51
51
  rubygems_version: 3.0.1
52
52
  signing_key: