fcom 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 00e2945ad5d5d45095c42b6382d00ffc81c74bfb4cff8645f30cf4aeed48c046
4
- data.tar.gz: 7f8390b856b985bff3bd10a7ea836255b02fa441b6aaf71607510926f02acb3c
3
+ metadata.gz: 1f91904fc77448ff996bd6d4a8154a92f9429e24ddba55d9b9e9d921d99d8565
4
+ data.tar.gz: 6403ca8e50f7f983d1c27ee2f6e2395726bb8871943d7d1e61919dacaf43813a
5
5
  SHA512:
6
- metadata.gz: 10334df1c93ad23de084600ef0a3da231ccea87484191a55c4351c7bfc99f6442981b6ab404c10027febdbd29d239298ba4c9b839c476060b2e6b6d933cc7761
7
- data.tar.gz: 9e4290d61757d78f9747b5dbfc47bc655a298476824903a7a0707ed46ca462df62aa6926fe4f5b07c7450571ec7ec59e20e5b4b80ce8f8fc89f0cdd649dc0c0b
6
+ metadata.gz: ef17dcd4f41915e6ceb5d757ffa5e859b14deee13796e2f99e48101ba22e961f035a50a45d0d43339b249f6ee937bbd5c37c04dd3a65afab7fd72804dbdb0d93
7
+ data.tar.gz: f7a40bf346a8d0f46172681592ad064f2ec313d6d03a218119231a3214ba652acf3468ffdcba9e678e71ee63f6cb6c5fbe2605d1ca055644ae893ff6e34396c9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## v0.9.0 (2024-06-28)
2
+ - Print first 8 characters of commit SHA (not 7)
3
+
1
4
  ## v0.8.0 (2024-06-28)
2
5
  - Print a helpful error message if ripgrep is not installed
3
6
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fcom (0.8.0)
4
+ fcom (0.9.0)
5
5
  activesupport (>= 6, < 8)
6
6
  memo_wise (>= 1.7, < 2)
7
7
  rainbow (>= 3.0, < 4)
data/lib/fcom/parser.rb CHANGED
@@ -39,7 +39,8 @@ class Fcom::Parser
39
39
  elsif line.match?(regex) && (filename.blank? || path_match?(filename))
40
40
  if previous_commit
41
41
  title, sha, author, date = previous_commit.split('|')
42
- sha_with_url = "#{sha[0, 7]} ( https://github.com/#{repo}/commit/#{sha[0, 7]} )"
42
+ short_sha = sha[0, 8]
43
+ sha_with_url = "#{short_sha} ( https://github.com/#{repo}/commit/#{short_sha} )"
43
44
 
44
45
  puts("\n\n") if a_commit_has_matched # print commit separator, if needed
45
46
  puts([title, sha_with_url, author, date])
data/lib/fcom/version.rb CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  # rubocop:disable Style/StaticClass
4
4
  class Fcom
5
- VERSION = '0.8.0'
5
+ VERSION = '0.9.0'
6
6
  end
7
7
  # rubocop:enable Style/StaticClass
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fcom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Runger