git-gpt 0.0.3 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 361917c413bdd904805df016c8b3574bc5fe27d5ac69b50e0bbbc6bd2eadfe37
4
- data.tar.gz: e993f778f75d42f858dfd614fb758f920d08dbd75ab65e8db852ea6450dd1014
3
+ metadata.gz: a2078d9c3a8dc4b4369906cf4e571f83039e2eaac0777501188abce7073a7f60
4
+ data.tar.gz: b317be95bf26241f74339735ca35384fc22538795d183cc1d227c90aeac43b3a
5
5
  SHA512:
6
- metadata.gz: d09b73de08fa50e61feb3280b2e4178882b1da97bdcdeda0ac7b04b9257d28478b8468c9683b7e73e1af10e8c564e831b8f8d83a7a2e5f0984f505e797c8df98
7
- data.tar.gz: 62a5a8e076e111351ff5261d5b31b93e3028894c97a7f35898fa764d7876af75f7833b9bb8bf586332beb84068d7663318c7d3cc022034b977e88eb74b4e1999
6
+ metadata.gz: d67ad9836c1ea99985e482c5a2df5da873d4e2e32d2c7b691ec0fda75c0d4b21894d376bc4b5ed99ff6e6e9b64b1d1ae5b131a440496283570933217dfdd51a4
7
+ data.tar.gz: 7b7651c024ce9dc14412f14701c6bdba8ef917045dcfa3618d31f13eeb77f47728018608e732cb69ad165dead5390558883ad92f14e61c560f3b26b1f7100568
data/Gemfile.lock CHANGED
@@ -1,7 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- git-gpt (0.0.1)
4
+ git-gpt (0.0.3)
5
+ json
5
6
  ruby-openai (~> 4.0)
6
7
 
7
8
  GEM
@@ -9,7 +10,7 @@ GEM
9
10
  specs:
10
11
  ast (2.4.2)
11
12
  diff-lcs (1.5.0)
12
- faraday (2.7.4)
13
+ faraday (2.7.6)
13
14
  faraday-net_http (>= 2.0, < 3.1)
14
15
  ruby2_keywords (>= 0.0.4)
15
16
  faraday-multipart (1.0.4)
data/README.md CHANGED
@@ -70,7 +70,7 @@ See a real example [here](https://github.com/assaydepot/git-gpt/blob/main/.git-g
70
70
 
71
71
  ## Contributing
72
72
 
73
- Bug reports and pull requests are welcome on GitHub at https://github.com/your-github-username/git-gpt. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
73
+ Bug reports and pull requests are welcome on GitHub at https://github.com/assaydepot/git-gpt. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
74
74
 
75
75
  ## License
76
76
 
data/git-gpt.gemspec CHANGED
@@ -35,6 +35,7 @@ Gem::Specification.new do |spec|
35
35
  # Uncomment to register a new dependency of your gem
36
36
  # spec.add_development_dependency "rspec"
37
37
  # spec.add_dependency "thor"
38
+ spec.add_dependency "json"
38
39
  spec.add_dependency "ruby-openai", "~> 4.0"
39
40
 
40
41
  # For more information and examples about making a new gem, check out our
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Git
4
4
  module Gpt
5
- VERSION = "0.0.3"
5
+ VERSION = "0.0.5"
6
6
  end
7
7
  end
data/lib/git/gpt.rb CHANGED
@@ -10,21 +10,19 @@ module Git
10
10
  class Error < StandardError; end
11
11
  class CLI
12
12
  def run(argv=nil)
13
- prompt =<<-EOS
14
- You are a software engineer working on a project. You write diligent and detailed commit messages. You are working on a new feature and you are ready to commit your changes.
13
+ prompt =<<EOS
14
+ You are a software engineer working on a project. You write diligent and detailed commit messages. You are working on a new feature and you are ready to commit your changes.
15
15
 
16
- The current git status is:
17
- ```
18
- $GIT_STATUS
19
- ```
16
+ The current git status is:
20
17
 
21
- The current git diff is:
22
- ```
23
- $GIT_DIFF
24
- ```
18
+ $GIT_STATUS
25
19
 
26
- Please write a commit message for this change. The commit message should be a single sentence. The commit message should start with a capital letter. The commit message should end with a period. The commit message should be 50 characters or less.
27
- EOS
20
+ The current git diff is:
21
+
22
+ $GIT_DIFF
23
+
24
+ Please write a commit message for this change. Format the commit message using markdown. You may use bullet points. Please comment specifically on any files with significant changes.
25
+ EOS
28
26
 
29
27
  config = {
30
28
  "model" => "gpt-3.5-turbo",
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-gpt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Petersen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-08 00:00:00.000000000 Z
11
+ date: 2023-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: json
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: ruby-openai
15
29
  requirement: !ruby/object:Gem::Requirement