rtfm-filemanager 3.0.2 → 3.0.3
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/rtfm +5 -4
- data/rtfm-kb.png +0 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 76bd197d0a9c8613ab381e40e427d4784ad70304c65799a2a939777be9cf6e54
|
|
4
|
+
data.tar.gz: e386caba16205f6f9ae5694bbd6e56f58fa7c7d4947bff08380dd7ca483cfabe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0ffee736412785328cdeaf2d29860d9ff0dfb948d653be36c3b82a279d579f13fcdce37c53ec4ec3dcbd67757d2e4c4397394520c73013ab67b28cf8542e38bf
|
|
7
|
+
data.tar.gz: cf758653dbdc1894fad957729cdd25783f70545e6d26cabe48eaca62c324e7e21ac98182478094108fbee0c8a470097baf971748cfa9f2c19cbc37999b4ebd42
|
data/bin/rtfm
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
# for any damages resulting from its use. Further, I am under no
|
|
15
15
|
# obligation to maintain or extend this software. It is provided
|
|
16
16
|
# on an 'as is' basis without any expressed or implied warranty.
|
|
17
|
-
@version = "3.0.
|
|
17
|
+
@version = "3.0.3"
|
|
18
18
|
|
|
19
19
|
# PRELIMINARIES
|
|
20
20
|
@help = <<HELPTEXT
|
|
@@ -1330,6 +1330,7 @@ def openai # INTERFACE TO OPENAI
|
|
|
1330
1330
|
client = OpenAI::Client.new(access_token: @ai)
|
|
1331
1331
|
|
|
1332
1332
|
c = @w_r.text
|
|
1333
|
+
c = "" unless c
|
|
1333
1334
|
@w_r.fg = 214
|
|
1334
1335
|
w_r_info("OpenAI description...")
|
|
1335
1336
|
|
|
@@ -1340,10 +1341,10 @@ def openai # INTERFACE TO OPENAI
|
|
|
1340
1341
|
p += "Give a brief summary of its content: " + c unless File.directory?(@selected) and c == ""
|
|
1341
1342
|
|
|
1342
1343
|
response = client.completions( parameters: { model: "text-davinci-003", prompt: p, max_tokens: 200 })
|
|
1343
|
-
|
|
1344
|
+
if response["error"]["message"] == ""
|
|
1344
1345
|
text = "OpenAI description:\n" + response["choices"][0]["text"]
|
|
1345
|
-
|
|
1346
|
-
text =
|
|
1346
|
+
else
|
|
1347
|
+
text = response["error"]["message"]
|
|
1347
1348
|
end
|
|
1348
1349
|
|
|
1349
1350
|
@w_r.fg = 229
|
data/rtfm-kb.png
CHANGED
|
Binary file
|
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: 3.0.
|
|
4
|
+
version: 3.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Geir Isene
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-05-
|
|
11
|
+
date: 2023-05-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: curses
|
|
@@ -47,7 +47,7 @@ dependencies:
|
|
|
47
47
|
description: 'A full featured terminal browser with syntax highlighted files, images
|
|
48
48
|
shown in the terminal, videos thumbnailed, etc. You can bookmark and jump around
|
|
49
49
|
easily, delete, rename, copy, symlink and move files. RTFM has a a wide range of
|
|
50
|
-
other features. New in 3.0.
|
|
50
|
+
other features. New in 3.0.3: Fixed OpenAI error message'
|
|
51
51
|
email: g@isene.com
|
|
52
52
|
executables:
|
|
53
53
|
- rtfm
|