commit_ai 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/commit_ai/version.rb +1 -1
- data/lib/commit_ai.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ba0524e5f1c3fa71ddc632dec527ff381d100a18241cb43934199f2a2e051dc
|
4
|
+
data.tar.gz: 95f336051d80c86068a93d1138c19c81978bfa631c7c2dad7878df4e251b053e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84ebdca607930387d57e1cffac6bb7ee221ac12aaa0d25c54889064c89c9560cea15cccbb2c654eae3a2e2dd3d4d4c1195289265c2c1d17a2fe041efdb79ad91
|
7
|
+
data.tar.gz: 703b364032b8a370be4c3fbdb1f27535a38d14749e98cd2282ce89c8f77e648af48cf9a5f66c028ce8b73d4315ed58f86a13cf34d1763cf2ea4a0fd106e7a19c
|
data/lib/commit_ai/version.rb
CHANGED
data/lib/commit_ai.rb
CHANGED
@@ -41,7 +41,7 @@ class CommitAI
|
|
41
41
|
loop do
|
42
42
|
commit_message = generate_commit_message(diff)
|
43
43
|
puts "Generated Commit Message: #{commit_message}"
|
44
|
-
print "Do you want to proceed with the commit? (y/n)
|
44
|
+
print "Do you want to proceed with the commit? (y/n), regenerate (r), or edit (e): "
|
45
45
|
response = STDIN.gets.chomp
|
46
46
|
case response.downcase
|
47
47
|
when 'y'
|
@@ -49,6 +49,9 @@ class CommitAI
|
|
49
49
|
break
|
50
50
|
when 'r'
|
51
51
|
next
|
52
|
+
when 'e'
|
53
|
+
system("git commit -m '#{commit_message}' -e")
|
54
|
+
break
|
52
55
|
else
|
53
56
|
puts "Commit aborted."
|
54
57
|
break
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: commit_ai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ken Vitug
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-openai
|