hiiro 0.1.309 → 0.1.311
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 +11 -1
- data/lib/hiiro/version.rb +1 -1
- data/lib/hiiro.rb +31 -15
- 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: d4937fcb1ad316ecedd51fe5559351c483ef900e19c23c7af48c49287854bbf9
|
|
4
|
+
data.tar.gz: 1e3afdef66a5be9cf24a5ca4c3da12c55e25ffd0c219052be65c4e3730f25dfb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 83338c0a75aadc645b41efbd79a28f2c3cf706e4087a2b55af2444f239e1af0c3e4b8746449ba8803dd795a228f3889976409b74848866553408e9b58a97b8b7
|
|
7
|
+
data.tar.gz: e032125f376cb473f53dfb6d7021bca07218fddf32b02f3676d13280a39d08ddf217359f33a8e4c4c813a1e9af3ca4d5a126c1844b6dd22502b56ca7fbe53a86
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
```markdown
|
|
2
2
|
# Changelog
|
|
3
3
|
|
|
4
|
+
## [0.1.311] - 2026-04-01
|
|
5
|
+
|
|
6
|
+
### Changed
|
|
7
|
+
- Add `ap()` inspection for bin/args initialization in debug mode
|
|
8
|
+
|
|
9
|
+
## [0.1.310] - 2026-04-01
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
- `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
|
|
13
|
+
|
|
4
14
|
## [0.1.309] - 2026-03-31
|
|
5
15
|
|
|
6
16
|
### Added
|
|
@@ -76,7 +86,7 @@
|
|
|
76
86
|
### Deprecated
|
|
77
87
|
- `SystemCallCapture` — use `Hiiro::Effects` helpers in `TestHarness` instead
|
|
78
88
|
|
|
79
|
-
## [
|
|
89
|
+
## [0.1.307]
|
|
80
90
|
|
|
81
91
|
### Added
|
|
82
92
|
- `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,22 +65,34 @@ class Hiiro
|
|
|
65
65
|
load_env
|
|
66
66
|
Hiiro::DB.setup!
|
|
67
67
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
ap(oargs: oargs, values: values)
|
|
69
|
+
h_bin, *h_args = oargs
|
|
70
|
+
h_bin ||= values[:bin_name] || $0
|
|
71
|
+
h_args = ARGV if h_args.empty?
|
|
72
|
+
h_args = values[:args] if values.key?(:args)
|
|
73
|
+
ap(h_bin: h_bin, h_args: h_args)
|
|
74
|
+
|
|
75
|
+
# if values[:args]
|
|
76
|
+
# args = values[:args]
|
|
77
|
+
# else
|
|
78
|
+
# args ||= oargs
|
|
79
|
+
# args = ARGV if args.empty?
|
|
80
|
+
# end
|
|
81
|
+
#
|
|
82
|
+
# bin_name = values[:bin_name] || $0
|
|
83
|
+
|
|
84
|
+
begin
|
|
85
|
+
Hiiro::Invocation.record!(
|
|
86
|
+
bin: File.basename(h_bin),
|
|
87
|
+
subcmd: h_args.first,
|
|
88
|
+
args: h_args[1..]
|
|
89
|
+
)
|
|
90
|
+
rescue => e
|
|
91
|
+
puts " ... ERROR ... there shouldn't be any reason for this to fail...unless sqlite is broken"
|
|
92
|
+
binding.pry
|
|
73
93
|
end
|
|
74
94
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
Hiiro::Invocation.record!(
|
|
78
|
-
bin: File.basename(bin_name),
|
|
79
|
-
subcmd: args.first,
|
|
80
|
-
args: args[1..]
|
|
81
|
-
) rescue nil
|
|
82
|
-
|
|
83
|
-
new(bin_name, *args, logging: logging, tasks: tasks, task_scope: task_scope, **values).tap do |hiiro|
|
|
95
|
+
new(h_bin, *h_args, logging: logging, tasks: tasks, task_scope: task_scope, **values).tap do |hiiro|
|
|
84
96
|
hiiro.load_plugins(plugins)
|
|
85
97
|
|
|
86
98
|
hiiro.add_subcommand(:pry) { |*args|
|
|
@@ -229,7 +241,11 @@ class Hiiro
|
|
|
229
241
|
block.arity == 1 ? block.call(h) : h.instance_eval(&block) if block
|
|
230
242
|
end
|
|
231
243
|
|
|
232
|
-
|
|
244
|
+
begin
|
|
245
|
+
Hiiro.init(bin_name: child_bin_name, args: child_args, **kwargs, &wrapper)
|
|
246
|
+
rescue => e
|
|
247
|
+
binding.pry
|
|
248
|
+
end
|
|
233
249
|
end
|
|
234
250
|
|
|
235
251
|
def run_child(custom_subcmd=nil, custom_args=nil, **kwargs, &block)
|