ruby-chatgpt 0.1.1 → 0.1.2

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: 14be782a508a9479bd23945bd1de0554c7ccdf2f0243b4788b6dc79977f548d3
4
- data.tar.gz: 958ffce17c2776260214aaaaa37bb682bb8d483924d9b494eb55de3cbc387bbd
3
+ metadata.gz: cebb900d9cb94e14b4d1eed53454509b44e43447aa194825aab559a97523da5c
4
+ data.tar.gz: 480a699c71ae43d1afe7170c50dbfb088184c60ef432328973b8429f56555b41
5
5
  SHA512:
6
- metadata.gz: 8ffefabce2b54396e3d032dca65e1846b102151b70ef2fa796ab580f107ac5bf5f378fc88f03e49db529169a1896361baf358df2e70d9c54adaa3daf8248ddcc
7
- data.tar.gz: e04712afcbec760250ad8e78b7d7c66b48076a2b7f78556a8f3eef2250c757bdacf3c981fbfb538a9206bf4cfa5c831e83826b05d217efb0b1c9c9e1d9a3f567
6
+ metadata.gz: 770734dbc5a0710adba4d1a482e90e6465543f6361e473e6786a6cc208acf2d6fa006cffe0aa8e5cc84daef4a5a9c6971ae8a4584316185fd2a02b9ea5928b12
7
+ data.tar.gz: cbc5d7efa431da839c203eebb34a7570b34b3ac4b3c3eb80a3b301c0468a24cb56112dfc9571232956931c69a545c550dc461103bacab927096d22cbf6f7ca52
data/CHANGELOG.md CHANGED
@@ -1,4 +1,12 @@
1
- ## [Unreleased]
1
+ # Changelog
2
+
3
+ ## [0.1.2] - 2023-05-07
4
+
5
+ ### Changed
6
+
7
+ - Update README to showcase installation and usage
8
+ - Update `.gemspec` with homepage and source code uri's
9
+ - Ignore \*.gem files in git
2
10
 
3
11
  ## [0.1.0] - 2023-05-06
4
12
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-chatgpt (0.1.1)
4
+ ruby-chatgpt (0.1.2)
5
5
  ruby-openai (~> 4.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1,32 +1,47 @@
1
- # Ruby::Chatgpt
1
+ # Ruby ChatGPT
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/ruby/chatgpt`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ [![Gem Version](https://badge.fury.io/rb/ruby-chatgpt.svg)](https://badge.fury.io/rb/ruby-chatgpt)
4
+ [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/richo225/ruby-chatgpt/blob/main/LICENSE.txt)
4
5
 
5
- TODO: Delete this and the text above, and describe your gem
6
+ CLI for interacting and conversing with [OpenAI](https://platform.openai.com/docs/api-reference/chat).
6
7
 
7
- ## Installation
8
+ Stream text with GPT-3.5 from the command line! 🌊🤖
8
9
 
9
- Install the gem and add to the application's Gemfile by executing:
10
+ Demo for an article I wrote on my [blog](https://richardbates.dev/blog/2023-05-05).
10
11
 
11
- $ bundle add ruby-chatgpt
12
+ ## Installation
12
13
 
13
- If bundler is not being used to manage dependencies, install the gem by executing:
14
+ Install the gem:
14
15
 
15
- $ gem install ruby-chatgpt
16
+ ```shell
17
+ $ gem install ruby-chatgpt
18
+ ```
16
19
 
17
20
  ## Usage
18
21
 
19
- TODO: Write usage instructions here
22
+ - Get your API key from [https://platform.openai.com/account/api-keys](https://platform.openai.com/account/api-keys).
23
+ - Set this value to the `OPENAI_API_KEY` environment variable.
24
+
25
+ Run the `chatgpt` executable:
26
+
27
+ ```shell
28
+ $ chatgpt
29
+ => Enter a prompt (or "exit" to quit): What is the capital of Taiwan?
30
+ The capital of Taiwan is Taipei.
31
+ => Enter a prompt (or "exit" to quit): How many people live in Taipei?
32
+ As an AI language model, I do not have access to real-time data. However, according to the United Nations, the estimated population of Taipei in 2021 is around 2.8 million.
33
+ => Enter a prompt (or "exit" to quit):
34
+ ```
20
35
 
21
36
  ## Development
22
37
 
23
38
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
24
39
 
25
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
40
+ To install this gem onto your local machine, run `bundle exec rake install`.
26
41
 
27
42
  ## Contributing
28
43
 
29
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ruby-chatgpt. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/ruby-chatgpt/blob/master/CODE_OF_CONDUCT.md).
44
+ Bug reports and pull requests are welcome on GitHub at https://github.com/richo225/ruby-chatgpt. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/ruby-chatgpt/blob/master/CODE_OF_CONDUCT.md).
30
45
 
31
46
  ## License
32
47
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ruby
4
4
  module Chatgpt
5
- VERSION = "0.1.1"
5
+ VERSION = "0.1.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-chatgpt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Bates
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-06 00:00:00.000000000 Z
11
+ date: 2023-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-openai
@@ -24,7 +24,7 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4.0'
27
- description: CLI interface for OpenAI ChatGPT in Ruby
27
+ description: "CLI interface for OpenAI ChatGPT in Ruby \U0001F30A\U0001F916"
28
28
  email:
29
29
  - rich.bates@protonmail.com
30
30
  executables:
@@ -46,10 +46,13 @@ files:
46
46
  - lib/ruby/chatgpt/version.rb
47
47
  - ruby-chatgpt-0.1.0.gem
48
48
  - sig/ruby/chatgpt.rbs
49
- homepage:
49
+ homepage: https://github.com/richo225/ruby-chatgpt
50
50
  licenses:
51
51
  - MIT
52
- metadata: {}
52
+ metadata:
53
+ homepage_uri: https://github.com/richo225/ruby-chatgpt
54
+ source_code_uri: https://github.com/richo225/ruby-chatgpt
55
+ changelog_uri: https://github.com/richo225/ruby-chatgpt/blob/main/CHANGELOG.md
53
56
  post_install_message:
54
57
  rdoc_options: []
55
58
  require_paths:
@@ -68,5 +71,5 @@ requirements: []
68
71
  rubygems_version: 3.1.6
69
72
  signing_key:
70
73
  specification_version: 4
71
- summary: CLI interface for OpenAI ChatGPT in Ruby
74
+ summary: "CLI interface for OpenAI ChatGPT in Ruby \U0001F30A\U0001F916"
72
75
  test_files: []