ruby-shell 3.6.14 → 3.6.15

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 +14 -8
  3. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 909cecd4b06d6987e56e2d8a79dd0aa769e863cd1d80e989c3211f656d4e70e0
4
- data.tar.gz: e3d9a6271b77a828559355c1d27fce6d3868e16ff4a3c66820c9ca65aec2fc24
3
+ metadata.gz: 4b48490df2e369dfa33c4d92ce4c713573d7b1e54ff565a53b62a217db070ca6
4
+ data.tar.gz: d79027f5999c4765f99b900d7d4bc9edd7dfd90f195799815e6715577ed2bcd8
5
5
  SHA512:
6
- metadata.gz: e94c7d2e9b6ee78aa6be988923d16765578bf89a3f34888ec52bd40bf9b75eb31cc30d62ab8b6e8384f4513f7825a8e79cd41f9195c9afaf6a8d361bbe13eeb1
7
- data.tar.gz: 5b6c42e9cbf4eb548f6640bd4f96429202dc964dd91b42b1655c23b4b35cf4131009f029b11e21b40de7b8b38844b05c496ba61cf053efef52374d28af9fa8d7
6
+ metadata.gz: 81b35c1a4f9b1e30b29381ad3c563b4da9efdf5d4fee1157409c87e7fb256f096fa855f352b4cb7faa1d0d9bd60c9755326f818991a52b8fe2f2eb3365c16409
7
+ data.tar.gz: ee3bffbbd08096c6651dc8abf6984acb17f1d373d5d2558ea4354c56e1e8d1f6659205be9b339deb1b8e502d875975ade197153e48a787266a0082c074ded8e7
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.14" # Fix tab completion creating new lines at bottom of screen
11
+ @version = "3.6.15" # Fix config persistence bugs in .rshrc
12
12
 
13
13
  # MODULES, CLASSES AND EXTENSIONS
14
14
  class String # Add coloring to strings (with escaping for Readline)
@@ -1529,18 +1529,24 @@ def rshrc # Write user configuration to .rshrc (portable between machines)
1529
1529
  conf = ""
1530
1530
  end
1531
1531
 
1532
+ # Strip runtime data that belongs in .rshstate (may linger from pre-split config)
1533
+ %w[@cmd_frequency @cmd_stats @exe_cache @exe_cache_path @exe_cache_time
1534
+ @completion_weights @history @recordings @plugin_enabled].each do |var|
1535
+ conf.sub!(/^#{Regexp.escape(var)} =.*\n?/, "")
1536
+ end
1537
+
1532
1538
  # Persist user-editable configuration using helper
1533
1539
  conf = persist_var(conf, '@nick', @nick)
1534
1540
  conf = persist_var(conf, '@gnick', @gnick)
1535
1541
  conf = persist_var(conf, '@bookmarks', @bookmarks, !@bookmarks.empty?)
1536
1542
  conf = persist_var(conf, '@defuns', @defuns, !@defuns.empty?)
1537
- conf = persist_var(conf, '@history_dedup', @history_dedup, @history_dedup && @history_dedup != 'smart')
1538
- conf = persist_var(conf, '@session_autosave', @session_autosave, @session_autosave && @session_autosave > 0)
1539
- conf = persist_var(conf, '@auto_correct', @auto_correct, @auto_correct)
1540
- conf = persist_var(conf, '@slow_command_threshold', @slow_command_threshold, @slow_command_threshold && @slow_command_threshold > 0)
1541
- conf = persist_var(conf, '@completion_learning', @completion_learning, !@completion_learning)
1542
- conf = persist_var(conf, '@show_tips', @show_tips, !@show_tips)
1543
- conf = persist_var(conf, '@completion_show_metadata', @completion_show_metadata, @completion_show_metadata)
1543
+ conf = persist_var(conf, '@history_dedup', @history_dedup)
1544
+ conf = persist_var(conf, '@session_autosave', @session_autosave)
1545
+ conf = persist_var(conf, '@auto_correct', @auto_correct)
1546
+ conf = persist_var(conf, '@slow_command_threshold', @slow_command_threshold)
1547
+ conf = persist_var(conf, '@completion_learning', @completion_learning)
1548
+ conf = persist_var(conf, '@show_tips', @show_tips)
1549
+ conf = persist_var(conf, '@completion_show_metadata', @completion_show_metadata)
1544
1550
  conf = persist_var(conf, '@plugin_disabled', @plugin_disabled, !@plugin_disabled.empty?)
1545
1551
  conf = persist_var(conf, '@validation_rules', @validation_rules, !@validation_rules.empty?)
1546
1552
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-shell
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.14
4
+ version: 3.6.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
@@ -12,7 +12,8 @@ date: 2026-02-27 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.14: Fix tab completion creating duplicate lines at bottom of screen.'
15
+ v3.6.15: Fix config persistence bugs - scalar settings now always persist, runtime
16
+ data stripped from .rshrc.'
16
17
  email: g@isene.com
17
18
  executables:
18
19
  - rsh