foobara 0.0.69 → 0.0.70

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: f6aa740f8aa8c058877cd14db7cf69efdd0509bf39e790d7806d7e4f50309db3
4
- data.tar.gz: 38fe1c5a5613cc0811d50c19209360f13d507a1dc0ef90d7208103940c6f4d1b
3
+ metadata.gz: 9fa42ccdb3430fea47bc5de7590f08ef9c640e87d747eec8d4a594d4fd8d8a91
4
+ data.tar.gz: 797a5cef37a8478295bc5c887766ec69819fa150c005bd49e7501d3609337ff5
5
5
  SHA512:
6
- metadata.gz: 5c0b2ffa28dfadc479c34a86b212079b4ed49bab0506a49db213d9bb50b9d709e883c50208b5b28a86dffcf80f583d0cb2e3baad32536e680605f46529c10d71
7
- data.tar.gz: c05caa4fd88b37c7b02bf522d965a550fe57e85d5382d98a81c3b7d970f6f091f7784e5069d0135c6694b757322d36c86770ab0fa3b5e832d930a548bd3becaa
6
+ metadata.gz: 771d25f93db9d12e31a9f74143840375bf1cd702f7b02f394c44411c12f50d37ce210213737794778dca08e6264ac4166b094930edb6969f20117f2b888d7e49
7
+ data.tar.gz: c565ae11e35f1a767761823655e2294a70cd07fa02acb403bb6f37d43a3f471bb909d4b315e7defaaadb56b999e9778466092238f2f89af3722aa169666eee11
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # [0.0.70] - 2025-03-06
2
+
3
+ - Make sure Foobara::Command.depends_on is inherited
4
+
1
5
  ## [0.0.69] - 2025-03-03
2
6
 
3
7
  - Allow StateMachine to use an attribute on another object as its current state for convenience
@@ -56,7 +56,15 @@ module Foobara
56
56
  end
57
57
 
58
58
  def depends_on(*subcommand_classes)
59
- return @depends_on ||= Set.new if subcommand_classes.empty?
59
+ if subcommand_classes.empty?
60
+ return @depends_on if defined?(@depends_on)
61
+
62
+ @depends_on = if self == Foobara::Command
63
+ Set.new
64
+ else
65
+ superclass.depends_on.dup
66
+ end
67
+ end
60
68
 
61
69
  if subcommand_classes.length == 1
62
70
  subcommand_classes = Util.array(subcommand_classes.first)
@@ -111,8 +111,6 @@ module Foobara
111
111
  capture_current_namespaces
112
112
  end
113
113
 
114
- private
115
-
116
114
  def capture_current_namespaces
117
115
  # TODO: this feels like the wrong place to do this but doing it here for now to make sure it's done when
118
116
  # most important
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.69
4
+ version: 0.0.70
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-04 00:00:00.000000000 Z
10
+ date: 2025-03-06 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: bigdecimal
@@ -460,7 +460,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
460
460
  - !ruby/object:Gem::Version
461
461
  version: '0'
462
462
  requirements: []
463
- rubygems_version: 3.6.3
463
+ rubygems_version: 3.6.5
464
464
  specification_version: 4
465
465
  summary: A command-centric and discoverable software framework with a focus on domain
466
466
  concepts and abstracting away integration code