git-gpt 0.0.3 → 0.0.5
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 +4 -4
- data/Gemfile.lock +3 -2
- data/README.md +1 -1
- data/git-gpt.gemspec +1 -0
- data/lib/git/gpt/version.rb +1 -1
- data/lib/git/gpt.rb +10 -12
- metadata +16 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a2078d9c3a8dc4b4369906cf4e571f83039e2eaac0777501188abce7073a7f60
|
|
4
|
+
data.tar.gz: b317be95bf26241f74339735ca35384fc22538795d183cc1d227c90aeac43b3a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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.
|
|
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/
|
|
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
|
data/lib/git/gpt/version.rb
CHANGED
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
|
|
14
|
-
|
|
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
|
-
|
|
17
|
-
```
|
|
18
|
-
$GIT_STATUS
|
|
19
|
-
```
|
|
16
|
+
The current git status is:
|
|
20
17
|
|
|
21
|
-
|
|
22
|
-
```
|
|
23
|
-
$GIT_DIFF
|
|
24
|
-
```
|
|
18
|
+
$GIT_STATUS
|
|
25
19
|
|
|
26
|
-
|
|
27
|
-
|
|
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.
|
|
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-
|
|
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
|