cli_class_tool 0.2.0 → 0.2.1

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: 7b6fe0830144c32a0519e6c394b8579345aee412ff8b67155dd000b8c7551c13
4
- data.tar.gz: 6931d29770a274d67508f2a8c6055e63c4e28ba3172e03ad9a81034574d50ff5
3
+ metadata.gz: 641f72caf2c39cac1c5a222756c481f0de86b5fd7db14893001a64773400d894
4
+ data.tar.gz: 612b9cca3cbd1b157780c490093657e77ba021bb973ca38e76e63f19de1e730e
5
5
  SHA512:
6
- metadata.gz: 19c65274b8451a3dbb9570efe72a4e6b95cdbb48a8b9aaaec73d8dede74a1accef44dfdab22099b1ff88e45155eaeec44a46905242f4ef25b723a7158f2c566c
7
- data.tar.gz: 02beb8f5d4903ea7465dafb156b56486e941f0f0d3b63aa2ba772563c7dec48cc4271308380f1cfac98170b05a6bebce594b4c4eb7bd01aa49144276a1ff1db3
6
+ metadata.gz: f2ceb59e563ebe911176786f1e4ffdd3762c2ef0b9a62acad6323896c68741228468f3b21e53331f4b22774b4bd0ac8746048330408d84366b6fa4426a546ff6
7
+ data.tar.gz: 3d848b3725fd1e80e061d04e358bbb71821708fc2ed490612ad4fe66b2ffc038396605cda7dfa28f89d7bdaaf703f6b038a0b66a68f18d18c12a2a12742667ab
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ ------------------
2
+ 0.2.1 (2026-06-01)
3
+ ------------------
4
+
1
5
  ------------------
2
6
  0.2.0 (2026-06-01)
3
7
  ------------------
data/README.md CHANGED
@@ -64,9 +64,6 @@ end
64
64
  In your library entrypoint (e.g. `lib/my-project.rb`), require the `cli_class_tool` components, set up your project-specific namespace, and extend `CLIClassTool::Utils`:
65
65
 
66
66
  ```ruby
67
- # Add lib to load path if necessary
68
- $LOAD_PATH.push(File.dirname(__FILE__))
69
-
70
67
  require 'cli_class_tool'
71
68
 
72
69
  module MyProject
@@ -146,12 +146,12 @@ module CLIClassTool
146
146
  def loadAddons(path)
147
147
  return unless Dir.exist?(path)
148
148
 
149
- $LOAD_PATH.push(path)
150
- Dir.entries(path).each() do |entry|
151
- next if !File.file?(File.join(path, entry)) || entry !~ /\.rb$/
152
- require entry.sub(/\.rb$/, "")
149
+ absolute_dir = File.expand_path(path)
150
+ Dir.entries(absolute_dir).each() do |entry|
151
+ absolute_file = File.join(absolute_dir, entry)
152
+ next if !File.file?(absolute_file) || entry !~ /\.rb$/
153
+ require absolute_file
153
154
  end
154
- $LOAD_PATH.pop()
155
155
  end
156
156
 
157
157
  # Safely load an overridden/extended class instance using a generic addon_key
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cli_class_tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Morey