hiiro 0.1.310 → 0.1.312

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: e89f6d5a07e33746a1baf1d469a8b8700498ff911a1d8f0752e8ce1dbcb1089e
4
- data.tar.gz: 5384556d6652e582a716454513c983681085192618c15c488d7001d0f3cf2e1d
3
+ metadata.gz: 642d65332c793dd226c17c25bc4af3212ca91c89692df3496bbbd365500b9a72
4
+ data.tar.gz: 63fcdef502059eabb0f221c53b1939654095614c80979c4b4dd4037bed03277b
5
5
  SHA512:
6
- metadata.gz: a1631db9191041ea6b7cf641ecd01f6ec3782bcad8f8de35c24a401513e7551a60e42171f807d5e2ad650e83c4fd01b7da490847257451f3990f4077ec0fd718
7
- data.tar.gz: da298a0edf9fad8a1c38e88a29838cd6072532bf9f2569759088ba18ad1273ca3b3bde6fa7bbc3ab1020a19bcc194b0c6c1d261195b187ace84ac96e4dc37fb1
6
+ metadata.gz: 263d41e99e5fa709ab75c52d650213274c5bc2ae013597d3c6afc600a31e08d06b0789209ad72530c088da6bd3b03371ff1c51439d2d095a0af821c1e2b14716
7
+ data.tar.gz: 28fced4432748e65568312d23ce0697e682d1fb851c74a135c9ed8f88d2cb7e629aa99f35a1327671b17a26d57f4d8210c1897b01d98d043b082c79bb9d9a774
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  ```markdown
2
2
  # Changelog
3
3
 
4
+ ## [0.1.312] - 2026-04-01
5
+
6
+ ### Fixed
7
+ - Separate `bin_name` and `args` initialization in `Hiiro.init` to prevent argument confusion in nested Hiiro instances
8
+
9
+ ## [0.1.311] - 2026-04-01
10
+
11
+ ### Changed
12
+ - Add `ap()` inspection for bin/args initialization in debug mode
13
+
4
14
  ## [0.1.310] - 2026-04-01
5
15
 
6
16
  ### Fixed
data/lib/hiiro/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Hiiro
2
- VERSION = "0.1.310"
2
+ VERSION = "0.1.312"
3
3
  end
data/lib/hiiro.rb CHANGED
@@ -65,10 +65,12 @@ class Hiiro
65
65
  load_env
66
66
  Hiiro::DB.setup!
67
67
 
68
- h_bin, *h_args = oargs
69
- h_bin ||= values[:bin_name] || $0
68
+ ap(oargs: oargs, values: values)
69
+ h_bin = values[:bin_name] || $0
70
+ h_args = oargs
70
71
  h_args = ARGV if h_args.empty?
71
72
  h_args = values[:args] if values.key?(:args)
73
+ ap(h_bin: h_bin, h_args: h_args)
72
74
 
73
75
  # if values[:args]
74
76
  # args = values[:args]
@@ -90,7 +92,7 @@ class Hiiro
90
92
  binding.pry
91
93
  end
92
94
 
93
- 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|
94
96
  hiiro.load_plugins(plugins)
95
97
 
96
98
  hiiro.add_subcommand(:pry) { |*args|
@@ -239,7 +241,11 @@ class Hiiro
239
241
  block.arity == 1 ? block.call(h) : h.instance_eval(&block) if block
240
242
  end
241
243
 
242
- Hiiro.init(bin_name: child_bin_name, args: child_args, **kwargs, &wrapper)
244
+ begin
245
+ Hiiro.init(bin_name: child_bin_name, args: child_args, **kwargs, &wrapper)
246
+ rescue => e
247
+ binding.pry
248
+ end
243
249
  end
244
250
 
245
251
  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.310
4
+ version: 0.1.312
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Toyota