cli_class_tool 0.5.0 → 0.5.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: 2c2833d3bd929aa6e69df3df0cbadbbc3e92030afdbf8172387869a9ad4f95f3
4
- data.tar.gz: 3bac4466f6a3d4e07bc739e36eb0eaaba2929c5a308a980715e4d0c55ef11fd7
3
+ metadata.gz: 79f28a830c3277c28e747b142fb6a12d40c8a69e5b868c4fef7f58e296f79dce
4
+ data.tar.gz: ca5b3535463ee163b56c2cdda397dd925111ea325d6695268c78acf5091b19cc
5
5
  SHA512:
6
- metadata.gz: 5f8ab8e7152ade287dc0a8c50598d2069cbbd99ecbcc5d0bb9cc7fd37a8a9e3fa401a889030c3bcea9a387cb2f5ac5a8ab49ef40b78980a982355ecdcba3bd53
7
- data.tar.gz: d031b3ca4da59379e5f3079ad091f10fd4934b0d1150df9f846ea2de77e1d439e236ac2070763418083394956cef64ed3f7ec2f7883222c66b14cd24e3ea9854
6
+ metadata.gz: 467252b31976d4fcb70cc795dc5ceaa06d2ad24576cd75a8b5ffaef3c3d5ef93f945da0f45414dfa40a80aeb7e3f5f882308ac8e48f5b2d4629267a6254eb078
7
+ data.tar.gz: 8abc7831b9c862d928ca3632a7b9d9f99e289b5058af2fe7c095cec6845a617de7d6111f8357f879b95c79711733ede70a93e86127abaa65e3e43e0861605bb9
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ ------------------
2
+ 0.5.1 (2026-09-07)
3
+ ------------------
4
+
5
+ * Fix actions not working on extended classes if not defined in main ones
6
+
1
7
  ------------------
2
8
  0.5.0 (2026-07-22)
3
9
  ------------------
@@ -202,11 +202,10 @@ module CLIClassTool
202
202
  def _runOnClass(action, sym, &block)
203
203
  return -1 unless self.const_defined?(:ACTION_CLASS)
204
204
  self::ACTION_CLASS.each(){|x|
205
- next if !x.const_defined?(:ACTION_LIST) || x::ACTION_LIST.index(action) == nil
206
-
207
205
  # Resolve overridden/extended class (addon)
208
206
  class_to_use = self.respond_to?(:getExtendedClass) ? self.getExtendedClass(x) : x
209
-
207
+ next if !class_to_use.const_defined?(:ACTION_LIST) ||
208
+ class_to_use::ACTION_LIST.index(action) == nil
210
209
  if sym != nil
211
210
  has_base = x.singleton_methods().index(sym) != nil
212
211
  has_addon = class_to_use != x && class_to_use.singleton_methods().index(sym) != nil
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cli_class_tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Morey
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2026-07-22 00:00:00.000000000 Z
10
+ date: 2026-09-07 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rake