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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 64fee11a94745ab455e4a3681d71b101db2319eb1def5ab5fc884191e5289bb2
4
- data.tar.gz: 4508a89bfc1a9a0ce5570820346db8fa09434b62e8b21c8b83ee9fa6bd384a10
3
+ metadata.gz: e89f6d5a07e33746a1baf1d469a8b8700498ff911a1d8f0752e8ce1dbcb1089e
4
+ data.tar.gz: 5384556d6652e582a716454513c983681085192618c15c488d7001d0f3cf2e1d
5
5
  SHA512:
6
- metadata.gz: d0a2039f5a8c1717c94bfcf010d8b59629666eb15a03316f7d9a07be5aacdff4d6a1becca8f0f03079a4a46e6a7ac850a9a3283008ccf3cc905ba98a89fa98f4
7
- data.tar.gz: 76cd5e53ff951e720b2544c01653766573e61b132eab4499c3b0e95a5d10707a61ac7fffde7d4a266b1896627cab6d57198eb99aa7896f2ef7103bececa2f357
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
- ## [Unreleased]
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
@@ -1,3 +1,3 @@
1
1
  class Hiiro
2
- VERSION = "0.1.309"
2
+ VERSION = "0.1.310"
3
3
  end
data/lib/hiiro.rb CHANGED
@@ -65,21 +65,31 @@ class Hiiro
65
65
  load_env
66
66
  Hiiro::DB.setup!
67
67
 
68
- if values[:args]
69
- args = values[:args]
70
- else
71
- args ||= oargs
72
- args = ARGV if args.empty?
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, *child_args, **kwargs, &wrapper)
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiiro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.309
4
+ version: 0.1.310
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Toyota