openai_pipe 0.1.3 → 0.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d5a1e3af569885b42701567148f7523aca1100d6c2b7751d4ef1be36bcd7359f
4
- data.tar.gz: ffcae722c0f98c523d8310a87173528fcf181f595853ba26821945aecab4ff0b
3
+ metadata.gz: fc6275860a03713a812f5be4b1fd0586aa0d61c6d23eca5d7bc3c19ae7ab6535
4
+ data.tar.gz: 65eb57cd1bd4af5035d8c3bef096464b3c355f47437e3d061c5fd0d57ae941cd
5
5
  SHA512:
6
- metadata.gz: 7de10531584af5df82433dad9d53b230f2f4a84a4ed995854c0fb70148c87b12b92d9250b4ed954920c7060c2a11310684f52f6c08a8e4cc4efd784a27ecd249
7
- data.tar.gz: f5671103d5d75a4370c094696ce3dc534e5be1e003f0b3a5adbd9cc5c11110e33f70f3ac00283d325b4099fb10420d0d5b0326e97dcae00e44dcf4be86ccd80c
6
+ metadata.gz: 5520c94c1ad776df1246443ebd9fcba130ed3c0a621eb3b465505d0346e695c3454f7b3be8044081f3faeb0644b7f8cf6f35840f79ec9902bb680d6c981f48d9
7
+ data.tar.gz: 24d70c2a5c70a589584d23d09a7987a0e513da0e4ca3d55c0889f4fad1d676fe5efb477247c61a82320e0ef392f75e79c335786e43224f438526f01545505a85
data/.rubocop.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  AllCops:
2
2
  NewCops: enable
3
- TargetRubyVersion: 2.6
3
+ TargetRubyVersion: 3.2
4
4
 
5
5
  Style/StringLiterals:
6
6
  Enabled: true
data/Gemfile.lock CHANGED
@@ -1,68 +1,83 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- openai_pipe (0.1.3)
5
- quick_openai (~> 0.1)
4
+ openai_pipe (0.1.4)
5
+ quick_openai (~> 0.3)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- addressable (2.8.6)
11
- public_suffix (>= 2.0.2, < 6.0)
12
- ast (2.4.2)
13
- diff-lcs (1.5.0)
14
- down (5.4.1)
10
+ addressable (2.8.7)
11
+ public_suffix (>= 2.0.2, < 7.0)
12
+ ast (2.4.3)
13
+ diff-lcs (1.6.1)
14
+ down (5.4.2)
15
15
  addressable (~> 2.8)
16
- httparty (0.21.0)
17
- mini_mime (>= 1.0.0)
18
- multi_xml (>= 0.5.2)
19
- json (2.7.1)
20
- language_server-protocol (3.17.0.3)
21
- mini_mime (1.1.5)
22
- multi_xml (0.6.0)
23
- parallel (1.24.0)
24
- parser (3.3.0.3)
16
+ event_stream_parser (1.0.0)
17
+ faraday (2.13.0)
18
+ faraday-net_http (>= 2.0, < 3.5)
19
+ json
20
+ logger
21
+ faraday-multipart (1.1.0)
22
+ multipart-post (~> 2.0)
23
+ faraday-net_http (3.4.0)
24
+ net-http (>= 0.5.0)
25
+ json (2.10.2)
26
+ language_server-protocol (3.17.0.4)
27
+ lint_roller (1.1.0)
28
+ logger (1.7.0)
29
+ multipart-post (2.4.1)
30
+ net-http (0.6.0)
31
+ uri
32
+ parallel (1.27.0)
33
+ parser (3.3.8.0)
25
34
  ast (~> 2.4.1)
26
35
  racc
27
- public_suffix (5.0.4)
28
- quick_openai (0.1.3)
36
+ prism (1.4.0)
37
+ public_suffix (6.0.1)
38
+ quick_openai (0.3.0)
29
39
  down (~> 5)
30
- ruby-openai (~> 3)
31
- racc (1.7.3)
40
+ ruby-openai (~> 8)
41
+ racc (1.8.1)
32
42
  rainbow (3.1.1)
33
- rake (13.1.0)
34
- regexp_parser (2.9.0)
35
- rexml (3.2.6)
36
- rspec (3.12.0)
37
- rspec-core (~> 3.12.0)
38
- rspec-expectations (~> 3.12.0)
39
- rspec-mocks (~> 3.12.0)
40
- rspec-core (3.12.2)
41
- rspec-support (~> 3.12.0)
42
- rspec-expectations (3.12.3)
43
+ rake (13.2.1)
44
+ regexp_parser (2.10.0)
45
+ rspec (3.13.0)
46
+ rspec-core (~> 3.13.0)
47
+ rspec-expectations (~> 3.13.0)
48
+ rspec-mocks (~> 3.13.0)
49
+ rspec-core (3.13.3)
50
+ rspec-support (~> 3.13.0)
51
+ rspec-expectations (3.13.3)
43
52
  diff-lcs (>= 1.2.0, < 2.0)
44
- rspec-support (~> 3.12.0)
45
- rspec-mocks (3.12.6)
53
+ rspec-support (~> 3.13.0)
54
+ rspec-mocks (3.13.2)
46
55
  diff-lcs (>= 1.2.0, < 2.0)
47
- rspec-support (~> 3.12.0)
48
- rspec-support (3.12.1)
49
- rubocop (1.59.0)
56
+ rspec-support (~> 3.13.0)
57
+ rspec-support (3.13.2)
58
+ rubocop (1.75.2)
50
59
  json (~> 2.3)
51
- language_server-protocol (>= 3.17.0)
60
+ language_server-protocol (~> 3.17.0.2)
61
+ lint_roller (~> 1.1.0)
52
62
  parallel (~> 1.10)
53
- parser (>= 3.2.2.4)
63
+ parser (>= 3.3.0.2)
54
64
  rainbow (>= 2.2.2, < 4.0)
55
- regexp_parser (>= 1.8, < 3.0)
56
- rexml (>= 3.2.5, < 4.0)
57
- rubocop-ast (>= 1.30.0, < 2.0)
65
+ regexp_parser (>= 2.9.3, < 3.0)
66
+ rubocop-ast (>= 1.44.0, < 2.0)
58
67
  ruby-progressbar (~> 1.7)
59
- unicode-display_width (>= 2.4.0, < 3.0)
60
- rubocop-ast (1.30.0)
61
- parser (>= 3.2.1.0)
62
- ruby-openai (3.7.0)
63
- httparty (>= 0.18.1)
68
+ unicode-display_width (>= 2.4.0, < 4.0)
69
+ rubocop-ast (1.44.1)
70
+ parser (>= 3.3.7.2)
71
+ prism (~> 1.4)
72
+ ruby-openai (8.1.0)
73
+ event_stream_parser (>= 0.3.0, < 2.0.0)
74
+ faraday (>= 1)
75
+ faraday-multipart (>= 1)
64
76
  ruby-progressbar (1.13.0)
65
- unicode-display_width (2.5.0)
77
+ unicode-display_width (3.1.4)
78
+ unicode-emoji (~> 4.0, >= 4.0.4)
79
+ unicode-emoji (4.0.4)
80
+ uri (1.0.3)
66
81
 
67
82
  PLATFORMS
68
83
  x86_64-freebsd-13
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OpenAIPipe
4
- VERSION = "0.1.3"
4
+ VERSION = "0.2.0"
5
5
  end
data/lib/openai_pipe.rb CHANGED
@@ -14,7 +14,7 @@ module OpenAIPipe
14
14
 
15
15
  prompt = [input_from_arguments, input_from_pipe].compact.join("\n\n")
16
16
 
17
- puts prompt.gpt3
17
+ puts prompt.gpt
18
18
  rescue QuickOpenAI::Error => e
19
19
  warn e.message
20
20
  exit 1
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openai_pipe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John DeSilva
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-01-13 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: quick_openai
@@ -16,14 +15,14 @@ dependencies:
16
15
  requirements:
17
16
  - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: '0.1'
18
+ version: '0.3'
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - "~>"
25
24
  - !ruby/object:Gem::Version
26
- version: '0.1'
25
+ version: '0.3'
27
26
  description: Provides pipe and redirect functionality to quick_openai
28
27
  email:
29
28
  - desilvjo@umich.edu
@@ -51,7 +50,7 @@ metadata:
51
50
  homepage_uri: https://www.github.com/Aesthetikx/openai_pipe
52
51
  source_code_uri: https://www.github.com/Aesthetikx/openai_pipe
53
52
  changelog_uri: https://www.github.com/Aesthetikx/openai_pipe/blob/master/CHANGELOG.md
54
- post_install_message:
53
+ rubygems_mfa_required: 'true'
55
54
  rdoc_options: []
56
55
  require_paths:
57
56
  - lib
@@ -59,15 +58,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
59
58
  requirements:
60
59
  - - ">="
61
60
  - !ruby/object:Gem::Version
62
- version: 2.6.0
61
+ version: '3.2'
63
62
  required_rubygems_version: !ruby/object:Gem::Requirement
64
63
  requirements:
65
64
  - - ">="
66
65
  - !ruby/object:Gem::Version
67
66
  version: '0'
68
67
  requirements: []
69
- rubygems_version: 3.4.10
70
- signing_key:
68
+ rubygems_version: 3.6.7
71
69
  specification_version: 4
72
70
  summary: A UNIX-ey interface to OpenAI
73
71
  test_files: []