autogitc 0.2.0 → 0.3.1

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/autogitc +13 -6
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 31e42a7e24a75eb40f81bebbb8f10736713b09e81eea160c8ec272b4db7f4ac4
4
- data.tar.gz: 2d6baf30747d55b948565d59e4960b09cdc6d34cc9f48c3452377b8e5d294f9d
3
+ metadata.gz: 52e7d94f98de52c902808baecc724449f56128cf85a6b9a308892139789cb80d
4
+ data.tar.gz: da9da262b2e2e597cdbe7f273b1c8def5df7bac9bfcdad7ace272fb124b8a8fb
5
5
  SHA512:
6
- metadata.gz: fff1a7406f9b8068cc8540292d8ea66de54d18fc264cd6a6753e2c8f51e0c9785fe2a8194d9f618e9786d32cbc6e378c4cbc7b0124559be0335307fba8129eb7
7
- data.tar.gz: 3aad6d08f82d07e339efe31b8bb4051a0c5d127d8993be9f87e75f396904002932c71c006af54deedd51dcf7e70ec6af0e7c26f9f568066f88981b16b595dab3
6
+ metadata.gz: 47a2f05c942e884654eb3defa7b689f4bc022bdbc025742e5c9def0424ba9090ac54153f5337ea27f778d953d33418bda80bc41b57f8e9a9373f5d6f5da86eda
7
+ data.tar.gz: 95aaf9bfab1898e1104c341e695f0a458669603e3d4ba5f75589a4ccaf466fe154b06a715a92537a8efa235ee3eee0d0a9817791d19bb42fea07a94f9c8bfc0b
data/bin/autogitc CHANGED
@@ -3,6 +3,12 @@ require 'bundler/setup'
3
3
  require_relative '../lib/commit_generator'
4
4
  require_relative '../lib/pr_template_generator'
5
5
 
6
+ if ARGV.include?('--version')
7
+ gemspec = Gem::Specification.load('autogitc.gemspec')
8
+ puts "autogitc version #{gemspec.version}"
9
+ exit
10
+ end
11
+
6
12
  if ARGV.include?('pr')
7
13
  base_branch_arg = ARGV.find { |arg| arg.start_with?('--base=') }
8
14
  base_branch = base_branch_arg ? base_branch_arg.split('=').last : 'main'
@@ -10,10 +16,11 @@ if ARGV.include?('pr')
10
16
 
11
17
  puts 'Running PR template generator...'
12
18
  PrTemplateGenerator.main(base_branch: base_branch)
13
- else
14
- no_commit = ARGV.include?('--nocommit') || ARGV.include?('--nc')
15
- must_have_text = ARGV.find { |arg| arg.start_with?('--text=') }&.split('=')&.last
16
-
17
- puts 'Running autogitc...'
18
- CommitGenerator.main(no_commit: no_commit, must_have_text: must_have_text)
19
+ exit
19
20
  end
21
+
22
+ no_commit = ARGV.include?('--nocommit') || ARGV.include?('--nc')
23
+ must_have_text = ARGV.find { |arg| arg.start_with?('--text=') }&.split('=')&.last
24
+
25
+ puts 'Running autogitc...'
26
+ CommitGenerator.main(no_commit: no_commit, must_have_text: must_have_text)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autogitc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Goh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-31 00:00:00.000000000 Z
11
+ date: 2024-09-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This gem simplifies the commit process by automatically generating descriptive
14
14
  commit messages based on the files that have been added to the Git staging area.
@@ -36,7 +36,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: '0'
39
+ version: 3.0.0
40
40
  required_rubygems_version: !ruby/object:Gem::Requirement
41
41
  requirements:
42
42
  - - ">="