fcom 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +7 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +17 -26
- data/exe/fcom +6 -1
- data/lib/fcom/querier.rb +6 -5
- data/lib/fcom/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00e2945ad5d5d45095c42b6382d00ffc81c74bfb4cff8645f30cf4aeed48c046
|
4
|
+
data.tar.gz: 7f8390b856b985bff3bd10a7ea836255b02fa441b6aaf71607510926f02acb3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10334df1c93ad23de084600ef0a3da231ccea87484191a55c4351c7bfc99f6442981b6ab404c10027febdbd29d239298ba4c9b839c476060b2e6b6d933cc7761
|
7
|
+
data.tar.gz: 9e4290d61757d78f9747b5dbfc47bc655a298476824903a7a0707ed46ca462df62aa6926fe4f5b07c7450571ec7ec59e20e5b4b80ce8f8fc89f0cdd649dc0c0b
|
data/.github/workflows/ruby.yml
CHANGED
@@ -1,19 +1,22 @@
|
|
1
|
-
name: Run
|
1
|
+
name: Run tests, linters, etc
|
2
2
|
|
3
3
|
on:
|
4
4
|
pull_request:
|
5
5
|
branches:
|
6
|
-
|
6
|
+
- '*'
|
7
|
+
push:
|
8
|
+
branches:
|
9
|
+
- main
|
7
10
|
|
8
11
|
jobs:
|
9
12
|
build:
|
10
13
|
runs-on: ubuntu-latest
|
11
14
|
steps:
|
12
|
-
- uses: actions/checkout@
|
15
|
+
- uses: actions/checkout@v4
|
13
16
|
- uses: ruby/setup-ruby@v1
|
14
17
|
with:
|
15
18
|
bundler-cache: true
|
16
|
-
- name: Run
|
19
|
+
- name: Run RuboCop
|
17
20
|
run: bin/rubocop --format clang
|
18
21
|
- name: Run RSpec tests
|
19
22
|
run: bin/rspec --format progress
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fcom (0.
|
4
|
+
fcom (0.8.0)
|
5
5
|
activesupport (>= 6, < 8)
|
6
6
|
memo_wise (>= 1.7, < 2)
|
7
7
|
rainbow (>= 3.0, < 4)
|
@@ -34,14 +34,14 @@ GEM
|
|
34
34
|
json (2.7.2)
|
35
35
|
language_server-protocol (3.17.0.3)
|
36
36
|
memo_wise (1.9.0)
|
37
|
-
method_source (1.
|
38
|
-
minitest (5.
|
37
|
+
method_source (1.1.0)
|
38
|
+
minitest (5.24.0)
|
39
39
|
mutex_m (0.2.0)
|
40
|
-
parallel (1.
|
41
|
-
parser (3.3.
|
40
|
+
parallel (1.25.1)
|
41
|
+
parser (3.3.3.0)
|
42
42
|
ast (~> 2.4.1)
|
43
43
|
racc
|
44
|
-
prism (0.
|
44
|
+
prism (0.30.0)
|
45
45
|
pry (0.14.2)
|
46
46
|
coderay (~> 1.1)
|
47
47
|
method_source (~> 1.0)
|
@@ -52,22 +52,22 @@ GEM
|
|
52
52
|
rainbow (3.1.1)
|
53
53
|
rake (13.2.1)
|
54
54
|
regexp_parser (2.9.2)
|
55
|
-
rexml (3.
|
56
|
-
strscan
|
55
|
+
rexml (3.3.1)
|
56
|
+
strscan
|
57
57
|
rspec (3.13.0)
|
58
58
|
rspec-core (~> 3.13.0)
|
59
59
|
rspec-expectations (~> 3.13.0)
|
60
60
|
rspec-mocks (~> 3.13.0)
|
61
61
|
rspec-core (3.13.0)
|
62
62
|
rspec-support (~> 3.13.0)
|
63
|
-
rspec-expectations (3.13.
|
63
|
+
rspec-expectations (3.13.1)
|
64
64
|
diff-lcs (>= 1.2.0, < 2.0)
|
65
65
|
rspec-support (~> 3.13.0)
|
66
|
-
rspec-mocks (3.13.
|
66
|
+
rspec-mocks (3.13.1)
|
67
67
|
diff-lcs (>= 1.2.0, < 2.0)
|
68
68
|
rspec-support (~> 3.13.0)
|
69
|
-
rspec-support (3.13.
|
70
|
-
rubocop (1.64.
|
69
|
+
rspec-support (3.13.1)
|
70
|
+
rubocop (1.64.1)
|
71
71
|
json (~> 2.3)
|
72
72
|
language_server-protocol (>= 3.17.0)
|
73
73
|
parallel (~> 1.10)
|
@@ -80,29 +80,20 @@ GEM
|
|
80
80
|
unicode-display_width (>= 2.4.0, < 3.0)
|
81
81
|
rubocop-ast (1.31.3)
|
82
82
|
parser (>= 3.3.1.0)
|
83
|
-
rubocop-
|
84
|
-
rubocop (~> 1.41)
|
85
|
-
rubocop-factory_bot (2.25.1)
|
86
|
-
rubocop (~> 1.41)
|
87
|
-
rubocop-performance (1.21.0)
|
83
|
+
rubocop-performance (1.21.1)
|
88
84
|
rubocop (>= 1.48.1, < 2.0)
|
89
85
|
rubocop-ast (>= 1.31.1, < 2.0)
|
90
86
|
rubocop-rake (0.6.0)
|
91
87
|
rubocop (~> 1.0)
|
92
|
-
rubocop-rspec (
|
93
|
-
rubocop (~> 1.
|
94
|
-
rubocop-capybara (~> 2.17)
|
95
|
-
rubocop-factory_bot (~> 2.22)
|
96
|
-
rubocop-rspec_rails (~> 2.28)
|
97
|
-
rubocop-rspec_rails (2.28.3)
|
98
|
-
rubocop (~> 1.40)
|
88
|
+
rubocop-rspec (3.0.1)
|
89
|
+
rubocop (~> 1.61)
|
99
90
|
ruby-progressbar (1.13.0)
|
100
|
-
runger_release_assistant (0.
|
91
|
+
runger_release_assistant (0.8.0)
|
101
92
|
activesupport (>= 6, < 8)
|
102
93
|
memo_wise (>= 1.7, < 2)
|
103
94
|
rainbow (>= 3.0, < 4)
|
104
95
|
slop (~> 4.8)
|
105
|
-
runger_style (2.
|
96
|
+
runger_style (2.8.0)
|
106
97
|
prism (>= 0.24.0)
|
107
98
|
rubocop (>= 1.38.0, < 2)
|
108
99
|
slop (4.10.1)
|
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/querier.rb
CHANGED
@@ -26,13 +26,14 @@ class Fcom::Querier
|
|
26
26
|
|
27
27
|
command = <<~COMMAND.squish
|
28
28
|
git log
|
29
|
-
|
30
|
-
|
29
|
+
--format="commit %s|%H|%an|%cr (%ci)"
|
30
|
+
--patch
|
31
31
|
--full-diff
|
32
32
|
--no-textconv
|
33
|
-
--
|
34
|
-
--
|
35
|
-
|
33
|
+
#{%(--author="#{author}") if author}
|
34
|
+
#{"--since=#{days}.day" unless days.nil?}
|
35
|
+
--
|
36
|
+
#{path}
|
36
37
|
|
|
37
38
|
|
38
39
|
rg #{quote}(#{expression_to_match})|(^commit )|(^diff )#{quote}
|
data/lib/fcom/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fcom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Runger
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
145
|
- !ruby/object:Gem::Version
|
146
146
|
version: '0'
|
147
147
|
requirements: []
|
148
|
-
rubygems_version: 3.5.
|
148
|
+
rubygems_version: 3.5.14
|
149
149
|
signing_key:
|
150
150
|
specification_version: 4
|
151
151
|
summary: CLI tool for parsing git history
|