fcom 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.runger-config.yml +1 -0
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +24 -26
- data/lib/fcom/querier.rb +26 -9
- data/lib/fcom/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca772996982a100031b4fad3cea331376c979c38941ad102768b68ab4feebf01
|
4
|
+
data.tar.gz: 45955a933cd9a1cc9e4da8b6f724e6958830b9a07164b3d12d060d531d7ca4d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d358b5bf3ee6f0bb415f945314241b2b2cd5982c16625dfcb35788b0606523b68dd3c9ebc21332c3f9af4fac34458b682e89e99fe9a505da1ebeb91514f318f2
|
7
|
+
data.tar.gz: ec520e9862d49f3c9e65961c84985bee6ab1bda58531054d73fcef466b58ee38243e35641c2e2eca6a033dff047bfb84d04733e904731629f73f68cf72723cf0
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.3.
|
1
|
+
3.3.5
|
data/.runger-config.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
expected-num-github-checks: 1
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## v0.13.0 (2024-09-08)
|
2
|
+
- Add `--topo-order` (topological order) option to `git log` command
|
3
|
+
|
4
|
+
## v0.12.1 (2024-08-05)
|
5
|
+
- **Performance fix:** only search over renames when a path is given.
|
6
|
+
- **Performance fix:** only follow renames as far back as the `--days` option (if provided).
|
7
|
+
|
1
8
|
## v0.12.0 (2024-07-21)
|
2
9
|
- Default `--rg-options` to `--max-columns=2000`
|
3
10
|
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fcom (0.
|
4
|
+
fcom (0.13.0)
|
5
5
|
activesupport (>= 6, < 8)
|
6
6
|
memo_wise (>= 1.7, < 2)
|
7
7
|
rainbow (>= 3.0, < 4)
|
@@ -10,22 +10,23 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
activesupport (7.1
|
13
|
+
activesupport (7.2.1)
|
14
14
|
base64
|
15
15
|
bigdecimal
|
16
|
-
concurrent-ruby (~> 1.0, >= 1.
|
16
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
17
17
|
connection_pool (>= 2.2.5)
|
18
18
|
drb
|
19
19
|
i18n (>= 1.6, < 2)
|
20
|
+
logger (>= 1.4.2)
|
20
21
|
minitest (>= 5.1)
|
21
|
-
|
22
|
-
tzinfo (~> 2.0)
|
22
|
+
securerandom (>= 0.3)
|
23
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
23
24
|
ast (2.4.2)
|
24
25
|
base64 (0.2.0)
|
25
26
|
bigdecimal (3.1.8)
|
26
27
|
byebug (11.1.3)
|
27
28
|
coderay (1.1.3)
|
28
|
-
concurrent-ruby (1.3.
|
29
|
+
concurrent-ruby (1.3.4)
|
29
30
|
connection_pool (2.4.1)
|
30
31
|
diff-lcs (1.5.1)
|
31
32
|
drb (2.2.1)
|
@@ -33,71 +34,68 @@ GEM
|
|
33
34
|
concurrent-ruby (~> 1.0)
|
34
35
|
json (2.7.2)
|
35
36
|
language_server-protocol (3.17.0.3)
|
37
|
+
logger (1.6.1)
|
36
38
|
memo_wise (1.9.0)
|
37
39
|
method_source (1.1.0)
|
38
|
-
minitest (5.
|
39
|
-
|
40
|
-
|
41
|
-
parser (3.3.4.0)
|
40
|
+
minitest (5.25.1)
|
41
|
+
parallel (1.26.3)
|
42
|
+
parser (3.3.5.0)
|
42
43
|
ast (~> 2.4.1)
|
43
44
|
racc
|
44
|
-
prism (0.
|
45
|
+
prism (1.0.0)
|
45
46
|
pry (0.14.2)
|
46
47
|
coderay (~> 1.1)
|
47
48
|
method_source (~> 1.0)
|
48
49
|
pry-byebug (3.10.1)
|
49
50
|
byebug (~> 11.0)
|
50
51
|
pry (>= 0.13, < 0.15)
|
51
|
-
racc (1.8.
|
52
|
+
racc (1.8.1)
|
52
53
|
rainbow (3.1.1)
|
53
54
|
rake (13.2.1)
|
54
55
|
regexp_parser (2.9.2)
|
55
|
-
rexml (3.3.2)
|
56
|
-
strscan
|
57
56
|
rspec (3.13.0)
|
58
57
|
rspec-core (~> 3.13.0)
|
59
58
|
rspec-expectations (~> 3.13.0)
|
60
59
|
rspec-mocks (~> 3.13.0)
|
61
|
-
rspec-core (3.13.
|
60
|
+
rspec-core (3.13.1)
|
62
61
|
rspec-support (~> 3.13.0)
|
63
|
-
rspec-expectations (3.13.
|
62
|
+
rspec-expectations (3.13.2)
|
64
63
|
diff-lcs (>= 1.2.0, < 2.0)
|
65
64
|
rspec-support (~> 3.13.0)
|
66
65
|
rspec-mocks (3.13.1)
|
67
66
|
diff-lcs (>= 1.2.0, < 2.0)
|
68
67
|
rspec-support (~> 3.13.0)
|
69
68
|
rspec-support (3.13.1)
|
70
|
-
rubocop (1.
|
69
|
+
rubocop (1.66.1)
|
71
70
|
json (~> 2.3)
|
72
71
|
language_server-protocol (>= 3.17.0)
|
73
72
|
parallel (~> 1.10)
|
74
73
|
parser (>= 3.3.0.2)
|
75
74
|
rainbow (>= 2.2.2, < 4.0)
|
76
75
|
regexp_parser (>= 2.4, < 3.0)
|
77
|
-
|
78
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
76
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
79
77
|
ruby-progressbar (~> 1.7)
|
80
78
|
unicode-display_width (>= 2.4.0, < 3.0)
|
81
|
-
rubocop-ast (1.
|
79
|
+
rubocop-ast (1.32.3)
|
82
80
|
parser (>= 3.3.1.0)
|
83
81
|
rubocop-performance (1.21.1)
|
84
82
|
rubocop (>= 1.48.1, < 2.0)
|
85
83
|
rubocop-ast (>= 1.31.1, < 2.0)
|
86
84
|
rubocop-rake (0.6.0)
|
87
85
|
rubocop (~> 1.0)
|
88
|
-
rubocop-rspec (3.0.
|
86
|
+
rubocop-rspec (3.0.4)
|
89
87
|
rubocop (~> 1.61)
|
90
88
|
ruby-progressbar (1.13.0)
|
91
|
-
runger_release_assistant (0.
|
89
|
+
runger_release_assistant (0.12.0)
|
92
90
|
activesupport (>= 6, < 8)
|
93
91
|
memo_wise (>= 1.7, < 2)
|
94
92
|
rainbow (>= 3.0, < 4)
|
95
93
|
slop (~> 4.8)
|
96
|
-
runger_style (2.
|
94
|
+
runger_style (2.17.0)
|
97
95
|
prism (>= 0.24.0)
|
98
96
|
rubocop (>= 1.38.0, < 2)
|
97
|
+
securerandom (0.3.1)
|
99
98
|
slop (4.10.1)
|
100
|
-
strscan (3.1.0)
|
101
99
|
tzinfo (2.0.6)
|
102
100
|
concurrent-ruby (~> 1.0)
|
103
101
|
unicode-display_width (2.5.0)
|
@@ -120,7 +118,7 @@ DEPENDENCIES
|
|
120
118
|
runger_style
|
121
119
|
|
122
120
|
RUBY VERSION
|
123
|
-
ruby 3.3.
|
121
|
+
ruby 3.3.5p100
|
124
122
|
|
125
123
|
BUNDLED WITH
|
126
|
-
2.5.
|
124
|
+
2.5.18
|
data/lib/fcom/querier.rb
CHANGED
@@ -33,9 +33,10 @@ class Fcom::Querier
|
|
33
33
|
--format="commit %s|%H|%an|%cr (%ci)"
|
34
34
|
--patch
|
35
35
|
--full-diff
|
36
|
+
--topo-order
|
36
37
|
--no-textconv
|
37
38
|
#{%(--author="#{author}") if author}
|
38
|
-
#{
|
39
|
+
#{days_limiter}
|
39
40
|
#{commit}
|
40
41
|
--
|
41
42
|
#{path_at_commit}
|
@@ -101,13 +102,29 @@ class Fcom::Querier
|
|
101
102
|
|
102
103
|
memo_wise \
|
103
104
|
def renames
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
105
|
+
if path == Fcom::ROOT_PATH
|
106
|
+
{}
|
107
|
+
else
|
108
|
+
command =
|
109
|
+
'git log HEAD ' \
|
110
|
+
"--format=%H --name-status --follow --diff-filter=R #{days_limiter} " \
|
111
|
+
"-- '#{path}'"
|
112
|
+
|
113
|
+
`#{command}`.
|
114
|
+
split(/\n(?=[0-9a-f]{40})/).
|
115
|
+
to_h do |sha_and_name_info|
|
116
|
+
sha_and_name_info.
|
117
|
+
match(/(?<sha>[0-9a-f]{40})\n\nR\d+\s+(?<previous_name>\S+)?/).
|
118
|
+
named_captures.
|
119
|
+
values_at('sha', 'previous_name')
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
memo_wise \
|
125
|
+
def days_limiter
|
126
|
+
if days
|
127
|
+
"--since=#{days}.day"
|
128
|
+
end
|
112
129
|
end
|
113
130
|
end
|
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.13.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-
|
11
|
+
date: 2024-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -99,6 +99,7 @@ files:
|
|
99
99
|
- ".rspec"
|
100
100
|
- ".rubocop.yml"
|
101
101
|
- ".ruby-version"
|
102
|
+
- ".runger-config.yml"
|
102
103
|
- CHANGELOG.md
|
103
104
|
- Gemfile
|
104
105
|
- Gemfile.lock
|
@@ -146,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
147
|
- !ruby/object:Gem::Version
|
147
148
|
version: '0'
|
148
149
|
requirements: []
|
149
|
-
rubygems_version: 3.5.
|
150
|
+
rubygems_version: 3.5.18
|
150
151
|
signing_key:
|
151
152
|
specification_version: 4
|
152
153
|
summary: CLI tool for parsing git history
|