openai_pipe 0.1.4 → 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: 254f5fe85c535201e96f59ebe7d6028f03048b66535a706ae6aca52dff90dc88
4
- data.tar.gz: f14cb260e61f8b5e4ca67fea042f68de52260e9039a569a48bb887c3aa8f1e77
3
+ metadata.gz: fc6275860a03713a812f5be4b1fd0586aa0d61c6d23eca5d7bc3c19ae7ab6535
4
+ data.tar.gz: 65eb57cd1bd4af5035d8c3bef096464b3c355f47437e3d061c5fd0d57ae941cd
5
5
  SHA512:
6
- metadata.gz: e9c47e8b00343582648339501ddacc18f767456ba66e0f113779adba00b97e03333f40934b5488cd95a47d11d755b4ecb04abc4978db6440c4372fd666c31afc
7
- data.tar.gz: 1dd6f48b130de7ce91af07133610270c159ead53ac74c7b436da713d76131068759c6453702cfe772e6554dac9393cb3c38a3e869af70d6578daf99e95d87002
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.3)
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.4"
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.4
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-06-02 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.3
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.3
25
+ version: '0.3'
27
26
  description: Provides pipe and redirect functionality to quick_openai
28
27
  email:
29
28
  - desilvjo@umich.edu
@@ -43,7 +42,6 @@ files:
43
42
  - exe/openai_pipe
44
43
  - lib/openai_pipe.rb
45
44
  - lib/openai_pipe/version.rb
46
- - openai_pipe.gemspec
47
45
  - sig/openai_pipe.rbs
48
46
  homepage: https://www.github.com/Aesthetikx/openai_pipe
49
47
  licenses:
@@ -53,7 +51,6 @@ metadata:
53
51
  source_code_uri: https://www.github.com/Aesthetikx/openai_pipe
54
52
  changelog_uri: https://www.github.com/Aesthetikx/openai_pipe/blob/master/CHANGELOG.md
55
53
  rubygems_mfa_required: 'true'
56
- post_install_message:
57
54
  rdoc_options: []
58
55
  require_paths:
59
56
  - lib
@@ -61,15 +58,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
61
58
  requirements:
62
59
  - - ">="
63
60
  - !ruby/object:Gem::Version
64
- version: 2.6.0
61
+ version: '3.2'
65
62
  required_rubygems_version: !ruby/object:Gem::Requirement
66
63
  requirements:
67
64
  - - ">="
68
65
  - !ruby/object:Gem::Version
69
66
  version: '0'
70
67
  requirements: []
71
- rubygems_version: 3.3.7
72
- signing_key:
68
+ rubygems_version: 3.6.7
73
69
  specification_version: 4
74
70
  summary: A UNIX-ey interface to OpenAI
75
71
  test_files: []
data/openai_pipe.gemspec DELETED
@@ -1,37 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/openai_pipe/version"
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "openai_pipe"
7
- spec.version = OpenAIPipe::VERSION
8
- spec.authors = ["John DeSilva"]
9
- spec.email = ["desilvjo@umich.edu"]
10
-
11
- spec.summary = "A UNIX-ey interface to OpenAI"
12
- spec.description = "Provides pipe and redirect functionality to quick_openai"
13
- spec.homepage = "https://www.github.com/Aesthetikx/openai_pipe"
14
- spec.license = "MIT"
15
- spec.required_ruby_version = ">= 2.6.0"
16
-
17
- spec.metadata["homepage_uri"] = spec.homepage
18
- spec.metadata["source_code_uri"] = "https://www.github.com/Aesthetikx/openai_pipe"
19
- spec.metadata["changelog_uri"] = "https://www.github.com/Aesthetikx/openai_pipe/blob/master/CHANGELOG.md"
20
- spec.metadata["rubygems_mfa_required"] = "true"
21
-
22
- # Specify which files should be added to the gem when it is released.
23
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
24
- spec.files = Dir.chdir(__dir__) do
25
- `git ls-files -z`.split("\x0").reject do |f|
26
- (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
27
- end
28
- end
29
- spec.bindir = "exe"
30
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
31
- spec.require_paths = ["lib"]
32
-
33
- spec.add_dependency "quick_openai", "~> 0.1.3"
34
-
35
- # For more information and examples about making a new gem, check out our
36
- # guide at: https://bundler.io/guides/creating_gem.html
37
- end