ruby-shell 3.6.3 → 3.6.5
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/bin/rsh +7 -1
- metadata +4 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 80e97dca0d4f0253673c8e25b802c12d63edaaf7d517a0b325c340bd0756a5c5
|
|
4
|
+
data.tar.gz: 3df272380a3733690adcfbdfcefb2c3c643d07749be73f688c0a9f02ba1ebb55
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 017ffed263618fda3a29365aee1601aad10fd61a079878f9acd0f5d2b5f8f90e51174bc72d197e803aeb5c2fd36f41413800018b3f1362fc4a0f7bbd7769a221
|
|
7
|
+
data.tar.gz: a9bc67464e6b7c358790cada852cd1e5f4a06a5cd94ca90f536976c8f02e7cdc41006626c2b72e29af2b2e3087c06c79f129b768e17df62adf30f85983663a22
|
data/bin/rsh
CHANGED
|
@@ -2957,6 +2957,7 @@ end
|
|
|
2957
2957
|
def apply_auto_correct(cmd) # Apply auto-correction to command
|
|
2958
2958
|
return cmd unless @auto_correct
|
|
2959
2959
|
return cmd if cmd =~ /^:/ # Don't auto-correct colon commands
|
|
2960
|
+
return cmd if cmd.include?('/') # Don't auto-correct paths
|
|
2960
2961
|
return cmd unless cmd =~ /^(\w+)/
|
|
2961
2962
|
|
|
2962
2963
|
first_cmd = $1
|
|
@@ -3826,10 +3827,15 @@ loop do
|
|
|
3826
3827
|
pre_cmd
|
|
3827
3828
|
|
|
3828
3829
|
# Apply auto-correct if enabled (before validation)
|
|
3830
|
+
original_cmd = @cmd
|
|
3829
3831
|
@cmd = apply_auto_correct(@cmd)
|
|
3830
3832
|
|
|
3831
3833
|
# Print timestamp AFTER auto-correct (shows what actually executes)
|
|
3832
|
-
|
|
3834
|
+
if @cmd != original_cmd
|
|
3835
|
+
puts "#{Time.now.strftime("%H:%M:%S")}: #{@cmd} (autocorrected from \"#{original_cmd}\")".c(@c_stamp)
|
|
3836
|
+
else
|
|
3837
|
+
puts "#{Time.now.strftime("%H:%M:%S")}: #{@cmd}".c(@c_stamp)
|
|
3838
|
+
end
|
|
3833
3839
|
|
|
3834
3840
|
# Validate command after auto-correction
|
|
3835
3841
|
warnings = validate_command(@cmd)
|
metadata
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-shell
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.6.
|
|
4
|
+
version: 3.6.5
|
|
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-11-
|
|
11
|
+
date: 2025-11-15 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.6.
|
|
16
|
-
|
|
17
|
-
validation templates, startup tips, and critical performance fixes for huge PATHs!'
|
|
15
|
+
v3.6.5: Autocorrect path fix - Paths (containing ''/'') are now excluded from autocorrection
|
|
16
|
+
to prevent false corrections like ''bin/file'' -> ''ai/file''.'
|
|
18
17
|
email: g@isene.com
|
|
19
18
|
executables:
|
|
20
19
|
- rsh
|