fcom 0.7.1 → 0.8.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35db81d247c5989cf180a8e865f2bae40e4d7a306beff9689a68fd04029ad72e
4
- data.tar.gz: a9eea81557036e91ca1d13f232393509d84ddc1b232c083f53b16977b4ab08db
3
+ metadata.gz: 00e2945ad5d5d45095c42b6382d00ffc81c74bfb4cff8645f30cf4aeed48c046
4
+ data.tar.gz: 7f8390b856b985bff3bd10a7ea836255b02fa441b6aaf71607510926f02acb3c
5
5
  SHA512:
6
- metadata.gz: 02766b69f09721803ee1baa53f913aeb5789f173830dcd6efcaa34daca5479fb905d0444fffd836dc3aec10b7114c7b25bbdcf1a8a97e9f7ab246cf1c0e69f2b
7
- data.tar.gz: 9cd5afe2a8ef8ee3d7cfd9d7f869b1a08244e9e3bd61287336eea377e3fda68d11545ba0fec43f488f002228a111a53bb04c72048133086784c40b98ff12484c
6
+ metadata.gz: 10334df1c93ad23de084600ef0a3da231ccea87484191a55c4351c7bfc99f6442981b6ab404c10027febdbd29d239298ba4c9b839c476060b2e6b6d933cc7761
7
+ data.tar.gz: 9e4290d61757d78f9747b5dbfc47bc655a298476824903a7a0707ed46ca462df62aa6926fe4f5b07c7450571ec7ec59e20e5b4b80ce8f8fc89f0cdd649dc0c0b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## v0.8.0 (2024-06-28)
2
+ - Print a helpful error message if ripgrep is not installed
3
+
1
4
  ## v0.7.1 (2024-06-28)
2
5
  - Don't error if path option is a deleted file
3
6
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fcom (0.7.1)
4
+ fcom (0.8.0)
5
5
  activesupport (>= 6, < 8)
6
6
  memo_wise (>= 1.7, < 2)
7
7
  rainbow (>= 3.0, < 4)
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 opts.parse_mode?
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/version.rb CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  # rubocop:disable Style/StaticClass
4
4
  class Fcom
5
- VERSION = '0.7.1'
5
+ VERSION = '0.8.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.7.1
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Runger