eac_ruby_utils 0.129.1 → 0.130.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff1ce91e69ebe01e8e1c31d1384fd1178cb002d201a7d5fe76d05b9c7762ce63
4
- data.tar.gz: f2d10b65c1713e85ef259f986aba0d131a21d691591b75c9e2f01ea533d7c1f1
3
+ metadata.gz: e547c654300e986b5a13c5767955bb65606d3e38ec88dae0f3d8ba829be30ba5
4
+ data.tar.gz: 98a638177070500a6e1662b5f851e3d4711ee2b05dcbf9600294672af30729aa
5
5
  SHA512:
6
- metadata.gz: c327f9174a10c121685b54c9a258ee2a010011bd57011331e9975ba2afbee9a881785a2bbf5e4c99d4f90ab33beeda481954b8ed634144ac82ad69c970d8ac0f
7
- data.tar.gz: cc970c2a434d16e4d6a03ec52016497366ed51b741f523d36a48862e824d72cd2df9f72e2dfbd4cd98df036b4cef700472dcbedad61873596178aa273deef853
6
+ metadata.gz: 0c3b92abdb8cfb849a04868c8571c9eb363c97481f0ad17ba4ef5cdb82d4509a448744883acbf1535b119a2902f0f8d26d607a31a5753c8679984c14713b0a4b
7
+ data.tar.gz: d891b7749543dcfc829b541cc401fdcd05f923f6ae4626023a28247bbf64fcdc08814793cade4c06ca9ec5b251e9f6c9e32b90fd00d83903ed2a455e9f469bf6
@@ -86,7 +86,7 @@ module EacRubyUtils
86
86
  def sub_files
87
87
  @sub_files ||= Dir["#{File.dirname(file)}/#{::File.basename(file, '.*')}" \
88
88
  "#{'/**' if recursive?}/*.rb"].sort
89
- .map { |path| ::EacRubyUtils::RequireSub::SubFile.new(self, path) }
89
+ .map { |path| ::EacRubyUtils::RequireSub::SubFile.new(self, path) }
90
90
  end
91
91
  end
92
92
  end
@@ -19,6 +19,7 @@ module EacRubyUtils
19
19
  end
20
20
 
21
21
  attr_reader :block, :root_module_file
22
+ attr_writer :logging
22
23
 
23
24
  # @param root_module_file [String]
24
25
  def initialize(root_module_file, &block)
@@ -26,6 +27,17 @@ module EacRubyUtils
26
27
  self.block = block
27
28
  end
28
29
 
30
+ # @param enable [Boolean] `true` to enable, `false` (default) to disable.
31
+ # @return
32
+ def logging(enable)
33
+ @logging = enable
34
+ end
35
+
36
+ # @return [Boolean]
37
+ def logging?
38
+ @logging ? true : false
39
+ end
40
+
29
41
  # @return [Module, nil]
30
42
  def extension_for
31
43
  dirname = ::File.dirname(relative_root_module_file)
@@ -88,6 +100,7 @@ module EacRubyUtils
88
100
 
89
101
  # @return [void]
90
102
  def perform_zeitwerk
103
+ loader.log! if logging?
91
104
  loader.setup
92
105
  end
93
106
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyUtils
4
- VERSION = '0.129.1'
4
+ VERSION = '0.130.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_ruby_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.129.1
4
+ version: 0.130.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-02-11 00:00:00.000000000 Z
11
+ date: 2026-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport