commit_ai 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: 2be7cd22495b103070f0928bb08fbca747f912b68e7a74b35bae7ce7605ea8bb
4
- data.tar.gz: 71f79a96dd55d7f63da8b35034aa7f965947cf5440782d95913f234ea98df6d4
3
+ metadata.gz: 66c07b08a2fc54c6d6bbc02b1b03b5f01e82916edb8a6378d38105f210ef0503
4
+ data.tar.gz: 76cf220903f700836625dfe602a918a18ae12e54af8b49dc245f670b2a7371af
5
5
  SHA512:
6
- metadata.gz: 5b0ca833ff8aa5db719ee97368bc8f767d6fb809e3b46f48a36016f12e6fa0bc7897d581dc2105295539f79251c6f3de99024e1aa426c8cf71c2e659333939e6
7
- data.tar.gz: aa8f7e86731b12988eae20a2eb6d0df61e6be365217af53f8c060fadcd9808aeb3febb7c1267039def8311d8dbb2ed3db0e752e601a32b7f617857a32cacbc2a
6
+ metadata.gz: 6098703d7a2d103557dc3672c5813b3669875a587cc01130c93f4253d8462d7020b8bcf82637a9c0dad50e7f2367f570b26d5c09b52936e433197c7bbffeb861
7
+ data.tar.gz: 0d910361f0d9b204c5afdb7e348fa5fd73e30a50fa182b5cdb508bee6e194aa42b5428a1ebf2a5f7422226866c2582614123d9a9c7778556a42ab3953283fe63
data/exe/commit_ai CHANGED
@@ -5,5 +5,10 @@ $LOAD_PATH.unshift(File.expand_path('../lib', __dir__))
5
5
 
6
6
  require 'commit_ai'
7
7
 
8
+ if ENV['OPENAI_ACCESS_TOKEN'].nil?
9
+ puts "OPENAI_ACCESS_TOKEN is not set. Please set it in your environment variables."
10
+ exit
11
+ end
12
+
8
13
  commit_ai = CommitAI.new
9
14
  commit_ai.execute
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CommitAi
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
data/lib/commit_ai.rb CHANGED
@@ -2,7 +2,7 @@ require 'openai'
2
2
 
3
3
  class CommitAI
4
4
  def initialize
5
- @client = OpenAI::Client.new(access_token: ENV['OPENAI_API_KEY'])
5
+ @client = OpenAI::Client.new(access_token: ENV['OPENAI_ACCESS_TOKEN'])
6
6
  end
7
7
 
8
8
  def analyze_codebase
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commit_ai
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
  - Ken Vitug