Skip to content

Commit fe89cbf

Browse files
committed
Update CLI script to require 'ai_git_commit' instead of './lib/ai_git_commit'
for generating commit messages. Refactor CLI spec to reflect this change. Update version to 0.1.2 Bump the gem version from 0.1.1 to 0.1.2 in the `AiGitCommit` module. Update ai_git_commit gem version to 0.1.2 in Gemfile.lock The commit updates the ai_git_commit gem version in Gemfile.lock from 0.1.1 to 0.1.2. This change is necessary to ensure compatibility with the latest updates and improvements in the ai_git_commit gem. The dependencies remain unchanged, with base64 requiring version 0.1.0, openai requiring version 0.22.0, and thor requiring version 1.4. This update ensures that the project is using the latest version of the ai_git_commit gem, incorporating any bug fixes or new features that have been introduced in version 0.1.2.
1 parent a2d45a5 commit fe89cbf

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
ai_git_commit (0.1.1)
4+
ai_git_commit (0.1.2)
55
base64 (~> 0.1.0)
66
openai (~> 0.22.0)
77
thor (~> 1.4)

lib/ai_git_commit/cli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def copy_initializer
5555
def script
5656
<<~SCRIPT
5757
#{"#!/bin/bash" unless hook_file_exists?}
58-
ruby -r './lib/ai_git_commit.rb' -e 'puts AiGitCommit::Generator.commit_message' >> .git/COMMIT_EDITMSG
58+
ruby -r 'ai_git_commit' -e 'puts AiGitCommit::Generator.commit_message' >> .git/COMMIT_EDITMSG
5959
SCRIPT
6060
end
6161

lib/ai_git_commit/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module AiGitCommit
4-
VERSION = "0.1.1"
4+
VERSION = "0.1.2"
55
end

spec/lib/cli_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
let(:hook_file_exists) { true }
9393
let(:script) do
9494
<<~SCRIPT
95-
\nruby -r './lib/ai_git_commit.rb' -e 'puts AiGitCommit::Generator.commit_message' >> .git/COMMIT_EDITMSG
95+
\nruby -r 'ai_git_commit' -e 'puts AiGitCommit::Generator.commit_message' >> .git/COMMIT_EDITMSG
9696
SCRIPT
9797
end
9898

@@ -104,7 +104,7 @@
104104
let(:script) do
105105
<<~SCRIPT
106106
#!/bin/bash
107-
ruby -r './lib/ai_git_commit.rb' -e 'puts AiGitCommit::Generator.commit_message' >> .git/COMMIT_EDITMSG
107+
ruby -r 'ai_git_commit' -e 'puts AiGitCommit::Generator.commit_message' >> .git/COMMIT_EDITMSG
108108
SCRIPT
109109
end
110110

0 commit comments

Comments
 (0)