ruby-shell 3.4.6 → 3.4.7

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/bin/rsh +10 -2
  4. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8180bf48f336b9667d34fc01d5df5ddf7a3412ff5f35cfc443d10846a81f6686
4
- data.tar.gz: acd063a28be3a5bfe7ccb9ec6623ddb7e061deba44806725c1b76781fcf45acb
3
+ metadata.gz: 70cf831b842cb78920de4f541751dc71b1ec87d4d2619eb813d726aa9abe844d
4
+ data.tar.gz: 3a1baee44aa63c583f62485d6df477b5aeca1f04801ce2dd6c9b92a35795e27e
5
5
  SHA512:
6
- metadata.gz: 05d07658f8356edad6da19da615170e2423785fc4a3f9074cfb5b9ef3a7f602b3f109172cb6ba799f9b2bc0bbc7363a9c0ff29b4d9d27cfebb05b2883156aad6
7
- data.tar.gz: 6e1d7c8d6c16c0ce6f2d7cf67a5229b3a31f3e0d096438fd59877c3647dd5f8b1530ff0b0c46cd95bd377d25663e79e7f0cbef8dc8599f61cb281a395c54bc94
6
+ metadata.gz: 96e26e3cb1788d7aa04eea7d8aabf034ac59f904fcc808151c3297d6a896794330be4e92c372c71f96376605e9943cd734c8871373fe6c4bf07e5fb3a0bbd891
7
+ data.tar.gz: ef2907de7d2758f996beb911677430b1e1e674b388ebfa726d2dbead4e8b9670dc03baa7009b534ca268064ae4feaf8c1c6dc474552c1f6a6e60a86068cbd147
data/README.md CHANGED
@@ -136,6 +136,7 @@ Special commands:
136
136
  * `:nick` lists all command nicks, `:gnick` lists general nicks
137
137
  * `:nick -name` delete a command nick, `:gnick -name` delete a general nick
138
138
  * `:history` will list the command history, while `:rmhistory` will delete the history
139
+ * `:rehash` rebuilds the executable cache (useful after installing new commands)
139
140
  * `:jobs` will list background jobs, `:fg [job_id]` brings jobs to foreground, `:bg [job_id]` resumes stopped jobs
140
141
  * `:defun func(args) = code` defines Ruby functions callable as shell commands (persistent!)
141
142
  * `:defun` lists all user-defined functions, `:defun -func` removes functions
data/bin/rsh CHANGED
@@ -8,7 +8,7 @@
8
8
  # Web_site: http://isene.com/
9
9
  # Github: https://github.com/isene/rsh
10
10
  # License: Public domain
11
- @version = "3.4.6" # Plugin help system, 4 new plugins, plugins disabled by default, Ctrl-W fix
11
+ @version = "3.4.7" # Added :rehash command to manually rebuild executable cache
12
12
 
13
13
  # MODULES, CLASSES AND EXTENSIONS
14
14
  class String # Add coloring to strings (with escaping for Readline)
@@ -1602,6 +1602,14 @@ def rmhistory # Delete history
1602
1602
  @history = []
1603
1603
  puts "History deleted."
1604
1604
  end
1605
+ def rehash # Force rebuild of executable cache
1606
+ @exe_cache = nil
1607
+ @exe_cache_path = nil
1608
+ @exe_cache_time = 0
1609
+ @exe_cache_paths = ""
1610
+ cache_executables
1611
+ puts "Executable cache rebuilt (#{@exe.length} commands cached)."
1612
+ end
1605
1613
  def nick(nick_str = nil) # Define a new nick like this: `:nick "ls = ls --color"`
1606
1614
  if nick_str.nil? || nick_str.empty?
1607
1615
  # List all nicks
@@ -3458,7 +3466,7 @@ loop do
3458
3466
  save_session load_session list_sessions delete_session rmsession
3459
3467
  validate completion_stats completion_reset
3460
3468
  record replay
3461
- history rmhistory jobs fg bg dirs help info version]
3469
+ history rmhistory rehash jobs fg bg dirs help info version]
3462
3470
 
3463
3471
  # Try to call as rsh method
3464
3472
  if known_commands.include?(cmd_name)
metadata CHANGED
@@ -1,20 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-shell
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.6
4
+ version: 3.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-26 00:00:00.000000000 Z
11
+ date: 2025-10-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'A shell written in Ruby with extensive tab completions, aliases/nicks,
14
14
  history, syntax highlighting, theming, auto-cd, auto-opening files and more. UPDATE
15
- v3.4.6: PLUGIN SYSTEM ENHANCED - Plugin help system, 4 new plugins (venv/extract/docker/clipboard),
16
- plugins disabled by default. Plus v3.4.5: Full LS_COLORS compliance with pattern-based
17
- directory coloring (@dir_colors like RTFM''s @topmatch)!'
15
+ v3.4.7: Added :rehash command to manually rebuild executable cache (like zsh''s
16
+ rehash builtin). Plus v3.4.6: Plugin help system, 4 new plugins, plugins disabled
17
+ by default!'
18
18
  email: g@isene.com
19
19
  executables:
20
20
  - rsh