openai-term 1.2 → 1.2.1

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 +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2abbfbe3ddbb58ef646c947ae95b0f7e3b4b2cfa66504da56f7a6287fee6a937
4
- data.tar.gz: 570cda81a17af2ff1205dbabbf891fcc523dd02b278ec4844be0fe367f69d302
3
+ metadata.gz: 11284207c79541e847e32f31545fc5c97268477ef397bda0d11b82c3d8d09eaf
4
+ data.tar.gz: 07705db08f4b1cafab624501cd00f5a346c2a5bf380a06ab645c012f0da49c44
5
5
  SHA512:
6
- metadata.gz: 547bc0aa770e8b38d2bfca522bfd96ab2b8f6ee5a88dcf0a4648f7dc4c6666063115727b45c12dff7d365ff1e064af7dc523ded1da6a289c123089be6c118dbd
7
- data.tar.gz: bddf59959dd6a3f94dbeadcc3ab6d52adde712168c7c10643311f192528963811d1f8fced468e87ccbc26de9e0c71be18920d0c3b6af6969b5b0e0c70bf011fe
6
+ metadata.gz: 5df3d3c33b3f57496b77760f9d494d5f22616e9edc4dd4e2e1ef69471e86d67a763bd23db851bb6ed9cfd3c94ec32714683f199053b8fc115ebcd317645bced6
7
+ data.tar.gz: 977b5f1e9f99348d93e734a25df1cf0e1a0170d22daeb704cb9aac57c443026c9238213bc98df39cb0900ed41c1c47d2ee2c8426202af325cbe96352fa4b40c3
data/bin/openai CHANGED
@@ -45,8 +45,8 @@ end
45
45
 
46
46
  # PROCESS QUERY
47
47
  @q = ""
48
- @q += File.read(@f) if @f
49
48
  @q += @t if @t
49
+ @q += File.read(@f) if @f
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openai-term
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.2'
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
@@ -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.2: Made openai
45
- read -f file first, then -t text.'
44
+ the -f option to read the query from a text file instead. New in 1.2.1: Reverted
45
+ last change.'
46
46
  email: g@isene.com
47
47
  executables:
48
48
  - openai