ai_git_commit 0.1.3 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0f6228c5a3c3d2070a5136aa0b507c6f6688f6e7d243c5598ae7334af6a30ff
4
- data.tar.gz: 78840856664de65815a4679d484ec2b2f8c0aa540156e2397a837aadf726bac5
3
+ metadata.gz: 20a325b39cb78e338c1a51f4913d5c7d21194eb8746fcbb26ca1a02ef8551a96
4
+ data.tar.gz: ba7544824e712c0405ec814f204d5d0985de3cbd6ab6f8806d3f36b3e1d81d38
5
5
  SHA512:
6
- metadata.gz: bc27f178fdfc351beaec4c3563645dce50cb12f0c82301eaeca2dfa4911c7a0956ad7472438128f169169a4120cf5f5cf815277919d4658136b109bc8fc0f3e2
7
- data.tar.gz: 7b8c9caa21eb3ca04d12f4a30c0e2f43d5aa226f4b00ab50a43efe23b32f74641f5a2a4f42f1b3d818fa5bc7c3c98e4d4469ac01554308bcac5009f82b2da5a6
6
+ metadata.gz: bfe3c695d03abb398a1f53125ccb474ff5ace816e06b6dbb2a84a7d7e53c135be3be9431a7e65448f5679866728cb13d4249a17498b88067254d1c0d142db1d9
7
+ data.tar.gz: '069beb1bf9a52803d2a36bc1a55d37a2a64143a8f89290e08563fd523aecc5bb2dfcb4e004387e49e4c93e7a89033f3fb9e3ed4a8257a8621a3262848c685214'
data/.rubocop.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  AllCops:
2
2
  TargetRubyVersion: 3.2
3
+ NewCops: enable
3
4
  Exclude:
4
5
  - 'exe/**/*'
5
6
  - 'vendor/**/*'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.5] - 2025-09-24
4
+ ### Fix
5
+ - Wrong config key for OpenAI API key.
6
+
7
+ ## [0.1.3] - 2025-09-15
8
+ ### Added
9
+ - SKIP_AI environment variable to skip AI generation for specific commits.
10
+
3
11
  ## [0.1.0] - 2025-09-04
4
12
 
5
13
  - Initial release
data/README.md CHANGED
@@ -33,6 +33,11 @@ git commit
33
33
  ```
34
34
  That's it! Your commit message will be generated by AI.
35
35
 
36
+ If you would like to skip the AI generation for a specific commit, you can use:
37
+ ```bash
38
+ SKIP_AI=true git commit
39
+ ```
40
+
36
41
  ## Contributing
37
42
 
38
43
  Bug reports and pull requests are welcome on GitHub at https://github.com/drkmen/ai_git_commit.
@@ -8,7 +8,7 @@ module AiGitCommit
8
8
 
9
9
  # Initializes configuration with default values
10
10
  def initialize
11
- @openai_api_key = ENV["OPENAI_API_KEY"]
11
+ @openai_api_key = ENV.fetch("OPENAI_API_KEY", nil)
12
12
  @model = "gpt-3.5-turbo"
13
13
  @program_language = "Ruby"
14
14
  @max_tokens = 300
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AiGitCommit
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.5"
5
5
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  AiGitCommit.configure do |config|
4
4
  # OpenAI API key
5
- config.api_key = ENV["OPENAI_API_KEY"]
5
+ config.openai_api_key = ENV.fetch("OPENAI_API_KEY", nil)
6
6
 
7
7
  # Specifies the OpenAI model to use for generating commit messages.
8
8
  config.model = "gpt-3.5-turbo"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ai_git_commit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Belyaev
@@ -86,6 +86,7 @@ metadata:
86
86
  homepage_uri: https://github.com/drkmen/ai_git_commit
87
87
  source_code_uri: https://github.com/drkmen/ai_git_commit
88
88
  changelog_uri: https://github.com/drkmen/ai_git_commit/blob/main/CHANGELOG.md
89
+ rubygems_mfa_required: 'true'
89
90
  rdoc_options: []
90
91
  require_paths:
91
92
  - lib
@@ -100,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
101
  - !ruby/object:Gem::Version
101
102
  version: '0'
102
103
  requirements: []
103
- rubygems_version: 3.7.2
104
+ rubygems_version: 3.6.9
104
105
  specification_version: 4
105
106
  summary: AI Git Commit generates Git commit messages using OpenAI.
106
107
  test_files: []