hiiro 0.1.309 → 0.1.310
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 +4 -4
- data/CHANGELOG.md +6 -1
- data/lib/hiiro/version.rb +1 -1
- data/lib/hiiro.rb +24 -14
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e89f6d5a07e33746a1baf1d469a8b8700498ff911a1d8f0752e8ce1dbcb1089e
|
|
4
|
+
data.tar.gz: 5384556d6652e582a716454513c983681085192618c15c488d7001d0f3cf2e1d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a1631db9191041ea6b7cf641ecd01f6ec3782bcad8f8de35c24a401513e7551a60e42171f807d5e2ad650e83c4fd01b7da490847257451f3990f4077ec0fd718
|
|
7
|
+
data.tar.gz: da298a0edf9fad8a1c38e88a29838cd6072532bf9f2569759088ba18ad1273ca3b3bde6fa7bbc3ab1020a19bcc194b0c6c1d261195b187ace84ac96e4dc37fb1
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
```markdown
|
|
2
2
|
# Changelog
|
|
3
3
|
|
|
4
|
+
## [0.1.310] - 2026-04-01
|
|
5
|
+
|
|
6
|
+
### Fixed
|
|
7
|
+
- `make_child` now passes `bin_name:` and `args:` as keyword args to `Hiiro.init`, fixing subcommand dispatch for all `h task`, `h queue`, `h service`, and `h run` child hierarchies — previously `child_bin_name` leaked into `oargs` and became the subcmd, so every child hiiro showed help instead of dispatching
|
|
8
|
+
|
|
4
9
|
## [0.1.309] - 2026-03-31
|
|
5
10
|
|
|
6
11
|
### Added
|
|
@@ -76,7 +81,7 @@
|
|
|
76
81
|
### Deprecated
|
|
77
82
|
- `SystemCallCapture` — use `Hiiro::Effects` helpers in `TestHarness` instead
|
|
78
83
|
|
|
79
|
-
## [
|
|
84
|
+
## [0.1.307]
|
|
80
85
|
|
|
81
86
|
### Added
|
|
82
87
|
- `Hiiro::DB` — SQLite foundation via Sequel; `DB.setup!` creates all tables, `DB.connection` establishes connection eagerly at load time; supports `HIIRO_TEST_DB=sqlite::memory:` for tests
|
data/lib/hiiro/version.rb
CHANGED
data/lib/hiiro.rb
CHANGED
|
@@ -65,21 +65,31 @@ class Hiiro
|
|
|
65
65
|
load_env
|
|
66
66
|
Hiiro::DB.setup!
|
|
67
67
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
h_bin, *h_args = oargs
|
|
69
|
+
h_bin ||= values[:bin_name] || $0
|
|
70
|
+
h_args = ARGV if h_args.empty?
|
|
71
|
+
h_args = values[:args] if values.key?(:args)
|
|
72
|
+
|
|
73
|
+
# if values[:args]
|
|
74
|
+
# args = values[:args]
|
|
75
|
+
# else
|
|
76
|
+
# args ||= oargs
|
|
77
|
+
# args = ARGV if args.empty?
|
|
78
|
+
# end
|
|
79
|
+
#
|
|
80
|
+
# bin_name = values[:bin_name] || $0
|
|
81
|
+
|
|
82
|
+
begin
|
|
83
|
+
Hiiro::Invocation.record!(
|
|
84
|
+
bin: File.basename(h_bin),
|
|
85
|
+
subcmd: h_args.first,
|
|
86
|
+
args: h_args[1..]
|
|
87
|
+
)
|
|
88
|
+
rescue => e
|
|
89
|
+
puts " ... ERROR ... there shouldn't be any reason for this to fail...unless sqlite is broken"
|
|
90
|
+
binding.pry
|
|
73
91
|
end
|
|
74
92
|
|
|
75
|
-
bin_name = values[:bin_name] || $0
|
|
76
|
-
|
|
77
|
-
Hiiro::Invocation.record!(
|
|
78
|
-
bin: File.basename(bin_name),
|
|
79
|
-
subcmd: args.first,
|
|
80
|
-
args: args[1..]
|
|
81
|
-
) rescue nil
|
|
82
|
-
|
|
83
93
|
new(bin_name, *args, logging: logging, tasks: tasks, task_scope: task_scope, **values).tap do |hiiro|
|
|
84
94
|
hiiro.load_plugins(plugins)
|
|
85
95
|
|
|
@@ -229,7 +239,7 @@ class Hiiro
|
|
|
229
239
|
block.arity == 1 ? block.call(h) : h.instance_eval(&block) if block
|
|
230
240
|
end
|
|
231
241
|
|
|
232
|
-
Hiiro.init(child_bin_name,
|
|
242
|
+
Hiiro.init(bin_name: child_bin_name, args: child_args, **kwargs, &wrapper)
|
|
233
243
|
end
|
|
234
244
|
|
|
235
245
|
def run_child(custom_subcmd=nil, custom_args=nil, **kwargs, &block)
|