hiiro 0.1.38 → 0.1.40

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: 98aed0331ecbac4d7609f44b90c6e8a80e7555cdcb02d1d60d51e97b89dba84e
4
- data.tar.gz: 4b264f744f0370745016121887a4f48365a0cb3692fb81a6f1d71805a8443855
3
+ metadata.gz: dcba21a820960e1cd8ff27088a1f2cfa84491c57d8fc88e72b5f33d33ffe5c5a
4
+ data.tar.gz: 2e29bca429cf7c535dc7a43da8527c256dfb3daa6926fe32fd45c7a8521f291d
5
5
  SHA512:
6
- metadata.gz: a6926e251df453c8c0b65a31ec716fa530672e1afa775e47e064135a687f94f0ed99f6f76aff0a35f2d6604f63a16a8ba1e8b61d370095cdfdc4e1ad98b64242
7
- data.tar.gz: cbf0d1249b523fb040ba872f1f1efabb7dd494aa6adac61d93cc522c8c14faeee8af2e1f7a3bdd72e5dae92984e813a9327ba3d0f4eb1906285310e609acba2f
6
+ metadata.gz: 86e19eab7f0692c0731830e573effda69924fc77da6311fe4b698e1fd773634f88a6eef95a1f8f6b5ed2ddfef6eb806fbbe824157ce6772d26191c707f3addb1
7
+ data.tar.gz: 95be0da227797b5e05c81e6ab5cc719fa91d415345c032a04efa634f9037381df168895a88629d927cd69442055f263f127c40929453e9f66f77cc3899a6a658
data/lib/hiiro/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Hiiro
2
- VERSION = "0.1.38"
2
+ VERSION = "0.1.40"
3
3
  end
data/lib/hiiro.rb CHANGED
@@ -145,6 +145,15 @@ class Hiiro
145
145
  end
146
146
 
147
147
  def load_plugin(plugin_const)
148
+ if plugin_const.is_a?(String) || plugin_const.is_a?(Symbol)
149
+ begin
150
+ plugin_const = Kernel.const_get(plugin_const.to_sym)
151
+ rescue => e
152
+ puts "unable to load plugin: #{plugin_const}"
153
+ return
154
+ end
155
+ end
156
+
148
157
  return if @loaded_plugins.include?(plugin_const)
149
158
 
150
159
  plugin_const.load(self)
data/plugins/tasks.rb CHANGED
@@ -763,14 +763,6 @@ module Tasks
763
763
  bin_name = [parent_hiiro.bin, parent_hiiro.subcmd || ''].join('-')
764
764
 
765
765
  Hiiro.init(bin_name:, args: parent_hiiro.args) do |h|
766
- puts "parent_hiiro: all_args: #{parent_hiiro.all_args}"
767
- puts "parent_hiiro: parent_cmd: #{parent_hiiro.subcmd}"
768
- puts "parent_hiiro: args: #{parent_hiiro.args}"
769
-
770
- puts "subhiiro: all_args: #{h.all_args}"
771
- puts "subhiiro: subcmd: #{h.subcmd}"
772
- puts "subhiiro: args: #{h.args}"
773
-
774
766
  h.add_subcmd(:list) { mgr.list }
775
767
  h.add_subcmd(:ls) { mgr.list }
776
768
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiiro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.38
4
+ version: 0.1.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Toyota
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-02-02 00:00:00.000000000 Z
11
+ date: 2026-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -78,7 +78,6 @@ files:
78
78
  - lib/hiiro.rb
79
79
  - lib/hiiro/history.rb
80
80
  - lib/hiiro/version.rb
81
- - links.backup.yml
82
81
  - notes
83
82
  - plugins/notify.rb
84
83
  - plugins/old_task.rb
data/links.backup.yml DELETED
@@ -1,13 +0,0 @@
1
- ---
2
- - url: http://auth.unixsuperhero.com:9969
3
- description: stash
4
- shorthand: fap
5
- created_at: '2026-01-27T00:58:36-05:00'
6
- - url: http://auth.unixsuperhero.com:8012
7
- description: utorrent
8
- shorthand: utor
9
- created_at: '2026-01-27T22:10:55-05:00'
10
- - url: http://auth.unixsuperhero.com:3005
11
- description: sandbox nas
12
- shorthand: sandbox
13
- created_at: '2026-01-27T22:12:16-05:00'