ruby-shell 3.6.7 → 3.6.8

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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/rsh +19 -5
  3. metadata +3 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 27ea51d3eee2117b64d91a43ba865d091e2171ea17c39ec6ae4fd17e44fe113a
4
- data.tar.gz: 2309813190a81f16b7e6eddd4a2b8b96e2aa3a21481c9c9f455a68ffb5bcf4af
3
+ metadata.gz: 00cad244ed4045544cd6acffac1799a77064c1815ac27a9a3fc1bb016d902e13
4
+ data.tar.gz: 5efc98a00cbfc393a4dd3db8cfb6f1342c8e3470f8a41920aa42c1b6a8b78caf
5
5
  SHA512:
6
- metadata.gz: 5b438f11541a5f4d45b87fd784c1986eeb8b623e5c5114c6291a02676ebf4f785d45c6f8746b9a1322347135611be0837fbc0ca97c31fd9d668c521ea796c797
7
- data.tar.gz: 9f42dc421ce8eede7f4741c0ea985ba490acfc42b8626729fd6b7d5ebaa06e8131b8295bf9c21586e2d44b891ac086cdc1f507b2dd3be77120660819b486d22d
6
+ metadata.gz: 3f7c5528555838aa159519eb60c9311206d1817c350930f86d179c15774170efed7690b08d048c2c5eb16a899376adfe1687577436fffc2204bc45fd0d067dec
7
+ data.tar.gz: d7a848b917003e8a7449f09d48d3f9cba04b0f400d36a92b9388d24dd7390a915ac097e9bf12b7d7f51b82251dfd386bbece7cca039f977f7eb3b047085792fc
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.6.3" # Polish: Config persistence, aligned display, smart completion space management
11
+ @version = "3.6.8" # Fix: cd now works in && chained commands
12
12
 
13
13
  # MODULES, CLASSES AND EXTENSIONS
14
14
  class String # Add coloring to strings (with escaping for Readline)
@@ -3029,11 +3029,25 @@ def execute_conditional(cmd_line)
3029
3029
  end
3030
3030
  end
3031
3031
  else
3032
- # Execute the command
3033
- success = system(part)
3032
+ # Execute the command - handle cd as built-in
3033
+ if part =~ /^cd\s+(.+)$/ || part == "cd"
3034
+ dir = $1 || Dir.home
3035
+ dir = dir.sub(/^~/, Dir.home)
3036
+ if Dir.exist?(dir)
3037
+ Dir.chdir(dir)
3038
+ success = true
3039
+ @last_exit = 0
3040
+ else
3041
+ puts " cd: no such directory: #{dir}"
3042
+ success = false
3043
+ @last_exit = 1
3044
+ end
3045
+ else
3046
+ success = system(part)
3047
+ @last_exit = $?.exitstatus
3048
+ puts " Command failed: #{part} (exit #{@last_exit})" unless success
3049
+ end
3034
3050
  result = success
3035
- @last_exit = $?.exitstatus
3036
- puts " Command failed: #{part} (exit #{@last_exit})" unless success
3037
3051
  end
3038
3052
  end
3039
3053
 
metadata CHANGED
@@ -1,19 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-shell
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.7
4
+ version: 3.6.8
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-12-16 00:00:00.000000000 Z
11
+ date: 2026-01-16 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.7: Autocorrect fix for commands with extensions - Now correctly recognizes
16
- upload.sh, script.py, etc. in PATH.'
15
+ v3.6.8: Fix cd in chained commands - cd now works correctly with && and || operators.'
17
16
  email: g@isene.com
18
17
  executables:
19
18
  - rsh