openai-term 1.1.1 → 1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/openai +1 -1
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7807f8bc3c8150a78ad1bd08c3995c63f5767c7c403332184eb53657e234395c
4
- data.tar.gz: 9a410c45e8f255e723bc7ed9022eb019d612f0caf4faf6eeafc4b8a8df696e93
3
+ metadata.gz: 2abbfbe3ddbb58ef646c947ae95b0f7e3b4b2cfa66504da56f7a6287fee6a937
4
+ data.tar.gz: 570cda81a17af2ff1205dbabbf891fcc523dd02b278ec4844be0fe367f69d302
5
5
  SHA512:
6
- metadata.gz: 511193fd306c068eced18f852b27fff11b7b92507074f8d28857bdaa86f5183e68170c3a61e1fe8fafc1daa9a64ba3c0ac961aa35619f8475314f92231f2fe01
7
- data.tar.gz: bb7be835e14c8dc9084b82edc58b72b48ca19442be7d85182cc3be2c0d26a3538e6fa9277b02ad005d796bfb94e78696b504cd2aa6b06f9b76224762c0218e36
6
+ metadata.gz: 547bc0aa770e8b38d2bfca522bfd96ab2b8f6ee5a88dcf0a4648f7dc4c6666063115727b45c12dff7d365ff1e064af7dc523ded1da6a289c123089be6c118dbd
7
+ data.tar.gz: bddf59959dd6a3f94dbeadcc3ab6d52adde712168c7c10643311f192528963811d1f8fced468e87ccbc26de9e0c71be18920d0c3b6af6969b5b0e0c70bf011fe
data/bin/openai CHANGED
@@ -45,8 +45,8 @@ end
45
45
 
46
46
  # PROCESS QUERY
47
47
  @q = ""
48
- @q += @t if @t
49
48
  @q += File.read(@f) if @f
49
+ @q += @t if @t
50
50
  unless @f or @t
51
51
  puts "You must supply a query in form of a text file (option -f file) and/or text (option -t text)\n\n"
52
52
  exit
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openai-term
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: '1.2'
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-01-27 00:00:00.000000000 Z
11
+ date: 2023-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-openai
@@ -41,8 +41,8 @@ dependencies:
41
41
  description: 'This is a pretty straight forward interface to OpenAI with the option
42
42
  to select the AI model and the maximum token length (number of maximum words in
43
43
  the AI''s response). You will use the -t option to supply the query to OpenAI or
44
- the -f option to read the query from a text file instead. New in 1.1.1: Better
45
- error handling.'
44
+ the -f option to read the query from a text file instead. New in 1.2: Made openai
45
+ read -f file first, then -t text.'
46
46
  email: g@isene.com
47
47
  executables:
48
48
  - openai