ruby-shell 2.11.0 → 2.11.1

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 +4 -4
  3. metadata +4 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 539ffa4c43d681abff9a260ef5f78e8762906cd5ca566ea0a9e85e39bb74318a
4
- data.tar.gz: 80a8ee4bbfb0717c4c2ada364ff65f76364f01dfce3daba83a88f8e41e21eb85
3
+ metadata.gz: ea3ed53a591708e2637c362c1286a489f75a6cc549d8d057b3b2352594225142
4
+ data.tar.gz: 3fa6fbf94b9cea324a7b2f48ecd42858f44055bdd014b3604424b26551f3ba9e
5
5
  SHA512:
6
- metadata.gz: 7fd78712cdf62fe52827bf2d935c5d7e92d3fecb6a82d564f84b077ef3e9c35101e3e1a9856bfda653f3f8433d74fe539e8cbf172e9e91af7434af2ad429523c
7
- data.tar.gz: b3075ef2fcb9553e9e8cc071560b0f659c2ad21a30aa8c7e2429c53cd02d458984c5e659865a1fe879a997bda9a431e222e21fb45bf2a7c58d2f543e7784650e
6
+ metadata.gz: 677514dfac4853286598fcf60e0b8332ef89540b01aba2ec1b133b9352348c6a757cce46228d42f86073481c0663e2374c5d7ede28b7f8116b8b977fa141ca70
7
+ data.tar.gz: f94f381747aff0afd4ef8adca14b8e589a9929806c332a159c25c0a5772aac9ccb6bf1969c3f8ebda502fdeb782574ebb60eb8e8d92ecb9cac9219f30fa565e5
data/bin/rsh CHANGED
@@ -748,13 +748,13 @@ def rshrc # Write updates to .rshrc
748
748
  else
749
749
  conf = ""
750
750
  end
751
- conf.sub!(/^@nick.*\n/, "")
751
+ conf.sub!(/^@nick.*(\n|$)/, "")
752
752
  conf += "@nick = #{@nick}\n"
753
- conf.sub!(/^@gnick.*\n/, "")
753
+ conf.sub!(/^@gnick.*(\n|$)/, "")
754
754
  conf += "@gnick = #{@gnick}\n"
755
- conf.sub!(/^@cmd_frequency.*\n/, "")
755
+ conf.sub!(/^@cmd_frequency.*(\n|$)/, "")
756
756
  conf += "@cmd_frequency = #{@cmd_frequency}\n"
757
- conf.sub!(/^@history.*\n/, "")
757
+ conf.sub!(/^@history.*(\n|$)/, "")
758
758
  # Ensure history is properly formatted as valid Ruby array
759
759
  begin
760
760
  history_str = @history.last(@histsize).inspect
metadata CHANGED
@@ -1,22 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-shell
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.0
4
+ version: 2.11.1
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-09-23 00:00:00.000000000 Z
11
+ date: 2025-10-04 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
- v2.11.0: Major TAB completion overhaul! Smart context-aware completion (cd shows
16
- only dirs, vim shows only files), frequency-based command scoring, fuzzy matching
17
- with fallback, configurable completion options, performance optimizations with executable
18
- caching, environment variable completion, better error handling, and much more.
19
- A significant improvement to daily shell usage!'
15
+ v2.11.1: Critical bugfix for nick persistence - nicks now save correctly to .rshrc
16
+ without duplication when file doesn''t end with newline.'
20
17
  email: g@isene.com
21
18
  executables:
22
19
  - rsh