rtfm-filemanager 6.0.7 → 6.0.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/rtfm +2 -24
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 88ef15c96d6cd2e481ea3d0741da517dc256f7790673769457c9b78686721391
4
- data.tar.gz: c1db40c673a60aa766fb3a79623e7ac912f0cf6898798db4d6731029cde8c7bb
3
+ metadata.gz: bc8264a0a9559636af8d95a8110ac069d772dc43c1f6e0a5336f512116d2058b
4
+ data.tar.gz: 1a2117e23d2d003caced36ddaa79aca5d579952716045fb6c71cdf4541097229
5
5
  SHA512:
6
- metadata.gz: 7dd8b024cc288a1cb6b8fe2119dfaff80e657e16cbe34c0a0c3418943854f9a3bc9d2539031ab21b4fa1219a96fbd84e41bd24a1dff2eefd1db1b1504480e138
7
- data.tar.gz: d4da7c1a24813ae78d768369e83decd456c4bde4e2b711d3b476bbbfd168db1e58632834a0db905bda1041cd44e63a6b8c3465b3758ae7620953dfea6e09000d
6
+ metadata.gz: 49204b6c779f7e5d3b66733b73efe59ae670dc50a3fa6803fccc913c8387912b980074d8f67e5afc1ef9ffa948fefa8fe2b4c42ae865e573493247e50c06d6f5
7
+ data.tar.gz: 26b0c3ca34ffa3cbfaa93c5eadb5a37131f59f2c156bb28f0b48dae7f07b2c09226219015579a1c954ee2464702bf41daaffb5bdef75b5f8fa1058bed6cfe3c1
data/bin/rtfm CHANGED
@@ -18,7 +18,7 @@
18
18
  # get a great understanding of the code itself by simply sending
19
19
  # or pasting this whole file into you favorite AI for coding with
20
20
  # a prompt like this: "Help me understand every part of this code".
21
- @version = '6.0.7' # Fixed preview update after deletion + enhanced System Info with visual indicators
21
+ @version = '6.0.8' # Fixed log file permission conflicts between users
22
22
 
23
23
  # SAVE & STORE TERMINAL {{{1
24
24
  ORIG_STTY = `stty -g`.chomp
@@ -86,7 +86,7 @@ autoload :OpenAI, 'ruby/openai'
86
86
  autoload :Tempfile, 'tempfile'
87
87
 
88
88
  # FIX TERMINAL MESSAGE BLEED-THROUGH {{{1
89
- LOG_PATH = File.join(Dir.tmpdir, 'rtfm.log')
89
+ LOG_PATH = File.join(Dir.tmpdir, "rtfm_#{ENV['USER'] || Process.uid}.log")
90
90
  MAX_LOG_SIZE = 128 * 1024
91
91
  if File.exist?(LOG_PATH) && File.size(LOG_PATH) > MAX_LOG_SIZE
92
92
  # keep just the last MAX_LOG_SIZE bytes
@@ -4019,28 +4019,6 @@ def system_info # {{{3
4019
4019
  rescue # rubocop:disable Lint/SuppressedException
4020
4020
  end
4021
4021
 
4022
- # Footer with system load average
4023
- begin
4024
- text << "─" * 50 + "\n"
4025
-
4026
- # Get load average values
4027
- loadavg = File.read("/proc/loadavg").split[0..2].map(&:to_f) rescue [0, 0, 0]
4028
- cpu_count = `nproc 2>/dev/null`.chomp.to_i
4029
- cpu_count = 1 if cpu_count == 0
4030
-
4031
- # Format load values with color coding
4032
- load_values = loadavg.map do |load|
4033
- percent = (load / cpu_count * 100).round
4034
- color = percent > 100 ? 196 : percent > 80 ? 220 : 156
4035
- load.round(2).to_s.fg(color)
4036
- end
4037
-
4038
- text << "Load Average: " + load_values.join(" ") + " (1m 5m 15m)\n"
4039
- text << "Updated: #{Time.now.strftime('%H:%M:%S')}".fg(240) + " - Press 'ENTER' to return".fg(249)
4040
- rescue
4041
- # Skip footer if error
4042
- end
4043
-
4044
4022
  @pR.say(text)
4045
4023
  rescue => e
4046
4024
  @pR.say("Unable to show system info\n#{e.message}".fg(196))
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rtfm-filemanager
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.7
4
+ version: 6.0.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-07-21 00:00:00.000000000 Z
11
+ date: 2025-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rcurses
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '7.4'
55
55
  description: |-
56
- RTFM v6.0.7: Fixed preview updates after file deletion and significantly enhanced System Info display with visual indicators, environment details, and service monitoring.
56
+ RTFM v6.0.8: Fixed log file permission conflicts between users by implementing user-specific log files.
57
57
  A full featured terminal browser with syntax highlighted files, images shown in the terminal, videos thumbnailed, etc. Features include remote SSH/SFTP browsing, interactive SSH shell, comprehensive undo system, bookmarks, and much more. You can bookmark and jump around easily, delete, rename, copy, symlink and move files. RTFM is one of the most feature-packed terminal file managers.
58
58
  email: g@isene.com
59
59
  executables: