ruby-shell 3.6.5 → 3.6.6
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 +20 -0
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7d44bbe64562b7c33243966d234ef228b5c78b08fa4ca598322d7ce1e719393e
|
|
4
|
+
data.tar.gz: b296eaa102212b14c2ae415d56c4f444e55b755d178f87e3a017d9d120de443d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8bde232e33715197884a9d10f6b2059c7a3a6148833181d76ab733bff7f1d9bbffeefe6a02b3e7b1e39f49b2caf569f99f0166efbcfe420f80279920bbfb7480
|
|
7
|
+
data.tar.gz: 4806cd6d2f6c907450738a294a490c16773525a1a2c5e4c1382903b508d30eddf63d8b79c8f181bf7f423dd5ac1fc632cefd3a82f142de0d1993448a79ff6405
|
data/bin/rsh
CHANGED
|
@@ -1498,6 +1498,26 @@ def rshrc # Write user configuration to .rshrc (portable between machines)
|
|
|
1498
1498
|
hist_clean # Clean history before saving
|
|
1499
1499
|
if File.exist?(Dir.home+'/.rshrc')
|
|
1500
1500
|
conf = File.read(Dir.home+'/.rshrc')
|
|
1501
|
+
|
|
1502
|
+
# Merge nicks from file with current instance (preserve nicks added in other instances)
|
|
1503
|
+
if conf =~ /@nick\s*=\s*(\{.*?\})/m
|
|
1504
|
+
begin
|
|
1505
|
+
file_nicks = eval($1)
|
|
1506
|
+
@nick = file_nicks.merge(@nick) if file_nicks.is_a?(Hash)
|
|
1507
|
+
rescue
|
|
1508
|
+
# If eval fails, keep current @nick
|
|
1509
|
+
end
|
|
1510
|
+
end
|
|
1511
|
+
|
|
1512
|
+
# Merge gnicks from file with current instance
|
|
1513
|
+
if conf =~ /@gnick\s*=\s*(\{.*?\})/m
|
|
1514
|
+
begin
|
|
1515
|
+
file_gnicks = eval($1)
|
|
1516
|
+
@gnick = file_gnicks.merge(@gnick) if file_gnicks.is_a?(Hash)
|
|
1517
|
+
rescue
|
|
1518
|
+
# If eval fails, keep current @gnick
|
|
1519
|
+
end
|
|
1520
|
+
end
|
|
1501
1521
|
else
|
|
1502
1522
|
conf = ""
|
|
1503
1523
|
end
|
metadata
CHANGED
|
@@ -1,19 +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.6
|
|
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-18 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
|
-
|
|
15
|
+
v3.6.6: Nick persistence fix - Nicks and gnicks now merge on exit, preventing loss
|
|
16
|
+
when multiple instances overwrite .rshrc.'
|
|
17
17
|
email: g@isene.com
|
|
18
18
|
executables:
|
|
19
19
|
- rsh
|