fcom 0.7.1 → 0.9.0
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/exe/fcom +6 -1
- data/lib/fcom/parser.rb +2 -1
- data/lib/fcom/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f91904fc77448ff996bd6d4a8154a92f9429e24ddba55d9b9e9d921d99d8565
|
4
|
+
data.tar.gz: 6403ca8e50f7f983d1c27ee2f6e2395726bb8871943d7d1e61919dacaf43813a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef17dcd4f41915e6ceb5d757ffa5e859b14deee13796e2f99e48101ba22e961f035a50a45d0d43339b249f6ee937bbd5c37c04dd3a65afab7fd72804dbdb0d93
|
7
|
+
data.tar.gz: f7a40bf346a8d0f46172681592ad064f2ec313d6d03a218119231a3214ba652acf3468ffdcba9e678e71ee63f6cb6c5fbe2605d1ca055644ae893ff6e34396c9
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/exe/fcom
CHANGED
@@ -43,7 +43,12 @@ opts =
|
|
43
43
|
# Note: mutating the globally accessible `Fcom.logger` constant like this is not thread-safe
|
44
44
|
Fcom.logger.level = Logger::DEBUG if opts.debug?
|
45
45
|
|
46
|
-
if
|
46
|
+
if !system('which rg > /dev/null')
|
47
|
+
puts("fcom requires that `rg` (ripgrep) be available on your PATH, but it's not.".red)
|
48
|
+
puts('If you are using Homebrew, you can install ripgrep with `brew install ripgrep`.'.blue)
|
49
|
+
|
50
|
+
exit(1)
|
51
|
+
elsif opts.parse_mode?
|
47
52
|
Fcom::Parser.new(opts).parse
|
48
53
|
elsif !opts.arguments.empty?
|
49
54
|
Fcom.warn_if_config_file_repo_option_missing
|
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
|
-
|
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